package reparto_izca.keymon.lat;

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

public class c_principal_subs_0 {


public static RemoteObject  _b_carga_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_carga_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2817);
if (RapidSub.canDelegate("b_carga_click")) { return __ref.runUserSub(false, "c_principal","b_carga_click", __ref);}
RemoteObject _checagestion = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 2817;BA.debugLine="Private Sub B_carga_Click";
Debug.ShouldStop(1);
 BA.debugLineNum = 2818;BA.debugLine="If L_carga.Text = \"LISTO\" And l_carga2.Text = \"LI";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_carga" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("LISTO")) && RemoteObject.solveBoolean("=",__ref.getField(false,"_l_carga2" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("LISTO"))) { 
 BA.debugLineNum = 2819;BA.debugLine="P_carga.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_p_carga" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 2821;BA.debugLine="Dim checagestion As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(16);
_checagestion = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_checagestion = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM NOVENTA"))));Debug.locals.put("checagestion", _checagestion);Debug.locals.put("checagestion", _checagestion);
 BA.debugLineNum = 2822;BA.debugLine="If checagestion.RowCount = 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",_checagestion.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2823;BA.debugLine="P_carga.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_p_carga" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2824;BA.debugLine="e_ruta.Text = \"\"";
Debug.ShouldStop(128);
__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 2825;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE";
Debug.ShouldStop(256);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PICK_CIEGO")));
 BA.debugLineNum = 2826;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
Debug.ShouldStop(512);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente")));
 BA.debugLineNum = 2827;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\"";
Debug.ShouldStop(1024);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PAGARES")));
 BA.debugLineNum = 2828;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_";
Debug.ShouldStop(2048);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CHECADO_CHECK")));
 BA.debugLineNum = 2829;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS";
Debug.ShouldStop(4096);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CHECKLIST2")));
 BA.debugLineNum = 2830;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")";
Debug.ShouldStop(8192);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido")));
 BA.debugLineNum = 2831;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\"";
Debug.ShouldStop(16384);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from noventa")));
 BA.debugLineNum = 2832;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act";
Debug.ShouldStop(32768);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from clie_act")));
 BA.debugLineNum = 2833;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info";
Debug.ShouldStop(65536);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from kmt_info")));
 BA.debugLineNum = 2834;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
Debug.ShouldStop(131072);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod")));
 BA.debugLineNum = 2835;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
Debug.ShouldStop(262144);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod3")));
 BA.debugLineNum = 2836;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA";
Debug.ShouldStop(524288);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_DETALLES_PAQ")));
 BA.debugLineNum = 2837;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS")));
 BA.debugLineNum = 2838;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from REPARTO")));
 BA.debugLineNum = 2839;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
Debug.ShouldStop(4194304);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM TABULADOR_MONEDAS")));
 BA.debugLineNum = 2840;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
Debug.ShouldStop(8388608);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM TABULADOR_BILLETES")));
 BA.debugLineNum = 2841;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
Debug.ShouldStop(16777216);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM RUTAA")));
 BA.debugLineNum = 2842;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
Debug.ShouldStop(33554432);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM ABONOSP")));
 BA.debugLineNum = 2843;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")";
Debug.ShouldStop(67108864);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM ABONOS")));
 BA.debugLineNum = 2844;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV";
Debug.ShouldStop(134217728);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM BLOCKENVIO")));
 BA.debugLineNum = 2845;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(268435456);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 2846;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f";
Debug.ShouldStop(536870912);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No se cargo bien la informacion, favor de cargar día nuevamente")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 2848;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f";
Debug.ShouldStop(-2147483648);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No se cargo bien la informacion, favor de cargar día nuevamente")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2849;BA.debugLine="P_carga.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_p_carga" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 };
 };
 BA.debugLineNum = 2852;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_check_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_check_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2603);
if (RapidSub.canDelegate("b_check_click")) { return __ref.runUserSub(false, "c_principal","b_check_click", __ref);}
 BA.debugLineNum = 2603;BA.debugLine="Private Sub b_check_Click";
Debug.ShouldStop(1024);
 BA.debugLineNum = 2605;BA.debugLine="B4XPages.ShowPage(\"checklist\")";
Debug.ShouldStop(4096);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("checklist")));
 BA.debugLineNum = 2607;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_clieprod_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_CLIEPROD_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2332);
if (RapidSub.canDelegate("b_clieprod_click")) { return __ref.runUserSub(false, "c_principal","b_clieprod_click", __ref);}
RemoteObject _ch = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _ch1 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
int _i = 0;
RemoteObject _vc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cuenta0 = RemoteObject.createImmutable("");
RemoteObject _arti = RemoteObject.createImmutable("");
int _hjf = 0;
RemoteObject _vc2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cuenta1 = RemoteObject.createImmutable("");
RemoteObject _arti1 = RemoteObject.createImmutable("");
int _h = 0;
RemoteObject _preu = RemoteObject.createImmutable(0f);
RemoteObject _vc3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _vc4 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cuenta2 = RemoteObject.createImmutable("");
RemoteObject _arti2 = RemoteObject.createImmutable("");
int _k = 0;
RemoteObject _vc5 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _c4 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cuenta3 = RemoteObject.createImmutable("");
RemoteObject _arti3 = RemoteObject.createImmutable("");
int _x = 0;
RemoteObject _totalmonto = RemoteObject.createImmutable("");
RemoteObject _totalcantidad = RemoteObject.createImmutable("");
 BA.debugLineNum = 2332;BA.debugLine="Sub B_CLIEPROD_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 2333;BA.debugLine="If b_check.Visible = True Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b_check" /*RemoteObject*/ ).runMethod(true,"getVisible"),c_principal.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2334;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
Debug.ShouldStop(536870912);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Favor de hacer el checklist.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 2336;BA.debugLine="BUSCA.Visible = True";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2337;BA.debugLine="connecta.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2338;BA.debugLine="trabajar.Visible = True";
Debug.ShouldStop(2);
__ref.getField(false,"_trabajar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2339;BA.debugLine="B_CLIEPROD.Visible = True";
Debug.ShouldStop(4);
__ref.getField(false,"_b_clieprod" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2340;BA.debugLine="Panel1.Visible = True";
Debug.ShouldStop(8);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2341;BA.debugLine="Panel1.BringToFront";
Debug.ShouldStop(16);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 2342;BA.debugLine="Panel1.Width = Root.Width";
Debug.ShouldStop(32);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 2343;BA.debugLine="Panel1.Height = Root.Height";
Debug.ShouldStop(64);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 2344;BA.debugLine="B_REGRESA.Top = Panel1.Height - B_REGRESA.Height";
Debug.ShouldStop(128);
__ref.getField(false,"_b_regresa" /*RemoteObject*/ ).runMethod(true,"setTop",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"getHeight"),__ref.getField(false,"_b_regresa" /*RemoteObject*/ ).runMethod(true,"getHeight")}, "-",1, 1));
 BA.debugLineNum = 2345;BA.debugLine="Btn_Ubicar_Ru.Visible=True";
Debug.ShouldStop(256);
__ref.getField(false,"_btn_ubicar_ru" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2347;BA.debugLine="Dim ch As Cursor = Starter.skmt.ExecQuery(\"selec";
Debug.ShouldStop(1024);
_ch = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_ch = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as visit from kmt_info WHERE gestion = 2"))));Debug.locals.put("ch", _ch);Debug.locals.put("ch", _ch);
 BA.debugLineNum = 2348;BA.debugLine="ch.Position = 0";
Debug.ShouldStop(2048);
_ch.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2349;BA.debugLine="L_clientes_visit.Text = ch.GetInt(\"visit\")";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_clientes_visit" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_ch.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("visit")))));
 BA.debugLineNum = 2351;BA.debugLine="Dim ch1 As Cursor = Starter.skmt.ExecQuery(\"sele";
Debug.ShouldStop(16384);
_ch1 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_ch1 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as rechazo from kmt_info WHERE gestion = 3"))));Debug.locals.put("ch1", _ch1);Debug.locals.put("ch1", _ch1);
 BA.debugLineNum = 2352;BA.debugLine="ch1.Position = 0";
Debug.ShouldStop(32768);
_ch1.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2353;BA.debugLine="l_clientes_recha.Text = ch1.GetInt(\"rechazo\")";
Debug.ShouldStop(65536);
__ref.getField(false,"_l_clientes_recha" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_ch1.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("rechazo")))));
 BA.debugLineNum = 2354;BA.debugLine="l_clientes_visitados.Text = ch1.GetInt(\"rechazo\"";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_clientes_visitados" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {_ch1.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("rechazo"))),_ch.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("visit")))}, "+",1, 1)));
 BA.debugLineNum = 2356;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from kmt_info";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select * from kmt_info WHERE gestion <> 0 order by HORAENT"))));
 BA.debugLineNum = 2357;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
Debug.ShouldStop(1048576);
c_principal._subs.runVoidMethod ("_setdivider" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_listview1" /*RemoteObject*/ )),(Object)(c_principal.__c.getField(false,"Colors").getField(true,"LightGray")),(Object)(BA.numberCast(int.class, 2)));
 BA.debugLineNum = 2358;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(2097152);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 2359;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(4194304);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 2360;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(8388608);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 2361;BA.debugLine="label1.TextSize = 16";
Debug.ShouldStop(16777216);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 16));
 BA.debugLineNum = 2362;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(33554432);
_label1.runMethod(true,"setTextColor",c_principal.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 2363;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(67108864);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 2364;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(134217728);
_label2 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 2365;BA.debugLine="label2.TextSize = 16";
Debug.ShouldStop(268435456);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 16));
 BA.debugLineNum = 2366;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(536870912);
_label2.runMethod(true,"setTextColor",c_principal.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 2368;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2369;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(1);
{
final int step33 = 1;
final int limit33 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step33 > 0 && _i <= limit33) || (step33 < 0 && _i >= limit33) ;_i = ((int)(0 + _i + step33))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2370;BA.debugLine="c.Position=i";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2371;BA.debugLine="If c.GetString(\"gestion\") = \"2\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("gestion"))),BA.ObjectToString("2"))) { 
 BA.debugLineNum = 2372;BA.debugLine="ESTATUS = \"ENTREGADO\"";
Debug.ShouldStop(8);
__ref.setField ("_estatus" /*RemoteObject*/ ,BA.ObjectToString("ENTREGADO"));
 BA.debugLineNum = 2373;BA.debugLine="Log(\"entrega\")";
Debug.ShouldStop(16);
c_principal.__c.runVoidMethod ("LogImpl","815401001",RemoteObject.createImmutable("entrega"),0);
 }else 
{ BA.debugLineNum = 2374;BA.debugLine="ELSE IF c.GetString(\"gestion\") = \"3\" Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("gestion"))),BA.ObjectToString("3"))) { 
 BA.debugLineNum = 2375;BA.debugLine="Log(\"no entrega\")";
Debug.ShouldStop(64);
c_principal.__c.runVoidMethod ("LogImpl","815401003",RemoteObject.createImmutable("no entrega"),0);
 BA.debugLineNum = 2376;BA.debugLine="ESTATUS = \"RECHAZADO\"";
Debug.ShouldStop(128);
__ref.setField ("_estatus" /*RemoteObject*/ ,BA.ObjectToString("RECHAZADO"));
 }else {
 BA.debugLineNum = 2378;BA.debugLine="ESTATUS = \"SIN ESTATUS\"";
Debug.ShouldStop(512);
__ref.setField ("_estatus" /*RemoteObject*/ ,BA.ObjectToString("SIN ESTATUS"));
 }}
;
 BA.debugLineNum = 2383;BA.debugLine="If ESTATUS = \"ENTREGADO\" Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_estatus" /*RemoteObject*/ ),BA.ObjectToString("ENTREGADO"))) { 
 BA.debugLineNum = 2384;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(32768);
_vc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("' and HVD_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc", _vc);Debug.locals.put("vc", _vc);
 BA.debugLineNum = 2386;BA.debugLine="Private cuenta0 As String = 0";
Debug.ShouldStop(131072);
_cuenta0 = BA.NumberToString(0);Debug.locals.put("cuenta0", _cuenta0);Debug.locals.put("cuenta0", _cuenta0);
 BA.debugLineNum = 2387;BA.debugLine="Private arti As String = 0";
Debug.ShouldStop(262144);
_arti = BA.NumberToString(0);Debug.locals.put("arti", _arti);Debug.locals.put("arti", _arti);
 BA.debugLineNum = 2388;BA.debugLine="If vc.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",_vc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2389;BA.debugLine="For hjf = 0 To vc.RowCount - 1";
Debug.ShouldStop(1048576);
{
final int step49 = 1;
final int limit49 = RemoteObject.solve(new RemoteObject[] {_vc.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_hjf = 0 ;
for (;(step49 > 0 && _hjf <= limit49) || (step49 < 0 && _hjf >= limit49) ;_hjf = ((int)(0 + _hjf + step49))  ) {
Debug.locals.put("hjf", _hjf);
 BA.debugLineNum = 2390;BA.debugLine="vc.Position = hjf";
Debug.ShouldStop(2097152);
_vc.runMethod(true,"setPosition",BA.numberCast(int.class, _hjf));
 BA.debugLineNum = 2392;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - v";
Debug.ShouldStop(8388608);
_arti = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "+",1, 0));Debug.locals.put("arti", _arti);
 BA.debugLineNum = 2393;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CAN";
Debug.ShouldStop(16777216);
_cuenta0 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta0),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0)),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "/",0, 0))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("cuenta0", _cuenta0);
 }
}Debug.locals.put("hjf", _hjf);
;
 };
 BA.debugLineNum = 2398;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(536870912);
_vc2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("' AND BCAJAS = 1"))))));Debug.locals.put("vc2", _vc2);Debug.locals.put("vc2", _vc2);
 BA.debugLineNum = 2399;BA.debugLine="Private Cuenta1 As String = 0";
Debug.ShouldStop(1073741824);
_cuenta1 = BA.NumberToString(0);Debug.locals.put("Cuenta1", _cuenta1);Debug.locals.put("Cuenta1", _cuenta1);
 BA.debugLineNum = 2400;BA.debugLine="Private arti1 As String = 0";
Debug.ShouldStop(-2147483648);
_arti1 = BA.NumberToString(0);Debug.locals.put("arti1", _arti1);Debug.locals.put("arti1", _arti1);
 BA.debugLineNum = 2401;BA.debugLine="If vc2.RowCount > 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",_vc2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2402;BA.debugLine="For h = 0 To vc2.RowCount - 1";
Debug.ShouldStop(2);
{
final int step59 = 1;
final int limit59 = RemoteObject.solve(new RemoteObject[] {_vc2.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_h = 0 ;
for (;(step59 > 0 && _h <= limit59) || (step59 < 0 && _h >= limit59) ;_h = ((int)(0 + _h + step59))  ) {
Debug.locals.put("h", _h);
 BA.debugLineNum = 2403;BA.debugLine="vc2.Position = h";
Debug.ShouldStop(4);
_vc2.runMethod(true,"setPosition",BA.numberCast(int.class, _h));
 BA.debugLineNum = 2404;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetSt";
Debug.ShouldStop(8);
_preu = BA.numberCast(float.class, c_principal.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False"))));Debug.locals.put("preu", _preu);Debug.locals.put("preu", _preu);
 BA.debugLineNum = 2405;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(16);
_vc3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc3", _vc3);Debug.locals.put("vc3", _vc3);
 BA.debugLineNum = 2406;BA.debugLine="If vc3.RowCount > 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",_vc3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2407;BA.debugLine="vc3.Position = 0";
Debug.ShouldStop(64);
_vc3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2408;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC";
Debug.ShouldStop(128);
_cuenta1 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta1),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC")))),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _vc3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONVERSION"))))}, "/",0, 0))}, "-",1, 0)),_preu}, "*",0, 0))}, "+",1, 0));Debug.locals.put("Cuenta1", _cuenta1);
 BA.debugLineNum = 2409;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\")";
Debug.ShouldStop(256);
_arti1 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti1),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "+",1, 0));Debug.locals.put("arti1", _arti1);
 };
 }
}Debug.locals.put("h", _h);
;
 };
 BA.debugLineNum = 2415;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(16384);
_vc4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("' AND BCAJAS = 0 and HVD_CODPROMO <> '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc4", _vc4);Debug.locals.put("vc4", _vc4);
 BA.debugLineNum = 2416;BA.debugLine="Private Cuenta2 As String = 0";
Debug.ShouldStop(32768);
_cuenta2 = BA.NumberToString(0);Debug.locals.put("Cuenta2", _cuenta2);Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 2417;BA.debugLine="Private arti2 As String = 0";
Debug.ShouldStop(65536);
_arti2 = BA.NumberToString(0);Debug.locals.put("arti2", _arti2);Debug.locals.put("arti2", _arti2);
 BA.debugLineNum = 2418;BA.debugLine="If vc4.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",_vc4.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2420;BA.debugLine="For k = 0 To vc4.RowCount - 1";
Debug.ShouldStop(524288);
{
final int step74 = 1;
final int limit74 = RemoteObject.solve(new RemoteObject[] {_vc4.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_k = 0 ;
for (;(step74 > 0 && _k <= limit74) || (step74 < 0 && _k >= limit74) ;_k = ((int)(0 + _k + step74))  ) {
Debug.locals.put("k", _k);
 BA.debugLineNum = 2421;BA.debugLine="vc4.Position = k";
Debug.ShouldStop(1048576);
_vc4.runMethod(true,"setPosition",BA.numberCast(int.class, _k));
 BA.debugLineNum = 2422;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("!",_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))),_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))))) { 
 BA.debugLineNum = 2423;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZO"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 2424;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_CO";
Debug.ShouldStop(8388608);
_cuenta2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta2),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT"))))}, "+",1, 0));Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 2425;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")";
Debug.ShouldStop(16777216);
_arti2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti2),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "+",1, 0));Debug.locals.put("arti2", _arti2);
 }else {
 BA.debugLineNum = 2427;BA.debugLine="Private vc5 As Cursor = Starter.skmt.Exec";
Debug.ShouldStop(67108864);
_vc5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc5", _vc5);Debug.locals.put("vc5", _vc5);
 BA.debugLineNum = 2428;BA.debugLine="If vc5.RowCount > 0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",_vc5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2429;BA.debugLine="vc5.Position= 0";
Debug.ShouldStop(268435456);
_vc5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2431;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_";
Debug.ShouldStop(1073741824);
_cuenta2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta2),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0)),BA.numberCast(double.class, _vc5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 2432;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\"";
Debug.ShouldStop(-2147483648);
_arti2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti2),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "+",1, 0));Debug.locals.put("arti2", _arti2);
 };
 };
 };
 }
}Debug.locals.put("k", _k);
;
 };
 BA.debugLineNum = 2441;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(256);
_c4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c4", _c4);Debug.locals.put("c4", _c4);
 BA.debugLineNum = 2442;BA.debugLine="Private Cuenta3 As String = 0";
Debug.ShouldStop(512);
_cuenta3 = BA.NumberToString(0);Debug.locals.put("Cuenta3", _cuenta3);Debug.locals.put("Cuenta3", _cuenta3);
 BA.debugLineNum = 2443;BA.debugLine="Private arti3 As String = 0";
Debug.ShouldStop(1024);
_arti3 = BA.NumberToString(0);Debug.locals.put("arti3", _arti3);Debug.locals.put("arti3", _arti3);
 BA.debugLineNum = 2444;BA.debugLine="If c4.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",_c4.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2445;BA.debugLine="For x = 0 To c4.RowCount -1";
Debug.ShouldStop(4096);
{
final int step95 = 1;
final int limit95 = RemoteObject.solve(new RemoteObject[] {_c4.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step95 > 0 && _x <= limit95) || (step95 < 0 && _x >= limit95) ;_x = ((int)(0 + _x + step95))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 2446;BA.debugLine="c4.Position = x";
Debug.ShouldStop(8192);
_c4.runMethod(true,"setPosition",BA.numberCast(int.class, _x));
 BA.debugLineNum = 2447;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
Debug.ShouldStop(16384);
_arti3 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti3),BA.numberCast(double.class, _c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))}, "+",1, 0));Debug.locals.put("arti3", _arti3);
 BA.debugLineNum = 2448;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_";
Debug.ShouldStop(32768);
_cuenta3 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta3),BA.numberCast(double.class, _c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))}, "+",1, 0));Debug.locals.put("Cuenta3", _cuenta3);
 }
}Debug.locals.put("x", _x);
;
 };
 BA.debugLineNum = 2453;BA.debugLine="Private TOTALMONTO As String = cuenta0 + Cuen";
Debug.ShouldStop(1048576);
_totalmonto = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta0),BA.numberCast(double.class, _cuenta1),BA.numberCast(double.class, _cuenta2),BA.numberCast(double.class, _cuenta3)}, "+++",3, 0));Debug.locals.put("TOTALMONTO", _totalmonto);Debug.locals.put("TOTALMONTO", _totalmonto);
 BA.debugLineNum = 2454;BA.debugLine="Private TOTALcantidad As String = arti + arti";
Debug.ShouldStop(2097152);
_totalcantidad = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti),BA.numberCast(double.class, _arti1),BA.numberCast(double.class, _arti2),BA.numberCast(double.class, _arti3)}, "+++",3, 0));Debug.locals.put("TOTALcantidad", _totalcantidad);Debug.locals.put("TOTALcantidad", _totalcantidad);
 BA.debugLineNum = 2456;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD";
Debug.ShouldStop(8388608);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))),RemoteObject.createImmutable(" - "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))))),(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Articulos :"),_totalcantidad,RemoteObject.createImmutable(" Monto :"),c_principal.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _totalmonto)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"True"))),RemoteObject.createImmutable("   "),__ref.getField(true,"_estatus" /*RemoteObject*/ )))));
 BA.debugLineNum = 2457;BA.debugLine="Log(\"si entre2\")";
Debug.ShouldStop(16777216);
c_principal.__c.runVoidMethod ("LogImpl","815401085",RemoteObject.createImmutable("si entre2"),0);
 }else 
{ BA.debugLineNum = 2459;BA.debugLine="Else If ESTATUS = \"RECHAZADO\" Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_estatus" /*RemoteObject*/ ),BA.ObjectToString("RECHAZADO"))) { 
 BA.debugLineNum = 2461;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(268435456);
_vc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO, HVD_COSTO_TOT from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("' and HVD_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc", _vc);Debug.locals.put("vc", _vc);
 BA.debugLineNum = 2463;BA.debugLine="Private cuenta0 As String = 0";
Debug.ShouldStop(1073741824);
_cuenta0 = BA.NumberToString(0);Debug.locals.put("cuenta0", _cuenta0);Debug.locals.put("cuenta0", _cuenta0);
 BA.debugLineNum = 2464;BA.debugLine="Private arti As String = 0";
Debug.ShouldStop(-2147483648);
_arti = BA.NumberToString(0);Debug.locals.put("arti", _arti);Debug.locals.put("arti", _arti);
 BA.debugLineNum = 2465;BA.debugLine="If vc.RowCount > 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",_vc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2466;BA.debugLine="For hjf = 0 To vc.RowCount - 1";
Debug.ShouldStop(2);
{
final int step110 = 1;
final int limit110 = RemoteObject.solve(new RemoteObject[] {_vc.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_hjf = 0 ;
for (;(step110 > 0 && _hjf <= limit110) || (step110 < 0 && _hjf >= limit110) ;_hjf = ((int)(0 + _hjf + step110))  ) {
Debug.locals.put("hjf", _hjf);
 BA.debugLineNum = 2467;BA.debugLine="vc.Position = hjf";
Debug.ShouldStop(4);
_vc.runMethod(true,"setPosition",BA.numberCast(int.class, _hjf));
 BA.debugLineNum = 2468;BA.debugLine="Dim preu As Float = NumberFormat2(vc.GetStr";
Debug.ShouldStop(8);
_preu = BA.numberCast(float.class, c_principal.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False"))));Debug.locals.put("preu", _preu);Debug.locals.put("preu", _preu);
 BA.debugLineNum = 2470;BA.debugLine="arti = arti + (vc.GetString(\"HVD_RECHAZOCAN";
Debug.ShouldStop(32);
_arti = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti),BA.numberCast(double.class, (_vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))))}, "+",1, 0));Debug.locals.put("arti", _arti);
 BA.debugLineNum = 2471;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_REC";
Debug.ShouldStop(64);
_cuenta0 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta0),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, (_vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))),_preu}, "*",0, 0))}, "+",1, 0));Debug.locals.put("cuenta0", _cuenta0);
 }
}Debug.locals.put("hjf", _hjf);
;
 };
 BA.debugLineNum = 2476;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(2048);
_vc2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc2 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("' AND BCAJAS = 1"))))));Debug.locals.put("vc2", _vc2);Debug.locals.put("vc2", _vc2);
 BA.debugLineNum = 2477;BA.debugLine="Private Cuenta1 As String = 0";
Debug.ShouldStop(4096);
_cuenta1 = BA.NumberToString(0);Debug.locals.put("Cuenta1", _cuenta1);Debug.locals.put("Cuenta1", _cuenta1);
 BA.debugLineNum = 2478;BA.debugLine="Private arti1 As String = 0";
Debug.ShouldStop(8192);
_arti1 = BA.NumberToString(0);Debug.locals.put("arti1", _arti1);Debug.locals.put("arti1", _arti1);
 BA.debugLineNum = 2479;BA.debugLine="If vc2.RowCount > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",_vc2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2480;BA.debugLine="For h = 0 To vc2.RowCount - 1";
Debug.ShouldStop(32768);
{
final int step121 = 1;
final int limit121 = RemoteObject.solve(new RemoteObject[] {_vc2.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_h = 0 ;
for (;(step121 > 0 && _h <= limit121) || (step121 < 0 && _h >= limit121) ;_h = ((int)(0 + _h + step121))  ) {
Debug.locals.put("h", _h);
 BA.debugLineNum = 2481;BA.debugLine="vc2.Position = h";
Debug.ShouldStop(65536);
_vc2.runMethod(true,"setPosition",BA.numberCast(int.class, _h));
 BA.debugLineNum = 2482;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetSt";
Debug.ShouldStop(131072);
_preu = BA.numberCast(float.class, c_principal.__c.runMethod(true,"NumberFormat2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False"))));Debug.locals.put("preu", _preu);Debug.locals.put("preu", _preu);
 BA.debugLineNum = 2483;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(262144);
_vc3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc3", _vc3);Debug.locals.put("vc3", _vc3);
 BA.debugLineNum = 2484;BA.debugLine="If vc3.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",_vc3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2485;BA.debugLine="vc3.Position = 0";
Debug.ShouldStop(1048576);
_vc3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2486;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"HVD_R";
Debug.ShouldStop(2097152);
_cuenta1 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta1),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _vc3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONVERSION"))))}, "/",0, 0)),_preu}, "*",0, 0))}, "+",1, 0));Debug.locals.put("Cuenta1", _cuenta1);
 BA.debugLineNum = 2487;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_RECHAZ";
Debug.ShouldStop(4194304);
_arti1 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti1),BA.numberCast(double.class, (_vc2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))))}, "+",1, 0));Debug.locals.put("arti1", _arti1);
 };
 }
}Debug.locals.put("h", _h);
;
 };
 BA.debugLineNum = 2493;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(268435456);
_vc4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("' AND BCAJAS = 0 and HVD_CODPROMO <> '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc4", _vc4);Debug.locals.put("vc4", _vc4);
 BA.debugLineNum = 2494;BA.debugLine="Private Cuenta2 As String = 0";
Debug.ShouldStop(536870912);
_cuenta2 = BA.NumberToString(0);Debug.locals.put("Cuenta2", _cuenta2);Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 2495;BA.debugLine="Private arti2 As String = 0";
Debug.ShouldStop(1073741824);
_arti2 = BA.NumberToString(0);Debug.locals.put("arti2", _arti2);Debug.locals.put("arti2", _arti2);
 BA.debugLineNum = 2496;BA.debugLine="If vc4.RowCount > 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",_vc4.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2498;BA.debugLine="For k = 0 To vc4.RowCount - 1";
Debug.ShouldStop(2);
{
final int step136 = 1;
final int limit136 = RemoteObject.solve(new RemoteObject[] {_vc4.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_k = 0 ;
for (;(step136 > 0 && _k <= limit136) || (step136 < 0 && _k >= limit136) ;_k = ((int)(0 + _k + step136))  ) {
Debug.locals.put("k", _k);
 BA.debugLineNum = 2499;BA.debugLine="vc4.Position = k";
Debug.ShouldStop(4);
_vc4.runMethod(true,"setPosition",BA.numberCast(int.class, _k));
 BA.debugLineNum = 2500;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("!",_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))),_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))))) { 
 BA.debugLineNum = 2501;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZO"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 2502;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_CO";
Debug.ShouldStop(32);
_cuenta2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta2),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT"))))}, "+",1, 0));Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 2503;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_RECHAZ";
Debug.ShouldStop(64);
_arti2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti2),BA.numberCast(double.class, _vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "+",1, 0));Debug.locals.put("arti2", _arti2);
 }else {
 BA.debugLineNum = 2505;BA.debugLine="Private vc5 As Cursor = Starter.skmt.Exec";
Debug.ShouldStop(256);
_vc5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("vc5", _vc5);Debug.locals.put("vc5", _vc5);
 BA.debugLineNum = 2506;BA.debugLine="If vc5.RowCount > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",_vc5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2507;BA.debugLine="vc5.Position= 0";
Debug.ShouldStop(1024);
_vc5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2509;BA.debugLine="Cuenta2 = Cuenta2 +(( vc4.GetString(\"HVD";
Debug.ShouldStop(4096);
_cuenta2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta2),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, (_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))),BA.numberCast(double.class, _vc5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO"))))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("Cuenta2", _cuenta2);
 BA.debugLineNum = 2510;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_RECHA";
Debug.ShouldStop(8192);
_arti2 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti2),BA.numberCast(double.class, (_vc4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))))}, "+",1, 0));Debug.locals.put("arti2", _arti2);
 };
 };
 };
 }
}Debug.locals.put("k", _k);
;
 };
 BA.debugLineNum = 2519;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery";
Debug.ShouldStop(4194304);
_c4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c4", _c4);Debug.locals.put("c4", _c4);
 BA.debugLineNum = 2520;BA.debugLine="Private Cuenta3 As String = 0";
Debug.ShouldStop(8388608);
_cuenta3 = BA.NumberToString(0);Debug.locals.put("Cuenta3", _cuenta3);Debug.locals.put("Cuenta3", _cuenta3);
 BA.debugLineNum = 2521;BA.debugLine="Private arti3 As String = 0";
Debug.ShouldStop(16777216);
_arti3 = BA.NumberToString(0);Debug.locals.put("arti3", _arti3);Debug.locals.put("arti3", _arti3);
 BA.debugLineNum = 2522;BA.debugLine="If c4.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",_c4.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2523;BA.debugLine="For x = 0 To c4.RowCount -1";
Debug.ShouldStop(67108864);
{
final int step157 = 1;
final int limit157 = RemoteObject.solve(new RemoteObject[] {_c4.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step157 > 0 && _x <= limit157) || (step157 < 0 && _x >= limit157) ;_x = ((int)(0 + _x + step157))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 2524;BA.debugLine="c4.Position = x";
Debug.ShouldStop(134217728);
_c4.runMethod(true,"setPosition",BA.numberCast(int.class, _x));
 BA.debugLineNum = 2525;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")";
Debug.ShouldStop(268435456);
_arti3 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti3),BA.numberCast(double.class, _c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))}, "+",1, 0));Debug.locals.put("arti3", _arti3);
 BA.debugLineNum = 2526;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_";
Debug.ShouldStop(536870912);
_cuenta3 = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta3),BA.numberCast(double.class, _c4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))}, "+",1, 0));Debug.locals.put("Cuenta3", _cuenta3);
 }
}Debug.locals.put("x", _x);
;
 };
 BA.debugLineNum = 2531;BA.debugLine="Private TOTALMONTO As String = cuenta0 + Cuen";
Debug.ShouldStop(4);
_totalmonto = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cuenta0),BA.numberCast(double.class, _cuenta1),BA.numberCast(double.class, _cuenta2),BA.numberCast(double.class, _cuenta3)}, "+++",3, 0));Debug.locals.put("TOTALMONTO", _totalmonto);Debug.locals.put("TOTALMONTO", _totalmonto);
 BA.debugLineNum = 2532;BA.debugLine="Private TOTALcantidad As String = arti + arti";
Debug.ShouldStop(8);
_totalcantidad = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _arti),BA.numberCast(double.class, _arti1),BA.numberCast(double.class, _arti2),BA.numberCast(double.class, _arti3)}, "+++",3, 0));Debug.locals.put("TOTALcantidad", _totalcantidad);Debug.locals.put("TOTALcantidad", _totalcantidad);
 BA.debugLineNum = 2534;BA.debugLine="Log(\"si entre\")";
Debug.ShouldStop(32);
c_principal.__c.runVoidMethod ("LogImpl","815401162",RemoteObject.createImmutable("si entre"),0);
 BA.debugLineNum = 2535;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD";
Debug.ShouldStop(64);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))),RemoteObject.createImmutable(" - "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))))),(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Articulos :"),_totalcantidad,RemoteObject.createImmutable(" Monto :"),c_principal.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _totalmonto)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"True"))),RemoteObject.createImmutable("   "),__ref.getField(true,"_estatus" /*RemoteObject*/ )))));
 }}
;
 }
}Debug.locals.put("i", _i);
;
 };
 };
 BA.debugLineNum = 2572;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _b_imp_inventario_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_imp_inventario_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3005);
if (RapidSub.canDelegate("b_imp_inventario_click")) { __ref.runUserSub(false, "c_principal","b_imp_inventario_click", __ref); return;}
ResumableSub_b_imp_inventario_Click rsub = new ResumableSub_b_imp_inventario_Click(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_b_imp_inventario_Click extends BA.ResumableSub {
public ResumableSub_b_imp_inventario_Click(reparto_izca.keymon.lat.c_principal parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
reparto_izca.keymon.lat.c_principal parent;
RemoteObject _cont = RemoteObject.createImmutable(0);
RemoteObject _bmp = RemoteObject.declareNull("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");
RemoteObject _myimage = RemoteObject.declareNull("reparto_izca.keymon.lat.escposprinter._animage");
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
int _i = 0;
RemoteObject _firstchar = RemoteObject.createImmutable("");
RemoteObject _productoinven = RemoteObject.createImmutable("");
RemoteObject _sumainv = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int step56;
int limit56;
int step62;
int limit62;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("b_imp_inventario_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3005);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

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

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 3036;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Imprimiendo, un momento ..."))));
 BA.debugLineNum = 3037;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(268435456);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 3038;BA.debugLine="If Not(Printer1.IsConnected) Then";
Debug.ShouldStop(536870912);
if (true) break;

case 1:
//if
this.state = 38;
if (parent.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_isconnected" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) { 
this.state = 3;
}else {
this.state = 21;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 3040;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 3041;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(1);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 3042;BA.debugLine="Do While Not(impresoraConectada)";
Debug.ShouldStop(2);
if (true) break;

case 4:
//do while
this.state = 19;
while (parent.__c.runMethod(true,"Not",(Object)(__ref.getField(true,"_impresoraconectada" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) {
this.state = 6;
if (true) break;
}
if (true) break;

case 6:
//C
this.state = 7;
 BA.debugLineNum = 3043;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(4);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_imp_inventario_click"),BA.numberCast(int.class, 1000));
this.state = 57;
return;
case 57:
//C
this.state = 7;
;
 BA.debugLineNum = 3044;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(8);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 3045;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de";
Debug.ShouldStop(16);
if (true) break;

case 7:
//if
this.state = 12;
if (RemoteObject.solveBoolean("=",_cont,BA.numberCast(double.class, 7))) { 
this.state = 9;
;}if (true) break;

case 9:
//C
this.state = 12;
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
if (true) break;

case 12:
//C
this.state = 13;
;
 BA.debugLineNum = 3046;BA.debugLine="If cont > 15 Then impresoraConectada = True";
Debug.ShouldStop(32);
if (true) break;

case 13:
//if
this.state = 18;
if (RemoteObject.solveBoolean(">",_cont,BA.numberCast(double.class, 15))) { 
this.state = 15;
;}if (true) break;

case 15:
//C
this.state = 18;
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"True"));
if (true) break;

case 18:
//C
this.state = 4;
;
 if (true) break;

case 19:
//C
this.state = 38;
;
 BA.debugLineNum = 3048;BA.debugLine="Sleep(500)";
Debug.ShouldStop(128);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_imp_inventario_click"),BA.numberCast(int.class, 500));
this.state = 58;
return;
case 58:
//C
this.state = 38;
;
 BA.debugLineNum = 3049;BA.debugLine="impresoraConectada = False";
Debug.ShouldStop(256);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 21:
//C
this.state = 22;
 BA.debugLineNum = 3052;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(2048);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 3053;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(4096);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 3054;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
Debug.ShouldStop(8192);
if (true) break;

case 22:
//do while
this.state = 37;
while (RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"Not",(Object)(__ref.getField(true,"_impresoraconectada" /*RemoteObject*/ )))) || RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_isconnected" /*RemoteObject*/ ))))) {
this.state = 24;
if (true) break;
}
if (true) break;

case 24:
//C
this.state = 25;
 BA.debugLineNum = 3055;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(16384);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_imp_inventario_click"),BA.numberCast(int.class, 1000));
this.state = 59;
return;
case 59:
//C
this.state = 25;
;
 BA.debugLineNum = 3056;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(32768);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 3057;BA.debugLine="If cont = 2 Then Printer1.Connect";
Debug.ShouldStop(65536);
if (true) break;

case 25:
//if
this.state = 30;
if (RemoteObject.solveBoolean("=",_cont,BA.numberCast(double.class, 2))) { 
this.state = 27;
;}if (true) break;

case 27:
//C
this.state = 30;
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
if (true) break;

case 30:
//C
this.state = 31;
;
 BA.debugLineNum = 3058;BA.debugLine="If cont > 4 Then impresoraConectada = True";
Debug.ShouldStop(131072);
if (true) break;

case 31:
//if
this.state = 36;
if (RemoteObject.solveBoolean(">",_cont,BA.numberCast(double.class, 4))) { 
this.state = 33;
;}if (true) break;

case 33:
//C
this.state = 36;
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"True"));
if (true) break;

case 36:
//C
this.state = 22;
;
 if (true) break;

case 37:
//C
this.state = 38;
;
 BA.debugLineNum = 3060;BA.debugLine="Sleep(500)";
Debug.ShouldStop(524288);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_imp_inventario_click"),BA.numberCast(int.class, 500));
this.state = 60;
return;
case 60:
//C
this.state = 38;
;
 BA.debugLineNum = 3061;BA.debugLine="impresoraConectada = False";
Debug.ShouldStop(1048576);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 38:
//C
this.state = 39;
;
 BA.debugLineNum = 3064;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(8388608);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 3065;BA.debugLine="ESPACIO = 28";
Debug.ShouldStop(16777216);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 28));
 BA.debugLineNum = 3066;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(33554432);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 3067;BA.debugLine="Dim bmp As Bitmap";
Debug.ShouldStop(67108864);
_bmp = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");Debug.locals.put("bmp", _bmp);
 BA.debugLineNum = 3068;BA.debugLine="Printer1.Justify= 1";
Debug.ShouldStop(134217728);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 1));
 BA.debugLineNum = 3069;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"inventarios";
Debug.ShouldStop(268435456);
_bmp.runVoidMethod ("InitializeResize",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("inventarios.jpg")),(Object)(BA.numberCast(int.class, 92)),(Object)(BA.numberCast(int.class, 92)),(Object)(parent.__c.getField(true,"True")));
 BA.debugLineNum = 3070;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage(";
Debug.ShouldStop(536870912);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_imagetobwimage" /*RemoteObject*/ ,(Object)(_bmp));Debug.locals.put("myimage", _myimage);Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 3071;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)";
Debug.ShouldStop(1073741824);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_ditherimage2d" /*RemoteObject*/ ,(Object)(_myimage),(Object)(BA.numberCast(int.class, 128)));Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 3072;BA.debugLine="myimage= Printer1.PackImage(myimage)";
Debug.ShouldStop(-2147483648);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_packimage" /*RemoteObject*/ ,(Object)(_myimage));Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 3073;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to";
Debug.ShouldStop(1);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(parent.__c.getField(true,"CRLF")));
 BA.debugLineNum = 3074;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to";
Debug.ShouldStop(2);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(parent.__c.getField(true,"CRLF")));
 BA.debugLineNum = 3075;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).getField(true,"_reverse" /*RemoteObject*/ )));
 BA.debugLineNum = 3076;BA.debugLine="Printer1.PrintImage(myimage)";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_printimage" /*RemoteObject*/ ,(Object)(_myimage));
 BA.debugLineNum = 3077;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)";
Debug.ShouldStop(16);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).getField(true,"_unreverse" /*RemoteObject*/ )));
 BA.debugLineNum = 3078;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
Debug.ShouldStop(32);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3079;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
Debug.ShouldStop(64);
parent._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
parent._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), parent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_PRONOMBRE, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, HVD_PROID from HIST_VENTAS WHERE HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))));__ref.setField("_c",parent._c);
 BA.debugLineNum = 3080;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C";
Debug.ShouldStop(128);
__ref.getField(false,"_lv_prod_prin" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label").runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 3081;BA.debugLine="lv_prod_Prin.Clear";
Debug.ShouldStop(256);
__ref.getField(false,"_lv_prod_prin" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 3082;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(512);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3083;BA.debugLine="Dim sDate, sTime As String";
Debug.ShouldStop(1024);
_sdate = RemoteObject.createImmutable("");Debug.locals.put("sDate", _sdate);
_stime = RemoteObject.createImmutable("");Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 3084;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
Debug.ShouldStop(2048);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("dd/MM/yyyy"));
 BA.debugLineNum = 3085;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(4096);
parent.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 3086;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(8192);
_sdate = parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 3087;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
Debug.ShouldStop(16384);
_stime = parent.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 3088;BA.debugLine="Printer1.WriteString(\"Fecha: \" &sDate & CRLF)";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Fecha: "),_sdate,parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3089;BA.debugLine="Printer1.WriteString(\"Hora: \" &sTime & CRLF)";
Debug.ShouldStop(65536);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Hora: "),_stime,parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3090;BA.debugLine="Printer1.WriteString(\"Ruta: \" & l_ruta.Text & CRL";
Debug.ShouldStop(131072);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Ruta: "),__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3091;BA.debugLine="Printer1.WriteString(\"Usuario: \" & Subs.dameUsuar";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Usuario: "),parent._subs.runMethod(true,"_dameusuariodedb" /*RemoteObject*/ ,__ref.getField(false, "ba")),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3093;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(1048576);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("--------------------------------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3094;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(2097152);
if (true) break;

case 39:
//if
this.state = 56;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 41;
}if (true) break;

case 41:
//C
this.state = 42;
 BA.debugLineNum = 3095;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(4194304);
if (true) break;

case 42:
//for
this.state = 55;
step56 = 1;
limit56 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
Debug.locals.put("i", _i);
this.state = 61;
if (true) break;

case 61:
//C
this.state = 55;
if ((step56 > 0 && _i <= limit56) || (step56 < 0 && _i >= limit56)) this.state = 44;
if (true) break;

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

case 44:
//C
this.state = 45;
 BA.debugLineNum = 3096;BA.debugLine="c.Position = i";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 3098;BA.debugLine="Printer1.WriteString(\"-----------INVENTARIO----";
Debug.ShouldStop(33554432);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("-----------INVENTARIO-----------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3099;BA.debugLine="Printer1.WriteString(\"-------------------------";
Debug.ShouldStop(67108864);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("--------------------------------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3100;BA.debugLine="Printer1.WriteString(\"Cant.      Producto\" &  C";
Debug.ShouldStop(134217728);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Cant.      Producto"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3101;BA.debugLine="Printer1.WriteString(\"-------------------------";
Debug.ShouldStop(268435456);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3102;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(536870912);
if (true) break;

case 45:
//for
this.state = 54;
step62 = 1;
limit62 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
Debug.locals.put("i", _i);
this.state = 63;
if (true) break;

case 63:
//C
this.state = 54;
if ((step62 > 0 && _i <= limit62) || (step62 < 0 && _i >= limit62)) this.state = 47;
if (true) break;

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

case 47:
//C
this.state = 48;
 BA.debugLineNum = 3103;BA.debugLine="c.Position=i";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 3106;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(2);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3107;BA.debugLine="Printer1.WriteString( (c.GetString(\"HVD_CANT\")";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),RemoteObject.createImmutable("- "))));
 BA.debugLineNum = 3108;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3109;BA.debugLine="Dim firstChar As String = c.GetString(\"HVD_PRO";
Debug.ShouldStop(16);
_firstchar = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))).runMethod(true,"substring",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("firstChar", _firstchar);Debug.locals.put("firstChar", _firstchar);
 BA.debugLineNum = 3110;BA.debugLine="Dim productoinven As String";
Debug.ShouldStop(32);
_productoinven = RemoteObject.createImmutable("");Debug.locals.put("productoinven", _productoinven);
 BA.debugLineNum = 3113;BA.debugLine="If Asc(firstChar) >= Asc(\"0\") And Asc(firstCha";
Debug.ShouldStop(256);
if (true) break;

case 48:
//if
this.state = 53;
if (RemoteObject.solveBoolean("g",parent.__c.runMethod(true,"Asc",(Object)(BA.ObjectToChar(_firstchar))),BA.numberCast(double.class, parent.__c.runMethod(true,"Asc",(Object)(BA.ObjectToChar(RemoteObject.createImmutable("0")))))) && RemoteObject.solveBoolean("k",parent.__c.runMethod(true,"Asc",(Object)(BA.ObjectToChar(_firstchar))),BA.numberCast(double.class, parent.__c.runMethod(true,"Asc",(Object)(BA.ObjectToChar(RemoteObject.createImmutable("9"))))))) { 
this.state = 50;
}else {
this.state = 52;
}if (true) break;

case 50:
//C
this.state = 53;
 BA.debugLineNum = 3115;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\").";
Debug.ShouldStop(1024);
_productoinven = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))).runMethod(true,"substring",(Object)(BA.numberCast(int.class, 4)));Debug.locals.put("productoinven", _productoinven);
 if (true) break;

case 52:
//C
this.state = 53;
 BA.debugLineNum = 3118;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\")";
Debug.ShouldStop(8192);
_productoinven = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")));Debug.locals.put("productoinven", _productoinven);
 if (true) break;

case 53:
//C
this.state = 64;
;
 BA.debugLineNum = 3122;BA.debugLine="Printer1.WriteString(productoinven)";
Debug.ShouldStop(131072);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(_productoinven));
 BA.debugLineNum = 3123;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3124;BA.debugLine="Printer1.WriteString(\" \" & CRLF)";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 if (true) break;
if (true) break;

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

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

case 56:
//C
this.state = -1;
;
 BA.debugLineNum = 3131;BA.debugLine="c.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 3133;BA.debugLine="Dim sumainv As Cursor = Starter.skmt.ExecQuery(\"S";
Debug.ShouldStop(268435456);
_sumainv = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_sumainv = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), parent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT SUM(HVD_CANT) AS CANTIDAD FROM HIST_VENTAS WHERE HVD_CODPROMO <> HVD_PROID"))));Debug.locals.put("sumainv", _sumainv);Debug.locals.put("sumainv", _sumainv);
 BA.debugLineNum = 3134;BA.debugLine="sumainv.Position = 0";
Debug.ShouldStop(536870912);
_sumainv.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3136;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3137;BA.debugLine="Printer1.WriteString(\"Total piezas: \" & sumainv.G";
Debug.ShouldStop(1);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total piezas: "),_sumainv.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTIDAD"))),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3138;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(2);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3139;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3140;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3141;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(16);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3142;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(32);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3143;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(64);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3144;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(128);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_imp_inventario_click"),BA.numberCast(int.class, 1000));
this.state = 65;
return;
case 65:
//C
this.state = -1;
;
 BA.debugLineNum = 3145;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 3146;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(512);
parent.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 3147;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _b_impresion_rec_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_impresion_rec_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3150);
if (RapidSub.canDelegate("b_impresion_rec_click")) { __ref.runUserSub(false, "c_principal","b_impresion_rec_click", __ref); return;}
ResumableSub_b_impresion_rec_Click rsub = new ResumableSub_b_impresion_rec_Click(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_b_impresion_rec_Click extends BA.ResumableSub {
public ResumableSub_b_impresion_rec_Click(reparto_izca.keymon.lat.c_principal parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
reparto_izca.keymon.lat.c_principal parent;
RemoteObject _totalentrega = RemoteObject.createImmutable(0);
RemoteObject _totalrechazo = RemoteObject.createImmutable(0);
RemoteObject _totalpiezas = RemoteObject.createImmutable(0);
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
RemoteObject _cont = RemoteObject.createImmutable(0);
int _i = 0;
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _resta = RemoteObject.createImmutable("");
int step46;
int limit46;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("b_impresion_rec_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3150);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

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

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 3151;BA.debugLine="Dim totalentrega As Int";
Debug.ShouldStop(16384);
_totalentrega = RemoteObject.createImmutable(0);Debug.locals.put("totalentrega", _totalentrega);
 BA.debugLineNum = 3152;BA.debugLine="Dim totalrechazo As Int";
Debug.ShouldStop(32768);
_totalrechazo = RemoteObject.createImmutable(0);Debug.locals.put("totalrechazo", _totalrechazo);
 BA.debugLineNum = 3153;BA.debugLine="Dim totalpiezas As Int";
Debug.ShouldStop(65536);
_totalpiezas = RemoteObject.createImmutable(0);Debug.locals.put("totalpiezas", _totalpiezas);
 BA.debugLineNum = 3154;BA.debugLine="Dim sDate, sTime As String";
Debug.ShouldStop(131072);
_sdate = RemoteObject.createImmutable("");Debug.locals.put("sDate", _sdate);
_stime = RemoteObject.createImmutable("");Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 3155;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 3156;BA.debugLine="c.Position=0";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3157;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(1048576);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 3159;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
Debug.ShouldStop(4194304);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("dd/MM/yyyy"));
 BA.debugLineNum = 3160;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
Debug.ShouldStop(8388608);
parent.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 3161;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(16777216);
_sdate = parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 3162;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(33554432);
_stime = parent.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 3163;BA.debugLine="c.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 3169;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
Debug.ShouldStop(1);
parent.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Imprimiendo, un momento ..."))));
 BA.debugLineNum = 3170;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(2);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 3171;BA.debugLine="If Not(Printer1.IsConnected) Then";
Debug.ShouldStop(4);
if (true) break;

case 1:
//if
this.state = 38;
if (parent.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_isconnected" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) { 
this.state = 3;
}else {
this.state = 21;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 3173;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(16);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 3174;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(32);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 3175;BA.debugLine="Do While Not(impresoraConectada)";
Debug.ShouldStop(64);
if (true) break;

case 4:
//do while
this.state = 19;
while (parent.__c.runMethod(true,"Not",(Object)(__ref.getField(true,"_impresoraconectada" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) {
this.state = 6;
if (true) break;
}
if (true) break;

case 6:
//C
this.state = 7;
 BA.debugLineNum = 3176;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(128);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_impresion_rec_click"),BA.numberCast(int.class, 1000));
this.state = 53;
return;
case 53:
//C
this.state = 7;
;
 BA.debugLineNum = 3178;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(512);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 3179;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de";
Debug.ShouldStop(1024);
if (true) break;

case 7:
//if
this.state = 12;
if (RemoteObject.solveBoolean("=",_cont,BA.numberCast(double.class, 2))) { 
this.state = 9;
;}if (true) break;

case 9:
//C
this.state = 12;
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
if (true) break;

case 12:
//C
this.state = 13;
;
 BA.debugLineNum = 3180;BA.debugLine="If cont > 3 Then impresoraConectada = True";
Debug.ShouldStop(2048);
if (true) break;

case 13:
//if
this.state = 18;
if (RemoteObject.solveBoolean(">",_cont,BA.numberCast(double.class, 3))) { 
this.state = 15;
;}if (true) break;

case 15:
//C
this.state = 18;
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"True"));
if (true) break;

case 18:
//C
this.state = 4;
;
 if (true) break;

case 19:
//C
this.state = 38;
;
 BA.debugLineNum = 3182;BA.debugLine="Sleep(500)";
Debug.ShouldStop(8192);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_impresion_rec_click"),BA.numberCast(int.class, 500));
this.state = 54;
return;
case 54:
//C
this.state = 38;
;
 BA.debugLineNum = 3183;BA.debugLine="impresoraConectada = False";
Debug.ShouldStop(16384);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 21:
//C
this.state = 22;
 BA.debugLineNum = 3186;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(131072);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 3187;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(262144);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 3188;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
Debug.ShouldStop(524288);
if (true) break;

case 22:
//do while
this.state = 37;
while (RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"Not",(Object)(__ref.getField(true,"_impresoraconectada" /*RemoteObject*/ )))) || RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"Not",(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_isconnected" /*RemoteObject*/ ))))) {
this.state = 24;
if (true) break;
}
if (true) break;

case 24:
//C
this.state = 25;
 BA.debugLineNum = 3189;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(1048576);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_impresion_rec_click"),BA.numberCast(int.class, 1000));
this.state = 55;
return;
case 55:
//C
this.state = 25;
;
 BA.debugLineNum = 3191;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(4194304);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 3192;BA.debugLine="If cont = 2 Then Printer1.Connect";
Debug.ShouldStop(8388608);
if (true) break;

case 25:
//if
this.state = 30;
if (RemoteObject.solveBoolean("=",_cont,BA.numberCast(double.class, 2))) { 
this.state = 27;
;}if (true) break;

case 27:
//C
this.state = 30;
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
if (true) break;

case 30:
//C
this.state = 31;
;
 BA.debugLineNum = 3193;BA.debugLine="If cont > 3 Then impresoraConectada = True";
Debug.ShouldStop(16777216);
if (true) break;

case 31:
//if
this.state = 36;
if (RemoteObject.solveBoolean(">",_cont,BA.numberCast(double.class, 3))) { 
this.state = 33;
;}if (true) break;

case 33:
//C
this.state = 36;
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"True"));
if (true) break;

case 36:
//C
this.state = 22;
;
 if (true) break;

case 37:
//C
this.state = 38;
;
 BA.debugLineNum = 3195;BA.debugLine="Sleep(500)";
Debug.ShouldStop(67108864);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_impresion_rec_click"),BA.numberCast(int.class, 500));
this.state = 56;
return;
case 56:
//C
this.state = 38;
;
 BA.debugLineNum = 3196;BA.debugLine="impresoraConectada = False";
Debug.ShouldStop(134217728);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 38:
//C
this.state = 39;
;
 BA.debugLineNum = 3199;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(1073741824);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 3200;BA.debugLine="ESPACIO = 28";
Debug.ShouldStop(-2147483648);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 28));
 BA.debugLineNum = 3201;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(1);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 3203;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" &  CRL";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Izca Distribuciones"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3204;BA.debugLine="Printer1.WriteString(sDate & \" \" &sTime &  CRLF)";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(_sdate,RemoteObject.createImmutable(" "),_stime,parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3206;BA.debugLine="Printer1.WriteString(\"------------ENTREGA--------";
Debug.ShouldStop(32);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------ENTREGA-----------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3207;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
Debug.ShouldStop(64);
parent._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
parent._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), parent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, (IFNULL(SUM(HVD_CANT), 0) - IFNULL(SUM(HVD_RECHAZOCANT), 0)) as total, HVD_PROID from HIST_VENTAS where HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))));__ref.setField("_c",parent._c);
 BA.debugLineNum = 3208;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(128);
if (true) break;

case 39:
//if
this.state = 52;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 41;
}if (true) break;

case 41:
//C
this.state = 42;
 BA.debugLineNum = 3209;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(256);
if (true) break;

case 42:
//for
this.state = 51;
step46 = 1;
limit46 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
Debug.locals.put("i", _i);
this.state = 57;
if (true) break;

case 57:
//C
this.state = 51;
if ((step46 > 0 && _i <= limit46) || (step46 < 0 && _i >= limit46)) this.state = 44;
if (true) break;

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

case 44:
//C
this.state = 45;
 BA.debugLineNum = 3210;BA.debugLine="c.Position = i";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 3213;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(4096);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), parent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 3214;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(8192);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 3216;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(32768);
if (true) break;

case 45:
//if
this.state = 50;
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 47;
}else {
this.state = 49;
}if (true) break;

case 47:
//C
this.state = 50;
 BA.debugLineNum = 3217;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(65536);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3218;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(131072);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 if (true) break;

case 49:
//C
this.state = 50;
 BA.debugLineNum = 3220;BA.debugLine="resta = 0";
Debug.ShouldStop(524288);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 if (true) break;

case 50:
//C
this.state = 58;
;
 BA.debugLineNum = 3222;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3223;BA.debugLine="Printer1.WriteString(c.GetString(\"HVD_PRONOMBRE";
Debug.ShouldStop(4194304);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE"))),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3224;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(8388608);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3225;BA.debugLine="Printer1.WriteString(\"TP: \"& c.GetInt(\"HVD_CANT";
Debug.ShouldStop(16777216);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("TP: "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_CANT"))),RemoteObject.createImmutable("  "))));
 BA.debugLineNum = 3226;BA.debugLine="Printer1.Justify = 1";
Debug.ShouldStop(33554432);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 1));
 BA.debugLineNum = 3227;BA.debugLine="Printer1.WriteString(\"   TE: \" & (c.GetInt(\"tot";
Debug.ShouldStop(67108864);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("   TE: "),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("total"))),BA.numberCast(double.class, _resta)}, "+",1, 0)),RemoteObject.createImmutable("  "))));
 BA.debugLineNum = 3228;BA.debugLine="Printer1.Justify = 2";
Debug.ShouldStop(134217728);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 2));
 BA.debugLineNum = 3229;BA.debugLine="Printer1.WriteString(\"   TR: \" & (c.GetInt(\"HVD";
Debug.ShouldStop(268435456);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("   TR: "),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0)),RemoteObject.createImmutable("  "))));
 BA.debugLineNum = 3230;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3231;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3233;BA.debugLine="totalentrega = totalentrega + c.GetInt(\"total\")";
Debug.ShouldStop(1);
_totalentrega = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_totalentrega,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("total"))),BA.numberCast(double.class, _resta)}, "++",2, 0));Debug.locals.put("totalentrega", _totalentrega);
 BA.debugLineNum = 3234;BA.debugLine="totalrechazo = totalrechazo + c.GetInt(\"HVD_REC";
Debug.ShouldStop(2);
_totalrechazo = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_totalrechazo,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "+-",2, 0));Debug.locals.put("totalrechazo", _totalrechazo);
 BA.debugLineNum = 3235;BA.debugLine="totalpiezas = totalpiezas + c.GetInt(\"HVD_CANT\"";
Debug.ShouldStop(4);
_totalpiezas = RemoteObject.solve(new RemoteObject[] {_totalpiezas,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_CANT")))}, "+",1, 1);Debug.locals.put("totalpiezas", _totalpiezas);
 if (true) break;
if (true) break;

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

case 52:
//C
this.state = -1;
;
 BA.debugLineNum = 3240;BA.debugLine="c.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 3241;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3242;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(512);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3243;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(1024);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3245;BA.debugLine="Printer1.WriteString(\"Total Piezas:  \"& totalpiez";
Debug.ShouldStop(4096);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total Piezas:  "),_totalpiezas,parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3246;BA.debugLine="Printer1.WriteString(\"Total Entrega:  \"& totalent";
Debug.ShouldStop(8192);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total Entrega:  "),_totalentrega,parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3247;BA.debugLine="Printer1.WriteString(\"Total Rechazo:  \"& totalrec";
Debug.ShouldStop(16384);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total Rechazo:  "),_totalrechazo,parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3250;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(131072);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3251;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3252;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3253;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(1048576);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3254;BA.debugLine="Printer1.WriteString(\" \" &  CRLF)";
Debug.ShouldStop(2097152);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),parent.__c.getField(true,"CRLF"))));
 BA.debugLineNum = 3255;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(4194304);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b_impresion_rec_click"),BA.numberCast(int.class, 1000));
this.state = 59;
return;
case 59:
//C
this.state = -1;
;
 BA.debugLineNum = 3256;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(8388608);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 3258;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(33554432);
parent.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 3259;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _b_mapa_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_mapa_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2270);
if (RapidSub.canDelegate("b_mapa_click")) { return __ref.runUserSub(false, "c_principal","b_mapa_click", __ref);}
 BA.debugLineNum = 2270;BA.debugLine="Sub b_mapa_Click";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 2272;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
Debug.ShouldStop(-2147483648);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("mapas")));
 BA.debugLineNum = 2273;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_pc_env_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_PC_ENV_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3499);
if (RapidSub.canDelegate("b_pc_env_click")) { return __ref.runUserSub(false, "c_principal","b_pc_env_click", __ref);}
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
int _i = 0;
RemoteObject _itempanel = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _innerpanel = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _edittext = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _inputtext = RemoteObject.createImmutable("");
RemoteObject _labelcant = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cantidadrestar = RemoteObject.createImmutable("");
RemoteObject _idlabel = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _idtext = RemoteObject.createImmutable("");
RemoteObject _idparts = null;
RemoteObject _k = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _fechatabulador = null;
RemoteObject _fechatabulador3 = RemoteObject.createImmutable("");
RemoteObject _restado = RemoteObject.createImmutable(0);
 BA.debugLineNum = 3499;BA.debugLine="Private Sub B_PC_ENV_Click";
Debug.ShouldStop(1024);
 BA.debugLineNum = 3500;BA.debugLine="Dim sDate, sTime As String";
Debug.ShouldStop(2048);
_sdate = RemoteObject.createImmutable("");Debug.locals.put("sDate", _sdate);
_stime = RemoteObject.createImmutable("");Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 3501;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
Debug.ShouldStop(4096);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("dd/MM/yyyy"));
 BA.debugLineNum = 3502;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(8192);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 3503;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(16384);
_sdate = c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 3504;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
Debug.ShouldStop(32768);
_stime = c_principal.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 3507;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
Debug.ShouldStop(262144);
{
final int step6 = 1;
final int limit6 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_pick_ciego" /*RemoteObject*/ ).runMethod(true,"_getsize"),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 = 3509;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan";
Debug.ShouldStop(1048576);
_itempanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_itempanel = __ref.getField(false,"_clv_pick_ciego" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(BA.numberCast(int.class, _i)));Debug.locals.put("itemPanel", _itempanel);Debug.locals.put("itemPanel", _itempanel);
 BA.debugLineNum = 3510;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)";
Debug.ShouldStop(2097152);
_innerpanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_innerpanel = _itempanel.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("innerPanel", _innerpanel);Debug.locals.put("innerPanel", _innerpanel);
 BA.debugLineNum = 3511;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)";
Debug.ShouldStop(4194304);
_edittext = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_edittext = _innerpanel.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("editText", _edittext);Debug.locals.put("editText", _edittext);
 BA.debugLineNum = 3512;BA.debugLine="Dim inputText As String = editText.As(EditText).";
Debug.ShouldStop(8388608);
_inputtext = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.EditTextWrapper"), _edittext.getObject())).runMethod(true,"getText");Debug.locals.put("inputText", _inputtext);Debug.locals.put("inputText", _inputtext);
 BA.debugLineNum = 3513;BA.debugLine="Dim labelcant As B4XView = innerPanel.GetView(2)";
Debug.ShouldStop(16777216);
_labelcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_labelcant = _innerpanel.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("labelcant", _labelcant);Debug.locals.put("labelcant", _labelcant);
 BA.debugLineNum = 3514;BA.debugLine="Dim cantidadrestar As String = labelcant.As(Labe";
Debug.ShouldStop(33554432);
_cantidadrestar = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), _labelcant.getObject())).runMethod(true,"getText");Debug.locals.put("cantidadrestar", _cantidadrestar);Debug.locals.put("cantidadrestar", _cantidadrestar);
 BA.debugLineNum = 3517;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(".",c_principal.__c.getField(false,"Regex").runMethod(true,"IsMatch",(Object)(BA.ObjectToString("^[0]+$")),(Object)(_inputtext))) || RemoteObject.solveBoolean("=",_inputtext,BA.ObjectToString(""))) { 
 BA.debugLineNum = 3518;BA.debugLine="inputText = \"0\"";
Debug.ShouldStop(536870912);
_inputtext = BA.ObjectToString("0");Debug.locals.put("inputText", _inputtext);
 };
 BA.debugLineNum = 3522;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
Debug.ShouldStop(2);
_idlabel = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_idlabel = _innerpanel.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("idLabel", _idlabel);Debug.locals.put("idLabel", _idlabel);
 BA.debugLineNum = 3523;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
Debug.ShouldStop(4);
_idtext = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), _idlabel.getObject())).runMethod(true,"getText");Debug.locals.put("idText", _idtext);Debug.locals.put("idText", _idtext);
 BA.debugLineNum = 3524;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe";
Debug.ShouldStop(8);
_idparts = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(c_principal.__c.getField(true,"CRLF")),(Object)(_idtext));Debug.locals.put("idParts", _idparts);Debug.locals.put("idParts", _idparts);
 BA.debugLineNum = 3526;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA";
Debug.ShouldStop(32);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select RUTAA from RUTAA"))));
 BA.debugLineNum = 3527;BA.debugLine="f.Position=0";
Debug.ShouldStop(64);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3529;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
Debug.ShouldStop(256);
__ref.getField(false,"_a" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select ID_ALMACEN from CAT_ALMACEN"))));
 BA.debugLineNum = 3530;BA.debugLine="If a.RowCount>0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_a" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3531;BA.debugLine="a.Position=0";
Debug.ShouldStop(1024);
__ref.getField(false,"_a" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 };
 BA.debugLineNum = 3533;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT";
Debug.ShouldStop(4096);
_k = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_k = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HVD_FECHA FROM HIST_VENTAS"))));Debug.locals.put("k", _k);Debug.locals.put("k", _k);
 BA.debugLineNum = 3534;BA.debugLine="k.Position = 0";
Debug.ShouldStop(8192);
_k.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3535;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \"";
Debug.ShouldStop(16384);
_fechatabulador = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(_k.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")))));Debug.locals.put("fechatabulador", _fechatabulador);Debug.locals.put("fechatabulador", _fechatabulador);
 BA.debugLineNum = 3537;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(0";
Debug.ShouldStop(65536);
_fechatabulador3 = _fechatabulador.getArrayElement(true,BA.numberCast(int.class, 0));Debug.locals.put("fechatabulador3", _fechatabulador3);Debug.locals.put("fechatabulador3", _fechatabulador3);
 BA.debugLineNum = 3538;BA.debugLine="k.Close";
Debug.ShouldStop(131072);
_k.runVoidMethod ("Close");
 BA.debugLineNum = 3539;BA.debugLine="If inputText <> \"\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("!",_inputtext,BA.ObjectToString(""))) { 
 BA.debugLineNum = 3540;BA.debugLine="Log(idParts(0))";
Debug.ShouldStop(524288);
c_principal.__c.runVoidMethod ("LogImpl","816711721",_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),0);
 BA.debugLineNum = 3541;BA.debugLine="Log(cantidadrestar)";
Debug.ShouldStop(1048576);
c_principal.__c.runVoidMethod ("LogImpl","816711722",_cantidadrestar,0);
 BA.debugLineNum = 3542;BA.debugLine="Log(inputText)";
Debug.ShouldStop(2097152);
c_principal.__c.runVoidMethod ("LogImpl","816711723",_inputtext,0);
 BA.debugLineNum = 3543;BA.debugLine="Dim restado As Int = cantidadrestar - inputText";
Debug.ShouldStop(4194304);
_restado = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cantidadrestar),BA.numberCast(double.class, _inputtext)}, "-",1, 0));Debug.locals.put("restado", _restado);Debug.locals.put("restado", _restado);
 BA.debugLineNum = 3544;BA.debugLine="Log(cantidadrestar - inputText)";
Debug.ShouldStop(8388608);
c_principal.__c.runVoidMethod ("LogImpl","816711725",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cantidadrestar),BA.numberCast(double.class, _inputtext)}, "-",1, 0)),0);
 BA.debugLineNum = 3545;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0))}))));
 BA.debugLineNum = 3546;BA.debugLine="If c.RowCount = 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3550;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C";
Debug.ShouldStop(536870912);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA, RESTA) VALUES(?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {7},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),_idparts.getArrayElement(true,BA.numberCast(int.class, 1)),_inputtext,__ref.getField(false,"_a" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))),__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA"))),RemoteObject.concat(_fechatabulador3,RemoteObject.createImmutable(" "),_stime),BA.NumberToString(_restado)})))));
 }else {
 BA.debugLineNum = 3555;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO";
Debug.ShouldStop(4);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("Update PICK_CIEGO set PC_CANT = ?, RESTA = ?  WHERE PC_ID_PROD = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {_inputtext,BA.NumberToString(_restado),_idparts.getArrayElement(true,BA.numberCast(int.class, 0))})))));
 };
 };
 BA.debugLineNum = 3559;BA.debugLine="f.Close";
Debug.ShouldStop(64);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 3560;BA.debugLine="a.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_a" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 3561;BA.debugLine="Log(\"Processed item \" & i)";
Debug.ShouldStop(256);
c_principal.__c.runVoidMethod ("LogImpl","816711742",RemoteObject.concat(RemoteObject.createImmutable("Processed item "),RemoteObject.createImmutable(_i)),0);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 3564;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_rechazos_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_rechazos_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2621);
if (RapidSub.canDelegate("b_rechazos_click")) { return __ref.runUserSub(false, "c_principal","b_rechazos_click", __ref);}
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
int _i = 0;
RemoteObject _itemtext = RemoteObject.createImmutable("");
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _resta = RemoteObject.createImmutable("");
 BA.debugLineNum = 2621;BA.debugLine="Private Sub b_rechazos_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 2622;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(536870912);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 2623;BA.debugLine="label1 = lv_prod_Prin.SingleLineLayout.Label";
Debug.ShouldStop(1073741824);
_label1 = __ref.getField(false,"_lv_prod_prin" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 2624;BA.debugLine="label1.TextSize = 14";
Debug.ShouldStop(-2147483648);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 14));
 BA.debugLineNum = 2625;BA.debugLine="p_prod.Width = Root.Width";
Debug.ShouldStop(1);
__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 2626;BA.debugLine="p_prod.Height = Root.Height";
Debug.ShouldStop(2);
__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 2629;BA.debugLine="b_regreso.Top = p_prod.Height - b_regreso.Height";
Debug.ShouldStop(16);
__ref.getField(false,"_b_regreso" /*RemoteObject*/ ).runMethod(true,"setTop",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runMethod(true,"getHeight"),__ref.getField(false,"_b_regreso" /*RemoteObject*/ ).runMethod(true,"getHeight")}, "-",1, 1));
 BA.debugLineNum = 2630;BA.debugLine="b_impresion_rec.Top = p_prod.Height - b_impresion";
Debug.ShouldStop(32);
__ref.getField(false,"_b_impresion_rec" /*RemoteObject*/ ).runMethod(true,"setTop",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runMethod(true,"getHeight"),__ref.getField(false,"_b_impresion_rec" /*RemoteObject*/ ).runMethod(true,"getHeight")}, "-",1, 1));
 BA.debugLineNum = 2632;BA.debugLine="p_prod.Visible = True";
Debug.ShouldStop(128);
__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2633;BA.debugLine="p_prod.BringToFront";
Debug.ShouldStop(256);
__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 2635;BA.debugLine="If l_ctast.Text = \"0\" Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 2636;BA.debugLine="b_impresion_rec.Enabled = True";
Debug.ShouldStop(2048);
__ref.getField(false,"_b_impresion_rec" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_principal.__c.getField(true,"True"));
 }else 
{ BA.debugLineNum = 2637;BA.debugLine="Else If l_ctast.Text <> \"0\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 2638;BA.debugLine="b_impresion_rec.Enabled = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_b_impresion_rec" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_principal.__c.getField(true,"False"));
 }}
;
 BA.debugLineNum = 2642;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
Debug.ShouldStop(131072);
c_principal._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_principal._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))));__ref.setField("_c",c_principal._c);
 BA.debugLineNum = 2644;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C";
Debug.ShouldStop(524288);
__ref.getField(false,"_lv_prod_prin" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label").runMethod(true,"setTextColor",c_principal.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 2645;BA.debugLine="lv_prod_Prin.Clear";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lv_prod_prin" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 2646;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2647;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(4194304);
{
final int step19 = 1;
final int limit19 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step19 > 0 && _i <= limit19) || (step19 < 0 && _i >= limit19) ;_i = ((int)(0 + _i + step19))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2648;BA.debugLine="c.Position = i";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2649;BA.debugLine="Dim itemText As String";
Debug.ShouldStop(16777216);
_itemtext = RemoteObject.createImmutable("");Debug.locals.put("itemText", _itemtext);
 BA.debugLineNum = 2651;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(67108864);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' "))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 2652;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(134217728);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 2654;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2655;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(1073741824);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2656;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(-2147483648);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 }else {
 BA.debugLineNum = 2658;BA.debugLine="resta = 0";
Debug.ShouldStop(2);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 };
 BA.debugLineNum = 2660;BA.debugLine="If ( c.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("k",(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0)),BA.numberCast(double.class, 0))) { 
 }else {
 BA.debugLineNum = 2663;BA.debugLine="itemText = $\"${c.GetString(\"HVD_PRONOMBRE\")} $";
Debug.ShouldStop(64);
_itemtext = (RemoteObject.concat(RemoteObject.createImmutable(""),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))))),RemoteObject.createImmutable(" "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_principal.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Inventario: "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(((RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0))))),RemoteObject.createImmutable("")));Debug.locals.put("itemText", _itemtext);
 BA.debugLineNum = 2664;BA.debugLine="lv_prod_Prin.AddSingleLine(itemText)";
Debug.ShouldStop(128);
__ref.getField(false,"_lv_prod_prin" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(_itemtext)));
 };
 }
}Debug.locals.put("i", _i);
;
 }else {
 BA.debugLineNum = 2670;BA.debugLine="lv_prod_Prin.AddSingleLine(\"No hay datos disponi";
Debug.ShouldStop(8192);
__ref.getField(false,"_lv_prod_prin" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("No hay datos disponibles."))));
 };
 BA.debugLineNum = 2672;BA.debugLine="c.Close";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2675;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_regresa_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_REGRESA_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2574);
if (RapidSub.canDelegate("b_regresa_click")) { return __ref.runUserSub(false, "c_principal","b_regresa_click", __ref);}
 BA.debugLineNum = 2574;BA.debugLine="Sub B_REGRESA_Click";
Debug.ShouldStop(8192);
 BA.debugLineNum = 2575;BA.debugLine="Log(\"B_REGRESA_Click\")";
Debug.ShouldStop(16384);
c_principal.__c.runVoidMethod ("LogImpl","815466497",RemoteObject.createImmutable("B_REGRESA_Click"),0);
 BA.debugLineNum = 2576;BA.debugLine="BUSCA.Visible = False";
Debug.ShouldStop(32768);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2577;BA.debugLine="connecta.Visible = True";
Debug.ShouldStop(65536);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2578;BA.debugLine="trabajar.Visible = True";
Debug.ShouldStop(131072);
__ref.getField(false,"_trabajar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2579;BA.debugLine="B_CLIEPROD.Visible = True";
Debug.ShouldStop(262144);
__ref.getField(false,"_b_clieprod" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2580;BA.debugLine="Panel1.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2581;BA.debugLine="Btn_Ubicar_Ru.Visible=True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_btn_ubicar_ru" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2582;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_regreso_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_regreso_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2677);
if (RapidSub.canDelegate("b_regreso_click")) { return __ref.runUserSub(false, "c_principal","b_regreso_click", __ref);}
 BA.debugLineNum = 2677;BA.debugLine="Private Sub b_regreso_Click";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 2678;BA.debugLine="p_prod.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2679;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_tabulador_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_tabulador_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2595);
if (RapidSub.canDelegate("b_tabulador_click")) { return __ref.runUserSub(false, "c_principal","b_tabulador_click", __ref);}
 BA.debugLineNum = 2595;BA.debugLine="Private Sub b_tabulador_Click";
Debug.ShouldStop(4);
 BA.debugLineNum = 2596;BA.debugLine="If b_check.Visible = True Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b_check" /*RemoteObject*/ ).runMethod(true,"getVisible"),c_principal.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2597;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
Debug.ShouldStop(16);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Favor de hacer el checklist.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 2599;BA.debugLine="B4XPages.ShowPage(\"tabulador\")";
Debug.ShouldStop(64);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("tabulador")));
 };
 BA.debugLineNum = 2601;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_terpc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_terpc_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3263);
if (RapidSub.canDelegate("b_terpc_click")) { return __ref.runUserSub(false, "c_principal","b_terpc_click", __ref);}
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
RemoteObject _consecutivo = RemoteObject.createImmutable(0);
int _i = 0;
RemoteObject _itempanel = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _innerpanel = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _edittext = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _inputtext = RemoteObject.createImmutable("");
RemoteObject _labelcant = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _cantidadrestar = RemoteObject.createImmutable("");
RemoteObject _idlabel = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _idtext = RemoteObject.createImmutable("");
RemoteObject _idparts = null;
RemoteObject _k = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _fechatabulador = null;
RemoteObject _fechatabulador3 = RemoteObject.createImmutable("");
RemoteObject _restado = RemoteObject.createImmutable(0);
RemoteObject _preciocat = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preciofull = RemoteObject.createImmutable("");
RemoteObject _faltantes = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _restadoanterior = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _sobrantes = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 3263;BA.debugLine="Private Sub b_terpc_Click";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 3265;BA.debugLine="Dim sDate, sTime As String";
Debug.ShouldStop(1);
_sdate = RemoteObject.createImmutable("");Debug.locals.put("sDate", _sdate);
_stime = RemoteObject.createImmutable("");Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 3266;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
Debug.ShouldStop(2);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("dd/MM/yyyy"));
 BA.debugLineNum = 3267;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(4);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 3268;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(8);
_sdate = c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 3269;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
Debug.ShouldStop(16);
_stime = c_principal.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 3271;BA.debugLine="Dim consecutivo As Int = 1000";
Debug.ShouldStop(64);
_consecutivo = BA.numberCast(int.class, 1000);Debug.locals.put("consecutivo", _consecutivo);Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 3272;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1";
Debug.ShouldStop(128);
{
final int step7 = 1;
final int limit7 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_clv_pick_ciego" /*RemoteObject*/ ).runMethod(true,"_getsize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step7 > 0 && _i <= limit7) || (step7 < 0 && _i >= limit7) ;_i = ((int)(0 + _i + step7))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 3274;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan";
Debug.ShouldStop(512);
_itempanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_itempanel = __ref.getField(false,"_clv_pick_ciego" /*RemoteObject*/ ).runMethod(false,"_getpanel",(Object)(BA.numberCast(int.class, _i)));Debug.locals.put("itemPanel", _itempanel);Debug.locals.put("itemPanel", _itempanel);
 BA.debugLineNum = 3275;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)";
Debug.ShouldStop(1024);
_innerpanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_innerpanel = _itempanel.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("innerPanel", _innerpanel);Debug.locals.put("innerPanel", _innerpanel);
 BA.debugLineNum = 3276;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)";
Debug.ShouldStop(2048);
_edittext = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_edittext = _innerpanel.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("editText", _edittext);Debug.locals.put("editText", _edittext);
 BA.debugLineNum = 3277;BA.debugLine="Dim inputText As String = editText.As(EditText).";
Debug.ShouldStop(4096);
_inputtext = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.EditTextWrapper"), _edittext.getObject())).runMethod(true,"getText");Debug.locals.put("inputText", _inputtext);Debug.locals.put("inputText", _inputtext);
 BA.debugLineNum = 3278;BA.debugLine="Dim labelcant As B4XView = innerPanel.GetView(2)";
Debug.ShouldStop(8192);
_labelcant = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_labelcant = _innerpanel.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("labelcant", _labelcant);Debug.locals.put("labelcant", _labelcant);
 BA.debugLineNum = 3279;BA.debugLine="Dim cantidadrestar As String = labelcant.As(Labe";
Debug.ShouldStop(16384);
_cantidadrestar = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), _labelcant.getObject())).runMethod(true,"getText");Debug.locals.put("cantidadrestar", _cantidadrestar);Debug.locals.put("cantidadrestar", _cantidadrestar);
 BA.debugLineNum = 3282;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(".",c_principal.__c.getField(false,"Regex").runMethod(true,"IsMatch",(Object)(BA.ObjectToString("^[0]+$")),(Object)(_inputtext))) || RemoteObject.solveBoolean("=",_inputtext,BA.ObjectToString(""))) { 
 BA.debugLineNum = 3283;BA.debugLine="inputText = \"0\"";
Debug.ShouldStop(262144);
_inputtext = BA.ObjectToString("0");Debug.locals.put("inputText", _inputtext);
 };
 BA.debugLineNum = 3287;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)";
Debug.ShouldStop(4194304);
_idlabel = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_idlabel = _innerpanel.runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0)));Debug.locals.put("idLabel", _idlabel);Debug.locals.put("idLabel", _idlabel);
 BA.debugLineNum = 3288;BA.debugLine="Dim idText As String = idLabel.As(Label).Text";
Debug.ShouldStop(8388608);
_idtext = (RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.LabelWrapper"), _idlabel.getObject())).runMethod(true,"getText");Debug.locals.put("idText", _idtext);Debug.locals.put("idText", _idtext);
 BA.debugLineNum = 3289;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe";
Debug.ShouldStop(16777216);
_idparts = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(c_principal.__c.getField(true,"CRLF")),(Object)(_idtext));Debug.locals.put("idParts", _idparts);Debug.locals.put("idParts", _idparts);
 BA.debugLineNum = 3291;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA";
Debug.ShouldStop(67108864);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select RUTAA from RUTAA"))));
 BA.debugLineNum = 3292;BA.debugLine="f.Position=0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3294;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from";
Debug.ShouldStop(536870912);
__ref.getField(false,"_a" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select ID_ALMACEN from CAT_ALMACEN"))));
 BA.debugLineNum = 3295;BA.debugLine="If a.RowCount>0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_a" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3296;BA.debugLine="a.Position=0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_a" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 };
 BA.debugLineNum = 3298;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT";
Debug.ShouldStop(2);
_k = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_k = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HVD_FECHA FROM HIST_VENTAS"))));Debug.locals.put("k", _k);Debug.locals.put("k", _k);
 BA.debugLineNum = 3299;BA.debugLine="k.Position = 0";
Debug.ShouldStop(4);
_k.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3300;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \"";
Debug.ShouldStop(8);
_fechatabulador = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(_k.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")))));Debug.locals.put("fechatabulador", _fechatabulador);Debug.locals.put("fechatabulador", _fechatabulador);
 BA.debugLineNum = 3302;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(0";
Debug.ShouldStop(32);
_fechatabulador3 = _fechatabulador.getArrayElement(true,BA.numberCast(int.class, 0));Debug.locals.put("fechatabulador3", _fechatabulador3);Debug.locals.put("fechatabulador3", _fechatabulador3);
 BA.debugLineNum = 3303;BA.debugLine="k.Close";
Debug.ShouldStop(64);
_k.runVoidMethod ("Close");
 BA.debugLineNum = 3304;BA.debugLine="If inputText <> \"\" And inputText <> 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("!",_inputtext,BA.ObjectToString("")) && RemoteObject.solveBoolean("!",_inputtext,BA.NumberToString(0))) { 
 BA.debugLineNum = 3305;BA.debugLine="Log(\"IMPUT DIFERENTE DE CERO\")";
Debug.ShouldStop(256);
c_principal.__c.runVoidMethod ("LogImpl","816646186",RemoteObject.createImmutable("IMPUT DIFERENTE DE CERO"),0);
 BA.debugLineNum = 3306;BA.debugLine="Log(idParts(0))";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethod ("LogImpl","816646187",_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),0);
 BA.debugLineNum = 3307;BA.debugLine="Log(cantidadrestar)";
Debug.ShouldStop(1024);
c_principal.__c.runVoidMethod ("LogImpl","816646188",_cantidadrestar,0);
 BA.debugLineNum = 3308;BA.debugLine="Log(inputText)";
Debug.ShouldStop(2048);
c_principal.__c.runVoidMethod ("LogImpl","816646189",_inputtext,0);
 BA.debugLineNum = 3309;BA.debugLine="Dim restado As Int = cantidadrestar - inputText";
Debug.ShouldStop(4096);
_restado = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cantidadrestar),BA.numberCast(double.class, _inputtext)}, "-",1, 0));Debug.locals.put("restado", _restado);Debug.locals.put("restado", _restado);
 BA.debugLineNum = 3310;BA.debugLine="Log(cantidadrestar - inputText)";
Debug.ShouldStop(8192);
c_principal.__c.runVoidMethod ("LogImpl","816646191",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cantidadrestar),BA.numberCast(double.class, _inputtext)}, "-",1, 0)),0);
 BA.debugLineNum = 3311;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0))}))));
 BA.debugLineNum = 3313;BA.debugLine="If c.RowCount = 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3318;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA, RESTA) VALUES(?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {7},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),_idparts.getArrayElement(true,BA.numberCast(int.class, 1)),_inputtext,__ref.getField(false,"_a" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))),__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA"))),RemoteObject.concat(_fechatabulador3,RemoteObject.createImmutable(" "),_stime),BA.NumberToString(_restado)})))));
 BA.debugLineNum = 3319;BA.debugLine="If restado > 0 And inputText <> 0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",_restado,BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",_inputtext,BA.NumberToString(0))) { 
 BA.debugLineNum = 3321;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(16777216);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 3322;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3323;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(67108864);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3324;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
Debug.ShouldStop(134217728);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 3326;BA.debugLine="preciocat.Close";
Debug.ShouldStop(536870912);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 3327;BA.debugLine="Log(\"MAYOR A CERO\")";
Debug.ShouldStop(1073741824);
c_principal.__c.runVoidMethod ("LogImpl","816646208",RemoteObject.createImmutable("MAYOR A CERO"),0);
 BA.debugLineNum = 3328;BA.debugLine="consecutivo = consecutivo + 1";
Debug.ShouldStop(-2147483648);
_consecutivo = RemoteObject.solve(new RemoteObject[] {_consecutivo,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 3329;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(1);
_faltantes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_faltantes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from PEDIDO WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' AND PE_TIPO = 'FALTANTE'"))))));Debug.locals.put("faltantes", _faltantes);Debug.locals.put("faltantes", _faltantes);
 BA.debugLineNum = 3330;BA.debugLine="If faltantes.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_faltantes.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3331;BA.debugLine="faltantes.Position = 0";
Debug.ShouldStop(4);
_faltantes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3332;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
Debug.ShouldStop(8);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_restado))),RemoteObject.createImmutable("', PE_COSTO_TOT= '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_restado))),RemoteObject.createImmutable("'*'"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable("', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_faltantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else {
 BA.debugLineNum = 3334;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI";
Debug.ShouldStop(32);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),_idparts.getArrayElement(true,BA.numberCast(int.class, 1)),BA.NumberToString(_restado),BA.ObjectToString(""),c_principal._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),_preciofull,BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),_restado}, "*",0, 0))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),BA.ObjectToString("FALTANTE"),c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(_sdate,RemoteObject.createImmutable(" "),_stime),c_principal._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(0)})))));
 };
 }else 
{ BA.debugLineNum = 3336;BA.debugLine="Else If restado < 0 And inputText <> 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("<",_restado,BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",_inputtext,BA.NumberToString(0))) { 
 BA.debugLineNum = 3338;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(512);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 3339;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3340;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(2048);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3341;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
Debug.ShouldStop(4096);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 3343;BA.debugLine="preciocat.Close";
Debug.ShouldStop(16384);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 3344;BA.debugLine="Log(\"MENOR A CERO\")";
Debug.ShouldStop(32768);
c_principal.__c.runVoidMethod ("LogImpl","816646225",RemoteObject.createImmutable("MENOR A CERO"),0);
 BA.debugLineNum = 3345;BA.debugLine="consecutivo = consecutivo + 1";
Debug.ShouldStop(65536);
_consecutivo = RemoteObject.solve(new RemoteObject[] {_consecutivo,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 3346;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(131072);
_faltantes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_faltantes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from PEDIDO WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' AND PE_TIPO = 'FALTANTE'"))))));Debug.locals.put("faltantes", _faltantes);Debug.locals.put("faltantes", _faltantes);
 BA.debugLineNum = 3347;BA.debugLine="If faltantes.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_faltantes.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3348;BA.debugLine="faltantes.Position = 0";
Debug.ShouldStop(524288);
_faltantes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3349;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable(((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue())))))),RemoteObject.createImmutable("', PE_COSTO_TOT= "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable(((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue())))))),RemoteObject.createImmutable("*"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable(", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_faltantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else {
 BA.debugLineNum = 3351;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI";
Debug.ShouldStop(4194304);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),_idparts.getArrayElement(true,BA.numberCast(int.class, 1)),BA.NumberToString((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue()))),BA.ObjectToString(""),c_principal._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),_preciofull,BA.NumberToString((-(double) (0 + 1)*(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),_restado}, "*",0, 0)).<Double>get().doubleValue())),BA.NumberToString(_consecutivo),BA.NumberToString(1000),BA.ObjectToString("SOBRANTE"),c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(_sdate,RemoteObject.createImmutable(" "),_stime),c_principal._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(0)})))));
 };
 }}
;
 }else {
 BA.debugLineNum = 3357;BA.debugLine="Dim restadoanterior As Cursor = Starter.skmt.E";
Debug.ShouldStop(268435456);
_restadoanterior = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_restadoanterior = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select RESTA from PICK_CIEGO WHERE PC_ID_PROD = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("restadoanterior", _restadoanterior);Debug.locals.put("restadoanterior", _restadoanterior);
 BA.debugLineNum = 3358;BA.debugLine="restadoanterior.Position = 0";
Debug.ShouldStop(536870912);
_restadoanterior.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3361;BA.debugLine="If restadoanterior.GetInt(\"RESTA\") > 0 And res";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",_restadoanterior.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("RESTA"))),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",_restadoanterior.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("RESTA"))),BA.numberCast(double.class, _restado))) { 
 BA.debugLineNum = 3364;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(8);
_faltantes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_faltantes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from PEDIDO WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' AND PE_TIPO = 'FALTANTE'"))))));Debug.locals.put("faltantes", _faltantes);Debug.locals.put("faltantes", _faltantes);
 BA.debugLineNum = 3366;BA.debugLine="If faltantes.RowCount > 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",_faltantes.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3367;BA.debugLine="faltantes.Position = 0";
Debug.ShouldStop(64);
_faltantes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3368;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
Debug.ShouldStop(128);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 3369;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3370;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(512);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3371;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
Debug.ShouldStop(1024);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 3373;BA.debugLine="preciocat.Close";
Debug.ShouldStop(4096);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 3375;BA.debugLine="Log(\"MAYOR A CERO UPDATE\")";
Debug.ShouldStop(16384);
c_principal.__c.runVoidMethod ("LogImpl","816646256",RemoteObject.createImmutable("MAYOR A CERO UPDATE"),0);
 BA.debugLineNum = 3376;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG";
Debug.ShouldStop(32768);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("Update PICK_CIEGO set PC_CANT = ?, RESTA = ?  WHERE PC_ID_PROD = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {_inputtext,BA.NumberToString(_restado),_idparts.getArrayElement(true,BA.numberCast(int.class, 0))})))));
 BA.debugLineNum = 3377;BA.debugLine="If restado > 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",_restado,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3378;BA.debugLine="Log(\"AQUI ES FALTANTE\")";
Debug.ShouldStop(131072);
c_principal.__c.runVoidMethod ("LogImpl","816646259",RemoteObject.createImmutable("AQUI ES FALTANTE"),0);
 BA.debugLineNum = 3380;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
Debug.ShouldStop(524288);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_restado))),RemoteObject.createImmutable("', PE_COSTO_TOT= '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_restado))),RemoteObject.createImmutable("'*'"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable("', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_faltantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else 
{ BA.debugLineNum = 3381;BA.debugLine="Else If restado < 0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("<",_restado,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3382;BA.debugLine="Log(\"AQUI ES SOBRANTE\")";
Debug.ShouldStop(2097152);
c_principal.__c.runVoidMethod ("LogImpl","816646263",RemoteObject.createImmutable("AQUI ES SOBRANTE"),0);
 BA.debugLineNum = 3384;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
Debug.ShouldStop(8388608);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable(((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue())))))),RemoteObject.createImmutable("', PE_COSTO_TOT= "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable(((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue())))))),RemoteObject.createImmutable("*"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable(", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_faltantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else 
{ BA.debugLineNum = 3385;BA.debugLine="Else If restado = 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_restado,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3386;BA.debugLine="Log(\"AQUI ES SOBRANTE\")";
Debug.ShouldStop(33554432);
c_principal.__c.runVoidMethod ("LogImpl","816646267",RemoteObject.createImmutable("AQUI ES SOBRANTE"),0);
 BA.debugLineNum = 3387;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PED";
Debug.ShouldStop(67108864);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_faltantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }}}
;
 };
 }else 
{ BA.debugLineNum = 3392;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") < 0 An";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("<",_restadoanterior.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("RESTA"))),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",_restadoanterior.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("RESTA"))),BA.numberCast(double.class, _restado))) { 
 BA.debugLineNum = 3393;BA.debugLine="Log(\"es sobrante\")";
Debug.ShouldStop(1);
c_principal.__c.runVoidMethod ("LogImpl","816646274",RemoteObject.createImmutable("es sobrante"),0);
 BA.debugLineNum = 3394;BA.debugLine="Dim sobrantes As Cursor = Starter.skmt.ExecQu";
Debug.ShouldStop(2);
_sobrantes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_sobrantes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from PEDIDO WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' AND PE_TIPO = 'SOBRANTE'"))))));Debug.locals.put("sobrantes", _sobrantes);Debug.locals.put("sobrantes", _sobrantes);
 BA.debugLineNum = 3395;BA.debugLine="If sobrantes.RowCount > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",_sobrantes.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3396;BA.debugLine="sobrantes.Position = 0";
Debug.ShouldStop(8);
_sobrantes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3398;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
Debug.ShouldStop(32);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 3399;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3400;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(128);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3401;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
Debug.ShouldStop(256);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 3403;BA.debugLine="preciocat.Close";
Debug.ShouldStop(1024);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 3405;BA.debugLine="Log(\"MENOR A CERO UPDATE\")";
Debug.ShouldStop(4096);
c_principal.__c.runVoidMethod ("LogImpl","816646286",RemoteObject.createImmutable("MENOR A CERO UPDATE"),0);
 BA.debugLineNum = 3406;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG";
Debug.ShouldStop(8192);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("Update PICK_CIEGO set PC_CANT = ?, RESTA = ?  WHERE PC_ID_PROD = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {_inputtext,BA.NumberToString(_restado),_idparts.getArrayElement(true,BA.numberCast(int.class, 0))})))));
 BA.debugLineNum = 3407;BA.debugLine="If restado > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",_restado,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3410;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
Debug.ShouldStop(131072);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_restado))),RemoteObject.createImmutable("', PE_COSTO_TOT= '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_restado))),RemoteObject.createImmutable("'*'"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable("', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_sobrantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else 
{ BA.debugLineNum = 3411;BA.debugLine="Else If restado < 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("<",_restado,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3414;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue()))))),RemoteObject.createImmutable("', PE_COSTO_TOT= '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue()))))),RemoteObject.createImmutable("'*'"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable("', PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_sobrantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else 
{ BA.debugLineNum = 3415;BA.debugLine="Else If restado = 0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_restado,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3416;BA.debugLine="Log(\"a eliminar\")";
Debug.ShouldStop(8388608);
c_principal.__c.runVoidMethod ("LogImpl","816646297",RemoteObject.createImmutable("a eliminar"),0);
 BA.debugLineNum = 3417;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PED";
Debug.ShouldStop(16777216);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_sobrantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }}}
;
 };
 }else 
{ BA.debugLineNum = 3421;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") = 0 An";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_restadoanterior.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("RESTA"))),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",_restadoanterior.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("RESTA"))),BA.numberCast(double.class, _restado))) { 
 BA.debugLineNum = 3422;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO";
Debug.ShouldStop(536870912);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("Update PICK_CIEGO set PC_CANT = ?, RESTA = ?  WHERE PC_ID_PROD = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {_inputtext,BA.NumberToString(_restado),_idparts.getArrayElement(true,BA.numberCast(int.class, 0))})))));
 BA.debugLineNum = 3423;BA.debugLine="If restado > 0 And inputText <> 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",_restado,BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",_inputtext,BA.NumberToString(0))) { 
 BA.debugLineNum = 3425;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
Debug.ShouldStop(1);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 3426;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3427;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(4);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3428;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
Debug.ShouldStop(8);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 3430;BA.debugLine="preciocat.Close";
Debug.ShouldStop(32);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 3431;BA.debugLine="Log(\"MAYOR A CERO\")";
Debug.ShouldStop(64);
c_principal.__c.runVoidMethod ("LogImpl","816646312",RemoteObject.createImmutable("MAYOR A CERO"),0);
 BA.debugLineNum = 3432;BA.debugLine="consecutivo = consecutivo + 1";
Debug.ShouldStop(128);
_consecutivo = RemoteObject.solve(new RemoteObject[] {_consecutivo,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 3433;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQ";
Debug.ShouldStop(256);
_faltantes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_faltantes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from PEDIDO WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' AND PE_TIPO = 'FALTANTE'"))))));Debug.locals.put("faltantes", _faltantes);Debug.locals.put("faltantes", _faltantes);
 BA.debugLineNum = 3434;BA.debugLine="If faltantes.RowCount > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",_faltantes.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3435;BA.debugLine="faltantes.Position = 0";
Debug.ShouldStop(1024);
_faltantes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3436;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
Debug.ShouldStop(2048);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_restado))),RemoteObject.createImmutable("', PE_COSTO_TOT= '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_restado))),RemoteObject.createImmutable("'*'"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable("', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_faltantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else {
 BA.debugLineNum = 3438;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
Debug.ShouldStop(8192);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),_idparts.getArrayElement(true,BA.numberCast(int.class, 1)),BA.NumberToString(_restado),BA.ObjectToString(""),c_principal._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),_preciofull,BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),_restado}, "*",0, 0))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),BA.ObjectToString("FALTANTE"),c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(_sdate,RemoteObject.createImmutable(" "),_stime),c_principal._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(0)})))));
 };
 }else 
{ BA.debugLineNum = 3440;BA.debugLine="Else If restado < 0 And inputText <> 0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("<",_restado,BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",_inputtext,BA.NumberToString(0))) { 
 BA.debugLineNum = 3442;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
Debug.ShouldStop(131072);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 3443;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3444;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(524288);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3445;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
Debug.ShouldStop(1048576);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 3447;BA.debugLine="preciocat.Close";
Debug.ShouldStop(4194304);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 3448;BA.debugLine="Log(\"MENOR A CERO\")";
Debug.ShouldStop(8388608);
c_principal.__c.runVoidMethod ("LogImpl","816646329",RemoteObject.createImmutable("MENOR A CERO"),0);
 BA.debugLineNum = 3449;BA.debugLine="consecutivo = consecutivo + 1";
Debug.ShouldStop(16777216);
_consecutivo = RemoteObject.solve(new RemoteObject[] {_consecutivo,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 3450;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQ";
Debug.ShouldStop(33554432);
_faltantes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_faltantes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from PEDIDO WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' AND PE_TIPO = 'FALTANTE'"))))));Debug.locals.put("faltantes", _faltantes);Debug.locals.put("faltantes", _faltantes);
 BA.debugLineNum = 3451;BA.debugLine="If faltantes.RowCount > 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",_faltantes.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3452;BA.debugLine="faltantes.Position = 0";
Debug.ShouldStop(134217728);
_faltantes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3453;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s";
Debug.ShouldStop(268435456);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO set PE_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable(((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue())))))),RemoteObject.createImmutable("', PE_COSTO_TOT= "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable(((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue())))))),RemoteObject.createImmutable("*"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_preciofull))),RemoteObject.createImmutable(", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_faltantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 }else {
 BA.debugLineNum = 3455;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
Debug.ShouldStop(1073741824);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),_idparts.getArrayElement(true,BA.numberCast(int.class, 1)),BA.NumberToString((-(double) (0 + 1)*(double) (0 + _restado.<Integer>get().intValue()))),BA.ObjectToString(""),c_principal._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),_preciofull,BA.NumberToString((-(double) (0 + 1)*(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),_restado}, "*",0, 0)).<Double>get().doubleValue())),BA.NumberToString(_consecutivo),BA.NumberToString(1000),BA.ObjectToString("SOBRANTE"),c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(_sdate,RemoteObject.createImmutable(" "),_stime),c_principal._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(0)})))));
 };
 }}
;
 }else 
{ BA.debugLineNum = 3458;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") = 0 An";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_restadoanterior.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("RESTA"))),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("=",_restado,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3459;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID";
Debug.ShouldStop(4);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND PE_TIPO NOT IN ('DANADO') ")))));
 }}}}
;
 };
 }else 
{ BA.debugLineNum = 3462;BA.debugLine="Else If inputText = \"\" Or inputText = 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",_inputtext,BA.ObjectToString("")) || RemoteObject.solveBoolean("=",_inputtext,BA.NumberToString(0))) { 
 BA.debugLineNum = 3463;BA.debugLine="Log(\"IMPUT IGUAL DE CERO\")";
Debug.ShouldStop(64);
c_principal.__c.runVoidMethod ("LogImpl","816646344",RemoteObject.createImmutable("IMPUT IGUAL DE CERO"),0);
 BA.debugLineNum = 3464;BA.debugLine="Log(idParts(0))";
Debug.ShouldStop(128);
c_principal.__c.runVoidMethod ("LogImpl","816646345",_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),0);
 BA.debugLineNum = 3465;BA.debugLine="Log(cantidadrestar)";
Debug.ShouldStop(256);
c_principal.__c.runVoidMethod ("LogImpl","816646346",_cantidadrestar,0);
 BA.debugLineNum = 3466;BA.debugLine="Log(inputText)";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethod ("LogImpl","816646347",_inputtext,0);
 BA.debugLineNum = 3467;BA.debugLine="Dim restado As Int = cantidadrestar - inputText";
Debug.ShouldStop(1024);
_restado = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cantidadrestar),BA.numberCast(double.class, _inputtext)}, "-",1, 0));Debug.locals.put("restado", _restado);Debug.locals.put("restado", _restado);
 BA.debugLineNum = 3468;BA.debugLine="Log(cantidadrestar - inputText)";
Debug.ShouldStop(2048);
c_principal.__c.runVoidMethod ("LogImpl","816646349",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _cantidadrestar),BA.numberCast(double.class, _inputtext)}, "-",1, 0)),0);
 BA.debugLineNum = 3469;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(4096);
_faltantes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_faltantes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0))}))));Debug.locals.put("faltantes", _faltantes);Debug.locals.put("faltantes", _faltantes);
 BA.debugLineNum = 3470;BA.debugLine="If faltantes.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_faltantes.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3471;BA.debugLine="faltantes.Position = 0";
Debug.ShouldStop(16384);
_faltantes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3472;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PICK_C";
Debug.ShouldStop(32768);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PICK_CIEGO where  PC_ID_PROD = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'")))));
 };
 BA.debugLineNum = 3475;BA.debugLine="Dim sobrantes As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(262144);
_sobrantes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_sobrantes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select * from PEDIDO WHERE PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403'"))))));Debug.locals.put("sobrantes", _sobrantes);Debug.locals.put("sobrantes", _sobrantes);
 BA.debugLineNum = 3476;BA.debugLine="If sobrantes.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",_sobrantes.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3477;BA.debugLine="sobrantes.Position = 0";
Debug.ShouldStop(1048576);
_sobrantes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3478;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from PEDIDO where PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_sobrantes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("'")))));
 };
 BA.debugLineNum = 3481;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(16777216);
_preciocat = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_preciocat = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idparts.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("preciocat", _preciocat);Debug.locals.put("preciocat", _preciocat);
 BA.debugLineNum = 3482;BA.debugLine="If preciocat.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",_preciocat.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 3483;BA.debugLine="preciocat.Position = 0";
Debug.ShouldStop(67108864);
_preciocat.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 3484;BA.debugLine="Dim preciofull As String = preciocat.GetString";
Debug.ShouldStop(134217728);
_preciofull = _preciocat.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_PRECIO")));Debug.locals.put("preciofull", _preciofull);Debug.locals.put("preciofull", _preciofull);
 };
 BA.debugLineNum = 3486;BA.debugLine="preciocat.Close";
Debug.ShouldStop(536870912);
_preciocat.runVoidMethod ("Close");
 BA.debugLineNum = 3487;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDIDO(";
Debug.ShouldStop(1073741824);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {16},new Object[] {_idparts.getArrayElement(true,BA.numberCast(int.class, 0)),_idparts.getArrayElement(true,BA.numberCast(int.class, 1)),BA.NumberToString(_restado),BA.ObjectToString(""),c_principal._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),_preciofull,BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _preciofull),_restado}, "*",0, 0))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),BA.ObjectToString("FALTANTE"),c_principal._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")),RemoteObject.concat(_sdate,RemoteObject.createImmutable(" "),_stime),c_principal._subs.runMethod(true,"_traeusuario" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traefechaprev" /*RemoteObject*/ ,__ref.getField(false, "ba")),c_principal._subs.runMethod(true,"_traerutareparto" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString(0)})))));
 }}
;
 BA.debugLineNum = 3490;BA.debugLine="f.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 3491;BA.debugLine="a.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_a" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 3492;BA.debugLine="Log(\"Processed item \" & i)";
Debug.ShouldStop(8);
c_principal.__c.runVoidMethod ("LogImpl","816646373",RemoteObject.concat(RemoteObject.createImmutable("Processed item "),RemoteObject.createImmutable(_i)),0);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 3495;BA.debugLine="P_CIEGO.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_p_ciego" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 3496;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(128);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 3497;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_venta_emp_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_venta_emp_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2685);
if (RapidSub.canDelegate("b_venta_emp_click")) { return __ref.runUserSub(false, "c_principal","b_venta_emp_click", __ref);}
int _i = 0;
RemoteObject _c3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _resta = RemoteObject.createImmutable("");
 BA.debugLineNum = 2685;BA.debugLine="Private Sub b_venta_emp_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 2686;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
Debug.ShouldStop(536870912);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CUENTAA")));
 BA.debugLineNum = 2687;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
Debug.ShouldStop(1073741824);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CUENTAA VALUES (?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("63403"))})))));
 BA.debugLineNum = 2689;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)";
Debug.ShouldStop(1);
c_principal._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_ciego" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 2690;BA.debugLine="P_CIEGO.Width = Root.Width";
Debug.ShouldStop(2);
__ref.getField(false,"_p_ciego" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 2691;BA.debugLine="P_CIEGO.Height = Root.Height";
Debug.ShouldStop(4);
__ref.getField(false,"_p_ciego" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 2693;BA.debugLine="CLV_PICK_CIEGO.Clear";
Debug.ShouldStop(16);
__ref.getField(false,"_clv_pick_ciego" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 2695;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel";
Debug.ShouldStop(64);
c_principal._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_principal._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID, ifnull(PC_CANT,0) AS PC_CAN from HIST_VENTAS INNER JOIN PICK_CIEGO ON PC_ID_PROD = HVD_PROID WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))));__ref.setField("_c",c_principal._c);
 BA.debugLineNum = 2696;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2699;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(1024);
{
final int step9 = 1;
final int limit9 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step9 > 0 && _i <= limit9) || (step9 < 0 && _i >= limit9) ;_i = ((int)(0 + _i + step9))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2700;BA.debugLine="c.Position = i";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2703;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(16384);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 2704;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(32768);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 2706;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2707;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(262144);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2708;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(524288);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 }else {
 BA.debugLineNum = 2710;BA.debugLine="resta = 0";
Debug.ShouldStop(2097152);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 };
 BA.debugLineNum = 2712;BA.debugLine="If ( c.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("k",(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0)),BA.numberCast(double.class, 0))) { 
 }else {
 BA.debugLineNum = 2715;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString(";
Debug.ShouldStop(67108864);
__ref.getField(false,"_clv_pick_ciego" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_CAN")))),(Object)(BA.NumberToString((RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 2721;BA.debugLine="d = Starter.skmt.ExecQuery(\"select HVD_PRONOMBRE";
Debug.ShouldStop(1);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0  and HVD_PROID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO) GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))));
 BA.debugLineNum = 2723;BA.debugLine="For i = 0 To d.RowCount - 1";
Debug.ShouldStop(4);
{
final int step25 = 1;
final int limit25 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step25 > 0 && _i <= limit25) || (step25 < 0 && _i >= limit25) ;_i = ((int)(0 + _i + step25))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2724;BA.debugLine="d.Position = i";
Debug.ShouldStop(8);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2727;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(64);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 2728;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(128);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 2730;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2731;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(1024);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2732;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(2048);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 }else {
 BA.debugLineNum = 2734;BA.debugLine="resta = 0";
Debug.ShouldStop(8192);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 };
 BA.debugLineNum = 2736;BA.debugLine="If ( d.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("k",(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0)),BA.numberCast(double.class, 0))) { 
 }else {
 BA.debugLineNum = 2739;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
Debug.ShouldStop(262144);
__ref.getField(false,"_clv_pick_ciego" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_createlistitem2" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(BA.NumberToString((RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 }
}Debug.locals.put("i", _i);
;
 }else 
{ BA.debugLineNum = 2745;BA.debugLine="Else If c.RowCount = 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2746;BA.debugLine="d = Starter.skmt.ExecQuery(\"select HVD_PRONOMBRE";
Debug.ShouldStop(33554432);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0  GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))));
 BA.debugLineNum = 2748;BA.debugLine="For i = 0 To d.RowCount - 1";
Debug.ShouldStop(134217728);
{
final int step42 = 1;
final int limit42 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step42 > 0 && _i <= limit42) || (step42 < 0 && _i >= limit42) ;_i = ((int)(0 + _i + step42))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2749;BA.debugLine="d.Position = i";
Debug.ShouldStop(268435456);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2752;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(-2147483648);
_c3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_c3 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))))));Debug.locals.put("c3", _c3);Debug.locals.put("c3", _c3);
 BA.debugLineNum = 2753;BA.debugLine="Private resta As String = 0";
Debug.ShouldStop(1);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);Debug.locals.put("resta", _resta);
 BA.debugLineNum = 2755;BA.debugLine="If c3.RowCount > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",_c3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2756;BA.debugLine="c3.Position = 0";
Debug.ShouldStop(8);
_c3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2757;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
Debug.ShouldStop(16);
_resta = _c3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("resta", _resta);
 }else {
 BA.debugLineNum = 2759;BA.debugLine="resta = 0";
Debug.ShouldStop(64);
_resta = BA.NumberToString(0);Debug.locals.put("resta", _resta);
 };
 BA.debugLineNum = 2761;BA.debugLine="If ( d.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("k",(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0)),BA.numberCast(double.class, 0))) { 
 }else {
 BA.debugLineNum = 2764;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString";
Debug.ShouldStop(2048);
__ref.getField(false,"_clv_pick_ciego" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_createlistitem2" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))),(Object)(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PRONOMBRE")))),(Object)(BA.NumberToString((RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.numberCast(double.class, _resta)}, "-",1, 0))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 };
 }
}Debug.locals.put("i", _i);
;
 }}
;
 BA.debugLineNum = 2771;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
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_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,204);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_principal","b4xpage_appear", __ref);}
int _i = 0;
RemoteObject _numticks = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _monto_rec_dia = RemoteObject.createImmutable("");
RemoteObject _rc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _i3 = 0;
RemoteObject _vc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _i4 = 0;
RemoteObject _entmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _rechmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _vendmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _cancelrecha = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _h54 = 0;
RemoteObject _r5 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _rescant = RemoteObject.createImmutable("");
int _j4 = 0;
RemoteObject _r6 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _totalcantped = RemoteObject.createImmutable("");
RemoteObject _rescant2 = RemoteObject.createImmutable(0);
int _j5 = 0;
RemoteObject _r5r = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _rescantr = RemoteObject.createImmutable("");
int _j4r = 0;
RemoteObject _r6r = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _rescant2r = RemoteObject.createImmutable("");
int _j5r = 0;
RemoteObject _r55 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _rescant3 = RemoteObject.createImmutable(0);
int _r75 = 0;
RemoteObject _rescant4 = RemoteObject.createImmutable(0);
RemoteObject _rescant5 = RemoteObject.createImmutable(0);
RemoteObject _rescant6 = RemoteObject.createImmutable(0);
RemoteObject _rescant7 = RemoteObject.createImmutable(0);
RemoteObject _rescant10 = RemoteObject.createImmutable(0);
RemoteObject _pztotal = RemoteObject.createImmutable(0);
RemoteObject _pztotal2 = RemoteObject.createImmutable(0);
RemoteObject _rescant11 = RemoteObject.createImmutable(0);
RemoteObject _pztotal3 = RemoteObject.createImmutable(0);
RemoteObject _rescant12 = RemoteObject.createImmutable(0);
RemoteObject _restafaltante = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _rescant8 = RemoteObject.createImmutable(0);
RemoteObject _g8 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _g11 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _g12 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _g13 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 204;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(2048);
 BA.debugLineNum = 206;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
Debug.ShouldStop(8192);
c_principal._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_principal._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));__ref.setField("_c",c_principal._c);
 BA.debugLineNum = 207;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 208;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA w";
Debug.ShouldStop(32768);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from NOVENTA where NV_MOTIVO <> 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
 };
 BA.debugLineNum = 211;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
Debug.ShouldStop(262144);
c_principal._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_principal._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM NOVENTA"))));__ref.setField("_c",c_principal._c);
 BA.debugLineNum = 212;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 213;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update kmt_info set gestion = 2  WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA')")));
 };
 BA.debugLineNum = 215;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL";
Debug.ShouldStop(4194304);
c_principal._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_principal._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT NV_CLIENTE FROM NOVENTA"))));__ref.setField("_c",c_principal._c);
 BA.debugLineNum = 216;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 217;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g";
Debug.ShouldStop(16777216);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("Update kmt_info set gestion = 3  WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO <> 'ENTREGA')")));
 };
 BA.debugLineNum = 220;BA.debugLine="b_check.visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_b_check" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 221;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
Debug.ShouldStop(268435456);
c_principal._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_principal" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 234;BA.debugLine="If EJECUTANDO = 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ejecutando" /*RemoteObject*/ ),BA.NumberToString(0))) { 
 BA.debugLineNum = 235;BA.debugLine="Listo1 = 0";
Debug.ShouldStop(1024);
__ref.setField ("_listo1" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 236;BA.debugLine="Listo2 = 0";
Debug.ShouldStop(2048);
__ref.setField ("_listo2" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 237;BA.debugLine="Listo3 = 0";
Debug.ShouldStop(4096);
__ref.setField ("_listo3" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 238;BA.debugLine="Listo4 = 0";
Debug.ShouldStop(8192);
__ref.setField ("_listo4" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 239;BA.debugLine="Listo5 = 0";
Debug.ShouldStop(16384);
__ref.setField ("_listo5" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 240;BA.debugLine="inve = 0";
Debug.ShouldStop(32768);
__ref.setField ("_inve" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 241;BA.debugLine="img2.Visible =False";
Debug.ShouldStop(65536);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 };
 BA.debugLineNum = 243;BA.debugLine="l_ruta.Text = 0";
Debug.ShouldStop(262144);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 244;BA.debugLine="f=Starter.skmt.ExecQuery(\"select rutaa from rutaa";
Debug.ShouldStop(524288);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select rutaa from rutaa"))));
 BA.debugLineNum = 245;BA.debugLine="If f.RowCount > 0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 246;BA.debugLine="f.Position = 0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 247;BA.debugLine="l_ruta.Text = f.GetString(\"RUTAA\")";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA")))));
 };
 BA.debugLineNum = 249;BA.debugLine="f.Close";
Debug.ShouldStop(16777216);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 250;BA.debugLine="If l_ruta.Text = 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 251;BA.debugLine="l_ruta.Text = 0";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 252;BA.debugLine="l_rutasP.Text = 0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_rutasp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 253;BA.debugLine="l_numtickets.Text = 0";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_numtickets" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 }else {
 BA.debugLineNum = 255;BA.debugLine="f=Starter.skmt.ExecQuery(\"select distinct CAT_CL";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select distinct CAT_CL_RUTA from kmt_info WHERE CAT_CL_RUTA <> 1000 order by CAT_CL_RUTA"))));
 BA.debugLineNum = 257;BA.debugLine="l_rutasP.Text = \"\"";
Debug.ShouldStop(1);
__ref.getField(false,"_l_rutasp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 258;BA.debugLine="For i = 0 To f.RowCount - 1";
Debug.ShouldStop(2);
{
final int step38 = 1;
final int limit38 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step38 > 0 && _i <= limit38) || (step38 < 0 && _i >= limit38) ;_i = ((int)(0 + _i + step38))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 259;BA.debugLine="f.Position = i";
Debug.ShouldStop(4);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 260;BA.debugLine="If i = 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(_i),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 261;BA.debugLine="l_rutasP.Text = f.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(16);
__ref.getField(false,"_l_rutasp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")))));
 }else {
 BA.debugLineNum = 263;BA.debugLine="l_rutasP.Text = l_rutasP.Text & \", \" & f.GetSt";
Debug.ShouldStop(64);
__ref.getField(false,"_l_rutasp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(__ref.getField(false,"_l_rutasp" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable(", "),__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))))));
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 266;BA.debugLine="f.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 268;BA.debugLine="Dim numticks As Cursor = Starter.skmt.ExecQuery(";
Debug.ShouldStop(2048);
_numticks = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_numticks = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select COUNT(distinct HVD_NUM_TICKET) AS TICKET from HIST_VENTAS"))));Debug.locals.put("numticks", _numticks);Debug.locals.put("numticks", _numticks);
 BA.debugLineNum = 269;BA.debugLine="numticks.Position = 0";
Debug.ShouldStop(4096);
_numticks.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 270;BA.debugLine="l_numtickets.Text = numticks.GetInt(\"TICKET\")";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_numtickets" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_numticks.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("TICKET")))));
 };
 BA.debugLineNum = 272;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(32768);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 273;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(65536);
__ref.setField ("_fecha" /*RemoteObject*/ ,c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 274;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN";
Debug.ShouldStop(131072);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select count(*) as CUANTOS from kmt_info"))));
 BA.debugLineNum = 275;BA.debugLine="b.Position=0";
Debug.ShouldStop(262144);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 276;BA.debugLine="If b.RowCount > 0 Then Cuantos = b.GetString(\"CUA";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.setField ("_cuantos" /*RemoteObject*/ ,__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))));};
 BA.debugLineNum = 277;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA";
Debug.ShouldStop(1048576);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000"))));
 BA.debugLineNum = 278;BA.debugLine="D.Position=0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 279;BA.debugLine="b.Close";
Debug.ShouldStop(4194304);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 280;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_";
Debug.ShouldStop(8388608);
__ref.getField(false,"_e" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000"))));
 BA.debugLineNum = 281;BA.debugLine="e.Position=0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 292;BA.debugLine="cargar.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 293;BA.debugLine="Subir.Visible = False";
Debug.ShouldStop(16);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 294;BA.debugLine="connecta.Visible = True";
Debug.ShouldStop(32);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 296;BA.debugLine="If Cuantos = 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos" /*RemoteObject*/ ),BA.NumberToString(0))) { 
 BA.debugLineNum = 297;BA.debugLine="l_aLiquidar.Text = 0";
Debug.ShouldStop(256);
__ref.getField(false,"_l_aliquidar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 298;BA.debugLine="l_cuantosc.Text = 0";
Debug.ShouldStop(512);
__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 299;BA.debugLine="l_cuantosn.Text = 0";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 300;BA.debugLine="drop = 0";
Debug.ShouldStop(2048);
__ref.setField ("_drop" /*RemoteObject*/ ,BA.numberCast(double.class, 0));
 BA.debugLineNum = 301;BA.debugLine="l_montoSalida.Text = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_montosalida" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 302;BA.debugLine="efectiva = 0";
Debug.ShouldStop(8192);
__ref.setField ("_efectiva" /*RemoteObject*/ ,BA.numberCast(double.class, 0));
 BA.debugLineNum = 305;BA.debugLine="L_MONTOE.Text = 0";
Debug.ShouldStop(65536);
__ref.getField(false,"_l_montoe" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 306;BA.debugLine="l_ctast.Text = 0";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 307;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_VISITAR")))));};
 BA.debugLineNum = 308;BA.debugLine="l_porvisitar.Text = 0";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 309;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR")))));};
 BA.debugLineNum = 310;BA.debugLine="d.Close";
Debug.ShouldStop(2097152);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 311;BA.debugLine="e.Close";
Debug.ShouldStop(4194304);
__ref.getField(false,"_e" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 313;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(hvd_costo_t";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(hvd_costo_tot) as MONTO_DIA  from hist_ventas where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_ESTATUS = 1 "))));
 BA.debugLineNum = 314;BA.debugLine="f1=Starter.skmt.ExecQuery(\"select sum(hvd_costo_";
Debug.ShouldStop(33554432);
__ref.getField(false,"_f1" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(hvd_costo_tot) as MONTO_TOTAL_DIA from hist_ventas2 where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_RECHAZO = 0"))));
 BA.debugLineNum = 315;BA.debugLine="f2=Starter.skmt.ExecQuery(\"select sum(REP_COSTO_";
Debug.ShouldStop(67108864);
__ref.getField(false,"_f2" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(REP_COSTO_TOT) as MONTO_REC_DIA FROM REPARTO where REP_cliente in (Select cat_cl_codigo from kmt_info)"))));
 BA.debugLineNum = 317;BA.debugLine="b=Starter.skmt.ExecQuery(\"select count(DISTINCT";
Debug.ShouldStop(268435456);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(DISTINCT NV_CLIENTE) as CUANTOS from noventa where nv_motivo <> 'ENTREGA' and NV_CLIENTE <> 63403"))));
 BA.debugLineNum = 319;BA.debugLine="L=Starter.skmt.ExecQuery(\"select count(DISTINCT";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(DISTINCT NV_CLIENTE) as CLIENTES_DIA from noventa where nv_motivo = 'ENTREGA' and NV_CLIENTE <> 63403"))));
 BA.debugLineNum = 320;BA.debugLine="f2.Position=0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_f2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 323;BA.debugLine="Private MONTO_REC_DIA = 0";
Debug.ShouldStop(4);
_monto_rec_dia = BA.NumberToString(0);Debug.locals.put("MONTO_REC_DIA", _monto_rec_dia);Debug.locals.put("MONTO_REC_DIA", _monto_rec_dia);
 BA.debugLineNum = 324;BA.debugLine="If f2.GetString(\"MONTO_REC_DIA\") <> Null Then MO";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("N",__ref.getField(false,"_f2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_REC_DIA"))))) { 
_monto_rec_dia = __ref.getField(false,"_f2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_REC_DIA")));Debug.locals.put("MONTO_REC_DIA", _monto_rec_dia);};
 BA.debugLineNum = 335;BA.debugLine="C.Position = 0";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 336;BA.debugLine="b.Position = 0";
Debug.ShouldStop(32768);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 337;BA.debugLine="L.Position = 0";
Debug.ShouldStop(65536);
__ref.getField(false,"_l" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 338;BA.debugLine="f1.Position = 0";
Debug.ShouldStop(131072);
__ref.getField(false,"_f1" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 339;BA.debugLine="l_aLiquidar.Text = 0";
Debug.ShouldStop(262144);
__ref.getField(false,"_l_aliquidar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 340;BA.debugLine="If f1.RowCount > 0 Then l_aLiquidar.Text = to_nu";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_f1" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.getField(false,"_l_aliquidar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_to_number_vb" /*RemoteObject*/ ,(Object)((__ref.getField(false,"_f1" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_TOTAL_DIA"))))))));};
 BA.debugLineNum = 341;BA.debugLine="L_MONTOE.Text = 0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_montoe" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 343;BA.debugLine="l_cuantosc.Text = 0";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 344;BA.debugLine="If L.RowCount > 0 Then l_cuantosc.Text = L.GetSt";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_l" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_l" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTES_DIA")))));};
 BA.debugLineNum = 345;BA.debugLine="l_cuantosn.Text = 0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 346;BA.debugLine="If b.RowCount > 0 Then l_cuantosn.Text = b.GetSt";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))));};
 BA.debugLineNum = 348;BA.debugLine="If f1.GetString(\"MONTO_TOTAL_DIA\") <> Null Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("N",__ref.getField(false,"_f1" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_TOTAL_DIA"))))) { 
__ref.getField(false,"_l_montosalida" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, __ref.getField(false,"_f1" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_TOTAL_DIA"))))),(Object)(BA.numberCast(int.class, 2)))));};
 BA.debugLineNum = 350;BA.debugLine="l_ctast.Text = 0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 351;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_VISITAR")))));};
 BA.debugLineNum = 352;BA.debugLine="l_porvisitar.Text = 0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 353;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR")))));};
 BA.debugLineNum = 354;BA.debugLine="c.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 355;BA.debugLine="b.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 366;BA.debugLine="c.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 368;BA.debugLine="c=Starter.skmt.ExecQuery(\"select  ID_ALMACEN from";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select  ID_ALMACEN from CAT_ALMACEN"))));
 BA.debugLineNum = 369;BA.debugLine="C.Position =0";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 370;BA.debugLine="ALMACEN = 0";
Debug.ShouldStop(131072);
__ref.setField ("_almacen" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 371;BA.debugLine="If C.RowCount > 0 Then ALMACEN = C.GetString(\"ID_";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.setField ("_almacen" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))));};
 BA.debugLineNum = 372;BA.debugLine="B4XPages.MainPage.almacen = ALMACEN";
Debug.ShouldStop(524288);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_almacen" /*RemoteObject*/ ,__ref.getField(true,"_almacen" /*RemoteObject*/ ));
 BA.debugLineNum = 373;BA.debugLine="C.Close";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 374;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HGDATE, HGLAT, H";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HGDATE, HGLAT, HGLON from HIST_GPS"))));
 BA.debugLineNum = 376;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 377;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(16777216);
{
final int step115 = 1;
final int limit115 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step115 > 0 && _i <= limit115) || (step115 < 0 && _i >= limit115) ;_i = ((int)(0 + _i + step115))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 378;BA.debugLine="c.Position=i";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 379;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(67108864);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 380;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 381;BA.debugLine="cmd.Name = \"insert_gps_actual_REP\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_gps_actual_REP"));
 BA.debugLineNum = 382;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"h";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("hgdate")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("hglat")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("hglon")))),(__ref.getField(true,"_usuario" /*RemoteObject*/ ))}));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 386;BA.debugLine="bu.Initialize";
Debug.ShouldStop(2);
__ref.getField(false,"_bu" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.batteryutilities.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 387;BA.debugLine="batterystatus = bu.BatteryInformation";
Debug.ShouldStop(4);
__ref.setField ("_batterystatus" /*RemoteObject*/ ,__ref.getField(false,"_bu" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.batteryutilities.class, "_getbatteryinformation" /*RemoteObject*/ ));
 BA.debugLineNum = 389;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)";
Debug.ShouldStop(16);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_batt" /*RemoteObject*/ ,__ref.getField(false,"_batterystatus" /*RemoteObject*/ ).getArrayElement(true,BA.numberCast(int.class, 0)));
 BA.debugLineNum = 390;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 391;BA.debugLine="c.Position = 0";
Debug.ShouldStop(64);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 392;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(128);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 393;BA.debugLine="c.Close";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 394;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select RUTAA from RUTAA"))));
 BA.debugLineNum = 395;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 396;BA.debugLine="RUTA_T = 0";
Debug.ShouldStop(2048);
__ref.setField ("_ruta_t" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 397;BA.debugLine="If c.RowCount > 0 Then RUTA_T = c.GetString(\"RUTA";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
__ref.setField ("_ruta_t" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA"))));};
 BA.debugLineNum = 398;BA.debugLine="B4XPages.MainPage.rutaPreventa = RUTA_T";
Debug.ShouldStop(8192);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_rutapreventa" /*RemoteObject*/ ,__ref.getField(true,"_ruta_t" /*RemoteObject*/ ));
 BA.debugLineNum = 399;BA.debugLine="c.Close";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 400;BA.debugLine="reqs.Initialize";
Debug.ShouldStop(32768);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 402;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(131072);
_rc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_rc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select * from REPARTO where REP_RECHAZO = \"1\" and REP_CANT > 0")))));Debug.locals.put("rc", _rc);Debug.locals.put("rc", _rc);
 BA.debugLineNum = 404;BA.debugLine="If rc.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",_rc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 405;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from RECHAZOS";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.createImmutable("delete from RECHAZOS"))));
 BA.debugLineNum = 406;BA.debugLine="For i3=0 To rc.RowCount -1 'Copiamos los rechazo";
Debug.ShouldStop(2097152);
{
final int step140 = 1;
final int limit140 = RemoteObject.solve(new RemoteObject[] {_rc.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i3 = 0 ;
for (;(step140 > 0 && _i3 <= limit140) || (step140 < 0 && _i3 >= limit140) ;_i3 = ((int)(0 + _i3 + step140))  ) {
Debug.locals.put("i3", _i3);
 BA.debugLineNum = 407;BA.debugLine="rc.Position = i3";
Debug.ShouldStop(4194304);
_rc.runMethod(true,"setPosition",BA.numberCast(int.class, _i3));
 BA.debugLineNum = 410;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into RECHAZO";
Debug.ShouldStop(33554432);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("insert into RECHAZOS(R_FECHA, R_CLIENTE, R_CLI_ORIG, R_PRODID, R_CANT, R_RECHAZO, R_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CLIENTE")))))),RemoteObject.createImmutable("' and REP_CLI_ORIG = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CLI_ORIG")))))),RemoteObject.createImmutable("' and REP_PRODID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_rc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_PRODID")))))),RemoteObject.createImmutable("' and REP_RECHAZO = '1' and REP_CANT > 0")))));
 }
}Debug.locals.put("i3", _i3);
;
 };
 BA.debugLineNum = 413;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(268435456);
_vc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_vc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select * from REPARTO where REP_RECHAZO = \"0\" and REP_CANT > 0")))));Debug.locals.put("vc", _vc);Debug.locals.put("vc", _vc);
 BA.debugLineNum = 415;BA.debugLine="If vc.RowCount > 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",_vc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 416;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from VENTAS\"$";
Debug.ShouldStop(-2147483648);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.createImmutable("delete from VENTAS"))));
 BA.debugLineNum = 417;BA.debugLine="For i4=0 To vc.RowCount -1 'Copiamos las ventas";
Debug.ShouldStop(1);
{
final int step148 = 1;
final int limit148 = RemoteObject.solve(new RemoteObject[] {_vc.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i4 = 0 ;
for (;(step148 > 0 && _i4 <= limit148) || (step148 < 0 && _i4 >= limit148) ;_i4 = ((int)(0 + _i4 + step148))  ) {
Debug.locals.put("i4", _i4);
 BA.debugLineNum = 418;BA.debugLine="vc.Position = i4";
Debug.ShouldStop(2);
_vc.runMethod(true,"setPosition",BA.numberCast(int.class, _i4));
 BA.debugLineNum = 421;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into VENTAS(";
Debug.ShouldStop(16);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("insert into VENTAS(V_FECHA, V_CLIENTE, V_CLI_ORIG, V_PRODID, V_CANT, V_RECHAZO, V_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CLIENTE")))))),RemoteObject.createImmutable("' and REP_CLI_ORIG = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_CLI_ORIG")))))),RemoteObject.createImmutable("' and REP_PRODID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_vc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REP_PRODID")))))),RemoteObject.createImmutable("' and REP_RECHAZO = '0' and REP_CANT > 0")))));
 }
}Debug.locals.put("i4", _i4);
;
 };
 BA.debugLineNum = 424;BA.debugLine="Starter.ENVIA_ULTIMA_GPS";
Debug.ShouldStop(128);
c_principal._starter.runVoidMethod ("_envia_ultima_gps" /*RemoteObject*/ );
 BA.debugLineNum = 429;BA.debugLine="Dim entMap As Map = Subs.traeEntregados";
Debug.ShouldStop(4096);
_entmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_entmap = c_principal._subs.runMethod(false,"_traeentregados" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("entMap", _entmap);Debug.locals.put("entMap", _entmap);
 BA.debugLineNum = 430;BA.debugLine="Dim rechMap As Map = Subs.traeRechazados";
Debug.ShouldStop(8192);
_rechmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_rechmap = c_principal._subs.runMethod(false,"_traerechazados" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("rechMap", _rechmap);Debug.locals.put("rechMap", _rechmap);
 BA.debugLineNum = 431;BA.debugLine="Dim vendMap As Map = Subs.traeVendidos";
Debug.ShouldStop(16384);
_vendmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");
_vendmap = c_principal._subs.runMethod(false,"_traevendidos" /*RemoteObject*/ ,__ref.getField(false, "ba"));Debug.locals.put("vendMap", _vendmap);Debug.locals.put("vendMap", _vendmap);
 BA.debugLineNum = 432;BA.debugLine="l_aLiquidar.Text = entMap.Get(\"monto\") + vendMap.";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_aliquidar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _entmap.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto"))))),BA.numberCast(double.class, _vendmap.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("monto")))))}, "+",1, 0)));
 BA.debugLineNum = 434;BA.debugLine="Dim cancelrecha As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(131072);
_cancelrecha = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cancelrecha = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT ifnull(HVD_RECHAZOCANT,0), HVD_RECHAZO, CONSECUTIVO FROM HIST_VENTAS"))));Debug.locals.put("cancelrecha", _cancelrecha);Debug.locals.put("cancelrecha", _cancelrecha);
 BA.debugLineNum = 435;BA.debugLine="If cancelrecha.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_cancelrecha.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 436;BA.debugLine="For h54 = 0 To cancelrecha.RowCount - 1";
Debug.ShouldStop(524288);
{
final int step160 = 1;
final int limit160 = RemoteObject.solve(new RemoteObject[] {_cancelrecha.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_h54 = 0 ;
for (;(step160 > 0 && _h54 <= limit160) || (step160 < 0 && _h54 >= limit160) ;_h54 = ((int)(0 + _h54 + step160))  ) {
Debug.locals.put("h54", _h54);
 BA.debugLineNum = 437;BA.debugLine="cancelrecha.Position = h54";
Debug.ShouldStop(1048576);
_cancelrecha.runMethod(true,"setPosition",BA.numberCast(int.class, _h54));
 BA.debugLineNum = 438;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update HIST_VENTAS";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("Update HIST_VENTAS set HVD_RECHAZO = '0'  WHERE CONSECUTIVO = ? and (HVD_RECHAZOCANT = 0 OR HVD_RECHAZOCANT IS NULL)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_cancelrecha.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))})))));
 }
}Debug.locals.put("h54", _h54);
;
 };
 BA.debugLineNum = 441;BA.debugLine="cancelrecha.Close";
Debug.ShouldStop(16777216);
_cancelrecha.runVoidMethod ("Close");
 BA.debugLineNum = 445;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(268435456);
_r5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ORDER BY HVD_PROID ")))));Debug.locals.put("r5", _r5);Debug.locals.put("r5", _r5);
 BA.debugLineNum = 447;BA.debugLine="Private rescant As String = 0";
Debug.ShouldStop(1073741824);
_rescant = BA.NumberToString(0);Debug.locals.put("rescant", _rescant);Debug.locals.put("rescant", _rescant);
 BA.debugLineNum = 448;BA.debugLine="If r5.RowCount > 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",_r5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 449;BA.debugLine="For j4 = 0 To r5.RowCount -1";
Debug.ShouldStop(1);
{
final int step169 = 1;
final int limit169 = RemoteObject.solve(new RemoteObject[] {_r5.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j4 = 0 ;
for (;(step169 > 0 && _j4 <= limit169) || (step169 < 0 && _j4 >= limit169) ;_j4 = ((int)(0 + _j4 + step169))  ) {
Debug.locals.put("j4", _j4);
 BA.debugLineNum = 450;BA.debugLine="r5.Position = j4";
Debug.ShouldStop(2);
_r5.runMethod(true,"setPosition",BA.numberCast(int.class, _j4));
 BA.debugLineNum = 451;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(4);
_r6 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r6 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))))));Debug.locals.put("r6", _r6);Debug.locals.put("r6", _r6);
 BA.debugLineNum = 452;BA.debugLine="Dim totalcantped As String";
Debug.ShouldStop(8);
_totalcantped = RemoteObject.createImmutable("");Debug.locals.put("totalcantped", _totalcantped);
 BA.debugLineNum = 453;BA.debugLine="If r6.RowCount > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",_r6.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 454;BA.debugLine="r6.Position = 0";
Debug.ShouldStop(32);
_r6.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 455;BA.debugLine="totalcantped = r6.GetString(\"PE_CANT\")";
Debug.ShouldStop(64);
_totalcantped = _r6.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("totalcantped", _totalcantped);
 }else {
 BA.debugLineNum = 458;BA.debugLine="totalcantped = 0";
Debug.ShouldStop(512);
_totalcantped = BA.NumberToString(0);Debug.locals.put("totalcantped", _totalcantped);
 };
 BA.debugLineNum = 461;BA.debugLine="Log(r5.GetString(\"HVD_RECHAZOCANT\") &\" - \"& tot";
Debug.ShouldStop(4096);
c_principal.__c.runVoidMethod ("LogImpl","814287105",RemoteObject.concat(_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),RemoteObject.createImmutable(" - "),_totalcantped),0);
 BA.debugLineNum = 462;BA.debugLine="rescant = rescant + ((r5.GetString(\"HVD_COSTO_T";
Debug.ShouldStop(8192);
_rescant = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _rescant),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, (_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))))}, "/",0, 0)),((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _totalcantped)}, "-",1, 0)))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("rescant", _rescant);
 BA.debugLineNum = 464;BA.debugLine="r6.Close";
Debug.ShouldStop(32768);
_r6.runVoidMethod ("Close");
 }
}Debug.locals.put("j4", _j4);
;
 };
 BA.debugLineNum = 467;BA.debugLine="If rescant = \"NaN\" Then rescant = 0";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_rescant,BA.ObjectToString("NaN"))) { 
_rescant = BA.NumberToString(0);Debug.locals.put("rescant", _rescant);};
 BA.debugLineNum = 468;BA.debugLine="LogColor(rescant,Colors.Red)";
Debug.ShouldStop(524288);
c_principal.__c.runVoidMethod ("LogImpl","814287112",_rescant,c_principal.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 469;BA.debugLine="r5.Close";
Debug.ShouldStop(1048576);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 473;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(16777216);
_r5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' ")))));Debug.locals.put("r5", _r5);Debug.locals.put("r5", _r5);
 BA.debugLineNum = 477;BA.debugLine="Private rescant2 As Double = 0";
Debug.ShouldStop(268435456);
_rescant2 = BA.numberCast(double.class, 0);Debug.locals.put("rescant2", _rescant2);Debug.locals.put("rescant2", _rescant2);
 BA.debugLineNum = 478;BA.debugLine="If r5.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",_r5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 479;BA.debugLine="For j5 = 0 To r5.RowCount -1";
Debug.ShouldStop(1073741824);
{
final int step190 = 1;
final int limit190 = RemoteObject.solve(new RemoteObject[] {_r5.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j5 = 0 ;
for (;(step190 > 0 && _j5 <= limit190) || (step190 < 0 && _j5 >= limit190) ;_j5 = ((int)(0 + _j5 + step190))  ) {
Debug.locals.put("j5", _j5);
 BA.debugLineNum = 480;BA.debugLine="r5.Position = j5";
Debug.ShouldStop(-2147483648);
_r5.runMethod(true,"setPosition",BA.numberCast(int.class, _j5));
 BA.debugLineNum = 481;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(1);
_r6 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r6 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'  AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))))));Debug.locals.put("r6", _r6);Debug.locals.put("r6", _r6);
 BA.debugLineNum = 482;BA.debugLine="r6.Position = 0";
Debug.ShouldStop(2);
_r6.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 484;BA.debugLine="rescant2 = rescant2 + ((r5.GetString(\"HVD_COSTO";
Debug.ShouldStop(8);
_rescant2 = RemoteObject.solve(new RemoteObject[] {_rescant2,(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, (_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC")))))}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _r6.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))}, "-",1, 0)),BA.numberCast(double.class, c_principal._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))))))}, "/",0, 0))}, "*",0, 0))}, "+",1, 0);Debug.locals.put("rescant2", _rescant2);
 BA.debugLineNum = 485;BA.debugLine="rescant2 = NumberFormat2(rescant2, 0, 2, 2, Fal";
Debug.ShouldStop(16);
_rescant2 = BA.numberCast(double.class, c_principal.__c.runMethod(true,"NumberFormat2",(Object)(_rescant2),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False"))));Debug.locals.put("rescant2", _rescant2);
 BA.debugLineNum = 486;BA.debugLine="r6.Close";
Debug.ShouldStop(32);
_r6.runVoidMethod ("Close");
 }
}Debug.locals.put("j5", _j5);
;
 };
 BA.debugLineNum = 489;BA.debugLine="If rescant2 = \"NaN\" Then rescant2 = 0";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_rescant2,BA.numberCast(double.class, "NaN"))) { 
_rescant2 = BA.numberCast(double.class, 0);Debug.locals.put("rescant2", _rescant2);};
 BA.debugLineNum = 490;BA.debugLine="Log(rescant2)";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethod ("LogImpl","814287134",BA.NumberToString(_rescant2),0);
 BA.debugLineNum = 491;BA.debugLine="r5.Close";
Debug.ShouldStop(1024);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 496;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(32768);
_r5r = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5r = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ")))));Debug.locals.put("r5r", _r5r);Debug.locals.put("r5r", _r5r);
 BA.debugLineNum = 498;BA.debugLine="Private rescantr As String = 0";
Debug.ShouldStop(131072);
_rescantr = BA.NumberToString(0);Debug.locals.put("rescantr", _rescantr);Debug.locals.put("rescantr", _rescantr);
 BA.debugLineNum = 499;BA.debugLine="If r5r.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",_r5r.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 500;BA.debugLine="For j4r = 0 To r5r.RowCount -1";
Debug.ShouldStop(524288);
{
final int step205 = 1;
final int limit205 = RemoteObject.solve(new RemoteObject[] {_r5r.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j4r = 0 ;
for (;(step205 > 0 && _j4r <= limit205) || (step205 < 0 && _j4r >= limit205) ;_j4r = ((int)(0 + _j4r + step205))  ) {
Debug.locals.put("j4r", _j4r);
 BA.debugLineNum = 501;BA.debugLine="r5r.Position = j4r";
Debug.ShouldStop(1048576);
_r5r.runMethod(true,"setPosition",BA.numberCast(int.class, _j4r));
 BA.debugLineNum = 502;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery(";
Debug.ShouldStop(2097152);
_r6r = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r6r = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE') "))))));Debug.locals.put("r6r", _r6r);Debug.locals.put("r6r", _r6r);
 BA.debugLineNum = 503;BA.debugLine="r6r.Position = 0";
Debug.ShouldStop(4194304);
_r6r.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 506;BA.debugLine="rescantr = rescantr + ((r5r.GetString(\"HVD_COST";
Debug.ShouldStop(33554432);
_rescantr = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _rescantr),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, (_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))))}, "/",0, 0)),BA.numberCast(double.class, (_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("rescantr", _rescantr);
 BA.debugLineNum = 507;BA.debugLine="r6r.Close";
Debug.ShouldStop(67108864);
_r6r.runVoidMethod ("Close");
 }
}Debug.locals.put("j4r", _j4r);
;
 };
 BA.debugLineNum = 510;BA.debugLine="If rescantr = \"NaN\" Then rescantr = 0";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",_rescantr,BA.ObjectToString("NaN"))) { 
_rescantr = BA.NumberToString(0);Debug.locals.put("rescantr", _rescantr);};
 BA.debugLineNum = 512;BA.debugLine="r5r.Close";
Debug.ShouldStop(-2147483648);
_r5r.runVoidMethod ("Close");
 BA.debugLineNum = 514;BA.debugLine="Log(rescantr)";
Debug.ShouldStop(2);
c_principal.__c.runVoidMethod ("LogImpl","814287158",_rescantr,0);
 BA.debugLineNum = 516;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(8);
_r5r = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5r = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' ")))));Debug.locals.put("r5r", _r5r);Debug.locals.put("r5r", _r5r);
 BA.debugLineNum = 520;BA.debugLine="Private rescant2r As String = 0";
Debug.ShouldStop(128);
_rescant2r = BA.NumberToString(0);Debug.locals.put("rescant2r", _rescant2r);Debug.locals.put("rescant2r", _rescant2r);
 BA.debugLineNum = 521;BA.debugLine="If r5r.RowCount > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",_r5r.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 522;BA.debugLine="For j5r = 0 To r5r.RowCount -1";
Debug.ShouldStop(512);
{
final int step219 = 1;
final int limit219 = RemoteObject.solve(new RemoteObject[] {_r5r.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j5r = 0 ;
for (;(step219 > 0 && _j5r <= limit219) || (step219 < 0 && _j5r >= limit219) ;_j5r = ((int)(0 + _j5r + step219))  ) {
Debug.locals.put("j5r", _j5r);
 BA.debugLineNum = 523;BA.debugLine="r5r.Position = j5r";
Debug.ShouldStop(1024);
_r5r.runMethod(true,"setPosition",BA.numberCast(int.class, _j5r));
 BA.debugLineNum = 524;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery(";
Debug.ShouldStop(2048);
_r6r = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r6r = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'  AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))))));Debug.locals.put("r6r", _r6r);Debug.locals.put("r6r", _r6r);
 BA.debugLineNum = 525;BA.debugLine="r6r.Position = 0";
Debug.ShouldStop(4096);
_r6r.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 527;BA.debugLine="rescant2r = rescant2r + ((r5r.GetString(\"HVD_CO";
Debug.ShouldStop(16384);
_rescant2r = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _rescant2r),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, (_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC")))))}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, (_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))),BA.numberCast(double.class, c_principal._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_r5r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))))))}, "/",0, 0))}, "*",0, 0))}, "+",1, 0));Debug.locals.put("rescant2r", _rescant2r);
 BA.debugLineNum = 528;BA.debugLine="r6r.Close";
Debug.ShouldStop(32768);
_r6r.runVoidMethod ("Close");
 }
}Debug.locals.put("j5r", _j5r);
;
 };
 BA.debugLineNum = 531;BA.debugLine="If rescant2r = \"NaN\" Then rescant2r = 0";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_rescant2r,BA.ObjectToString("NaN"))) { 
_rescant2r = BA.NumberToString(0);Debug.locals.put("rescant2r", _rescant2r);};
 BA.debugLineNum = 533;BA.debugLine="r5r.Close";
Debug.ShouldStop(1048576);
_r5r.runVoidMethod ("Close");
 BA.debugLineNum = 534;BA.debugLine="Log(rescant2r)";
Debug.ShouldStop(2097152);
c_principal.__c.runVoidMethod ("LogImpl","814287178",_rescant2r,0);
 BA.debugLineNum = 535;BA.debugLine="Log(rescant2r+rescantr)";
Debug.ShouldStop(4194304);
c_principal.__c.runVoidMethod ("LogImpl","814287179",BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _rescant2r),BA.numberCast(double.class, _rescantr)}, "+",1, 0)),0);
 BA.debugLineNum = 551;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(64);
_r55 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r55 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' ")))));Debug.locals.put("r55", _r55);Debug.locals.put("r55", _r55);
 BA.debugLineNum = 552;BA.debugLine="Private rescant3 As Double";
Debug.ShouldStop(128);
_rescant3 = RemoteObject.createImmutable(0);Debug.locals.put("rescant3", _rescant3);
 BA.debugLineNum = 553;BA.debugLine="If r55.RowCount > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",_r55.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 554;BA.debugLine="For r75 = 0 To r55.RowCount -1";
Debug.ShouldStop(512);
{
final int step234 = 1;
final int limit234 = RemoteObject.solve(new RemoteObject[] {_r55.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_r75 = 0 ;
for (;(step234 > 0 && _r75 <= limit234) || (step234 < 0 && _r75 >= limit234) ;_r75 = ((int)(0 + _r75 + step234))  ) {
Debug.locals.put("r75", _r75);
 BA.debugLineNum = 555;BA.debugLine="r55.Position = r75";
Debug.ShouldStop(1024);
_r55.runMethod(true,"setPosition",BA.numberCast(int.class, _r75));
 BA.debugLineNum = 556;BA.debugLine="rescant3 = rescant3 + r55.GetString(\"HVD_COSTO_";
Debug.ShouldStop(2048);
_rescant3 = RemoteObject.solve(new RemoteObject[] {_rescant3,BA.numberCast(double.class, _r55.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT"))))}, "+",1, 0);Debug.locals.put("rescant3", _rescant3);
 BA.debugLineNum = 557;BA.debugLine="rescant3 = NumberFormat2(rescant3, 0, 2, 2, Fal";
Debug.ShouldStop(4096);
_rescant3 = BA.numberCast(double.class, c_principal.__c.runMethod(true,"NumberFormat2",(Object)(_rescant3),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False"))));Debug.locals.put("rescant3", _rescant3);
 }
}Debug.locals.put("r75", _r75);
;
 };
 BA.debugLineNum = 561;BA.debugLine="Log(rescant3)";
Debug.ShouldStop(65536);
c_principal.__c.runVoidMethod ("LogImpl","814287205",BA.NumberToString(_rescant3),0);
 BA.debugLineNum = 562;BA.debugLine="r55.Close";
Debug.ShouldStop(131072);
_r55.runVoidMethod ("Close");
 BA.debugLineNum = 567;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(4194304);
_r5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '1' ")))));Debug.locals.put("r5", _r5);Debug.locals.put("r5", _r5);
 BA.debugLineNum = 568;BA.debugLine="Private rescant4 As Double";
Debug.ShouldStop(8388608);
_rescant4 = RemoteObject.createImmutable(0);Debug.locals.put("rescant4", _rescant4);
 BA.debugLineNum = 569;BA.debugLine="If r5.RowCount > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",_r5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 570;BA.debugLine="r5.Position = 0";
Debug.ShouldStop(33554432);
_r5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 571;BA.debugLine="rescant4 = r5.GetString(\"HVD_COSTO_TOT\")";
Debug.ShouldStop(67108864);
_rescant4 = BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT"))));Debug.locals.put("rescant4", _rescant4);
 };
 BA.debugLineNum = 573;BA.debugLine="Log(rescant4)";
Debug.ShouldStop(268435456);
c_principal.__c.runVoidMethod ("LogImpl","814287217",BA.NumberToString(_rescant4),0);
 BA.debugLineNum = 574;BA.debugLine="r5.Close";
Debug.ShouldStop(536870912);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 576;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(-2147483648);
_r5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT from PEDIDO WHERE PE_TIPO <> 'SOBRANTE' ")))));Debug.locals.put("r5", _r5);Debug.locals.put("r5", _r5);
 BA.debugLineNum = 577;BA.debugLine="Private rescant5 As Double";
Debug.ShouldStop(1);
_rescant5 = RemoteObject.createImmutable(0);Debug.locals.put("rescant5", _rescant5);
 BA.debugLineNum = 578;BA.debugLine="If r5.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_r5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 579;BA.debugLine="r5.Position = 0";
Debug.ShouldStop(4);
_r5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 580;BA.debugLine="rescant5 = r5.GetString(\"PE_COSTO_TOT\")";
Debug.ShouldStop(8);
_rescant5 = BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))));Debug.locals.put("rescant5", _rescant5);
 };
 BA.debugLineNum = 582;BA.debugLine="Log(rescant5)";
Debug.ShouldStop(32);
c_principal.__c.runVoidMethod ("LogImpl","814287226",BA.NumberToString(_rescant5),0);
 BA.debugLineNum = 583;BA.debugLine="r5.Close";
Debug.ShouldStop(64);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 588;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(2048);
_r5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ")))));Debug.locals.put("r5", _r5);Debug.locals.put("r5", _r5);
 BA.debugLineNum = 589;BA.debugLine="Private rescant6 As Double";
Debug.ShouldStop(4096);
_rescant6 = RemoteObject.createImmutable(0);Debug.locals.put("rescant6", _rescant6);
 BA.debugLineNum = 590;BA.debugLine="If r5.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_r5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 591;BA.debugLine="For j4 = 0 To r5.RowCount -1";
Debug.ShouldStop(16384);
{
final int step261 = 1;
final int limit261 = RemoteObject.solve(new RemoteObject[] {_r5.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j4 = 0 ;
for (;(step261 > 0 && _j4 <= limit261) || (step261 < 0 && _j4 >= limit261) ;_j4 = ((int)(0 + _j4 + step261))  ) {
Debug.locals.put("j4", _j4);
 BA.debugLineNum = 592;BA.debugLine="r5.Position = j4";
Debug.ShouldStop(32768);
_r5.runMethod(true,"setPosition",BA.numberCast(int.class, _j4));
 BA.debugLineNum = 593;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(65536);
_r6 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r6 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))))));Debug.locals.put("r6", _r6);Debug.locals.put("r6", _r6);
 BA.debugLineNum = 594;BA.debugLine="r6.Position = 0";
Debug.ShouldStop(131072);
_r6.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 597;BA.debugLine="rescant6 = rescant6 + ((r5.GetString(\"HVD_COSTO";
Debug.ShouldStop(1048576);
_rescant6 = RemoteObject.solve(new RemoteObject[] {_rescant6,(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, (_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))))}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "*",0, 0))}, "+",1, 0);Debug.locals.put("rescant6", _rescant6);
 BA.debugLineNum = 599;BA.debugLine="r6.Close";
Debug.ShouldStop(4194304);
_r6.runVoidMethod ("Close");
 }
}Debug.locals.put("j4", _j4);
;
 };
 BA.debugLineNum = 602;BA.debugLine="If rescant6 = \"NaN\" Then rescant6 = 0";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_rescant6,BA.numberCast(double.class, "NaN"))) { 
_rescant6 = BA.numberCast(double.class, 0);Debug.locals.put("rescant6", _rescant6);};
 BA.debugLineNum = 603;BA.debugLine="LogColor(rescant6,Colors.Red)";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("LogImpl","814287247",BA.NumberToString(_rescant6),c_principal.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 604;BA.debugLine="r5.Close";
Debug.ShouldStop(134217728);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 606;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(536870912);
_r5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' ")))));Debug.locals.put("r5", _r5);Debug.locals.put("r5", _r5);
 BA.debugLineNum = 607;BA.debugLine="Private rescant7 As Double";
Debug.ShouldStop(1073741824);
_rescant7 = RemoteObject.createImmutable(0);Debug.locals.put("rescant7", _rescant7);
 BA.debugLineNum = 608;BA.debugLine="If r5.RowCount > 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",_r5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 609;BA.debugLine="For j5 = 0 To r5.RowCount -1";
Debug.ShouldStop(1);
{
final int step275 = 1;
final int limit275 = RemoteObject.solve(new RemoteObject[] {_r5.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j5 = 0 ;
for (;(step275 > 0 && _j5 <= limit275) || (step275 < 0 && _j5 >= limit275) ;_j5 = ((int)(0 + _j5 + step275))  ) {
Debug.locals.put("j5", _j5);
 BA.debugLineNum = 610;BA.debugLine="r5.Position = j5";
Debug.ShouldStop(2);
_r5.runMethod(true,"setPosition",BA.numberCast(int.class, _j5));
 BA.debugLineNum = 611;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(4);
_r6 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r6 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("'  AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("' PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')"))))));Debug.locals.put("r6", _r6);Debug.locals.put("r6", _r6);
 BA.debugLineNum = 612;BA.debugLine="r6.Position = 0";
Debug.ShouldStop(8);
_r6.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 614;BA.debugLine="rescant7 = rescant7 + ((r5.GetString(\"HVD_COSTO";
Debug.ShouldStop(32);
_rescant7 = RemoteObject.solve(new RemoteObject[] {_rescant7,(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, (_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC")))))}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0)),BA.numberCast(double.class, c_principal._subs.runMethod(true,"_traeconversion" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))))))}, "/",0, 0))}, "*",0, 0))}, "+",1, 0);Debug.locals.put("rescant7", _rescant7);
 BA.debugLineNum = 615;BA.debugLine="r6.Close";
Debug.ShouldStop(64);
_r6.runVoidMethod ("Close");
 }
}Debug.locals.put("j5", _j5);
;
 };
 BA.debugLineNum = 618;BA.debugLine="If rescant7 = \"NaN\" Then rescant7 = 0";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_rescant7,BA.numberCast(double.class, "NaN"))) { 
_rescant7 = BA.numberCast(double.class, 0);Debug.locals.put("rescant7", _rescant7);};
 BA.debugLineNum = 619;BA.debugLine="Log(rescant7)";
Debug.ShouldStop(1024);
c_principal.__c.runVoidMethod ("LogImpl","814287263",BA.NumberToString(_rescant7),0);
 BA.debugLineNum = 620;BA.debugLine="r5.Close";
Debug.ShouldStop(2048);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 623;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\"";
Debug.ShouldStop(16384);
_r55 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r55 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2)")))));Debug.locals.put("r55", _r55);Debug.locals.put("r55", _r55);
 BA.debugLineNum = 624;BA.debugLine="Private rescant10 As Double";
Debug.ShouldStop(32768);
_rescant10 = RemoteObject.createImmutable(0);Debug.locals.put("rescant10", _rescant10);
 BA.debugLineNum = 625;BA.debugLine="Private pztotal As Int";
Debug.ShouldStop(65536);
_pztotal = RemoteObject.createImmutable(0);Debug.locals.put("pztotal", _pztotal);
 BA.debugLineNum = 626;BA.debugLine="If r55.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",_r55.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 627;BA.debugLine="For r75 = 0 To r55.RowCount -1";
Debug.ShouldStop(262144);
{
final int step290 = 1;
final int limit290 = RemoteObject.solve(new RemoteObject[] {_r55.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_r75 = 0 ;
for (;(step290 > 0 && _r75 <= limit290) || (step290 < 0 && _r75 >= limit290) ;_r75 = ((int)(0 + _r75 + step290))  ) {
Debug.locals.put("r75", _r75);
 BA.debugLineNum = 628;BA.debugLine="r55.Position = r75";
Debug.ShouldStop(524288);
_r55.runMethod(true,"setPosition",BA.numberCast(int.class, _r75));
 BA.debugLineNum = 629;BA.debugLine="rescant10 = rescant10 + r55.GetString(\"HVD_COST";
Debug.ShouldStop(1048576);
_rescant10 = RemoteObject.solve(new RemoteObject[] {_rescant10,BA.numberCast(double.class, _r55.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT"))))}, "+",1, 0);Debug.locals.put("rescant10", _rescant10);
 BA.debugLineNum = 630;BA.debugLine="rescant10 = NumberFormat2(rescant10, 0, 2, 2, F";
Debug.ShouldStop(2097152);
_rescant10 = BA.numberCast(double.class, c_principal.__c.runMethod(true,"NumberFormat2",(Object)(_rescant10),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False"))));Debug.locals.put("rescant10", _rescant10);
 BA.debugLineNum = 631;BA.debugLine="pztotal = pztotal +  r55.GetString(\"HVD_CANT\")";
Debug.ShouldStop(4194304);
_pztotal = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_pztotal,BA.numberCast(double.class, _r55.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))))}, "+",1, 0));Debug.locals.put("pztotal", _pztotal);
 }
}Debug.locals.put("r75", _r75);
;
 };
 BA.debugLineNum = 634;BA.debugLine="Log(rescant10)";
Debug.ShouldStop(33554432);
c_principal.__c.runVoidMethod ("LogImpl","814287278",BA.NumberToString(_rescant10),0);
 BA.debugLineNum = 635;BA.debugLine="r55.Close";
Debug.ShouldStop(67108864);
_r55.runVoidMethod ("Close");
 BA.debugLineNum = 648;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(128);
_r5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT, IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO ")))));Debug.locals.put("r5", _r5);Debug.locals.put("r5", _r5);
 BA.debugLineNum = 649;BA.debugLine="Private pztotal2 As Int";
Debug.ShouldStop(256);
_pztotal2 = RemoteObject.createImmutable(0);Debug.locals.put("pztotal2", _pztotal2);
 BA.debugLineNum = 650;BA.debugLine="Private rescant11 As Double";
Debug.ShouldStop(512);
_rescant11 = RemoteObject.createImmutable(0);Debug.locals.put("rescant11", _rescant11);
 BA.debugLineNum = 651;BA.debugLine="If r5.RowCount > 0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",_r5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 652;BA.debugLine="r5.Position = 0";
Debug.ShouldStop(2048);
_r5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 653;BA.debugLine="rescant11 = r5.GetString(\"PE_COSTO_TOT\")";
Debug.ShouldStop(4096);
_rescant11 = BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))));Debug.locals.put("rescant11", _rescant11);
 BA.debugLineNum = 654;BA.debugLine="pztotal2 = pztotal2 +  r5.GetString(\"PE_CANT\")";
Debug.ShouldStop(8192);
_pztotal2 = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_pztotal2,BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))}, "+",1, 0));Debug.locals.put("pztotal2", _pztotal2);
 };
 BA.debugLineNum = 656;BA.debugLine="Log(rescant11)";
Debug.ShouldStop(32768);
c_principal.__c.runVoidMethod ("LogImpl","814287300",BA.NumberToString(_rescant11),0);
 BA.debugLineNum = 657;BA.debugLine="r5.Close";
Debug.ShouldStop(65536);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 659;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s";
Debug.ShouldStop(262144);
_r5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0'  AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2) ")))));Debug.locals.put("r5", _r5);Debug.locals.put("r5", _r5);
 BA.debugLineNum = 660;BA.debugLine="Private pztotal3 As Int";
Debug.ShouldStop(524288);
_pztotal3 = RemoteObject.createImmutable(0);Debug.locals.put("pztotal3", _pztotal3);
 BA.debugLineNum = 661;BA.debugLine="Private rescant12 As Double";
Debug.ShouldStop(1048576);
_rescant12 = RemoteObject.createImmutable(0);Debug.locals.put("rescant12", _rescant12);
 BA.debugLineNum = 662;BA.debugLine="If r5.RowCount > 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",_r5.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 663;BA.debugLine="For j4 = 0 To r5.RowCount -1";
Debug.ShouldStop(4194304);
{
final int step313 = 1;
final int limit313 = RemoteObject.solve(new RemoteObject[] {_r5.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_j4 = 0 ;
for (;(step313 > 0 && _j4 <= limit313) || (step313 < 0 && _j4 >= limit313) ;_j4 = ((int)(0 + _j4 + step313))  ) {
Debug.locals.put("j4", _j4);
 BA.debugLineNum = 664;BA.debugLine="r5.Position = j4";
Debug.ShouldStop(8388608);
_r5.runMethod(true,"setPosition",BA.numberCast(int.class, _j4));
 BA.debugLineNum = 665;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(16777216);
_r6 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r6 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("' "))))));Debug.locals.put("r6", _r6);Debug.locals.put("r6", _r6);
 BA.debugLineNum = 666;BA.debugLine="r6.Position = 0";
Debug.ShouldStop(33554432);
_r6.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 667;BA.debugLine="LogColor(r5.GetString(\"HVD_COSTO_TOT\")&\" / \"& r";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("LogImpl","814287311",RemoteObject.concat(_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT"))),RemoteObject.createImmutable(" / "),_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT"))),RemoteObject.createImmutable(" * "),_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),RemoteObject.createImmutable(" - "),_r6.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),c_principal.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 668;BA.debugLine="LogColor(r6.GetString(\"PE_CANT\"),Colors.Blue)";
Debug.ShouldStop(134217728);
c_principal.__c.runVoidMethod ("LogImpl","814287312",_r6.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),c_principal.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 669;BA.debugLine="rescant12 = rescant12 + ((r5.GetString(\"HVD_COS";
Debug.ShouldStop(268435456);
_rescant12 = RemoteObject.solve(new RemoteObject[] {_rescant12,(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT")))),BA.numberCast(double.class, (_r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))))}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "*",0, 0))}, "+",1, 0);Debug.locals.put("rescant12", _rescant12);
 BA.debugLineNum = 670;BA.debugLine="pztotal3 = pztotal3 +  (r5.GetString(\"HVD_CANT\"";
Debug.ShouldStop(536870912);
_pztotal3 = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_pztotal3,(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),BA.numberCast(double.class, _r5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))))}, "-",1, 0))}, "+",1, 0));Debug.locals.put("pztotal3", _pztotal3);
 BA.debugLineNum = 671;BA.debugLine="Log(rescant12)";
Debug.ShouldStop(1073741824);
c_principal.__c.runVoidMethod ("LogImpl","814287315",BA.NumberToString(_rescant12),0);
 BA.debugLineNum = 672;BA.debugLine="r6.Close";
Debug.ShouldStop(-2147483648);
_r6.runVoidMethod ("Close");
 }
}Debug.locals.put("j4", _j4);
;
 };
 BA.debugLineNum = 675;BA.debugLine="If rescant12 = \"NaN\" Then rescant12 = 0";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_rescant12,BA.numberCast(double.class, "NaN"))) { 
_rescant12 = BA.numberCast(double.class, 0);Debug.locals.put("rescant12", _rescant12);};
 BA.debugLineNum = 676;BA.debugLine="LogColor(rescant12,Colors.Red)";
Debug.ShouldStop(8);
c_principal.__c.runVoidMethod ("LogImpl","814287320",BA.NumberToString(_rescant12),c_principal.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 677;BA.debugLine="r5.Close";
Debug.ShouldStop(16);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 680;BA.debugLine="Private restafaltante As Cursor = Starter.skmt.Ex";
Debug.ShouldStop(128);
_restafaltante = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_restafaltante = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT from PEDIDO where PE_CLIENTEOR = '' AND PE_TIPO = 'FALTANTE'")))));Debug.locals.put("restafaltante", _restafaltante);Debug.locals.put("restafaltante", _restafaltante);
 BA.debugLineNum = 682;BA.debugLine="Private rescant8 As Double = 0";
Debug.ShouldStop(512);
_rescant8 = BA.numberCast(double.class, 0);Debug.locals.put("rescant8", _rescant8);Debug.locals.put("rescant8", _rescant8);
 BA.debugLineNum = 684;BA.debugLine="If restafaltante.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",_restafaltante.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 685;BA.debugLine="restafaltante.Position = 0";
Debug.ShouldStop(4096);
_restafaltante.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 686;BA.debugLine="rescant8 = NumberFormat2(restafaltante.GetDouble";
Debug.ShouldStop(8192);
_rescant8 = BA.numberCast(double.class, c_principal.__c.runMethod(true,"NumberFormat2",(Object)(_restafaltante.runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT")))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False"))));Debug.locals.put("rescant8", _rescant8);
 };
 BA.debugLineNum = 688;BA.debugLine="If rescant8 = \"NaN\" Then rescant8 = 0";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_rescant8,BA.numberCast(double.class, "NaN"))) { 
_rescant8 = BA.numberCast(double.class, 0);Debug.locals.put("rescant8", _rescant8);};
 BA.debugLineNum = 689;BA.debugLine="Log(rescant8)";
Debug.ShouldStop(65536);
c_principal.__c.runVoidMethod ("LogImpl","814287333",BA.NumberToString(_rescant8),0);
 BA.debugLineNum = 690;BA.debugLine="r5.Close";
Debug.ShouldStop(131072);
_r5.runVoidMethod ("Close");
 BA.debugLineNum = 692;BA.debugLine="l_rechazo.text = NumberFormat2((rescant + rescant";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_rechazo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _rescant),_rescant2}, "+",1, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False")))));
 BA.debugLineNum = 693;BA.debugLine="L_MONTOE.Text = NumberFormat2((rescant3 + rescant";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_montoe" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {_rescant3,_rescant4,_rescant5,_rescant6,_rescant7}, "++++",4, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False")))));
 BA.debugLineNum = 694;BA.debugLine="Log((rescant3 &\"   +   \"& rescant4 &\"   +   \"& re";
Debug.ShouldStop(2097152);
c_principal.__c.runVoidMethod ("LogImpl","814287338",(RemoteObject.concat(_rescant3,RemoteObject.createImmutable("   +   "),_rescant4,RemoteObject.createImmutable("   +   "),_rescant5,RemoteObject.createImmutable("   +   "),_rescant6,RemoteObject.createImmutable("   +   "),_rescant7)),0);
 BA.debugLineNum = 697;BA.debugLine="Dim g8 As Cursor = Starter.skmt.ExecQuery(\"SELECT";
Debug.ShouldStop(16777216);
_g8 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_g8 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT FROM HIST_VENTAS"))));Debug.locals.put("g8", _g8);Debug.locals.put("g8", _g8);
 BA.debugLineNum = 698;BA.debugLine="g8.Position = 0";
Debug.ShouldStop(33554432);
_g8.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 699;BA.debugLine="Dim g11 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
Debug.ShouldStop(67108864);
_g11 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_g11 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT count(*) as cuenta FROM kmt_info where gestion <> 0"))));Debug.locals.put("g11", _g11);Debug.locals.put("g11", _g11);
 BA.debugLineNum = 700;BA.debugLine="g11.Position = 0";
Debug.ShouldStop(134217728);
_g11.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 701;BA.debugLine="Dim g12 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
Debug.ShouldStop(268435456);
_g12 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_g12 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT count(*) as cuenta FROM kmt_info where gestion = 2"))));Debug.locals.put("g12", _g12);Debug.locals.put("g12", _g12);
 BA.debugLineNum = 702;BA.debugLine="g12.Position = 0";
Debug.ShouldStop(536870912);
_g12.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 703;BA.debugLine="Dim g13 As Cursor = Starter.skmt.ExecQuery(\"SELEC";
Debug.ShouldStop(1073741824);
_g13 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_g13 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT count(*) as cuenta FROM kmt_info where gestion = 3"))));Debug.locals.put("g13", _g13);Debug.locals.put("g13", _g13);
 BA.debugLineNum = 704;BA.debugLine="g13.Position = 0";
Debug.ShouldStop(-2147483648);
_g13.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 706;BA.debugLine="B4XPages.MainPage.monto_entregadoactual  = Number";
Debug.ShouldStop(2);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_monto_entregadoactual" /*RemoteObject*/ ,c_principal.__c.runMethod(true,"NumberFormat2",(Object)((RemoteObject.solve(new RemoteObject[] {_rescant10,_rescant11,_rescant12}, "++",2, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_principal.__c.getField(true,"False"))));
 BA.debugLineNum = 708;BA.debugLine="B4XPages.MainPage.clientesVisitados = L_MONTOE.Te";
Debug.ShouldStop(8);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_clientesvisitados" /*RemoteObject*/ ,__ref.getField(false,"_l_montoe" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 709;BA.debugLine="B4XPages.MainPage.clientesVenta = l_cuantosc.Text";
Debug.ShouldStop(16);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_clientesventa" /*RemoteObject*/ ,__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 710;BA.debugLine="B4XPages.MainPage.clientesRechazo = l_cuantosn.Te";
Debug.ShouldStop(32);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_clientesrechazo" /*RemoteObject*/ ,__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 711;BA.debugLine="B4XPages.MainPage.clientestotal = l_porvisitar.Te";
Debug.ShouldStop(64);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_clientestotal" /*RemoteObject*/ ,__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 712;BA.debugLine="B4XPages.MainPage.montoActual =  Round2(g8.GetStr";
Debug.ShouldStop(128);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_montoactual" /*RemoteObject*/ ,BA.NumberToString(c_principal.__c.runMethod(true,"Round2",(Object)(BA.numberCast(double.class, _g8.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_COSTO_TOT"))))),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 713;BA.debugLine="B4XPages.MainPage.porVisitar = l_ctast.text";
Debug.ShouldStop(256);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_porvisitar" /*RemoteObject*/ ,__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 714;BA.debugLine="B4XPages.MainPage.visitadostotales = g11.GetStrin";
Debug.ShouldStop(512);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_visitadostotales" /*RemoteObject*/ ,_g11.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("cuenta"))));
 BA.debugLineNum = 716;BA.debugLine="B4XPages.MainPage.entregas = g12.GetString(\"cuent";
Debug.ShouldStop(2048);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_entregas" /*RemoteObject*/ ,_g12.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("cuenta"))));
 BA.debugLineNum = 717;BA.debugLine="B4XPages.MainPage.rechazos = g13.GetString(\"cuent";
Debug.ShouldStop(4096);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_rechazos" /*RemoteObject*/ ,_g13.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("cuenta"))));
 BA.debugLineNum = 718;BA.debugLine="B4XPages.MainPage.montoEntregado = L_MONTOE.text";
Debug.ShouldStop(8192);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_montoentregado" /*RemoteObject*/ ,__ref.getField(false,"_l_montoe" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 719;BA.debugLine="B4XPages.MainPage.montoRechazado = l_rechazo.text";
Debug.ShouldStop(16384);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_montorechazado" /*RemoteObject*/ ,__ref.getField(false,"_l_rechazo" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 721;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
Debug.ShouldStop(65536);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )));
 BA.debugLineNum = 724;BA.debugLine="If l_ctast.Text = 0 And l_porvisitar.Text <> 0 Th";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText"),BA.NumberToString(0)) && RemoteObject.solveBoolean("!",__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 725;BA.debugLine="Label9.Visible = True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_label9" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 726;BA.debugLine="L_MONTOE.Visible = True";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_montoe" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 735;BA.debugLine="b_venta_emp.Visible = True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_b_venta_emp" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 737;BA.debugLine="Label9.Visible = False  '''' PRUEBAS MOVER A FAL";
Debug.ShouldStop(1);
__ref.getField(false,"_label9" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 738;BA.debugLine="L_MONTOE.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_l_montoe" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 739;BA.debugLine="b_venta_emp.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_b_venta_emp" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 };
 BA.debugLineNum = 742;BA.debugLine="If l_ruta.Text = 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 743;BA.debugLine="b_imp_inventario.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_b_imp_inventario" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 745;BA.debugLine="b_imp_inventario.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_b_imp_inventario" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 };
 BA.debugLineNum = 753;BA.debugLine="c = Starter.skmt.ExecQuery2(\"select CAT_VA_VALOR";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._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("MACIMP")}))));
 BA.debugLineNum = 754;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 755;BA.debugLine="c.Position = 0";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 756;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO";
Debug.ShouldStop(524288);
c_principal._starter._mac_impresora /*RemoteObject*/  = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR")));
 };
 BA.debugLineNum = 758;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",c_principal._starter._mac_impresora /*RemoteObject*/ ,BA.ObjectToString(""))) { 
c_principal._starter._mac_impresora /*RemoteObject*/  = BA.ObjectToString("0");};
 BA.debugLineNum = 760;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
Debug.ShouldStop(8388608);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(RemoteObject.createImmutable("Printer1")));
 BA.debugLineNum = 761;BA.debugLine="If Printer1.IsConnected = False Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_isconnected" /*RemoteObject*/ ),c_principal.__c.getField(true,"False"))) { 
 }else {
 BA.debugLineNum = 765;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(268435456);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 766;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(536870912);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 767;BA.debugLine="Log(\"2\")";
Debug.ShouldStop(1073741824);
c_principal.__c.runVoidMethod ("LogImpl","814287411",RemoteObject.createImmutable("2"),0);
 };
 BA.debugLineNum = 771;BA.debugLine="End Sub";
Debug.ShouldStop(4);
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_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2218);
if (RapidSub.canDelegate("b4xpage_closerequest")) { return __ref.runUserSub(false, "c_principal","b4xpage_closerequest", __ref);}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(null,__ref);
rsub.remoteResumableSub = anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSubForFilter();
rsub.resume(null, null);
return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.keywords.Common.ResumableSubWrapper"), rsub.remoteResumableSub);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_principal parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
reparto_izca.keymon.lat.c_principal parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2218);
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 = 2220;BA.debugLine="If Panel1.visible Then";
Debug.ShouldStop(2048);
if (true) break;

case 1:
//if
this.state = 10;
if (__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 3;
}else 
{ BA.debugLineNum = 2223;BA.debugLine="Else If P_CIEGO.Visible Then";
Debug.ShouldStop(16384);
if (__ref.getField(false,"_p_ciego" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 5;
}else 
{ BA.debugLineNum = 2225;BA.debugLine="Else If p_prod.Visible Then";
Debug.ShouldStop(65536);
if (__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 7;
}else {
this.state = 9;
}}}
if (true) break;

case 3:
//C
this.state = 10;
 BA.debugLineNum = 2221;BA.debugLine="Log(\"PANEL1 VISIBLE\")";
Debug.ShouldStop(4096);
parent.__c.runVoidMethod ("LogImpl","814942211",RemoteObject.createImmutable("PANEL1 VISIBLE"),0);
 BA.debugLineNum = 2222;BA.debugLine="B_REGRESA_Click";
Debug.ShouldStop(8192);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b_regresa_click" /*RemoteObject*/ );
 if (true) break;

case 5:
//C
this.state = 10;
 BA.debugLineNum = 2224;BA.debugLine="P_CIEGO.Visible = False";
Debug.ShouldStop(32768);
__ref.getField(false,"_p_ciego" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 7:
//C
this.state = 10;
 BA.debugLineNum = 2226;BA.debugLine="p_prod.Visible = False";
Debug.ShouldStop(131072);
__ref.getField(false,"_p_prod" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 9:
//C
this.state = 10;
 BA.debugLineNum = 2228;BA.debugLine="B4XPages.ShowPage(\"Login\")";
Debug.ShouldStop(524288);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Login")));
 if (true) break;

case 10:
//C
this.state = -1;
;
 BA.debugLineNum = 2231;BA.debugLine="Return False";
Debug.ShouldStop(4194304);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 BA.debugLineNum = 2232;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _b4xpage_created(RemoteObject __ref,RemoteObject _root1) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Created (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,140);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_principal","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 140;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(2048);
 BA.debugLineNum = 141;BA.debugLine="Root = Root1";
Debug.ShouldStop(4096);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 143;BA.debugLine="Root.LoadLayout(\"principal\")";
Debug.ShouldStop(16384);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("principal")),__ref.getField(false, "ba"));
 BA.debugLineNum = 144;BA.debugLine="EJECUTANDO=1";
Debug.ShouldStop(32768);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 145;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
Debug.ShouldStop(65536);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )));
 BA.debugLineNum = 148;BA.debugLine="img2.Visible =False";
Debug.ShouldStop(524288);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 149;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(1048576);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 150;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(2097152);
__ref.setField ("_fecha" /*RemoteObject*/ ,c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 152;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN";
Debug.ShouldStop(8388608);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select count(*) as CUANTOS from pedido_cliente"))));
 BA.debugLineNum = 153;BA.debugLine="b.Position=0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 154;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
Debug.ShouldStop(33554432);
__ref.setField ("_cuantos" /*RemoteObject*/ ,__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))));
 BA.debugLineNum = 155;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA";
Debug.ShouldStop(67108864);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND  CAT_CL_RUTA <> 1000"))));
 BA.debugLineNum = 156;BA.debugLine="D.Position=0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 157;BA.debugLine="b.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 158;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_";
Debug.ShouldStop(536870912);
__ref.getField(false,"_e" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000"))));
 BA.debugLineNum = 159;BA.debugLine="e.Position=0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 160;BA.debugLine="If Cuantos = 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos" /*RemoteObject*/ ),BA.NumberToString(0))) { 
 BA.debugLineNum = 161;BA.debugLine="l_aLiquidar.Text = 0";
Debug.ShouldStop(1);
__ref.getField(false,"_l_aliquidar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 162;BA.debugLine="l_cuantosc.Text = 0";
Debug.ShouldStop(2);
__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 163;BA.debugLine="l_cuantosn.Text = 0";
Debug.ShouldStop(4);
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 164;BA.debugLine="drop = 0";
Debug.ShouldStop(8);
__ref.setField ("_drop" /*RemoteObject*/ ,BA.numberCast(double.class, 0));
 BA.debugLineNum = 165;BA.debugLine="l_montoSalida.Text = 0";
Debug.ShouldStop(16);
__ref.getField(false,"_l_montosalida" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 166;BA.debugLine="efectiva = 0";
Debug.ShouldStop(32);
__ref.setField ("_efectiva" /*RemoteObject*/ ,BA.numberCast(double.class, 0));
 BA.debugLineNum = 168;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
Debug.ShouldStop(128);
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_VISITAR")))));
 BA.debugLineNum = 169;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
Debug.ShouldStop(256);
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR")))));
 }else {
 };
 BA.debugLineNum = 188;BA.debugLine="b=Starter.skmt.ExecQuery(\"select id_almacen from";
Debug.ShouldStop(134217728);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select id_almacen from CAT_ALMACEN"))));
 BA.debugLineNum = 189;BA.debugLine="If b.RowCount > 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 191;BA.debugLine="b.Position = 0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 193;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(1);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 194;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 195;BA.debugLine="cmd.Name = \"select_coords_almacen_mards\"";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_coords_almacen_mards"));
 BA.debugLineNum = 196;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"ID";
Debug.ShouldStop(8);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))))}));
 BA.debugLineNum = 197;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
Debug.ShouldStop(16);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("coords_almacen"))));
 };
 BA.debugLineNum = 199;BA.debugLine="B4XPages.MainPage.usuario=Subs.dameUsuarioDeDB";
Debug.ShouldStop(64);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_usuario" /*RemoteObject*/ ,c_principal._subs.runMethod(true,"_dameusuariodedb" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 200;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
Debug.ShouldStop(128);
__ref.getField(false,"_btadmin" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("BlueTeeth")));
 BA.debugLineNum = 201;BA.debugLine="cmp20.Initialize(\"Printer\")";
Debug.ShouldStop(256);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(RemoteObject.createImmutable("Printer")));
 BA.debugLineNum = 202;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _btn_ubicar_ru_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Btn_Ubicar_Ru_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2585);
if (RapidSub.canDelegate("btn_ubicar_ru_click")) { return __ref.runUserSub(false, "c_principal","btn_ubicar_ru_click", __ref);}
 BA.debugLineNum = 2585;BA.debugLine="Sub Btn_Ubicar_Ru_Click";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 2586;BA.debugLine="If b_check.Visible = True Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b_check" /*RemoteObject*/ ).runMethod(true,"getVisible"),c_principal.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2587;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Favor de hacer el checklist.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 2590;BA.debugLine="StartActivity(MAPA_RUTAS)";
Debug.ShouldStop(536870912);
c_principal.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((c_principal._mapa_rutas.getObject())));
 };
 BA.debugLineNum = 2592;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _busca_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("BUSCA_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2261);
if (RapidSub.canDelegate("busca_click")) { return __ref.runUserSub(false, "c_principal","busca_click", __ref);}
 BA.debugLineNum = 2261;BA.debugLine="Sub BUSCA_Click";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 2262;BA.debugLine="If b_check.Visible = True Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b_check" /*RemoteObject*/ ).runMethod(true,"getVisible"),c_principal.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2263;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten";
Debug.ShouldStop(4194304);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Favor de hacer el checklist.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 2266;BA.debugLine="B4XPages.ShowPage(\"Buscar\")";
Debug.ShouldStop(33554432);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Buscar")));
 };
 BA.debugLineNum = 2268;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cargar____click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("cargar____Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,1402);
if (RapidSub.canDelegate("cargar____click")) { return __ref.runUserSub(false, "c_principal","cargar____click", __ref);}
RemoteObject _pedidodiaanterior = RemoteObject.createImmutable(false);
RemoteObject _fecha2 = null;
RemoteObject _fecha3 = null;
RemoteObject _dia = RemoteObject.createImmutable("");
RemoteObject _dia2 = RemoteObject.createImmutable("");
 BA.debugLineNum = 1402;BA.debugLine="Sub cargar____Click";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 1403;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
Debug.ShouldStop(67108864);
_pedidodiaanterior = c_principal.__c.getField(true,"False");Debug.locals.put("pedidodiaanterior", _pedidodiaanterior);Debug.locals.put("pedidodiaanterior", _pedidodiaanterior);
 BA.debugLineNum = 1404;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select";
Debug.ShouldStop(134217728);
c_principal._cp = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_principal._cp = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select * from NOVENTA"))));__ref.setField("_cp",c_principal._cp);
 BA.debugLineNum = 1405;BA.debugLine="If cp.RowCount > 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_cp" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1406;BA.debugLine="cp.Position = 0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cp" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1407;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
Debug.ShouldStop(1073741824);
c_principal._fecha = __ref.getField(false,"_cp" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_FECHA")));__ref.setField("_fecha",c_principal._fecha);
 BA.debugLineNum = 1408;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
Debug.ShouldStop(-2147483648);
c_principal.__c.runVoidMethod ("LogImpl","814811142",__ref.getField(false,"_cp" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_FECHA"))),0);
 BA.debugLineNum = 1409;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
Debug.ShouldStop(1);
_fecha2 = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(__ref.getField(true,"_fecha" /*RemoteObject*/ )));Debug.locals.put("fecha2", _fecha2);Debug.locals.put("fecha2", _fecha2);
 BA.debugLineNum = 1410;BA.debugLine="Log(fecha2(0))";
Debug.ShouldStop(2);
c_principal.__c.runVoidMethod ("LogImpl","814811144",_fecha2.getArrayElement(true,BA.numberCast(int.class, 0)),0);
 BA.debugLineNum = 1411;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
Debug.ShouldStop(4);
_fecha3 = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("/")),(Object)(_fecha2.getArrayElement(true,BA.numberCast(int.class, 0))));Debug.locals.put("fecha3", _fecha3);Debug.locals.put("fecha3", _fecha3);
 BA.debugLineNum = 1412;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
Debug.ShouldStop(8);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyyyMMdd"));
 BA.debugLineNum = 1413;BA.debugLine="DateTime.TimeFormat = \"\"";
Debug.ShouldStop(16);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString(""));
 BA.debugLineNum = 1414;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
Debug.ShouldStop(32);
_dia = RemoteObject.concat(_fecha3.getArrayElement(true,BA.numberCast(int.class, 2)),_fecha3.getArrayElement(true,BA.numberCast(int.class, 0)),_fecha3.getArrayElement(true,BA.numberCast(int.class, 1)));Debug.locals.put("dia", _dia);Debug.locals.put("dia", _dia);
 BA.debugLineNum = 1415;BA.debugLine="Log(dia)";
Debug.ShouldStop(64);
c_principal.__c.runVoidMethod ("LogImpl","814811149",_dia,0);
 BA.debugLineNum = 1416;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(128);
_dia2 = c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("dia2", _dia2);Debug.locals.put("dia2", _dia2);
 BA.debugLineNum = 1417;BA.debugLine="Log(dia & \" , \" & dia2)";
Debug.ShouldStop(256);
c_principal.__c.runVoidMethod ("LogImpl","814811151",RemoteObject.concat(_dia,RemoteObject.createImmutable(" , "),_dia2),0);
 BA.debugLineNum = 1418;BA.debugLine="If dia < dia2 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _dia),BA.numberCast(double.class, _dia2))) { 
 BA.debugLineNum = 1419;BA.debugLine="pedidodiaanterior = True";
Debug.ShouldStop(1024);
_pedidodiaanterior = c_principal.__c.getField(true,"True");Debug.locals.put("pedidodiaanterior", _pedidodiaanterior);
 };
 };
 BA.debugLineNum = 1422;BA.debugLine="If Not (pedidodiaanterior) Then";
Debug.ShouldStop(8192);
if (c_principal.__c.runMethod(true,"Not",(Object)(_pedidodiaanterior)).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1423;BA.debugLine="Log(\"CUMPLE\")";
Debug.ShouldStop(16384);
c_principal.__c.runVoidMethod ("LogImpl","814811157",RemoteObject.createImmutable("CUMPLE"),0);
 BA.debugLineNum = 1424;BA.debugLine="EJECUTANDO = 1";
Debug.ShouldStop(32768);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1425;BA.debugLine="reqs.Initialize";
Debug.ShouldStop(65536);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1426;BA.debugLine="TOPE = 0";
Debug.ShouldStop(131072);
__ref.setField ("_tope" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1427;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
Debug.ShouldStop(262144);
c_principal.__c.runVoidMethod ("LogImpl","814811161",(RemoteObject.concat(RemoteObject.createImmutable("ReqServer = "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_principal.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1428;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
Debug.ShouldStop(524288);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )));
 BA.debugLineNum = 1430;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2097152);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1431;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1432;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_drop_rep_IZCA2"));
 BA.debugLineNum = 1433;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {8},new Object[] {(c_principal._subs.runMethod(true,"_dameusuariodedb" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText")),(c_principal._subs.runMethod(false,"_traeentregados" /*RemoteObject*/ ,__ref.getField(false, "ba")).getObject()),(c_principal._subs.runMethod(false,"_traerechazados" /*RemoteObject*/ ,__ref.getField(false, "ba")).getObject()),RemoteObject.createImmutable(("CARGA")),(c_principal.__c.getField(false,"Application").runMethod(true,"getVersionName"))}));
 BA.debugLineNum = 1434;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
Debug.ShouldStop(33554432);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_drop"))));
 BA.debugLineNum = 1437;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
Debug.ShouldStop(268435456);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from kmt_info")));
 BA.debugLineNum = 1438;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
Debug.ShouldStop(536870912);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cod_result")));
 BA.debugLineNum = 1439;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
Debug.ShouldStop(1073741824);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from hist_gest")));
 BA.debugLineNum = 1440;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
Debug.ShouldStop(-2147483648);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_DETALLES_PAQ")));
 BA.debugLineNum = 1441;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
Debug.ShouldStop(1);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from telefonos")));
 BA.debugLineNum = 1443;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
Debug.ShouldStop(4);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PUNTEO_GPS")));
 BA.debugLineNum = 1444;BA.debugLine="If l_ruta.Text = \"0\" Then '";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 1445;BA.debugLine="Log(\"*********************  No hay ruta, BORRAM";
Debug.ShouldStop(16);
c_principal.__c.runVoidMethod ("LogImpl","814811179",RemoteObject.createImmutable("*********************  No hay ruta, BORRAMOS TODO"),0);
 BA.debugLineNum = 1446;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
Debug.ShouldStop(32);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod")));
 BA.debugLineNum = 1447;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
Debug.ShouldStop(64);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod3")));
 BA.debugLineNum = 1448;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
Debug.ShouldStop(128);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from REPARTO")));
 BA.debugLineNum = 1449;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
Debug.ShouldStop(256);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS")));
 BA.debugLineNum = 1450;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
Debug.ShouldStop(512);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS2")));
 BA.debugLineNum = 1451;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
Debug.ShouldStop(1024);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from NOVENTA")));
 }else {
 BA.debugLineNum = 1453;BA.debugLine="Log(\"*********************  Hay ruta, NO BORRAM";
Debug.ShouldStop(4096);
c_principal.__c.runVoidMethod ("LogImpl","814811187",RemoteObject.createImmutable("*********************  Hay ruta, NO BORRAMOS TODO"),0);
 };
 BA.debugLineNum = 1457;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 1458;BA.debugLine="c.Position = 0";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1459;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(262144);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1461;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1048576);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1462;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\"";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_punteo_mards_re_REPG"));
 BA.debugLineNum = 1463;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1464;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
Debug.ShouldStop(8388608);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("punteo"))));
 BA.debugLineNum = 1465;BA.debugLine="Log($\"Pedimos Punteo\"$)";
Debug.ShouldStop(16777216);
c_principal.__c.runVoidMethod ("LogImpl","814811199",(RemoteObject.createImmutable("Pedimos Punteo")),0);
 BA.debugLineNum = 1466;BA.debugLine="reqs.Add(\"punteo\")";
Debug.ShouldStop(33554432);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("punteo"))));
 BA.debugLineNum = 1469;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1470;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\"";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_almacen_mards_re_REPG"));
 BA.debugLineNum = 1471;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1472;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprod"))));
 BA.debugLineNum = 1473;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
Debug.ShouldStop(1);
c_principal.__c.runVoidMethod ("LogImpl","814811207",(RemoteObject.concat(RemoteObject.createImmutable("Pedimos gunaprod - "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_almacen" /*RemoteObject*/ )))),RemoteObject.createImmutable(", "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1474;BA.debugLine="reqs.Add(\"gunaprod\")";
Debug.ShouldStop(2);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("gunaprod"))));
 BA.debugLineNum = 1478;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1479;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cliente_mards_re_REPG"));
 BA.debugLineNum = 1480;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {5},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1481;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
Debug.ShouldStop(256);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("kmt_datos"))));
 BA.debugLineNum = 1482;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethod ("LogImpl","814811216",(RemoteObject.createImmutable("Pedimos kmt_datos")),0);
 BA.debugLineNum = 1483;BA.debugLine="reqs.Add(\"kmt_datos\")";
Debug.ShouldStop(1024);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("kmt_datos"))));
 BA.debugLineNum = 1485;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4096);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1486;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\"";
Debug.ShouldStop(8192);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_ventad_mards_re_REPG"));
 BA.debugLineNum = 1487;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1488;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
Debug.ShouldStop(32768);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_datos"))));
 BA.debugLineNum = 1489;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
Debug.ShouldStop(65536);
c_principal.__c.runVoidMethod ("LogImpl","814811223",(RemoteObject.createImmutable("Pedimos hist_datos")),0);
 BA.debugLineNum = 1490;BA.debugLine="reqs.Add(\"hist_datos\")";
Debug.ShouldStop(131072);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("hist_datos"))));
 BA.debugLineNum = 1507;BA.debugLine="If ALMACEN = \"32\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("32"))) { 
 BA.debugLineNum = 1508;BA.debugLine="ALMACEN = \"33\"";
Debug.ShouldStop(8);
__ref.setField ("_almacen" /*RemoteObject*/ ,BA.ObjectToString("33"));
 BA.debugLineNum = 1509;BA.debugLine="cargo = 2";
Debug.ShouldStop(16);
__ref.setField ("_cargo" /*RemoteObject*/ ,BA.NumberToString(2));
 BA.debugLineNum = 1510;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1511;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_punteo_mards_re_REPG"));
 BA.debugLineNum = 1512;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1513;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
Debug.ShouldStop(256);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("punteo"))));
 BA.debugLineNum = 1514;BA.debugLine="reqs.Add(\"punteo\")";
Debug.ShouldStop(512);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("punteo"))));
 BA.debugLineNum = 1516;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2048);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1517;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_almacen_mards_re_REPG"));
 BA.debugLineNum = 1518;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_rut";
Debug.ShouldStop(8192);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1519;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
Debug.ShouldStop(16384);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprod"))));
 BA.debugLineNum = 1520;BA.debugLine="reqs.Add(\"gunaprod\")";
Debug.ShouldStop(32768);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("gunaprod"))));
 BA.debugLineNum = 1522;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1523;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cliente_mards_re_REPG"));
 BA.debugLineNum = 1524;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {5},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1525;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("kmt_datos"))));
 BA.debugLineNum = 1526;BA.debugLine="reqs.Add(\"kmt_datos\")";
Debug.ShouldStop(2097152);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("kmt_datos"))));
 BA.debugLineNum = 1528;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1529;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\"";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_ventad_mards_re_REPG"));
 BA.debugLineNum = 1530;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1531;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
Debug.ShouldStop(67108864);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_datos"))));
 BA.debugLineNum = 1532;BA.debugLine="reqs.Add(\"hist_datos\")";
Debug.ShouldStop(134217728);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("hist_datos"))));
 };
 BA.debugLineNum = 1566;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA";
Debug.ShouldStop(536870912);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))));
 BA.debugLineNum = 1567;BA.debugLine="d.Position=0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1568;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
Debug.ShouldStop(-2147483648);
__ref.setField ("_cuantos_noventa" /*RemoteObject*/ ,__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_NOVENTA"))));
 BA.debugLineNum = 1569;BA.debugLine="d.Close";
Debug.ShouldStop(1);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1570;BA.debugLine="cargar.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1571;BA.debugLine="Subir.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1572;BA.debugLine="connecta.Visible = True";
Debug.ShouldStop(8);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1573;BA.debugLine="inv.Visible = False";
Debug.ShouldStop(16);
__ref.getField(false,"_inv" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1574;BA.debugLine="ToastMessageShow(\"Se actualizarán los datos, est";
Debug.ShouldStop(32);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Se actualizarán los datos, este proceso podria tardar hasta un minuto, gracias")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1575;BA.debugLine="ProgressDialogShow2(\"Descargando rutas, espere u";
Debug.ShouldStop(64);
c_principal.__c.runVoidMethod ("ProgressDialogShow2",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence("Descargando rutas, espere un momento.")),(Object)(c_principal.__c.getField(true,"False")));
 BA.debugLineNum = 1576;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"";
Debug.ShouldStop(128);
if (c_principal.__c.runMethod(true,"Not",(Object)(__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_isconnectedtointernet" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) { 
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No hay conexión a Internet")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Revisa tu conexión"))),__ref.getField(false, "ba"));};
 }else {
 BA.debugLineNum = 1580;BA.debugLine="Log(\"XXXX\")";
Debug.ShouldStop(2048);
c_principal.__c.runVoidMethod ("LogImpl","814811314",RemoteObject.createImmutable("XXXX"),0);
 BA.debugLineNum = 1581;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
Debug.ShouldStop(4096);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 1584;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cargar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("cargar_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,1237);
if (RapidSub.canDelegate("cargar_click")) { return __ref.runUserSub(false, "c_principal","cargar_click", __ref);}
RemoteObject _pedidodiaanterior = RemoteObject.createImmutable(false);
RemoteObject _fecha2 = null;
RemoteObject _fecha3 = null;
RemoteObject _dia = RemoteObject.createImmutable("");
RemoteObject _dia2 = RemoteObject.createImmutable("");
 BA.debugLineNum = 1237;BA.debugLine="Sub cargar_Click";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 1238;BA.debugLine="Dim pedidodiaanterior As Boolean = False";
Debug.ShouldStop(2097152);
_pedidodiaanterior = c_principal.__c.getField(true,"False");Debug.locals.put("pedidodiaanterior", _pedidodiaanterior);Debug.locals.put("pedidodiaanterior", _pedidodiaanterior);
 BA.debugLineNum = 1239;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select";
Debug.ShouldStop(4194304);
c_principal._cp = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
c_principal._cp = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select * from NOVENTA"))));__ref.setField("_cp",c_principal._cp);
 BA.debugLineNum = 1240;BA.debugLine="If cp.RowCount > 0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_cp" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1241;BA.debugLine="cp.Position = 0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cp" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1242;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA";
Debug.ShouldStop(33554432);
c_principal._fecha = __ref.getField(false,"_cp" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_FECHA")));__ref.setField("_fecha",c_principal._fecha);
 BA.debugLineNum = 1243;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("LogImpl","814745606",__ref.getField(false,"_cp" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_FECHA"))),0);
 BA.debugLineNum = 1244;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)";
Debug.ShouldStop(134217728);
_fecha2 = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(__ref.getField(true,"_fecha" /*RemoteObject*/ )));Debug.locals.put("fecha2", _fecha2);Debug.locals.put("fecha2", _fecha2);
 BA.debugLineNum = 1245;BA.debugLine="Log(fecha2(0))";
Debug.ShouldStop(268435456);
c_principal.__c.runVoidMethod ("LogImpl","814745608",_fecha2.getArrayElement(true,BA.numberCast(int.class, 0)),0);
 BA.debugLineNum = 1246;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2(";
Debug.ShouldStop(536870912);
_fecha3 = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("/")),(Object)(_fecha2.getArrayElement(true,BA.numberCast(int.class, 0))));Debug.locals.put("fecha3", _fecha3);Debug.locals.put("fecha3", _fecha3);
 BA.debugLineNum = 1247;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
Debug.ShouldStop(1073741824);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyyyMMdd"));
 BA.debugLineNum = 1248;BA.debugLine="DateTime.TimeFormat = \"\"";
Debug.ShouldStop(-2147483648);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString(""));
 BA.debugLineNum = 1249;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1";
Debug.ShouldStop(1);
_dia = RemoteObject.concat(_fecha3.getArrayElement(true,BA.numberCast(int.class, 2)),_fecha3.getArrayElement(true,BA.numberCast(int.class, 0)),_fecha3.getArrayElement(true,BA.numberCast(int.class, 1)));Debug.locals.put("dia", _dia);Debug.locals.put("dia", _dia);
 BA.debugLineNum = 1250;BA.debugLine="Log(dia)";
Debug.ShouldStop(2);
c_principal.__c.runVoidMethod ("LogImpl","814745613",_dia,0);
 BA.debugLineNum = 1251;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(4);
_dia2 = c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("dia2", _dia2);Debug.locals.put("dia2", _dia2);
 BA.debugLineNum = 1252;BA.debugLine="Log(dia & \" , \" & dia2)";
Debug.ShouldStop(8);
c_principal.__c.runVoidMethod ("LogImpl","814745615",RemoteObject.concat(_dia,RemoteObject.createImmutable(" , "),_dia2),0);
 BA.debugLineNum = 1253;BA.debugLine="If dia < dia2 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, _dia),BA.numberCast(double.class, _dia2))) { 
 BA.debugLineNum = 1254;BA.debugLine="pedidodiaanterior = True";
Debug.ShouldStop(32);
_pedidodiaanterior = c_principal.__c.getField(true,"True");Debug.locals.put("pedidodiaanterior", _pedidodiaanterior);
 };
 };
 BA.debugLineNum = 1257;BA.debugLine="If Not (pedidodiaanterior) Then";
Debug.ShouldStop(256);
if (c_principal.__c.runMethod(true,"Not",(Object)(_pedidodiaanterior)).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1258;BA.debugLine="P_carga.Visible = True";
Debug.ShouldStop(512);
__ref.getField(false,"_p_carga" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1259;BA.debugLine="P_carga.Width = Root.Width";
Debug.ShouldStop(1024);
__ref.getField(false,"_p_carga" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 1260;BA.debugLine="P_carga.Height = Root.Height";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_carga" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 1261;BA.debugLine="l_carga2.Text = \"CARGANDO\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_carga2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 BA.debugLineNum = 1262;BA.debugLine="L_carga.Text = \"CARGANDO\"";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_carga" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 BA.debugLineNum = 1263;BA.debugLine="PB_carga.Progress = 0";
Debug.ShouldStop(16384);
__ref.getField(false,"_pb_carga" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1264;BA.debugLine="PB_carga2.Progress = 0";
Debug.ShouldStop(32768);
__ref.getField(false,"_pb_carga2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1265;BA.debugLine="Log(\"CUMPLE\")";
Debug.ShouldStop(65536);
c_principal.__c.runVoidMethod ("LogImpl","814745628",RemoteObject.createImmutable("CUMPLE"),0);
 BA.debugLineNum = 1266;BA.debugLine="EJECUTANDO = 1";
Debug.ShouldStop(131072);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1267;BA.debugLine="reqs.Initialize";
Debug.ShouldStop(262144);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1268;BA.debugLine="TOPE = 0";
Debug.ShouldStop(524288);
__ref.setField ("_tope" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1269;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve";
Debug.ShouldStop(1048576);
c_principal.__c.runVoidMethod ("LogImpl","814745632",(RemoteObject.concat(RemoteObject.createImmutable("ReqServer = "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_principal.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1270;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv";
Debug.ShouldStop(2097152);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )));
 BA.debugLineNum = 1272;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(8388608);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1273;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1274;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_drop_rep_IZCA2"));
 BA.debugLineNum = 1275;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {8},new Object[] {(c_principal._subs.runMethod(true,"_dameusuariodedb" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText")),(c_principal._subs.runMethod(false,"_traeentregados" /*RemoteObject*/ ,__ref.getField(false, "ba")).getObject()),(c_principal._subs.runMethod(false,"_traerechazados" /*RemoteObject*/ ,__ref.getField(false, "ba")).getObject()),RemoteObject.createImmutable(("CARGA")),(c_principal.__c.getField(false,"Application").runMethod(true,"getVersionName"))}));
 BA.debugLineNum = 1276;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
Debug.ShouldStop(134217728);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_drop"))));
 BA.debugLineNum = 1279;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\"";
Debug.ShouldStop(1073741824);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from kmt_info")));
 BA.debugLineNum = 1280;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul";
Debug.ShouldStop(-2147483648);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cod_result")));
 BA.debugLineNum = 1281;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest";
Debug.ShouldStop(1);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from hist_gest")));
 BA.debugLineNum = 1282;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL";
Debug.ShouldStop(2);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_DETALLES_PAQ")));
 BA.debugLineNum = 1283;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos";
Debug.ShouldStop(4);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from telefonos")));
 BA.debugLineNum = 1284;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap";
Debug.ShouldStop(8);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod")));
 BA.debugLineNum = 1285;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap";
Debug.ShouldStop(16);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod3")));
 BA.debugLineNum = 1287;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP";
Debug.ShouldStop(64);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PUNTEO_GPS")));
 BA.debugLineNum = 1288;BA.debugLine="If l_ruta.Text = \"0\" Then '";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 1289;BA.debugLine="Log(\"*********************  No hay ruta, BORRAM";
Debug.ShouldStop(256);
c_principal.__c.runVoidMethod ("LogImpl","814745652",RemoteObject.createImmutable("*********************  No hay ruta, BORRAMOS TODO"),0);
 BA.debugLineNum = 1290;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
Debug.ShouldStop(512);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from REPARTO")));
 BA.debugLineNum = 1291;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
Debug.ShouldStop(1024);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS")));
 BA.debugLineNum = 1292;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
Debug.ShouldStop(2048);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS2")));
 BA.debugLineNum = 1293;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\"";
Debug.ShouldStop(4096);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from NOVENTA")));
 BA.debugLineNum = 1294;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
Debug.ShouldStop(8192);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM ABONOSP")));
 }else {
 BA.debugLineNum = 1296;BA.debugLine="Log(\"*********************  Hay ruta, NO BORRAM";
Debug.ShouldStop(32768);
c_principal.__c.runVoidMethod ("LogImpl","814745659",RemoteObject.createImmutable("*********************  Hay ruta, NO BORRAMOS TODO"),0);
 };
 BA.debugLineNum = 1300;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 1301;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1302;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(2097152);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1304;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1305;BA.debugLine="cmd.Name = \"select_punteo_re_REPG_IZCA\"";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_punteo_re_REPG_IZCA"));
 BA.debugLineNum = 1306;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1307;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")";
Debug.ShouldStop(67108864);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("punteo"))));
 BA.debugLineNum = 1308;BA.debugLine="Log($\"Pedimos Punteo\"$)";
Debug.ShouldStop(134217728);
c_principal.__c.runVoidMethod ("LogImpl","814745671",(RemoteObject.createImmutable("Pedimos Punteo")),0);
 BA.debugLineNum = 1309;BA.debugLine="reqs.Add(\"punteo\")";
Debug.ShouldStop(268435456);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("punteo"))));
 BA.debugLineNum = 1311;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1312;BA.debugLine="cmd.Name = \"select_almacen_IZCA_re_REPG2\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_almacen_IZCA_re_REPG2"));
 BA.debugLineNum = 1313;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1314;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")";
Debug.ShouldStop(2);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprod"))));
 BA.debugLineNum = 1315;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te";
Debug.ShouldStop(4);
c_principal.__c.runVoidMethod ("LogImpl","814745678",(RemoteObject.concat(RemoteObject.createImmutable("Pedimos gunaprod - "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_almacen" /*RemoteObject*/ )))),RemoteObject.createImmutable(", "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1316;BA.debugLine="reqs.Add(\"gunaprod\")";
Debug.ShouldStop(8);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("gunaprod"))));
 BA.debugLineNum = 1323;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1024);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1324;BA.debugLine="cmd.Name = \"select_cliente_IZCA_re_REPG\"";
Debug.ShouldStop(2048);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cliente_IZCA_re_REPG"));
 BA.debugLineNum = 1325;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
Debug.ShouldStop(4096);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {5},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1326;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")";
Debug.ShouldStop(8192);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("kmt_datos"))));
 BA.debugLineNum = 1327;BA.debugLine="Log($\"Pedimos kmt_datos\"$)";
Debug.ShouldStop(16384);
c_principal.__c.runVoidMethod ("LogImpl","814745690",(RemoteObject.createImmutable("Pedimos kmt_datos")),0);
 BA.debugLineNum = 1328;BA.debugLine="reqs.Add(\"kmt_datos\")";
Debug.ShouldStop(32768);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("kmt_datos"))));
 BA.debugLineNum = 1330;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1331;BA.debugLine="cmd.Name = \"select_ventad2_IZCA_re_REPG\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_ventad2_IZCA_re_REPG"));
 BA.debugLineNum = 1332;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1333;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_datos"))));
 BA.debugLineNum = 1334;BA.debugLine="Log($\"Pedimos hist_datos\"$)";
Debug.ShouldStop(2097152);
c_principal.__c.runVoidMethod ("LogImpl","814745697",(RemoteObject.createImmutable("Pedimos hist_datos")),0);
 BA.debugLineNum = 1335;BA.debugLine="reqs.Add(\"hist_datos\")";
Debug.ShouldStop(4194304);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("hist_datos"))));
 BA.debugLineNum = 1337;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1338;BA.debugLine="cmd.Name = \"select_coords_almacen_IZCA\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_coords_almacen_IZCA"));
 BA.debugLineNum = 1339;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1340;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen";
Debug.ShouldStop(134217728);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("coords_almacen"))));
 BA.debugLineNum = 1342;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1343;BA.debugLine="cmd.Name = \"select_cat_gunaprod3_IZCA\"";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_gunaprod3_IZCA"));
 BA.debugLineNum = 1344;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1345;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod3\")";
Debug.ShouldStop(1);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprod3"))));
 BA.debugLineNum = 1382;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA";
Debug.ShouldStop(32);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))));
 BA.debugLineNum = 1383;BA.debugLine="d.Position=0";
Debug.ShouldStop(64);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1384;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
Debug.ShouldStop(128);
__ref.setField ("_cuantos_noventa" /*RemoteObject*/ ,__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_NOVENTA"))));
 BA.debugLineNum = 1385;BA.debugLine="d.Close";
Debug.ShouldStop(256);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1386;BA.debugLine="cargar.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1387;BA.debugLine="Subir.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1388;BA.debugLine="connecta.Visible = True";
Debug.ShouldStop(2048);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1389;BA.debugLine="inv.Visible = False";
Debug.ShouldStop(4096);
__ref.getField(false,"_inv" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1390;BA.debugLine="ToastMessageShow(\"Se actualizarán los datos, est";
Debug.ShouldStop(8192);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Se actualizarán los datos, este proceso podria tardar hasta un minuto, gracias")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1392;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"";
Debug.ShouldStop(32768);
if (c_principal.__c.runMethod(true,"Not",(Object)(__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_isconnectedtointernet" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) { 
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No hay conexión a Internet")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Revisa tu conexión"))),__ref.getField(false, "ba"));};
 }else {
 BA.debugLineNum = 1396;BA.debugLine="Log(\"XXXX\")";
Debug.ShouldStop(524288);
c_principal.__c.runVoidMethod ("LogImpl","814745759",RemoteObject.createImmutable("XXXX"),0);
 BA.debugLineNum = 1397;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
Debug.ShouldStop(1048576);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 1400;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _checachek(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("checachek (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,773);
if (RapidSub.canDelegate("checachek")) { return __ref.runUserSub(false, "c_principal","checachek", __ref);}
 BA.debugLineNum = 773;BA.debugLine="Sub checachek";
Debug.ShouldStop(16);
 BA.debugLineNum = 774;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT CHECADO FROM";
Debug.ShouldStop(32);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT CHECADO FROM CHECADO_CHECK"))));
 BA.debugLineNum = 775;BA.debugLine="If b.RowCount > 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 776;BA.debugLine="b.Position = 0";
Debug.ShouldStop(128);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 777;BA.debugLine="If b.GetString(\"CHECADO\") = 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CHECADO"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 778;BA.debugLine="b_check.Visible = True";
Debug.ShouldStop(512);
__ref.getField(false,"_b_check" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 }else 
{ BA.debugLineNum = 779;BA.debugLine="Else If b.GetString(\"CHECADO\") = 1 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CHECADO"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 780;BA.debugLine="b_check.Visible =False";
Debug.ShouldStop(2048);
__ref.getField(false,"_b_check" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 }}
;
 BA.debugLineNum = 782;BA.debugLine="b.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 784;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
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_principal._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_principal._root);
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
c_principal._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_principal._xui);
 //BA.debugLineNum = 4;BA.debugLine="Dim reqManager As DBRequestManager";
c_principal._reqmanager = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager");__ref.setField("_reqmanager",c_principal._reqmanager);
 //BA.debugLineNum = 5;BA.debugLine="Dim conectado As String";
c_principal._conectado = RemoteObject.createImmutable("");__ref.setField("_conectado",c_principal._conectado);
 //BA.debugLineNum = 6;BA.debugLine="Dim t1 As Timer";
c_principal._t1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.Timer");__ref.setField("_t1",c_principal._t1);
 //BA.debugLineNum = 7;BA.debugLine="Dim sb As StringBuilder";
c_principal._sb = RemoteObject.createNew ("anywheresoftware.b4a.keywords.StringBuilderWrapper");__ref.setField("_sb",c_principal._sb);
 //BA.debugLineNum = 8;BA.debugLine="Dim PHONE As Phone";
c_principal._phone = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");__ref.setField("_phone",c_principal._phone);
 //BA.debugLineNum = 9;BA.debugLine="Dim trabajar As Button";
c_principal._trabajar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_trabajar",c_principal._trabajar);
 //BA.debugLineNum = 10;BA.debugLine="Dim c, a As Cursor";
c_principal._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_principal._c);
c_principal._a = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_a",c_principal._a);
 //BA.debugLineNum = 11;BA.debugLine="Dim d As Cursor";
c_principal._d = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_d",c_principal._d);
 //BA.debugLineNum = 12;BA.debugLine="Dim b As Cursor";
c_principal._b = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_b",c_principal._b);
 //BA.debugLineNum = 13;BA.debugLine="Dim e As Cursor";
c_principal._e = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_e",c_principal._e);
 //BA.debugLineNum = 14;BA.debugLine="Dim f As Cursor";
c_principal._f = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_f",c_principal._f);
 //BA.debugLineNum = 15;BA.debugLine="Dim f1 As Cursor";
c_principal._f1 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_f1",c_principal._f1);
 //BA.debugLineNum = 16;BA.debugLine="Dim f2 As Cursor";
c_principal._f2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_f2",c_principal._f2);
 //BA.debugLineNum = 17;BA.debugLine="Dim f3 As Cursor";
c_principal._f3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_f3",c_principal._f3);
 //BA.debugLineNum = 18;BA.debugLine="Dim F4 As Cursor";
c_principal._f4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_f4",c_principal._f4);
 //BA.debugLineNum = 19;BA.debugLine="Dim lv As ListView";
c_principal._lv = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv",c_principal._lv);
 //BA.debugLineNum = 20;BA.debugLine="Dim cargar As Button";
c_principal._cargar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_cargar",c_principal._cargar);
 //BA.debugLineNum = 21;BA.debugLine="Dim pendiente As Button";
c_principal._pendiente = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_pendiente",c_principal._pendiente);
 //BA.debugLineNum = 22;BA.debugLine="Dim foto1() As Byte";
c_principal._foto1 = RemoteObject.createNewArray ("byte", new int[] {0}, new Object[]{});__ref.setField("_foto1",c_principal._foto1);
 //BA.debugLineNum = 23;BA.debugLine="Dim usuario As String";
c_principal._usuario = RemoteObject.createImmutable("");__ref.setField("_usuario",c_principal._usuario);
 //BA.debugLineNum = 24;BA.debugLine="Dim connecta As Button";
c_principal._connecta = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_connecta",c_principal._connecta);
 //BA.debugLineNum = 25;BA.debugLine="Dim conn As String";
c_principal._conn = RemoteObject.createImmutable("");__ref.setField("_conn",c_principal._conn);
 //BA.debugLineNum = 26;BA.debugLine="Dim Subir As Button";
c_principal._subir = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_subir",c_principal._subir);
 //BA.debugLineNum = 27;BA.debugLine="Dim cmd As DBCommand";
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 //BA.debugLineNum = 28;BA.debugLine="Dim TOPE As Int";
c_principal._tope = RemoteObject.createImmutable(0);__ref.setField("_tope",c_principal._tope);
 //BA.debugLineNum = 29;BA.debugLine="Dim COUNT_CLIE As Int";
c_principal._count_clie = RemoteObject.createImmutable(0);__ref.setField("_count_clie",c_principal._count_clie);
 //BA.debugLineNum = 30;BA.debugLine="Dim fecha As String";
c_principal._fecha = RemoteObject.createImmutable("");__ref.setField("_fecha",c_principal._fecha);
 //BA.debugLineNum = 31;BA.debugLine="Dim drop As Double";
c_principal._drop = RemoteObject.createImmutable(0);__ref.setField("_drop",c_principal._drop);
 //BA.debugLineNum = 32;BA.debugLine="Dim efectiva As Double";
c_principal._efectiva = RemoteObject.createImmutable(0);__ref.setField("_efectiva",c_principal._efectiva);
 //BA.debugLineNum = 33;BA.debugLine="Dim L As Cursor";
c_principal._l = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_l",c_principal._l);
 //BA.debugLineNum = 34;BA.debugLine="Dim l_aLiquidar As Label";
c_principal._l_aliquidar = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_aliquidar",c_principal._l_aliquidar);
 //BA.debugLineNum = 35;BA.debugLine="Dim l_cuantosc As Label";
c_principal._l_cuantosc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cuantosc",c_principal._l_cuantosc);
 //BA.debugLineNum = 36;BA.debugLine="Dim l_montoSalida As Label";
c_principal._l_montosalida = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_montosalida",c_principal._l_montosalida);
 //BA.debugLineNum = 38;BA.debugLine="Dim l_ctast As Label";
c_principal._l_ctast = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ctast",c_principal._l_ctast);
 //BA.debugLineNum = 39;BA.debugLine="Dim BUSCA As Button";
c_principal._busca = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_busca",c_principal._busca);
 //BA.debugLineNum = 40;BA.debugLine="Dim Cuantos As String";
c_principal._cuantos = RemoteObject.createImmutable("");__ref.setField("_cuantos",c_principal._cuantos);
 //BA.debugLineNum = 41;BA.debugLine="Dim l_cuantosn As Label";
c_principal._l_cuantosn = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cuantosn",c_principal._l_cuantosn);
 //BA.debugLineNum = 42;BA.debugLine="Dim e_ruta As EditText";
c_principal._e_ruta = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_e_ruta",c_principal._e_ruta);
 //BA.debugLineNum = 43;BA.debugLine="Dim l_porvisitar As Label";
c_principal._l_porvisitar = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_porvisitar",c_principal._l_porvisitar);
 //BA.debugLineNum = 44;BA.debugLine="Dim b_mapa As Button";
c_principal._b_mapa = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_mapa",c_principal._b_mapa);
 //BA.debugLineNum = 45;BA.debugLine="Dim l_ruta As Label";
c_principal._l_ruta = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ruta",c_principal._l_ruta);
 //BA.debugLineNum = 46;BA.debugLine="Dim ALMACEN As String";
c_principal._almacen = RemoteObject.createImmutable("");__ref.setField("_almacen",c_principal._almacen);
 //BA.debugLineNum = 47;BA.debugLine="Private img2 As ImageView";
c_principal._img2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_img2",c_principal._img2);
 //BA.debugLineNum = 48;BA.debugLine="Dim Listo1 As String";
c_principal._listo1 = RemoteObject.createImmutable("");__ref.setField("_listo1",c_principal._listo1);
 //BA.debugLineNum = 49;BA.debugLine="Dim Listo2 As String";
c_principal._listo2 = RemoteObject.createImmutable("");__ref.setField("_listo2",c_principal._listo2);
 //BA.debugLineNum = 50;BA.debugLine="Dim Listo3 As String";
c_principal._listo3 = RemoteObject.createImmutable("");__ref.setField("_listo3",c_principal._listo3);
 //BA.debugLineNum = 51;BA.debugLine="Dim Listo4 As String";
c_principal._listo4 = RemoteObject.createImmutable("");__ref.setField("_listo4",c_principal._listo4);
 //BA.debugLineNum = 52;BA.debugLine="Dim Listo5 As String";
c_principal._listo5 = RemoteObject.createImmutable("");__ref.setField("_listo5",c_principal._listo5);
 //BA.debugLineNum = 53;BA.debugLine="Dim EJECUTANDO As String";
c_principal._ejecutando = RemoteObject.createImmutable("");__ref.setField("_ejecutando",c_principal._ejecutando);
 //BA.debugLineNum = 54;BA.debugLine="Dim RES As String";
c_principal._res = RemoteObject.createImmutable("");__ref.setField("_res",c_principal._res);
 //BA.debugLineNum = 55;BA.debugLine="Dim inve As String";
c_principal._inve = RemoteObject.createImmutable("");__ref.setField("_inve",c_principal._inve);
 //BA.debugLineNum = 56;BA.debugLine="Dim cuantos_pedidosc As String";
c_principal._cuantos_pedidosc = RemoteObject.createImmutable("");__ref.setField("_cuantos_pedidosc",c_principal._cuantos_pedidosc);
 //BA.debugLineNum = 57;BA.debugLine="Dim cuantos_pedido As String";
c_principal._cuantos_pedido = RemoteObject.createImmutable("");__ref.setField("_cuantos_pedido",c_principal._cuantos_pedido);
 //BA.debugLineNum = 58;BA.debugLine="Dim cuantos_noventa As String";
c_principal._cuantos_noventa = RemoteObject.createImmutable("");__ref.setField("_cuantos_noventa",c_principal._cuantos_noventa);
 //BA.debugLineNum = 59;BA.debugLine="Dim datos_iguales As String";
c_principal._datos_iguales = RemoteObject.createImmutable("");__ref.setField("_datos_iguales",c_principal._datos_iguales);
 //BA.debugLineNum = 60;BA.debugLine="Dim p As PhoneId";
c_principal._p = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone.PhoneId");__ref.setField("_p",c_principal._p);
 //BA.debugLineNum = 61;BA.debugLine="Dim imei As String";
c_principal._imei = RemoteObject.createImmutable("");__ref.setField("_imei",c_principal._imei);
 //BA.debugLineNum = 63;BA.debugLine="Private inv As Button";
c_principal._inv = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_inv",c_principal._inv);
 //BA.debugLineNum = 65;BA.debugLine="Private L_MONTOE As Label";
c_principal._l_montoe = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_montoe",c_principal._l_montoe);
 //BA.debugLineNum = 66;BA.debugLine="Private B_CLIEPROD As Button";
c_principal._b_clieprod = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_clieprod",c_principal._b_clieprod);
 //BA.debugLineNum = 67;BA.debugLine="Private ListView1 As ListView";
c_principal._listview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_listview1",c_principal._listview1);
 //BA.debugLineNum = 68;BA.debugLine="Private B_REGRESA As Button";
c_principal._b_regresa = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_regresa",c_principal._b_regresa);
 //BA.debugLineNum = 69;BA.debugLine="Private Panel1 As Panel";
c_principal._panel1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel1",c_principal._panel1);
 //BA.debugLineNum = 70;BA.debugLine="Dim ESTATUS As String";
c_principal._estatus = RemoteObject.createImmutable("");__ref.setField("_estatus",c_principal._estatus);
 //BA.debugLineNum = 71;BA.debugLine="Dim batterystatus(11) As Int";
c_principal._batterystatus = RemoteObject.createNewArray ("int", new int[] {11}, new Object[]{});__ref.setField("_batterystatus",c_principal._batterystatus);
 //BA.debugLineNum = 72;BA.debugLine="Private bu As BatteryUtilities";
c_principal._bu = RemoteObject.createNew ("reparto_izca.keymon.lat.batteryutilities");__ref.setField("_bu",c_principal._bu);
 //BA.debugLineNum = 73;BA.debugLine="Dim RUTA_T As String";
c_principal._ruta_t = RemoteObject.createImmutable("");__ref.setField("_ruta_t",c_principal._ruta_t);
 //BA.debugLineNum = 74;BA.debugLine="Dim reqs As List";
c_principal._reqs = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_reqs",c_principal._reqs);
 //BA.debugLineNum = 76;BA.debugLine="Private Btn_Ubicar_Ru As Button";
c_principal._btn_ubicar_ru = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_btn_ubicar_ru",c_principal._btn_ubicar_ru);
 //BA.debugLineNum = 77;BA.debugLine="Dim cargo As String";
c_principal._cargo = RemoteObject.createImmutable("");__ref.setField("_cargo",c_principal._cargo);
 //BA.debugLineNum = 78;BA.debugLine="Private p_principal As Panel";
c_principal._p_principal = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_principal",c_principal._p_principal);
 //BA.debugLineNum = 79;BA.debugLine="Dim ime As IME";
c_principal._ime = RemoteObject.createNew ("anywheresoftware.b4a.objects.IME");__ref.setField("_ime",c_principal._ime);
 //BA.debugLineNum = 80;BA.debugLine="Private b_tabulador As Button";
c_principal._b_tabulador = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_tabulador",c_principal._b_tabulador);
 //BA.debugLineNum = 82;BA.debugLine="Private l_rutasP As Label";
c_principal._l_rutasp = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_rutasp",c_principal._l_rutasp);
 //BA.debugLineNum = 83;BA.debugLine="Private l_rechazo As Label";
c_principal._l_rechazo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_rechazo",c_principal._l_rechazo);
 //BA.debugLineNum = 84;BA.debugLine="Private Label9 As Label";
c_principal._label9 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label9",c_principal._label9);
 //BA.debugLineNum = 85;BA.debugLine="Dim cp As Cursor";
c_principal._cp = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_cp",c_principal._cp);
 //BA.debugLineNum = 86;BA.debugLine="Private b_check As Button";
c_principal._b_check = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_check",c_principal._b_check);
 //BA.debugLineNum = 87;BA.debugLine="Private b_rechazos As Button";
c_principal._b_rechazos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_rechazos",c_principal._b_rechazos);
 //BA.debugLineNum = 88;BA.debugLine="Private p_prod As Panel";
c_principal._p_prod = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_prod",c_principal._p_prod);
 //BA.debugLineNum = 89;BA.debugLine="Private b_regreso As Button";
c_principal._b_regreso = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_regreso",c_principal._b_regreso);
 //BA.debugLineNum = 90;BA.debugLine="Private lv_prod_Prin As ListView";
c_principal._lv_prod_prin = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_prod_prin",c_principal._lv_prod_prin);
 //BA.debugLineNum = 91;BA.debugLine="Private b_venta_emp As Button";
c_principal._b_venta_emp = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_venta_emp",c_principal._b_venta_emp);
 //BA.debugLineNum = 94;BA.debugLine="Dim t8 As Timer";
c_principal._t8 = RemoteObject.createNew ("anywheresoftware.b4a.objects.Timer");__ref.setField("_t8",c_principal._t8);
 //BA.debugLineNum = 95;BA.debugLine="Private B_carga As Button";
c_principal._b_carga = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_carga",c_principal._b_carga);
 //BA.debugLineNum = 96;BA.debugLine="Private P_carga As Panel";
c_principal._p_carga = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_carga",c_principal._p_carga);
 //BA.debugLineNum = 97;BA.debugLine="Private L_carga As Label";
c_principal._l_carga = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_carga",c_principal._l_carga);
 //BA.debugLineNum = 98;BA.debugLine="Private PB_carga As ProgressBar";
c_principal._pb_carga = RemoteObject.createNew ("anywheresoftware.b4a.objects.ProgressBarWrapper");__ref.setField("_pb_carga",c_principal._pb_carga);
 //BA.debugLineNum = 99;BA.debugLine="Private PB_carga2 As ProgressBar";
c_principal._pb_carga2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ProgressBarWrapper");__ref.setField("_pb_carga2",c_principal._pb_carga2);
 //BA.debugLineNum = 100;BA.debugLine="Private l_carga2 As Label";
c_principal._l_carga2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_carga2",c_principal._l_carga2);
 //BA.debugLineNum = 103;BA.debugLine="Dim btAdmin As BluetoothAdmin";
c_principal._btadmin = RemoteObject.createNew ("anywheresoftware.b4a.objects.Serial.BluetoothAdmin");__ref.setField("_btadmin",c_principal._btadmin);
 //BA.debugLineNum = 104;BA.debugLine="Dim cmp20 As Serial";
c_principal._cmp20 = RemoteObject.createNew ("anywheresoftware.b4a.objects.Serial");__ref.setField("_cmp20",c_principal._cmp20);
 //BA.debugLineNum = 105;BA.debugLine="Dim printer As TextWriter";
c_principal._printer = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.TextWriterWrapper");__ref.setField("_printer",c_principal._printer);
 //BA.debugLineNum = 106;BA.debugLine="Dim TAMANO As Int";
c_principal._tamano = RemoteObject.createImmutable(0);__ref.setField("_tamano",c_principal._tamano);
 //BA.debugLineNum = 107;BA.debugLine="Dim ESPACIO As Int";
c_principal._espacio = RemoteObject.createImmutable(0);__ref.setField("_espacio",c_principal._espacio);
 //BA.debugLineNum = 108;BA.debugLine="Dim BLANCO As String";
c_principal._blanco = RemoteObject.createImmutable("");__ref.setField("_blanco",c_principal._blanco);
 //BA.debugLineNum = 109;BA.debugLine="Dim Printer1 As EscPosPrinter";
c_principal._printer1 = RemoteObject.createNew ("reparto_izca.keymon.lat.escposprinter");__ref.setField("_printer1",c_principal._printer1);
 //BA.debugLineNum = 110;BA.debugLine="Dim impresoraConectada As Boolean = False";
c_principal._impresoraconectada = c_principal.__c.getField(true,"False");__ref.setField("_impresoraconectada",c_principal._impresoraconectada);
 //BA.debugLineNum = 111;BA.debugLine="Dim errorImpresora As Int = 0";
c_principal._errorimpresora = BA.numberCast(int.class, 0);__ref.setField("_errorimpresora",c_principal._errorimpresora);
 //BA.debugLineNum = 112;BA.debugLine="Private inventario As ImageView";
c_principal._inventario = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_inventario",c_principal._inventario);
 //BA.debugLineNum = 113;BA.debugLine="Dim PASA_IMP As String";
c_principal._pasa_imp = RemoteObject.createImmutable("");__ref.setField("_pasa_imp",c_principal._pasa_imp);
 //BA.debugLineNum = 114;BA.debugLine="Private b_imp_inventario As Button";
c_principal._b_imp_inventario = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_imp_inventario",c_principal._b_imp_inventario);
 //BA.debugLineNum = 116;BA.debugLine="Dim s As Cursor";
c_principal._s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s",c_principal._s);
 //BA.debugLineNum = 117;BA.debugLine="Private PrinterIsReady As Boolean = False";
c_principal._printerisready = c_principal.__c.getField(true,"False");__ref.setField("_printerisready",c_principal._printerisready);
 //BA.debugLineNum = 118;BA.debugLine="Private LastConnectionAttempt As Long = 0";
c_principal._lastconnectionattempt = BA.numberCast(long.class, 0);__ref.setField("_lastconnectionattempt",c_principal._lastconnectionattempt);
 //BA.debugLineNum = 119;BA.debugLine="Private b_impresion_rec As Button";
c_principal._b_impresion_rec = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_impresion_rec",c_principal._b_impresion_rec);
 //BA.debugLineNum = 120;BA.debugLine="Private L_clientes_visit As Label";
c_principal._l_clientes_visit = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_clientes_visit",c_principal._l_clientes_visit);
 //BA.debugLineNum = 121;BA.debugLine="Private l_clientes_recha As Label";
c_principal._l_clientes_recha = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_clientes_recha",c_principal._l_clientes_recha);
 //BA.debugLineNum = 122;BA.debugLine="Private l_clientes_visitados As Label";
c_principal._l_clientes_visitados = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_clientes_visitados",c_principal._l_clientes_visitados);
 //BA.debugLineNum = 123;BA.debugLine="Private l_numtickets As Label";
c_principal._l_numtickets = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_numtickets",c_principal._l_numtickets);
 //BA.debugLineNum = 124;BA.debugLine="Private P_CIEGO As Panel";
c_principal._p_ciego = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_ciego",c_principal._p_ciego);
 //BA.debugLineNum = 125;BA.debugLine="Private B_PC_ENV As Button";
c_principal._b_pc_env = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_pc_env",c_principal._b_pc_env);
 //BA.debugLineNum = 126;BA.debugLine="Private b_terpc As Button";
c_principal._b_terpc = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_terpc",c_principal._b_terpc);
 //BA.debugLineNum = 127;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView";
c_principal._clv_pick_ciego = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_pick_ciego",c_principal._clv_pick_ciego);
 //BA.debugLineNum = 128;BA.debugLine="Private L_PICK_CIEGO As Label";
c_principal._l_pick_ciego = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_pick_ciego",c_principal._l_pick_ciego);
 //BA.debugLineNum = 129;BA.debugLine="Private ET_PICK_CIEGO As EditText";
c_principal._et_pick_ciego = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_pick_ciego",c_principal._et_pick_ciego);
 //BA.debugLineNum = 130;BA.debugLine="Private P_PICK_CIEGO As Panel";
c_principal._p_pick_ciego = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_pick_ciego",c_principal._p_pick_ciego);
 //BA.debugLineNum = 131;BA.debugLine="Private L_CANT_PCIK As Label";
c_principal._l_cant_pcik = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cant_pcik",c_principal._l_cant_pcik);
 //BA.debugLineNum = 132;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _connecta_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("connecta_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2234);
if (RapidSub.canDelegate("connecta_click")) { return __ref.runUserSub(false, "c_principal","connecta_click", __ref);}
 BA.debugLineNum = 2234;BA.debugLine="Sub connecta_Click";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 2235;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("LogImpl","815007745",(RemoteObject.concat(RemoteObject.createImmutable("ReqServer = "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),c_principal.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 2236;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"N";
Debug.ShouldStop(134217728);
if (c_principal.__c.runMethod(true,"Not",(Object)(__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_isconnectedtointernet" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) { 
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No hay conexión a conexión a Internet")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Revisa tu conexión"))),__ref.getField(false, "ba"));};
 BA.debugLineNum = 2237;BA.debugLine="If e_ruta.Text <> \"\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 2238;BA.debugLine="imei = \"\" 'p.GetDeviceId";
Debug.ShouldStop(536870912);
__ref.setField ("_imei" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 2239;BA.debugLine="conn = \"1\"";
Debug.ShouldStop(1073741824);
__ref.setField ("_conn" /*RemoteObject*/ ,BA.ObjectToString("1"));
 BA.debugLineNum = 2240;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 2241;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(1);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 2242;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2243;BA.debugLine="cmd.Name = \"select_version_IZCA\"";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_version_IZCA"));
 BA.debugLineNum = 2244;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")";
Debug.ShouldStop(8);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("version"))));
 BA.debugLineNum = 2245;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(16);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 2246;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2249;BA.debugLine="cmd.Name = \"select_ruta_re_REPG_IZCA2\"";
Debug.ShouldStop(256);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_ruta_re_REPG_IZCA2"));
 BA.debugLineNum = 2250;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta";
Debug.ShouldStop(512);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_usuario" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2251;BA.debugLine="Log($\"${ALMACEN}, ${e_ruta.text}, ${usuario}\"$)";
Debug.ShouldStop(1024);
c_principal.__c.runVoidMethod ("LogImpl","815007761",(RemoteObject.concat(RemoteObject.createImmutable(""),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_almacen" /*RemoteObject*/ )))),RemoteObject.createImmutable(", "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable(", "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_usuario" /*RemoteObject*/ )))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2252;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"ruta\")";
Debug.ShouldStop(2048);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("ruta"))));
 BA.debugLineNum = 2254;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)";
Debug.ShouldStop(8192);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Validando Conexión.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 2255;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
Debug.ShouldStop(16384);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM RUTAA")));
 BA.debugLineNum = 2256;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTAA(RU";
Debug.ShouldStop(32768);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO RUTAA(RUTAA) VALUES (?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 2257;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
Debug.ShouldStop(65536);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_rutapreventa" /*RemoteObject*/ ,__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"));
 };
 BA.debugLineNum = 2259;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createlistitem(RemoteObject __ref,RemoteObject _id_prod,RemoteObject _prod,RemoteObject _cant,RemoteObject _cantreal) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3570);
if (RapidSub.canDelegate("createlistitem")) { return __ref.runUserSub(false, "c_principal","createlistitem", __ref, _id_prod, _prod, _cant, _cantreal);}
RemoteObject _pa = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
Debug.locals.put("Id_prod", _id_prod);
Debug.locals.put("Prod", _prod);
Debug.locals.put("cant", _cant);
Debug.locals.put("cantreal", _cantreal);
 BA.debugLineNum = 3570;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri";
Debug.ShouldStop(131072);
 BA.debugLineNum = 3571;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(262144);
_pa = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pa = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("pa", _pa);Debug.locals.put("pa", _pa);
 BA.debugLineNum = 3572;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
Debug.ShouldStop(524288);
_pa.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 10)));
 BA.debugLineNum = 3573;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
Debug.ShouldStop(1048576);
_pa.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("PANEL_PICK_CIEGO")),__ref.getField(false, "ba"));
 BA.debugLineNum = 3574;BA.debugLine="pa.Height = 55dip";
Debug.ShouldStop(2097152);
_pa.runMethod(true,"setHeight",c_principal.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 55))));
 BA.debugLineNum = 3575;BA.debugLine="pa.Width = 298dip";
Debug.ShouldStop(4194304);
_pa.runMethod(true,"setWidth",c_principal.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 298))));
 BA.debugLineNum = 3577;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_pick_ciego" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(_id_prod,c_principal.__c.getField(true,"CRLF"),_prod)));
 BA.debugLineNum = 3578;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_pick_ciego" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 3579;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_pick_ciego" /*RemoteObject*/ ).runMethod(true,"setGravity",c_principal.__c.getField(false,"Bit").runMethod(true,"Or",(Object)(c_principal.__c.getField(false,"Gravity").getField(true,"CENTER_VERTICAL")),(Object)(c_principal.__c.getField(false,"Gravity").getField(true,"CENTER_HORIZONTAL"))));
 BA.debugLineNum = 3580;BA.debugLine="ET_PICK_CIEGO.Text = cant";
Debug.ShouldStop(134217728);
__ref.getField(false,"_et_pick_ciego" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_cant));
 BA.debugLineNum = 3581;BA.debugLine="L_CANT_PCIK.Text = cantreal";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_cant_pcik" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_cantreal));
 BA.debugLineNum = 3584;BA.debugLine="Return pa";
Debug.ShouldStop(-2147483648);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _pa.getObject());
 BA.debugLineNum = 3585;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createlistitem2(RemoteObject __ref,RemoteObject _id_prod,RemoteObject _prod,RemoteObject _cantreal) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem2 (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3587);
if (RapidSub.canDelegate("createlistitem2")) { return __ref.runUserSub(false, "c_principal","createlistitem2", __ref, _id_prod, _prod, _cantreal);}
RemoteObject _pa = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
Debug.locals.put("Id_prod", _id_prod);
Debug.locals.put("Prod", _prod);
Debug.locals.put("cantreal", _cantreal);
 BA.debugLineNum = 3587;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str";
Debug.ShouldStop(4);
 BA.debugLineNum = 3588;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(8);
_pa = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_pa = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("pa", _pa);Debug.locals.put("pa", _pa);
 BA.debugLineNum = 3589;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)";
Debug.ShouldStop(16);
_pa.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 10)));
 BA.debugLineNum = 3590;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")";
Debug.ShouldStop(32);
_pa.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("PANEL_PICK_CIEGO")),__ref.getField(false, "ba"));
 BA.debugLineNum = 3591;BA.debugLine="pa.Height = 55dip";
Debug.ShouldStop(64);
_pa.runMethod(true,"setHeight",c_principal.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 55))));
 BA.debugLineNum = 3592;BA.debugLine="pa.Width = 298dip";
Debug.ShouldStop(128);
_pa.runMethod(true,"setWidth",c_principal.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 298))));
 BA.debugLineNum = 3594;BA.debugLine="L_PICK_CIEGO.Text = Id_prod &  CRLF & Prod";
Debug.ShouldStop(512);
__ref.getField(false,"_l_pick_ciego" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(_id_prod,c_principal.__c.getField(true,"CRLF"),_prod)));
 BA.debugLineNum = 3595;BA.debugLine="L_PICK_CIEGO.TextSize = 12";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_pick_ciego" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 12));
 BA.debugLineNum = 3596;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_pick_ciego" /*RemoteObject*/ ).runMethod(true,"setGravity",c_principal.__c.getField(false,"Bit").runMethod(true,"Or",(Object)(c_principal.__c.getField(false,"Gravity").getField(true,"CENTER_VERTICAL")),(Object)(c_principal.__c.getField(false,"Gravity").getField(true,"CENTER_HORIZONTAL"))));
 BA.debugLineNum = 3597;BA.debugLine="L_CANT_PCIK.Text = cantreal";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_cant_pcik" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_cantreal));
 BA.debugLineNum = 3600;BA.debugLine="Return pa";
Debug.ShouldStop(32768);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _pa.getObject());
 BA.debugLineNum = 3601;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _e_ruta_enterpressed(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("e_ruta_EnterPressed (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2275);
if (RapidSub.canDelegate("e_ruta_enterpressed")) { return __ref.runUserSub(false, "c_principal","e_ruta_enterpressed", __ref);}
 BA.debugLineNum = 2275;BA.debugLine="Sub e_ruta_EnterPressed";
Debug.ShouldStop(4);
 BA.debugLineNum = 2276;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("FIN DIA"))) { 
 BA.debugLineNum = 2277;BA.debugLine="RES =  Msgbox2(\"Seguro que desea hacer el cierre";
Debug.ShouldStop(16);
__ref.setField ("_res" /*RemoteObject*/ ,BA.NumberToString(c_principal.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea hacer el cierre todos los datos se borraran?")),(Object)(BA.ObjectToCharSequence("Cierre")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_principal.__c.runMethod(false,"LoadBitmap",(Object)(c_principal.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 2278;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_res" /*RemoteObject*/ ),BA.NumberToString(c_principal.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 2280;BA.debugLine="e_ruta.Text = \"\"";
Debug.ShouldStop(128);
__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 2281;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE";
Debug.ShouldStop(256);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PICK_CIEGO")));
 BA.debugLineNum = 2282;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO_";
Debug.ShouldStop(512);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from REPARTO_GEO")));
 BA.debugLineNum = 2283;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c";
Debug.ShouldStop(1024);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente")));
 BA.debugLineNum = 2284;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\"";
Debug.ShouldStop(2048);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PAGARES")));
 BA.debugLineNum = 2285;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_";
Debug.ShouldStop(4096);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CHECADO_CHECK")));
 BA.debugLineNum = 2286;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS";
Debug.ShouldStop(8192);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CHECKLIST2")));
 BA.debugLineNum = 2287;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")";
Debug.ShouldStop(16384);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido")));
 BA.debugLineNum = 2288;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\"";
Debug.ShouldStop(32768);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from noventa")));
 BA.debugLineNum = 2289;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act";
Debug.ShouldStop(65536);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from clie_act")));
 BA.debugLineNum = 2290;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info";
Debug.ShouldStop(131072);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from kmt_info")));
 BA.debugLineNum = 2291;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
Debug.ShouldStop(262144);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod")));
 BA.debugLineNum = 2292;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna";
Debug.ShouldStop(524288);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod3")));
 BA.debugLineNum = 2293;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_DETALLES_PAQ")));
 BA.debugLineNum = 2294;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS")));
 BA.debugLineNum = 2295;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\"";
Debug.ShouldStop(4194304);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from REPARTO")));
 BA.debugLineNum = 2296;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
Debug.ShouldStop(8388608);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM TABULADOR_MONEDAS")));
 BA.debugLineNum = 2297;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO";
Debug.ShouldStop(16777216);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM TABULADOR_BILLETES")));
 BA.debugLineNum = 2298;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")";
Debug.ShouldStop(33554432);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM RUTAA")));
 BA.debugLineNum = 2299;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\"";
Debug.ShouldStop(67108864);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM ABONOSP")));
 BA.debugLineNum = 2300;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")";
Debug.ShouldStop(134217728);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM ABONOS")));
 BA.debugLineNum = 2301;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV";
Debug.ShouldStop(268435456);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM BLOCKENVIO")));
 BA.debugLineNum = 2302;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(536870912);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 };
 BA.debugLineNum = 2305;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints";
Debug.ShouldStop(1);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from waypoints")));
 };
 BA.debugLineNum = 2307;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _envioinfo(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("envioinfo (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,843);
if (RapidSub.canDelegate("envioinfo")) { return __ref.runUserSub(false, "c_principal","envioinfo", __ref);}
int _i = 0;
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _rx = 0;
RemoteObject _o = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _pa = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _pag = 0;
RemoteObject _fechaenvio = null;
RemoteObject _fechacap = null;
RemoteObject _ab = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _ab1 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _fechatabulador = null;
RemoteObject _fechatabulador3 = RemoteObject.createImmutable("");
RemoteObject _d4 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _d5 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _restacant = RemoteObject.createImmutable("");
RemoteObject _fecha1 = null;
RemoteObject _fecha3 = RemoteObject.createImmutable("");
RemoteObject _hora = RemoteObject.createImmutable("");
RemoteObject _sdate = RemoteObject.createImmutable("");
RemoteObject _stime = RemoteObject.createImmutable("");
 BA.debugLineNum = 843;BA.debugLine="Sub envioinfo";
Debug.ShouldStop(1024);
 BA.debugLineNum = 848;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NV_CLIENTE,NV_";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO, NV_REPROGRAMAR FROM NOVENTA"))));
 BA.debugLineNum = 849;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUAN";
Debug.ShouldStop(65536);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))));
 BA.debugLineNum = 850;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 851;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(262144);
{
final int step4 = 1;
final int limit4 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step4 > 0 && _i <= limit4) || (step4 < 0 && _i >= limit4) ;_i = ((int)(0 + _i + step4))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 852;BA.debugLine="c.Position=i";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 853;BA.debugLine="foto1 = c.GetBlob(\"NV_FOTO\")";
Debug.ShouldStop(1048576);
__ref.setField ("_foto1" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(false,"GetBlob",(Object)(RemoteObject.createImmutable("NV_FOTO"))));
 BA.debugLineNum = 854;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2097152);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 855;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 856;BA.debugLine="cmd.Name = \"insert_reparto_REPG_IZCA\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_reparto_REPG_IZCA"));
 BA.debugLineNum = 857;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"N";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {10},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_CLIENTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_USER")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_MOTIVO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_COMM")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_LAT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_LON")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_REPROGRAMAR"))))}));
 BA.debugLineNum = 858;BA.debugLine="reqManager.ExecuteCommand(cmd ,  \"inst_noventa_";
Debug.ShouldStop(33554432);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_noventa_"))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 860;BA.debugLine="c.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 862;BA.debugLine="d.Position=0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 863;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
Debug.ShouldStop(1073741824);
__ref.setField ("_cuantos_noventa" /*RemoteObject*/ ,__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_NOVENTA"))));
 BA.debugLineNum = 864;BA.debugLine="d.Close";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 867;BA.debugLine="Dim r As Cursor =Starter.skmt.ExecQuery(\"select *";
Debug.ShouldStop(4);
_r = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_r = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select * from noventa where nv_reprogramar = 1"))));Debug.locals.put("r", _r);Debug.locals.put("r", _r);
 BA.debugLineNum = 868;BA.debugLine="If r.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",_r.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 869;BA.debugLine="For rx = 0 To r.RowCount - 1";
Debug.ShouldStop(16);
{
final int step20 = 1;
final int limit20 = RemoteObject.solve(new RemoteObject[] {_r.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_rx = 0 ;
for (;(step20 > 0 && _rx <= limit20) || (step20 < 0 && _rx >= limit20) ;_rx = ((int)(0 + _rx + step20))  ) {
Debug.locals.put("rx", _rx);
 BA.debugLineNum = 870;BA.debugLine="r.Position = rx";
Debug.ShouldStop(32);
_r.runMethod(true,"setPosition",BA.numberCast(int.class, _rx));
 BA.debugLineNum = 871;BA.debugLine="Dim o As Cursor = Starter.skmt.ExecQuery2(\"sele";
Debug.ShouldStop(64);
_o = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_o = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select HVD_FECHA, CAT_CL_RUTA FROM HIST_VENTAS INNER JOIN kmt_info on HVD_CLIENTE = cat_cl_codigo WHERE HVD_CLIENTE = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_CLIENTE")))}))));Debug.locals.put("o", _o);Debug.locals.put("o", _o);
 BA.debugLineNum = 872;BA.debugLine="If o.RowCount > 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_o.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 873;BA.debugLine="o.Position = 0";
Debug.ShouldStop(256);
_o.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 874;BA.debugLine="Log(\"Enviamos reprogramados: \" & r.RowCount)";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethod ("LogImpl","814680095",RemoteObject.concat(RemoteObject.createImmutable("Enviamos reprogramados: "),_r.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 876;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2048);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 877;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4096);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 878;BA.debugLine="cmd.Name = \"insert_reparto_reprogramar3_IZCA\"";
Debug.ShouldStop(8192);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_reparto_reprogramar3_IZCA"));
 BA.debugLineNum = 879;BA.debugLine="cmd.Parameters = Array As Object(r.GetString(\"";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {5},new Object[] {(_r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_CLIENTE")))),(_r.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_REPROGRAMAR")))),(_o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")))),(_o.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 880;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_reprogram";
Debug.ShouldStop(32768);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_reprogramar"))));
 };
 }
}Debug.locals.put("rx", _rx);
;
 };
 BA.debugLineNum = 884;BA.debugLine="r.Close";
Debug.ShouldStop(524288);
_r.runVoidMethod ("Close");
 BA.debugLineNum = 941;BA.debugLine="Dim pa As Cursor =Starter.skmt.ExecQuery(\"select";
Debug.ShouldStop(4096);
_pa = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_pa = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select PA_ALMACEN,PA_RUTA_REP,PA_RUTAPREV,PA_FECHA_PREV,PA_CAPTURA,PA_MONTO,PA_USUARIO,PA_CLIENTE from PAGARES"))));Debug.locals.put("pa", _pa);Debug.locals.put("pa", _pa);
 BA.debugLineNum = 942;BA.debugLine="If pa.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_pa.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 943;BA.debugLine="For pag = 0 To pa.RowCount - 1";
Debug.ShouldStop(16384);
{
final int step37 = 1;
final int limit37 = RemoteObject.solve(new RemoteObject[] {_pa.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_pag = 0 ;
for (;(step37 > 0 && _pag <= limit37) || (step37 < 0 && _pag >= limit37) ;_pag = ((int)(0 + _pag + step37))  ) {
Debug.locals.put("pag", _pag);
 BA.debugLineNum = 944;BA.debugLine="pa.Position = pag";
Debug.ShouldStop(32768);
_pa.runMethod(true,"setPosition",BA.numberCast(int.class, _pag));
 BA.debugLineNum = 945;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(65536);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 946;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 947;BA.debugLine="cmd.Name = \"insert_reparto_PAGARES_IZCA_VN\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_reparto_PAGARES_IZCA_VN"));
 BA.debugLineNum = 948;BA.debugLine="Dim fechaenvio() As String";
Debug.ShouldStop(524288);
_fechaenvio = RemoteObject.createNewArray ("String", new int[] {0}, new Object[]{});Debug.locals.put("fechaenvio", _fechaenvio);
 BA.debugLineNum = 949;BA.debugLine="fechaenvio = Regex.Split(\" \",pa.GetString(\"PA_F";
Debug.ShouldStop(1048576);
_fechaenvio = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_FECHA_PREV")))));Debug.locals.put("fechaenvio", _fechaenvio);
 BA.debugLineNum = 956;BA.debugLine="Dim fechacap() As String";
Debug.ShouldStop(134217728);
_fechacap = RemoteObject.createNewArray ("String", new int[] {0}, new Object[]{});Debug.locals.put("fechacap", _fechacap);
 BA.debugLineNum = 957;BA.debugLine="fechacap = Regex.Split(\"/\",pa.GetString(\"PA_CAP";
Debug.ShouldStop(268435456);
_fechacap = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("/")),(Object)(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_CAPTURA")))));Debug.locals.put("fechacap", _fechacap);
 BA.debugLineNum = 963;BA.debugLine="cmd.Parameters = Array As Object(pa.GetString(";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {9},new Object[] {(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_CLIENTE")))),(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_MONTO")))),(_fechaenvio.getArrayElement(true,BA.numberCast(int.class, 0))),(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_ALMACEN")))),(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_RUTAPREV")))),(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_RUTA_REP")))),(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_CAPTURA")))),(_pa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_USUARIO")))),(RemoteObject.createImmutable(""))}));
 BA.debugLineNum = 965;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pagares\")";
Debug.ShouldStop(16);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_pagares"))));
 }
}Debug.locals.put("pag", _pag);
;
 };
 BA.debugLineNum = 968;BA.debugLine="pa.Close";
Debug.ShouldStop(128);
_pa.runVoidMethod ("Close");
 BA.debugLineNum = 971;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
Debug.ShouldStop(1024);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT RUTAA FROM RUTAA"))));
 BA.debugLineNum = 972;BA.debugLine="d.Position = 0";
Debug.ShouldStop(2048);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 973;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC";
Debug.ShouldStop(4096);
_ab = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_ab = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("SELECT * from ABONOS where a_enviado is null and a_tipoabono IS NULL")))));Debug.locals.put("ab", _ab);Debug.locals.put("ab", _ab);
 BA.debugLineNum = 974;BA.debugLine="Log(ab.RowCount)";
Debug.ShouldStop(8192);
c_principal.__c.runVoidMethod ("LogImpl","814680195",BA.NumberToString(_ab.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 975;BA.debugLine="If ab.RowCount > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",_ab.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 976;BA.debugLine="For i=0 To ab.RowCount -1";
Debug.ShouldStop(32768);
{
final int step56 = 1;
final int limit56 = RemoteObject.solve(new RemoteObject[] {_ab.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step56 > 0 && _i <= limit56) || (step56 < 0 && _i >= limit56) ;_i = ((int)(0 + _i + step56))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 977;BA.debugLine="ab.Position = i";
Debug.ShouldStop(65536);
_ab.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 979;BA.debugLine="Dim ab1 As Cursor = Starter.skmt.ExecQuery($\"SE";
Debug.ShouldStop(262144);
_ab1 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_ab1 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT a_abono from ABONOS where a_cliente = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable("' and a_tipoabono IS NULL"))))));Debug.locals.put("ab1", _ab1);Debug.locals.put("ab1", _ab1);
 BA.debugLineNum = 980;BA.debugLine="ab1.Position = 0";
Debug.ShouldStop(524288);
_ab1.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 982;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2097152);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 983;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 984;BA.debugLine="cmd.Name = \"insert_abono_REP_IZCA_VN2\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_abono_REP_IZCA_VN2"));
 BA.debugLineNum = 985;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString(";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {12},new Object[] {(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_usuario")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_ruta")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_fecha")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),RemoteObject.createImmutable(("REPARTO")),(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA")))),RemoteObject.createImmutable(("")),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TIPO_PAGO")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_ticket")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_numpago"))))}));
 BA.debugLineNum = 986;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
Debug.ShouldStop(33554432);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("ins_abonosPendientes_"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable(""))))));
 BA.debugLineNum = 987;BA.debugLine="ab1.Close";
Debug.ShouldStop(67108864);
_ab1.runVoidMethod ("Close");
 BA.debugLineNum = 988;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl";
Debug.ShouldStop(134217728);
c_principal.__c.runVoidMethod ("LogImpl","814680209",(RemoteObject.concat(RemoteObject.createImmutable("ins_abonosPendientes_"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable(""))),0);
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 991;BA.debugLine="ab.Close";
Debug.ShouldStop(1073741824);
_ab.runVoidMethod ("Close");
 BA.debugLineNum = 992;BA.debugLine="d.Close";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 996;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
Debug.ShouldStop(8);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT RUTAA FROM RUTAA"))));
 BA.debugLineNum = 997;BA.debugLine="d.Position = 0";
Debug.ShouldStop(16);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 998;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC";
Debug.ShouldStop(32);
_ab = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_ab = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("SELECT * from ABONOS where a_enviado is null and a_tipoabono IS NOT NULL")))));Debug.locals.put("ab", _ab);Debug.locals.put("ab", _ab);
 BA.debugLineNum = 999;BA.debugLine="Log(ab.RowCount)";
Debug.ShouldStop(64);
c_principal.__c.runVoidMethod ("LogImpl","814680220",BA.NumberToString(_ab.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 1000;BA.debugLine="If ab.RowCount > 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_ab.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1001;BA.debugLine="For i=0 To ab.RowCount -1";
Debug.ShouldStop(256);
{
final int step76 = 1;
final int limit76 = RemoteObject.solve(new RemoteObject[] {_ab.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step76 > 0 && _i <= limit76) || (step76 < 0 && _i >= limit76) ;_i = ((int)(0 + _i + step76))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1002;BA.debugLine="ab.Position = i";
Debug.ShouldStop(512);
_ab.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1004;BA.debugLine="Dim ab1 As Cursor = Starter.skmt.ExecQuery($\"SE";
Debug.ShouldStop(2048);
_ab1 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_ab1 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT a_abono from ABONOS where a_cliente = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable("' and a_tipoabono IS NOT NULL"))))));Debug.locals.put("ab1", _ab1);Debug.locals.put("ab1", _ab1);
 BA.debugLineNum = 1005;BA.debugLine="ab1.Position = 0";
Debug.ShouldStop(4096);
_ab1.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1007;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(16384);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1008;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32768);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1009;BA.debugLine="cmd.Name = \"insert_abono_REP_IZCA_VN2\"";
Debug.ShouldStop(65536);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_abono_REP_IZCA_VN2"));
 BA.debugLineNum = 1010;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString(";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {12},new Object[] {(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_usuario")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_ruta")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_fecha")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),RemoteObject.createImmutable(("REPARTO")),(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA")))),RemoteObject.createImmutable(("1")),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TIPO_PAGO")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_ticket")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_numpago"))))}));
 BA.debugLineNum = 1011;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
Debug.ShouldStop(262144);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("ins_abonosPendientes_"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable(""))))));
 BA.debugLineNum = 1012;BA.debugLine="ab1.Close";
Debug.ShouldStop(524288);
_ab1.runVoidMethod ("Close");
 BA.debugLineNum = 1013;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl";
Debug.ShouldStop(1048576);
c_principal.__c.runVoidMethod ("LogImpl","814680234",(RemoteObject.concat(RemoteObject.createImmutable("ins_abonosPendientes_"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable(""))),0);
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 1016;BA.debugLine="ab.Close";
Debug.ShouldStop(8388608);
_ab.runVoidMethod ("Close");
 BA.debugLineNum = 1017;BA.debugLine="d.Close";
Debug.ShouldStop(16777216);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1041;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT PE_TIPO, PE_RUTA";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT PE_TIPO, PE_RUTA, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_CLIENTEOR, PE_CAJAS, PE_BCAJAS, CONSECUTIVO, FECHA_PREV, RUTA_REP, PE_REGALO FROM PEDIDO"))));
 BA.debugLineNum = 1042;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1043;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(262144);
{
final int step93 = 1;
final int limit93 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step93 > 0 && _i <= limit93) || (step93 < 0 && _i >= limit93) ;_i = ((int)(0 + _i + step93))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1044;BA.debugLine="c.Position=i";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1045;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(1048576);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1046;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1047;BA.debugLine="cmd.Name = \"insert_pedido_REP_IZCA\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_pedido_REP_IZCA"));
 BA.debugLineNum = 1048;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {18},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_TIPO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_RUTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU")))),(__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_PRONOMBRE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CLIENTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_USUARIO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CLIENTEOR")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CAJAS")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_BCAJAS")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("FECHA_PREV")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTA_REP")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_REGALO"))))}));
 BA.debugLineNum = 1049;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedido_Inm";
Debug.ShouldStop(16777216);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_pedido_Inmtex"))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1051;BA.debugLine="c.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 1115;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD, PC";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO"))));
 BA.debugLineNum = 1116;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 = 1117;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(268435456);
{
final int step105 = 1;
final int limit105 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step105 > 0 && _i <= limit105) || (step105 < 0 && _i >= limit105) ;_i = ((int)(0 + _i + step105))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1118;BA.debugLine="c.Position = i";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1119;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(1073741824);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1120;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1121;BA.debugLine="cmd.Name = \"select_HIST_PICKCIEGO_IZCA\" '";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_HIST_PICKCIEGO_IZCA"));
 BA.debugLineNum = 1122;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {5},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_ID_PROD")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_ALMACEN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_RUTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FECHA")))),(RemoteObject.createImmutable("REPARTO"))}));
 BA.debugLineNum = 1123;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, $\"PICK_C_${c.G";
Debug.ShouldStop(4);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("PICK_C_"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_ID_PROD")))))),RemoteObject.createImmutable(""))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 1126;BA.debugLine="c.close";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1129;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS"))));
 BA.debugLineNum = 1130;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
Debug.ShouldStop(512);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT RUTAA FROM RUTAA"))));
 BA.debugLineNum = 1131;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO";
Debug.ShouldStop(1024);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT ID_ALMACEN FROM CAT_ALMACEN"))));
 BA.debugLineNum = 1132;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM";
Debug.ShouldStop(2048);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HVD_FECHA FROM HIST_VENTAS"))));
 BA.debugLineNum = 1133;BA.debugLine="d.Position = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1134;BA.debugLine="b.Position = 0";
Debug.ShouldStop(8192);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1135;BA.debugLine="f.Position = 0";
Debug.ShouldStop(16384);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1136;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1137;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(65536);
{
final int step123 = 1;
final int limit123 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step123 > 0 && _i <= limit123) || (step123 < 0 && _i >= limit123) ;_i = ((int)(0 + _i + step123))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1138;BA.debugLine="c.Position=i";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1139;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(262144);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1140;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
Debug.ShouldStop(524288);
_fechatabulador = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")))));Debug.locals.put("fechatabulador", _fechatabulador);Debug.locals.put("fechatabulador", _fechatabulador);
 BA.debugLineNum = 1142;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(";
Debug.ShouldStop(2097152);
_fechatabulador3 = _fechatabulador.getArrayElement(true,BA.numberCast(int.class, 0));Debug.locals.put("fechatabulador3", _fechatabulador3);Debug.locals.put("fechatabulador3", _fechatabulador3);
 BA.debugLineNum = 1143;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1144;BA.debugLine="cmd.Name = \"insert_tabulador_monedas_IZCA\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_tabulador_monedas_IZCA"));
 BA.debugLineNum = 1145;BA.debugLine="cmd.Parameters = Array As Object(d.GetString(\"R";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {9},new Object[] {(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA")))),(__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("VEINTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("DIEZ")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CINCO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("DOS")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PESO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CENTAVO")))),(_fechatabulador3)}));
 BA.debugLineNum = 1146;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
Debug.ShouldStop(33554432);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_tabulador_mon"))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1148;BA.debugLine="c.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1149;BA.debugLine="d.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1150;BA.debugLine="b.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1151;BA.debugLine="f.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 1154;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT IFNULL(HVD_REC";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_CLIENTE, HVD_PROID, HVD_FECHA, HVD_CODPROMO, HVD_NUM_TICKET, HVD_CANT, CONSECUTIVO, BCAJAS, CANTC FROM HIST_VENTAS"))));
 BA.debugLineNum = 1155;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1156;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(8);
{
final int step140 = 1;
final int limit140 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step140 > 0 && _i <= limit140) || (step140 < 0 && _i >= limit140) ;_i = ((int)(0 + _i + step140))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1157;BA.debugLine="c.Position = i";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1158;BA.debugLine="Log(c.GetString(\"HVD_CLIENTE\"))";
Debug.ShouldStop(32);
c_principal.__c.runVoidMethod ("LogImpl","814680379",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE"))),0);
 BA.debugLineNum = 1159;BA.debugLine="Private d4 As Cursor = Starter.skmt.ExecQuery($";
Debug.ShouldStop(64);
_d4 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_d4 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("'"))))));Debug.locals.put("d4", _d4);Debug.locals.put("d4", _d4);
 BA.debugLineNum = 1160;BA.debugLine="d4.Position = 0";
Debug.ShouldStop(128);
_d4.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1161;BA.debugLine="Log(d4.GetString(\"CAT_CL_RUTA\"))";
Debug.ShouldStop(256);
c_principal.__c.runVoidMethod ("LogImpl","814680382",_d4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))),0);
 BA.debugLineNum = 1162;BA.debugLine="Private d5 As Cursor =  Starter.skmt.ExecQuery(";
Debug.ShouldStop(512);
_d5 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_d5 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE")))))),RemoteObject.createImmutable("' AND PE_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID")))))),RemoteObject.createImmutable("' AND CONSECUTIVO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CONSECUTIVO")))))),RemoteObject.createImmutable("' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE') "))))));Debug.locals.put("d5", _d5);Debug.locals.put("d5", _d5);
 BA.debugLineNum = 1163;BA.debugLine="d5.Position = 0";
Debug.ShouldStop(1024);
_d5.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1164;BA.debugLine="Private restacant As String = d5.GetString(\"PE_";
Debug.ShouldStop(2048);
_restacant = _d5.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")));Debug.locals.put("restacant", _restacant);Debug.locals.put("restacant", _restacant);
 BA.debugLineNum = 1165;BA.debugLine="d5.Close";
Debug.ShouldStop(4096);
_d5.runVoidMethod ("Close");
 BA.debugLineNum = 1167;BA.debugLine="Dim fecha1() As String = Regex.Split(\" \", c.Get";
Debug.ShouldStop(16384);
_fecha1 = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")))));Debug.locals.put("fecha1", _fecha1);Debug.locals.put("fecha1", _fecha1);
 BA.debugLineNum = 1169;BA.debugLine="Dim fecha3 As String = fecha1(0)";
Debug.ShouldStop(65536);
_fecha3 = _fecha1.getArrayElement(true,BA.numberCast(int.class, 0));Debug.locals.put("fecha3", _fecha3);Debug.locals.put("fecha3", _fecha3);
 BA.debugLineNum = 1170;BA.debugLine="Log(fecha3)";
Debug.ShouldStop(131072);
c_principal.__c.runVoidMethod ("LogImpl","814680391",_fecha3,0);
 BA.debugLineNum = 1171;BA.debugLine="Dim hora As String = fecha1(1)";
Debug.ShouldStop(262144);
_hora = _fecha1.getArrayElement(true,BA.numberCast(int.class, 1));Debug.locals.put("hora", _hora);Debug.locals.put("hora", _hora);
 BA.debugLineNum = 1174;BA.debugLine="Dim sDate, sTime As String";
Debug.ShouldStop(2097152);
_sdate = RemoteObject.createImmutable("");Debug.locals.put("sDate", _sdate);
_stime = RemoteObject.createImmutable("");Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 1175;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
Debug.ShouldStop(4194304);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("dd/MM/yyyy"));
 BA.debugLineNum = 1176;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(8388608);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 1177;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(16777216);
_sdate = c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sDate", _sdate);
 BA.debugLineNum = 1178;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
Debug.ShouldStop(33554432);
_stime = c_principal.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow")));Debug.locals.put("sTime", _stime);
 BA.debugLineNum = 1179;BA.debugLine="If c.GetString(\"HVD_RECHAZOCANT\") <> \"0\" Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 1180;BA.debugLine="Log((c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
Debug.ShouldStop(134217728);
c_principal.__c.runVoidMethod ("LogImpl","814680401",BA.NumberToString((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT")))),BA.numberCast(double.class, _restacant)}, "-",1, 0))),0);
 BA.debugLineNum = 1181;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1182;BA.debugLine="cmd.Name = \"update_HVD_izcarep2\"";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("update_HVD_izcarep2"));
 BA.debugLineNum = 1183;BA.debugLine="cmd.Parameters = Array As String(c.GetString(\"";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,(RemoteObject.createNewArray("String",new int[] {12},new Object[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_RECHAZOCANT"))),RemoteObject.concat(_sdate,RemoteObject.createImmutable(" "),_stime),BA.NumberToString(1),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))),RemoteObject.concat(_fecha3,RemoteObject.createImmutable(" "),_hora),_d4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))),__ref.getField(true,"_almacen" /*RemoteObject*/ ),__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_NUM_TICKET"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))})));
 BA.debugLineNum = 1184;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("update_hvd"))));
 }else {
 BA.debugLineNum = 1186;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1187;BA.debugLine="cmd.Name = \"update_HVD_izcarep2\"";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("update_HVD_izcarep2"));
 BA.debugLineNum = 1188;BA.debugLine="Log( c.GetString(\"CANTC\")& c.GetString(\"HVD_CL";
Debug.ShouldStop(8);
c_principal.__c.runVoidMethod ("LogImpl","814680409",RemoteObject.concat(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANTC"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))),_fecha3,RemoteObject.createImmutable(" "),_hora,_d4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))),__ref.getField(true,"_almacen" /*RemoteObject*/ ),__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_NUM_TICKET"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))),0);
 BA.debugLineNum = 1189;BA.debugLine="cmd.Parameters = Array As String(\"\",\"\",\"\", c.G";
Debug.ShouldStop(16);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,(RemoteObject.createNewArray("String",new int[] {12},new Object[] {BA.ObjectToString(""),BA.ObjectToString(""),BA.ObjectToString(""),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CLIENTE"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_PROID"))),RemoteObject.concat(_fecha3,RemoteObject.createImmutable(" "),_hora),_d4.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))),__ref.getField(true,"_almacen" /*RemoteObject*/ ),__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CODPROMO"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_NUM_TICKET"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_CANT")))})));
 BA.debugLineNum = 1190;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")";
Debug.ShouldStop(32);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("update_hvd"))));
 };
 BA.debugLineNum = 1192;BA.debugLine="d4.Close";
Debug.ShouldStop(128);
_d4.runVoidMethod ("Close");
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 1195;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1198;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES"))));
 BA.debugLineNum = 1199;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT";
Debug.ShouldStop(16384);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT RUTAA FROM RUTAA"))));
 BA.debugLineNum = 1200;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO";
Debug.ShouldStop(32768);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT ID_ALMACEN FROM CAT_ALMACEN"))));
 BA.debugLineNum = 1201;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM";
Debug.ShouldStop(65536);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT HVD_FECHA FROM HIST_VENTAS"))));
 BA.debugLineNum = 1202;BA.debugLine="d.Position = 0";
Debug.ShouldStop(131072);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1203;BA.debugLine="b.Position = 0";
Debug.ShouldStop(262144);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1204;BA.debugLine="f.Position = 0";
Debug.ShouldStop(524288);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1205;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1206;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(2097152);
{
final int step184 = 1;
final int limit184 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step184 > 0 && _i <= limit184) || (step184 < 0 && _i >= limit184) ;_i = ((int)(0 + _i + step184))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1207;BA.debugLine="c.Position=i";
Debug.ShouldStop(4194304);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1208;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(8388608);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1213;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
Debug.ShouldStop(268435456);
_fechatabulador = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HVD_FECHA")))));Debug.locals.put("fechatabulador", _fechatabulador);Debug.locals.put("fechatabulador", _fechatabulador);
 BA.debugLineNum = 1215;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(";
Debug.ShouldStop(1073741824);
_fechatabulador3 = _fechatabulador.getArrayElement(true,BA.numberCast(int.class, 0));Debug.locals.put("fechatabulador3", _fechatabulador3);Debug.locals.put("fechatabulador3", _fechatabulador3);
 BA.debugLineNum = 1217;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1218;BA.debugLine="cmd.Name = \"insert_tabulador_billetes_IZCA\"";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_tabulador_billetes_IZCA"));
 BA.debugLineNum = 1219;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"I";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {9},new Object[] {(__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN")))),(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("RUTAA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MIL")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("QUINIENTOS")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("DOCIENTOS")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CIEN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CINCUENTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("VEINTE")))),(_fechatabulador3)}));
 BA.debugLineNum = 1220;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_";
Debug.ShouldStop(8);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_tabulador_bill"))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1222;BA.debugLine="c.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1223;BA.debugLine="d.Close";
Debug.ShouldStop(64);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1224;BA.debugLine="b.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1225;BA.debugLine="f.Close";
Debug.ShouldStop(256);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 1229;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(4096);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1230;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(8192);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1231;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\"";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_drop_rep_IZCA2"));
 BA.debugLineNum = 1232;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuario";
Debug.ShouldStop(32768);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {8},new Object[] {(c_principal._subs.runMethod(true,"_dameusuariodedb" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText")),(c_principal._subs.runMethod(false,"_traeentregados" /*RemoteObject*/ ,__ref.getField(false, "ba")).getObject()),(c_principal._subs.runMethod(false,"_traerechazados" /*RemoteObject*/ ,__ref.getField(false, "ba")).getObject()),RemoteObject.createImmutable(("ENVIO")),(c_principal.__c.getField(false,"Application").runMethod(true,"getVersionName"))}));
 BA.debugLineNum = 1233;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")";
Debug.ShouldStop(65536);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_drop"))));
 BA.debugLineNum = 1234;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
Debug.ShouldStop(131072);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "),__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")))),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1235;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
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_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,135);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_principal","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 135;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(64);
 BA.debugLineNum = 136;BA.debugLine="Return Me";
Debug.ShouldStop(128);
if (true) return __ref;
 BA.debugLineNum = 137;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _inv_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("inv_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2309);
if (RapidSub.canDelegate("inv_click")) { return __ref.runUserSub(false, "c_principal","inv_click", __ref);}
 BA.debugLineNum = 2309;BA.debugLine="Sub inv_Click";
Debug.ShouldStop(16);
 BA.debugLineNum = 2310;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
Debug.ShouldStop(32);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 2311;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _isconnectedtointernet(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("IsConnectedToInternet (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,786);
if (RapidSub.canDelegate("isconnectedtointernet")) { return __ref.runUserSub(false, "c_principal","isconnectedtointernet", __ref);}
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.agraham.reflection.Reflection");
 BA.debugLineNum = 786;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore";
Debug.ShouldStop(131072);
 BA.debugLineNum = 787;BA.debugLine="Dim r As Reflector";
Debug.ShouldStop(262144);
_r = RemoteObject.createNew ("anywheresoftware.b4a.agraham.reflection.Reflection");Debug.locals.put("r", _r);
 BA.debugLineNum = 788;BA.debugLine="r.Target = r.GetContext";
Debug.ShouldStop(524288);
_r.setField ("Target",(_r.runMethod(false,"GetContext",__ref.getField(false, "ba"))));
 BA.debugLineNum = 789;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn";
Debug.ShouldStop(1048576);
_r.setField ("Target",_r.runMethod(false,"RunMethod2",(Object)(BA.ObjectToString("getSystemService")),(Object)(BA.ObjectToString("connectivity")),(Object)(RemoteObject.createImmutable("java.lang.String"))));
 BA.debugLineNum = 790;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")";
Debug.ShouldStop(2097152);
_r.setField ("Target",_r.runMethod(false,"RunMethod",(Object)(RemoteObject.createImmutable("getActiveNetworkInfo"))));
 BA.debugLineNum = 791;BA.debugLine="If r.Target <> Null Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("N",_r.getField(false,"Target"))) { 
 BA.debugLineNum = 792;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")";
Debug.ShouldStop(8388608);
if (true) return BA.ObjectToBoolean(_r.runMethod(false,"RunMethod",(Object)(RemoteObject.createImmutable("isConnectedOrConnecting"))));
 };
 BA.debugLineNum = 794;BA.debugLine="Return False";
Debug.ShouldStop(33554432);
if (true) return c_principal.__c.getField(true,"False");
 BA.debugLineNum = 795;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _jobdone(RemoteObject __ref,RemoteObject _job) throws Exception{
try {
		Debug.PushSubsStack("JobDone (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,1586);
if (RapidSub.canDelegate("jobdone")) { return __ref.runUserSub(false, "c_principal","jobdone", __ref, _job);}
RemoteObject _result = RemoteObject.declareNull("reparto_izca.keymon.lat.dbrequestmanager._dbresult");
RemoteObject _records = null;
RemoteObject _cat_cl_codigo = RemoteObject.createImmutable("");
RemoteObject _cat_cl_ruta = RemoteObject.createImmutable("");
RemoteObject _cat_cl_nombre = RemoteObject.createImmutable("");
RemoteObject _cat_cl_atiende1 = RemoteObject.createImmutable("");
RemoteObject _cat_cl_atiente2 = RemoteObject.createImmutable("");
RemoteObject _cat_cl_telefono = RemoteObject.createImmutable("");
RemoteObject _cat_cl_email = RemoteObject.createImmutable("");
RemoteObject _cat_cl_calle = RemoteObject.createImmutable("");
RemoteObject _cat_cl_noext = RemoteObject.createImmutable("");
RemoteObject _cat_cl_noint = RemoteObject.createImmutable("");
RemoteObject _cat_cl_calle1 = RemoteObject.createImmutable("");
RemoteObject _cat_cl_calle2 = RemoteObject.createImmutable("");
RemoteObject _cat_cl_colonia = RemoteObject.createImmutable("");
RemoteObject _cat_cl_muni = RemoteObject.createImmutable("");
RemoteObject _cat_cl_edo = RemoteObject.createImmutable("");
RemoteObject _cat_cl_cp = RemoteObject.createImmutable("");
RemoteObject _cat_cl_long = RemoteObject.createImmutable("");
RemoteObject _cat_cl_lat = RemoteObject.createImmutable("");
RemoteObject _cat_cl_bcredito = RemoteObject.createImmutable("");
RemoteObject _nota = RemoteObject.createImmutable("");
RemoteObject _cliente = RemoteObject.createImmutable("");
RemoteObject _saldo_pendiente = RemoteObject.createImmutable("");
RemoteObject _detalle = RemoteObject.createImmutable("");
RemoteObject _conteo_cat = RemoteObject.createImmutable("");
RemoteObject _clientes = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _detalleventa = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _id = RemoteObject.createImmutable("");
RemoteObject _cuenta = RemoteObject.createImmutable("");
RemoteObject _cat_gp_id = RemoteObject.createImmutable("");
RemoteObject _cat_gp_nombre = RemoteObject.createImmutable("");
RemoteObject _cat_gp_imp1 = RemoteObject.createImmutable("");
RemoteObject _cat_gp_imp2 = RemoteObject.createImmutable("");
RemoteObject _cat_gp_precio = RemoteObject.createImmutable("");
RemoteObject _cat_gp_clasif = RemoteObject.createImmutable("");
RemoteObject _cat_gp_sts = RemoteObject.createImmutable("");
RemoteObject _cat_gp_tipo = RemoteObject.createImmutable("");
RemoteObject _cat_gp_subtipo = RemoteObject.createImmutable("");
RemoteObject _cat_gp_img = null;
RemoteObject _cat_gp_almacen = RemoteObject.createImmutable(0);
RemoteObject _cat_gp_tipoprod = RemoteObject.createImmutable(0);
RemoteObject _cat_gp_iniciativa = RemoteObject.createImmutable(0);
RemoteObject _cat_dp_precio4 = RemoteObject.createImmutable(0f);
RemoteObject _cat_dp_conversion1 = RemoteObject.createImmutable(0);
RemoteObject _conversion = RemoteObject.createImmutable("");
RemoteObject _precioconver = RemoteObject.createImmutable("");
RemoteObject _cat_dp_almacen = RemoteObject.createImmutable("");
RemoteObject _cat_dp_id = RemoteObject.createImmutable("");
RemoteObject _cat_dp_idprod = RemoteObject.createImmutable("");
RemoteObject _cat_dp_tipo = RemoteObject.createImmutable("");
RemoteObject _cat_dp_pzas = RemoteObject.createImmutable("");
RemoteObject _cat_dp_usuario = RemoteObject.createImmutable("");
RemoteObject _cat_dp_fecha = RemoteObject.createImmutable("");
RemoteObject _cat_dp_regalo = RemoteObject.createImmutable("");
RemoteObject _cat_dp_clasif = RemoteObject.createImmutable("");
RemoteObject _cat_dp_precio = RemoteObject.createImmutable("");
RemoteObject _cat_dp_precio_simptos = RemoteObject.createImmutable("");
RemoteObject _hvd_estatus = RemoteObject.createImmutable("");
RemoteObject _hv_cliente = RemoteObject.createImmutable("");
RemoteObject _hv_long = RemoteObject.createImmutable("");
RemoteObject _hv_lat = RemoteObject.createImmutable("");
RemoteObject _consecutivo = RemoteObject.createImmutable(0);
RemoteObject _hvd_cliente = RemoteObject.createImmutable("");
RemoteObject _hvd_pronombre = RemoteObject.createImmutable("");
RemoteObject _hvd_cant = RemoteObject.createImmutable("");
RemoteObject _hvd_costo_tot = RemoteObject.createImmutable("");
RemoteObject _hvd_fecha = RemoteObject.createImmutable("");
RemoteObject _hvd_codpromo = RemoteObject.createImmutable("");
RemoteObject _hvd_proid = RemoteObject.createImmutable("");
RemoteObject _hvd_num_ticket = RemoteObject.createImmutable("");
RemoteObject _hvd_num_registro = RemoteObject.createImmutable("");
RemoteObject _hvd_rechazo = RemoteObject.createImmutable("");
RemoteObject _hvd_bcredito = RemoteObject.createImmutable("");
RemoteObject _bcajas = RemoteObject.createImmutable("");
RemoteObject _cantc = RemoteObject.createImmutable("");
RemoteObject _tc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cat_va_descripcion = RemoteObject.createImmutable("");
RemoteObject _cat_va_valor = RemoteObject.createImmutable("");
RemoteObject _tmp_monto_pagare = RemoteObject.createImmutable("");
RemoteObject _tmp_cliente = RemoteObject.createImmutable("");
RemoteObject _cuantosp = RemoteObject.createImmutable(0);
RemoteObject _cuantosc = RemoteObject.createImmutable(0);
RemoteObject _cuantosn = RemoteObject.createImmutable(0);
RemoteObject _cat_ve_version = RemoteObject.createImmutable("");
RemoteObject _valido = RemoteObject.createImmutable("");
RemoteObject _lat = RemoteObject.createImmutable(0);
RemoteObject _lon = RemoteObject.createImmutable(0);
RemoteObject _k = RemoteObject.createImmutable("");
Debug.locals.put("Job", _job);
 BA.debugLineNum = 1586;BA.debugLine="Sub JobDone(Job As HttpJob)";
Debug.ShouldStop(131072);
 BA.debugLineNum = 1588;BA.debugLine="If Job.Success = False Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_success" /*RemoteObject*/ ),c_principal.__c.getField(true,"False"))) { 
 BA.debugLineNum = 1589;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro";
Debug.ShouldStop(1048576);
c_principal.__c.runVoidMethod ("LogImpl","814876675",RemoteObject.concat(RemoteObject.createImmutable("** "),_job.getField(false,"_tag" /*RemoteObject*/ ),RemoteObject.createImmutable(" Error: "),_job.getField(true,"_errormessage" /*RemoteObject*/ )),c_principal.__c.getField(false,"Colors").getField(true,"Red"));
 }else {
 BA.debugLineNum = 1592;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
Debug.ShouldStop(8388608);
c_principal.__c.runVoidMethod ("LogImpl","814876678",RemoteObject.concat(RemoteObject.createImmutable("JobDone: '"),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable("' - Registros: "),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")),c_principal.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 1593;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1594;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(33554432);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1595;BA.debugLine="If result.Tag = \"kmt_datos\" Then 'query tag";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("kmt_datos")))) { 
 BA.debugLineNum = 1596;BA.debugLine="If reqs.IndexOf(\"kmt_datos\") > -1 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("kmt_datos")))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1597;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"kmt_datos\"))";
Debug.ShouldStop(268435456);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("kmt_datos"))))));
 };
 BA.debugLineNum = 1600;BA.debugLine="Starter.skmt.BeginTransaction";
Debug.ShouldStop(-2147483648);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("BeginTransaction");
 BA.debugLineNum = 1602;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(2);
{
final RemoteObject group12 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen12 = group12.runMethod(true,"getSize").<Integer>get()
;int index12 = 0;
;
for (; index12 < groupLen12;index12++){
_records = (group12.runMethod(false,"Get",index12));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1603;BA.debugLine="Dim CAT_CL_CODIGO As String = records(result.";
Debug.ShouldStop(4);
_cat_cl_codigo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CODIGO")))))));Debug.locals.put("CAT_CL_CODIGO", _cat_cl_codigo);Debug.locals.put("CAT_CL_CODIGO", _cat_cl_codigo);
 BA.debugLineNum = 1604;BA.debugLine="Dim CAT_CL_RUTA As String = records(result.Co";
Debug.ShouldStop(8);
_cat_cl_ruta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_RUTA")))))));Debug.locals.put("CAT_CL_RUTA", _cat_cl_ruta);Debug.locals.put("CAT_CL_RUTA", _cat_cl_ruta);
 BA.debugLineNum = 1605;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(result.";
Debug.ShouldStop(16);
_cat_cl_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_NOMBRE")))))));Debug.locals.put("CAT_CL_NOMBRE", _cat_cl_nombre);Debug.locals.put("CAT_CL_NOMBRE", _cat_cl_nombre);
 BA.debugLineNum = 1606;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(resul";
Debug.ShouldStop(32);
_cat_cl_atiende1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_ATIENDE1")))))));Debug.locals.put("CAT_CL_ATIENDE1", _cat_cl_atiende1);Debug.locals.put("CAT_CL_ATIENDE1", _cat_cl_atiende1);
 BA.debugLineNum = 1607;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(resul";
Debug.ShouldStop(64);
_cat_cl_atiente2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_ATIENTE2")))))));Debug.locals.put("CAT_CL_ATIENTE2", _cat_cl_atiente2);Debug.locals.put("CAT_CL_ATIENTE2", _cat_cl_atiente2);
 BA.debugLineNum = 1608;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(resul";
Debug.ShouldStop(128);
_cat_cl_telefono = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_TELEFONO")))))));Debug.locals.put("CAT_CL_TELEFONO", _cat_cl_telefono);Debug.locals.put("CAT_CL_TELEFONO", _cat_cl_telefono);
 BA.debugLineNum = 1609;BA.debugLine="Dim CAT_CL_EMAIL As String = records(result.C";
Debug.ShouldStop(256);
_cat_cl_email = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_EMAIL")))))));Debug.locals.put("CAT_CL_EMAIL", _cat_cl_email);Debug.locals.put("CAT_CL_EMAIL", _cat_cl_email);
 BA.debugLineNum = 1610;BA.debugLine="Dim CAT_CL_CALLE As String = records(result.C";
Debug.ShouldStop(512);
_cat_cl_calle = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CALLE")))))));Debug.locals.put("CAT_CL_CALLE", _cat_cl_calle);Debug.locals.put("CAT_CL_CALLE", _cat_cl_calle);
 BA.debugLineNum = 1611;BA.debugLine="Dim CAT_CL_NOEXT As String = records(result.C";
Debug.ShouldStop(1024);
_cat_cl_noext = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_NOEXT")))))));Debug.locals.put("CAT_CL_NOEXT", _cat_cl_noext);Debug.locals.put("CAT_CL_NOEXT", _cat_cl_noext);
 BA.debugLineNum = 1612;BA.debugLine="Dim CAT_CL_NOINT As String = records(result.C";
Debug.ShouldStop(2048);
_cat_cl_noint = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_NOINT")))))));Debug.locals.put("CAT_CL_NOINT", _cat_cl_noint);Debug.locals.put("CAT_CL_NOINT", _cat_cl_noint);
 BA.debugLineNum = 1613;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(result.";
Debug.ShouldStop(4096);
_cat_cl_calle1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CALLE1")))))));Debug.locals.put("CAT_CL_CALLE1", _cat_cl_calle1);Debug.locals.put("CAT_CL_CALLE1", _cat_cl_calle1);
 BA.debugLineNum = 1614;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(result.";
Debug.ShouldStop(8192);
_cat_cl_calle2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CALLE2")))))));Debug.locals.put("CAT_CL_CALLE2", _cat_cl_calle2);Debug.locals.put("CAT_CL_CALLE2", _cat_cl_calle2);
 BA.debugLineNum = 1615;BA.debugLine="Dim CAT_CL_COLONIA As String = records(result";
Debug.ShouldStop(16384);
_cat_cl_colonia = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_COLONIA")))))));Debug.locals.put("CAT_CL_COLONIA", _cat_cl_colonia);Debug.locals.put("CAT_CL_COLONIA", _cat_cl_colonia);
 BA.debugLineNum = 1616;BA.debugLine="Dim CAT_CL_MUNI As String = records(result.Co";
Debug.ShouldStop(32768);
_cat_cl_muni = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_MUNI")))))));Debug.locals.put("CAT_CL_MUNI", _cat_cl_muni);Debug.locals.put("CAT_CL_MUNI", _cat_cl_muni);
 BA.debugLineNum = 1617;BA.debugLine="Dim CAT_CL_EDO As String = records(result.Col";
Debug.ShouldStop(65536);
_cat_cl_edo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_EDO")))))));Debug.locals.put("CAT_CL_EDO", _cat_cl_edo);Debug.locals.put("CAT_CL_EDO", _cat_cl_edo);
 BA.debugLineNum = 1618;BA.debugLine="Dim CAT_CL_CP As String = records(result.Colu";
Debug.ShouldStop(131072);
_cat_cl_cp = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CP")))))));Debug.locals.put("CAT_CL_CP", _cat_cl_cp);Debug.locals.put("CAT_CL_CP", _cat_cl_cp);
 BA.debugLineNum = 1619;BA.debugLine="Dim CAT_CL_LONG As String = records(result.Co";
Debug.ShouldStop(262144);
_cat_cl_long = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_LONG")))))));Debug.locals.put("CAT_CL_LONG", _cat_cl_long);Debug.locals.put("CAT_CL_LONG", _cat_cl_long);
 BA.debugLineNum = 1620;BA.debugLine="Dim CAT_CL_LAT As String = records(result.Col";
Debug.ShouldStop(524288);
_cat_cl_lat = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_LAT")))))));Debug.locals.put("CAT_CL_LAT", _cat_cl_lat);Debug.locals.put("CAT_CL_LAT", _cat_cl_lat);
 BA.debugLineNum = 1621;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(resul";
Debug.ShouldStop(1048576);
_cat_cl_bcredito = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_BCREDITO")))))));Debug.locals.put("CAT_CL_BCREDITO", _cat_cl_bcredito);Debug.locals.put("CAT_CL_BCREDITO", _cat_cl_bcredito);
 BA.debugLineNum = 1624;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_i";
Debug.ShouldStop(8388608);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {19},new Object[] {(_cat_cl_codigo),(_cat_cl_ruta),(_cat_cl_nombre),(_cat_cl_atiende1),(_cat_cl_atiente2),(_cat_cl_telefono),(_cat_cl_email),(_cat_cl_calle),(_cat_cl_noext),(_cat_cl_noint),(_cat_cl_calle1),(_cat_cl_calle2),(_cat_cl_colonia),(_cat_cl_muni),(_cat_cl_edo),(_cat_cl_cp),(_cat_cl_long),(_cat_cl_lat),(_cat_cl_bcredito)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1626;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in";
Debug.ShouldStop(33554432);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion,SECUENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {20},new Object[] {RemoteObject.createImmutable((63403)),RemoteObject.createImmutable((1000)),RemoteObject.createImmutable(("PRODUCTO DAÑADO")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("")),RemoteObject.createImmutable(("-98.8357694")),RemoteObject.createImmutable(("19.6906052")),RemoteObject.createImmutable(("0")),(RemoteObject.createImmutable("1"))})))));
 BA.debugLineNum = 1628;BA.debugLine="Starter.skmt.TransactionSuccessful";
Debug.ShouldStop(134217728);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("TransactionSuccessful");
 BA.debugLineNum = 1629;BA.debugLine="Starter.skmt.EndTransaction";
Debug.ShouldStop(268435456);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("EndTransaction");
 BA.debugLineNum = 1630;BA.debugLine="Listo1 = 1";
Debug.ShouldStop(536870912);
__ref.setField ("_listo1" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1631;BA.debugLine="If Listo1 = 1  And Listo3 = 1  Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1632;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
Debug.ShouldStop(-2147483648);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1633;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(1);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 1634;BA.debugLine="img2.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1635;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(4);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 };
 BA.debugLineNum = 1639;BA.debugLine="t8.Initialize(\"t8\", 20000) ' 1000 = 1 second";
Debug.ShouldStop(64);
__ref.getField(false,"_t8" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(BA.ObjectToString("t8")),(Object)(BA.numberCast(long.class, 20000)));
 BA.debugLineNum = 1640;BA.debugLine="t8.Enabled = True";
Debug.ShouldStop(128);
__ref.getField(false,"_t8" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_principal.__c.getField(true,"True"));
 };
 };
 BA.debugLineNum = 1645;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1646;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(8192);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1647;BA.debugLine="If result.Tag = \"select_abonosp\" Then 'query ta";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("select_abonosp")))) { 
 BA.debugLineNum = 1648;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(32768);
{
final RemoteObject group51 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen51 = group51.runMethod(true,"getSize").<Integer>get()
;int index51 = 0;
;
for (; index51 < groupLen51;index51++){
_records = (group51.runMethod(false,"Get",index51));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1649;BA.debugLine="Dim NOTA As String = records(result.Columns.G";
Debug.ShouldStop(65536);
_nota = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("NOTA")))))));Debug.locals.put("NOTA", _nota);Debug.locals.put("NOTA", _nota);
 BA.debugLineNum = 1650;BA.debugLine="Dim CLIENTE As String = records(result.Column";
Debug.ShouldStop(131072);
_cliente = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CLIENTE")))))));Debug.locals.put("CLIENTE", _cliente);Debug.locals.put("CLIENTE", _cliente);
 BA.debugLineNum = 1651;BA.debugLine="Dim SALDO_PENDIENTE As String = records(resul";
Debug.ShouldStop(262144);
_saldo_pendiente = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("SALDO_PENDIENTE")))))));Debug.locals.put("SALDO_PENDIENTE", _saldo_pendiente);Debug.locals.put("SALDO_PENDIENTE", _saldo_pendiente);
 BA.debugLineNum = 1653;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO ABONOSP(NOTA,CLIENTE,SALDO_PENDIENTE) VALUES (?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_nota),(_cliente),(_saldo_pendiente)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1658;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1659;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(67108864);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1660;BA.debugLine="If result.Tag = \"CONTEO_DATOS\" Then 'query tag";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("CONTEO_DATOS")))) { 
 BA.debugLineNum = 1661;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(268435456);
{
final RemoteObject group62 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen62 = group62.runMethod(true,"getSize").<Integer>get()
;int index62 = 0;
;
for (; index62 < groupLen62;index62++){
_records = (group62.runMethod(false,"Get",index62));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1662;BA.debugLine="Dim DETALLE As String = records(result.Column";
Debug.ShouldStop(536870912);
_detalle = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("DETALE")))))));Debug.locals.put("DETALLE", _detalle);Debug.locals.put("DETALLE", _detalle);
 BA.debugLineNum = 1663;BA.debugLine="Dim CONTEO_CAT As String = records(result.Col";
Debug.ShouldStop(1073741824);
_conteo_cat = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CONTEO_CAT")))))));Debug.locals.put("CONTEO_CAT", _conteo_cat);Debug.locals.put("CONTEO_CAT", _conteo_cat);
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1668;BA.debugLine="Dim clientes As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(8);
_clientes = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_clientes = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as clientes from kmt_info WHERE CAT_CL_CODIGO <> 63403"))));Debug.locals.put("clientes", _clientes);Debug.locals.put("clientes", _clientes);
 BA.debugLineNum = 1669;BA.debugLine="clientes.Position = 0";
Debug.ShouldStop(16);
_clientes.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1671;BA.debugLine="Dim detalleventa As Cursor = Starter.skmt.Exec";
Debug.ShouldStop(64);
_detalleventa = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_detalleventa = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as detalle from hist_ventas"))));Debug.locals.put("detalleventa", _detalleventa);Debug.locals.put("detalleventa", _detalleventa);
 BA.debugLineNum = 1672;BA.debugLine="detalleventa.Position = 0";
Debug.ShouldStop(128);
_detalleventa.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1674;BA.debugLine="Log(CONTEO_CAT)";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethod ("LogImpl","814876760",_conteo_cat,0);
 BA.debugLineNum = 1675;BA.debugLine="Log(clientes.GetString(\"clientes\"))";
Debug.ShouldStop(1024);
c_principal.__c.runVoidMethod ("LogImpl","814876761",_clientes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("clientes"))),0);
 BA.debugLineNum = 1676;BA.debugLine="If clientes.GetString(\"clientes\") = CONTEO_CAT";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_clientes.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("clientes"))),_conteo_cat)) { 
 BA.debugLineNum = 1677;BA.debugLine="PB_carga2.Progress = 100";
Debug.ShouldStop(4096);
__ref.getField(false,"_pb_carga2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1678;BA.debugLine="l_carga2.Text = \"LISTO\"";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_carga2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 }else {
 };
 BA.debugLineNum = 1683;BA.debugLine="Log(DETALLE)";
Debug.ShouldStop(262144);
c_principal.__c.runVoidMethod ("LogImpl","814876769",_detalle,0);
 BA.debugLineNum = 1684;BA.debugLine="Log(detalleventa.GetString(\"detalle\"))";
Debug.ShouldStop(524288);
c_principal.__c.runVoidMethod ("LogImpl","814876770",_detalleventa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("detalle"))),0);
 BA.debugLineNum = 1685;BA.debugLine="If detalleventa.GetString(\"detalle\") = DETALLE";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_detalleventa.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("detalle"))),_detalle)) { 
 BA.debugLineNum = 1686;BA.debugLine="PB_carga.Progress = 100";
Debug.ShouldStop(2097152);
__ref.getField(false,"_pb_carga" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1687;BA.debugLine="L_carga.Text = \"LISTO\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_carga" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 }else {
 };
 BA.debugLineNum = 1692;BA.debugLine="clientes.Close";
Debug.ShouldStop(134217728);
_clientes.runVoidMethod ("Close");
 BA.debugLineNum = 1693;BA.debugLine="detalleventa.Close";
Debug.ShouldStop(268435456);
_detalleventa.runVoidMethod ("Close");
 };
 };
 BA.debugLineNum = 1698;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1699;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(4);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1700;BA.debugLine="If result.Tag.As(String).IndexOf(\"PICK_C_\") > -";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",(BA.ObjectToString(_result.getField(false,"Tag" /*RemoteObject*/ ))).runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("PICK_C_"))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1702;BA.debugLine="Private id As String= result.Tag";
Debug.ShouldStop(32);
_id = BA.ObjectToString(_result.getField(false,"Tag" /*RemoteObject*/ ));Debug.locals.put("id", _id);Debug.locals.put("id", _id);
 BA.debugLineNum = 1703;BA.debugLine="id = id.SubString(id.IndexOf(\"_\")+3)";
Debug.ShouldStop(64);
_id = _id.runMethod(true,"substring",(Object)(RemoteObject.solve(new RemoteObject[] {_id.runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("_"))),RemoteObject.createImmutable(3)}, "+",1, 1)));Debug.locals.put("id", _id);
 BA.debugLineNum = 1704;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(128);
{
final RemoteObject group93 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen93 = group93.runMethod(true,"getSize").<Integer>get()
;int index93 = 0;
;
for (; index93 < groupLen93;index93++){
_records = (group93.runMethod(false,"Get",index93));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1705;BA.debugLine="Dim CUENTA As String = records(result.Columns";
Debug.ShouldStop(256);
_cuenta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUENTA")))))));Debug.locals.put("CUENTA", _cuenta);Debug.locals.put("CUENTA", _cuenta);
 BA.debugLineNum = 1706;BA.debugLine="Log(CUENTA)";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethod ("LogImpl","814876792",_cuenta,0);
 BA.debugLineNum = 1707;BA.debugLine="Log(id)";
Debug.ShouldStop(1024);
c_principal.__c.runVoidMethod ("LogImpl","814876793",_id,0);
 BA.debugLineNum = 1708;BA.debugLine="If CUENTA = 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_cuenta,BA.NumberToString(0))) { 
 BA.debugLineNum = 1709;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_id}))));
 BA.debugLineNum = 1710;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1712;BA.debugLine="c.Position=0";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1713;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(65536);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1714;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1715;BA.debugLine="cmd.Name = \"insert_PICKCIEGO_IZCA\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_PICKCIEGO_IZCA"));
 BA.debugLineNum = 1716;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_ID_PROD")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOM_PROD")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_CANT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_ALMACEN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_RUTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FECHA")))),(RemoteObject.createImmutable("REPARTO"))}));
 BA.debugLineNum = 1717;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_PC\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_PC"))));
 };
 BA.debugLineNum = 1720;BA.debugLine="c.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 1721;BA.debugLine="Else if CUENTA > 0 Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _cuenta),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1722;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD= ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_id}))));
 BA.debugLineNum = 1723;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1725;BA.debugLine="c.Position = 0";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1726;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(536870912);
c_principal._cmd = RemoteObject.createNew ("reparto_izca.keymon.lat.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1727;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1728;BA.debugLine="cmd.Name = \"update_PICKCIEGO_IZCA\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("update_PICKCIEGO_IZCA"));
 BA.debugLineNum = 1729;BA.debugLine="Log(\"FECHA\" & c.GetString(\"PC_FECHA\"))";
Debug.ShouldStop(1);
c_principal.__c.runVoidMethod ("LogImpl","814876815",RemoteObject.concat(RemoteObject.createImmutable("FECHA"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FECHA")))),0);
 BA.debugLineNum = 1730;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {6},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_CANT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_ID_PROD")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_ALMACEN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_RUTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FECHA")))),(RemoteObject.createImmutable("REPARTO"))}));
 BA.debugLineNum = 1731;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_PC\")";
Debug.ShouldStop(4);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("update_PC"))));
 };
 BA.debugLineNum = 1734;BA.debugLine="c.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 }}
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1742;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1743;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(16384);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1744;BA.debugLine="If result.Tag = \"gunaprod3\" Then 'query tag";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("gunaprod3")))) { 
 BA.debugLineNum = 1745;BA.debugLine="If reqs.IndexOf(\"gunaprod3\") > -1 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("gunaprod3")))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1746;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod3\"))";
Debug.ShouldStop(131072);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("gunaprod3"))))));
 BA.debugLineNum = 1747;BA.debugLine="Log(reqs.Size)";
Debug.ShouldStop(262144);
c_principal.__c.runVoidMethod ("LogImpl","814876833",BA.NumberToString(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"getSize")),0);
 };
 BA.debugLineNum = 1749;BA.debugLine="Starter.skmt.BeginTransaction";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("BeginTransaction");
 BA.debugLineNum = 1750;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(2097152);
{
final RemoteObject group132 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen132 = group132.runMethod(true,"getSize").<Integer>get()
;int index132 = 0;
;
for (; index132 < groupLen132;index132++){
_records = (group132.runMethod(false,"Get",index132));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1751;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu";
Debug.ShouldStop(4194304);
_cat_gp_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ID")))))));Debug.locals.put("CAT_GP_ID", _cat_gp_id);Debug.locals.put("CAT_GP_ID", _cat_gp_id);
 BA.debugLineNum = 1752;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result.";
Debug.ShouldStop(8388608);
_cat_gp_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_NOMBRE")))))));Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);
 BA.debugLineNum = 1753;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co";
Debug.ShouldStop(16777216);
_cat_gp_imp1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP1")))))));Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);
 BA.debugLineNum = 1754;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co";
Debug.ShouldStop(33554432);
_cat_gp_imp2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP2")))))));Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);
 BA.debugLineNum = 1755;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result.";
Debug.ShouldStop(67108864);
_cat_gp_precio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_PRECIO")))))));Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);
 BA.debugLineNum = 1756;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result.";
Debug.ShouldStop(134217728);
_cat_gp_clasif = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_CLASIF")))))));Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);
 BA.debugLineNum = 1757;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col";
Debug.ShouldStop(268435456);
_cat_gp_sts = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_STS")))))));Debug.locals.put("CAT_GP_STS", _cat_gp_sts);Debug.locals.put("CAT_GP_STS", _cat_gp_sts);
 BA.debugLineNum = 1758;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co";
Debug.ShouldStop(536870912);
_cat_gp_tipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPO")))))));Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);
 BA.debugLineNum = 1759;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result";
Debug.ShouldStop(1073741824);
_cat_gp_subtipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_SUBTIPO")))))));Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);
 BA.debugLineNum = 1760;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col";
Debug.ShouldStop(-2147483648);
_cat_gp_img = (_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMG")))))));Debug.locals.put("CAT_GP_IMG", _cat_gp_img);Debug.locals.put("CAT_GP_IMG", _cat_gp_img);
 BA.debugLineNum = 1761;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(result.Co";
Debug.ShouldStop(1);
_cat_gp_almacen = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ALMACEN")))))));Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);
 BA.debugLineNum = 1763;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(result.C";
Debug.ShouldStop(4);
_cat_gp_tipoprod = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPOPROD")))))));Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);
 BA.debugLineNum = 1764;BA.debugLine="Dim CAT_GP_INICIATIVA As Int = records(result";
Debug.ShouldStop(8);
_cat_gp_iniciativa = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_INICIATIVA")))))));Debug.locals.put("CAT_GP_INICIATIVA", _cat_gp_iniciativa);Debug.locals.put("CAT_GP_INICIATIVA", _cat_gp_iniciativa);
 BA.debugLineNum = 1765;BA.debugLine="Dim CAT_DP_PRECIO4 As Float = records(result.";
Debug.ShouldStop(16);
_cat_dp_precio4 = BA.numberCast(float.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_PRECIO4")))))));Debug.locals.put("CAT_DP_PRECIO4", _cat_dp_precio4);Debug.locals.put("CAT_DP_PRECIO4", _cat_dp_precio4);
 BA.debugLineNum = 1766;BA.debugLine="Dim CAT_DP_CONVERSION1 As Int = records(resul";
Debug.ShouldStop(32);
_cat_dp_conversion1 = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_CONVERSION1")))))));Debug.locals.put("CAT_DP_CONVERSION1", _cat_dp_conversion1);Debug.locals.put("CAT_DP_CONVERSION1", _cat_dp_conversion1);
 BA.debugLineNum = 1770;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
Debug.ShouldStop(512);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_GUNAPROD3(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_DP_PRECIO4,CAT_DP_CONVERSION1) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {15},new Object[] {(_cat_gp_id),(_cat_gp_nombre),(_cat_gp_imp1),(_cat_gp_imp2),(_cat_gp_precio),(_cat_gp_clasif),(_cat_gp_sts),(_cat_gp_tipo),(_cat_gp_subtipo),(_cat_gp_img),(_cat_gp_almacen),(_cat_gp_tipoprod),(_cat_gp_iniciativa),(_cat_dp_precio4),(_cat_dp_conversion1)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1772;BA.debugLine="Starter.skmt.TransactionSuccessful";
Debug.ShouldStop(2048);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("TransactionSuccessful");
 BA.debugLineNum = 1773;BA.debugLine="Starter.skmt.EndTransaction";
Debug.ShouldStop(4096);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("EndTransaction");
 BA.debugLineNum = 1774;BA.debugLine="Listo2=1";
Debug.ShouldStop(8192);
__ref.setField ("_listo2" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1775;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1776;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
Debug.ShouldStop(32768);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1777;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(65536);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 1778;BA.debugLine="img2.Visible = False";
Debug.ShouldStop(131072);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1779;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(262144);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 };
 };
 };
 BA.debugLineNum = 1784;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1785;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(16777216);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1786;BA.debugLine="If result.Tag = \"gunaprod\" Then 'query tag";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("gunaprod")))) { 
 BA.debugLineNum = 1787;BA.debugLine="Log(\"Entramos a GUNA_PROD<--------------------";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("LogImpl","814876873",RemoteObject.createImmutable("Entramos a GUNA_PROD<---------------------------------"),0);
 BA.debugLineNum = 1788;BA.debugLine="If reqs.IndexOf(\"gunaprod\") > -1 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("gunaprod")))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1789;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod\"))";
Debug.ShouldStop(268435456);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("gunaprod"))))));
 BA.debugLineNum = 1790;BA.debugLine="Log(reqs.Size)";
Debug.ShouldStop(536870912);
c_principal.__c.runVoidMethod ("LogImpl","814876876",BA.NumberToString(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"getSize")),0);
 };
 BA.debugLineNum = 1792;BA.debugLine="Starter.skmt.BeginTransaction";
Debug.ShouldStop(-2147483648);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("BeginTransaction");
 BA.debugLineNum = 1793;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(1);
{
final RemoteObject group170 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen170 = group170.runMethod(true,"getSize").<Integer>get()
;int index170 = 0;
;
for (; index170 < groupLen170;index170++){
_records = (group170.runMethod(false,"Get",index170));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1794;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu";
Debug.ShouldStop(2);
_cat_gp_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_ID")))))));Debug.locals.put("CAT_GP_ID", _cat_gp_id);Debug.locals.put("CAT_GP_ID", _cat_gp_id);
 BA.debugLineNum = 1795;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result.";
Debug.ShouldStop(4);
_cat_gp_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_NOMBRE")))))));Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);
 BA.debugLineNum = 1796;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co";
Debug.ShouldStop(8);
_cat_gp_imp1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_IMP1")))))));Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);
 BA.debugLineNum = 1797;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co";
Debug.ShouldStop(16);
_cat_gp_imp2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_IMP2")))))));Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);
 BA.debugLineNum = 1798;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result.";
Debug.ShouldStop(32);
_cat_gp_precio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_PRECIO")))))));Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);
 BA.debugLineNum = 1799;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result.";
Debug.ShouldStop(64);
_cat_gp_clasif = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_CLASIF")))))));Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);
 BA.debugLineNum = 1800;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col";
Debug.ShouldStop(128);
_cat_gp_sts = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_STS")))))));Debug.locals.put("CAT_GP_STS", _cat_gp_sts);Debug.locals.put("CAT_GP_STS", _cat_gp_sts);
 BA.debugLineNum = 1801;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co";
Debug.ShouldStop(256);
_cat_gp_tipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_TIPO")))))));Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);
 BA.debugLineNum = 1802;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result";
Debug.ShouldStop(512);
_cat_gp_subtipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_SUBTIPO")))))));Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);
 BA.debugLineNum = 1803;BA.debugLine="Dim CONVERSION As String = 0'records(result.C";
Debug.ShouldStop(1024);
_conversion = BA.NumberToString(0);Debug.locals.put("CONVERSION", _conversion);Debug.locals.put("CONVERSION", _conversion);
 BA.debugLineNum = 1804;BA.debugLine="Dim PRECIOCONVER As String = 0' records(resul";
Debug.ShouldStop(2048);
_precioconver = BA.NumberToString(0);Debug.locals.put("PRECIOCONVER", _precioconver);Debug.locals.put("PRECIOCONVER", _precioconver);
 BA.debugLineNum = 1805;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col";
Debug.ShouldStop(4096);
_cat_gp_img = (_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_IMG")))))));Debug.locals.put("CAT_GP_IMG", _cat_gp_img);Debug.locals.put("CAT_GP_IMG", _cat_gp_img);
 BA.debugLineNum = 1810;BA.debugLine="Log(CAT_GP_NOMBRE & \"<-----------------------";
Debug.ShouldStop(131072);
c_principal.__c.runVoidMethod ("LogImpl","814876896",RemoteObject.concat(_cat_gp_nombre,RemoteObject.createImmutable("<-------------------------------------")),0);
 BA.debugLineNum = 1811;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
Debug.ShouldStop(262144);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CONVERSION,PRECIOCONVER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {13},new Object[] {(_cat_gp_id),(_cat_gp_nombre),(_cat_gp_imp1),(_cat_gp_imp2),(_cat_gp_precio),(_cat_gp_clasif),(_cat_gp_sts),(_cat_gp_tipo),(_cat_gp_subtipo),(_cat_gp_img),RemoteObject.createImmutable((0)),(_conversion),(_precioconver)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1813;BA.debugLine="Starter.skmt.TransactionSuccessful";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("TransactionSuccessful");
 BA.debugLineNum = 1814;BA.debugLine="Starter.skmt.EndTransaction";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("EndTransaction");
 BA.debugLineNum = 1815;BA.debugLine="Listo2=1";
Debug.ShouldStop(4194304);
__ref.setField ("_listo2" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1816;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1817;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
Debug.ShouldStop(16777216);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1818;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(33554432);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 1819;BA.debugLine="img2.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1820;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(134217728);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 };
 };
 };
 BA.debugLineNum = 1825;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1826;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(2);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1827;BA.debugLine="If result.Tag = \"gunaprodp\" Then 'query tag";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("gunaprodp")))) { 
 BA.debugLineNum = 1828;BA.debugLine="If reqs.IndexOf(\"gunaprodp\") > -1 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("gunaprodp")))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1829;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprodp\"))";
Debug.ShouldStop(16);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("gunaprodp"))))));
 BA.debugLineNum = 1830;BA.debugLine="Log(reqs.Size)";
Debug.ShouldStop(32);
c_principal.__c.runVoidMethod ("LogImpl","814876916",BA.NumberToString(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"getSize")),0);
 };
 BA.debugLineNum = 1832;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(128);
{
final RemoteObject group204 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen204 = group204.runMethod(true,"getSize").<Integer>get()
;int index204 = 0;
;
for (; index204 < groupLen204;index204++){
_records = (group204.runMethod(false,"Get",index204));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1833;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu";
Debug.ShouldStop(256);
_cat_gp_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ID")))))));Debug.locals.put("CAT_GP_ID", _cat_gp_id);Debug.locals.put("CAT_GP_ID", _cat_gp_id);
 BA.debugLineNum = 1834;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result.";
Debug.ShouldStop(512);
_cat_gp_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_NOMBRE")))))));Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);
 BA.debugLineNum = 1835;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co";
Debug.ShouldStop(1024);
_cat_gp_imp1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP1")))))));Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);
 BA.debugLineNum = 1836;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co";
Debug.ShouldStop(2048);
_cat_gp_imp2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP2")))))));Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);
 BA.debugLineNum = 1837;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result.";
Debug.ShouldStop(4096);
_cat_gp_precio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_PRECIO")))))));Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);
 BA.debugLineNum = 1838;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result.";
Debug.ShouldStop(8192);
_cat_gp_clasif = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_CLASIF")))))));Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);
 BA.debugLineNum = 1839;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col";
Debug.ShouldStop(16384);
_cat_gp_sts = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_STS")))))));Debug.locals.put("CAT_GP_STS", _cat_gp_sts);Debug.locals.put("CAT_GP_STS", _cat_gp_sts);
 BA.debugLineNum = 1840;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co";
Debug.ShouldStop(32768);
_cat_gp_tipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPO")))))));Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);
 BA.debugLineNum = 1841;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result";
Debug.ShouldStop(65536);
_cat_gp_subtipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_SUBTIPO")))))));Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);
 BA.debugLineNum = 1842;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col";
Debug.ShouldStop(131072);
_cat_gp_img = (_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMG")))))));Debug.locals.put("CAT_GP_IMG", _cat_gp_img);Debug.locals.put("CAT_GP_IMG", _cat_gp_img);
 BA.debugLineNum = 1845;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN) VALUES (?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(_cat_gp_id),(_cat_gp_nombre),(_cat_gp_imp1),(_cat_gp_imp2),(_cat_gp_precio),(_cat_gp_clasif),(_cat_gp_sts),(_cat_gp_tipo),(_cat_gp_subtipo),(_cat_gp_img),RemoteObject.createImmutable((0))})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1847;BA.debugLine="Listo4=1";
Debug.ShouldStop(4194304);
__ref.setField ("_listo4" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1848;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1849;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
Debug.ShouldStop(16777216);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1850;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(33554432);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 1851;BA.debugLine="img2.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1852;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(134217728);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }else 
{ BA.debugLineNum = 1853;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_inve" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1854;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
Debug.ShouldStop(536870912);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1855;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(1073741824);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 1856;BA.debugLine="img2.Visible = False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1857;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(1);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }}
;
 };
 };
 BA.debugLineNum = 1862;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1863;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(64);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1864;BA.debugLine="If result.Tag = \"detallepaq\" Then 'query tag";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("detallepaq")))) { 
 BA.debugLineNum = 1865;BA.debugLine="If reqs.IndexOf(\"detallepaq\") > -1 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("detallepaq")))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1866;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"detallepaq\"))";
Debug.ShouldStop(512);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("detallepaq"))))));
 BA.debugLineNum = 1867;BA.debugLine="Log(reqs.Size)";
Debug.ShouldStop(1024);
c_principal.__c.runVoidMethod ("LogImpl","814876953",BA.NumberToString(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"getSize")),0);
 };
 BA.debugLineNum = 1869;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(4096);
{
final RemoteObject group238 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen238 = group238.runMethod(true,"getSize").<Integer>get()
;int index238 = 0;
;
for (; index238 < groupLen238;index238++){
_records = (group238.runMethod(false,"Get",index238));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1870;BA.debugLine="Dim CAT_DP_ALMACEN  As String = records(resul";
Debug.ShouldStop(8192);
_cat_dp_almacen = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_ALMACEN")))))));Debug.locals.put("CAT_DP_ALMACEN", _cat_dp_almacen);Debug.locals.put("CAT_DP_ALMACEN", _cat_dp_almacen);
 BA.debugLineNum = 1871;BA.debugLine="Dim CAT_DP_ID As String = records(result.Colu";
Debug.ShouldStop(16384);
_cat_dp_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_ID")))))));Debug.locals.put("CAT_DP_ID", _cat_dp_id);Debug.locals.put("CAT_DP_ID", _cat_dp_id);
 BA.debugLineNum = 1872;BA.debugLine="Dim CAT_DP_IDPROD As String = records(result.";
Debug.ShouldStop(32768);
_cat_dp_idprod = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_IDPROD")))))));Debug.locals.put("CAT_DP_IDPROD", _cat_dp_idprod);Debug.locals.put("CAT_DP_IDPROD", _cat_dp_idprod);
 BA.debugLineNum = 1873;BA.debugLine="Dim CAT_DP_TIPO As String = records(result.Co";
Debug.ShouldStop(65536);
_cat_dp_tipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_TIPO")))))));Debug.locals.put("CAT_DP_TIPO", _cat_dp_tipo);Debug.locals.put("CAT_DP_TIPO", _cat_dp_tipo);
 BA.debugLineNum = 1874;BA.debugLine="Dim CAT_DP_PZAS As String = records(result.Co";
Debug.ShouldStop(131072);
_cat_dp_pzas = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_PZAS")))))));Debug.locals.put("CAT_DP_PZAS", _cat_dp_pzas);Debug.locals.put("CAT_DP_PZAS", _cat_dp_pzas);
 BA.debugLineNum = 1875;BA.debugLine="Dim CAT_DP_USUARIO  As String = records(resul";
Debug.ShouldStop(262144);
_cat_dp_usuario = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_USUARIO")))))));Debug.locals.put("CAT_DP_USUARIO", _cat_dp_usuario);Debug.locals.put("CAT_DP_USUARIO", _cat_dp_usuario);
 BA.debugLineNum = 1876;BA.debugLine="Dim CAT_DP_FECHA As String = records(result.C";
Debug.ShouldStop(524288);
_cat_dp_fecha = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_FECHA")))))));Debug.locals.put("CAT_DP_FECHA", _cat_dp_fecha);Debug.locals.put("CAT_DP_FECHA", _cat_dp_fecha);
 BA.debugLineNum = 1877;BA.debugLine="Dim CAT_DP_REGALO  As String = records(result";
Debug.ShouldStop(1048576);
_cat_dp_regalo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_REGALO")))))));Debug.locals.put("CAT_DP_REGALO", _cat_dp_regalo);Debug.locals.put("CAT_DP_REGALO", _cat_dp_regalo);
 BA.debugLineNum = 1878;BA.debugLine="Dim CAT_DP_CLASIF  As String = records(result";
Debug.ShouldStop(2097152);
_cat_dp_clasif = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_CLASIF")))))));Debug.locals.put("CAT_DP_CLASIF", _cat_dp_clasif);Debug.locals.put("CAT_DP_CLASIF", _cat_dp_clasif);
 BA.debugLineNum = 1879;BA.debugLine="Dim CAT_DP_PRECIO As String = records(result.";
Debug.ShouldStop(4194304);
_cat_dp_precio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_PRECIO")))))));Debug.locals.put("CAT_DP_PRECIO", _cat_dp_precio);Debug.locals.put("CAT_DP_PRECIO", _cat_dp_precio);
 BA.debugLineNum = 1880;BA.debugLine="Dim CAT_DP_PRECIO_SIMPTOS As String = records";
Debug.ShouldStop(8388608);
_cat_dp_precio_simptos = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_PRECIO_SIMPTOS")))))));Debug.locals.put("CAT_DP_PRECIO_SIMPTOS", _cat_dp_precio_simptos);Debug.locals.put("CAT_DP_PRECIO_SIMPTOS", _cat_dp_precio_simptos);
 BA.debugLineNum = 1882;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_D";
Debug.ShouldStop(33554432);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_DETALLES_PAQ(CAT_DP_ALMACEN,CAT_DP_ID,CAT_DP_IDPROD,CAT_DP_TIPO,CAT_DP_PZAS,CAT_DP_USUARIO,CAT_DP_FECHA,CAT_DP_REGALO,CAT_DP_CLASIF,CAT_DP_PRECIO,CAT_DP_PRECIO_SIMPTOS) VALUES (?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(_cat_dp_almacen),(_cat_dp_id),(_cat_dp_idprod),(_cat_dp_tipo),(_cat_dp_pzas),(_cat_dp_usuario),(_cat_dp_fecha),(_cat_dp_regalo),(_cat_dp_clasif),(_cat_dp_precio),(_cat_dp_precio_simptos)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1884;BA.debugLine="Listo3 =1";
Debug.ShouldStop(134217728);
__ref.setField ("_listo3" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1885;BA.debugLine="If Listo1 = 1 And Listo2 = 1 And Listo3 = 1 An";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1886;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
Debug.ShouldStop(536870912);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1887;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(1073741824);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 1888;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1889;BA.debugLine="EJECUTANDO = 0";
Debug.ShouldStop(1);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }else 
{ BA.debugLineNum = 1890;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_inve" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1891;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
Debug.ShouldStop(4);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1892;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(8);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 1893;BA.debugLine="img2.Visible = False";
Debug.ShouldStop(16);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1894;BA.debugLine="EJECUTANDO = 0";
Debug.ShouldStop(32);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }}
;
 };
 };
 BA.debugLineNum = 1899;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1900;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(2048);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1901;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("estatus")))) { 
 BA.debugLineNum = 1902;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(8192);
{
final RemoteObject group269 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen269 = group269.runMethod(true,"getSize").<Integer>get()
;int index269 = 0;
;
for (; index269 < groupLen269;index269++){
_records = (group269.runMethod(false,"Get",index269));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1903;BA.debugLine="Dim hvd_estatus As String = records(result.Co";
Debug.ShouldStop(16384);
_hvd_estatus = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_ESTATUS")))))));Debug.locals.put("hvd_estatus", _hvd_estatus);Debug.locals.put("hvd_estatus", _hvd_estatus);
 BA.debugLineNum = 1904;BA.debugLine="If hvd_estatus = \"Liquidado\" Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_hvd_estatus,BA.ObjectToString("Liquidado"))) { 
 BA.debugLineNum = 1906;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate";
Debug.ShouldStop(131072);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("La venta ya fue liquidada")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 1908;BA.debugLine="envioinfo";
Debug.ShouldStop(524288);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_envioinfo" /*RemoteObject*/ );
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1914;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1915;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(67108864);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1916;BA.debugLine="If result.Tag = \"punteo\" Then 'query tag";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("punteo")))) { 
 BA.debugLineNum = 1917;BA.debugLine="If reqs.IndexOf(\"punteo\") > -1 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("punteo")))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1918;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))";
Debug.ShouldStop(536870912);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("punteo"))))));
 };
 BA.debugLineNum = 1921;BA.debugLine="If reqs.IndexOf(\"punteo\") > 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("punteo")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1922;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))";
Debug.ShouldStop(2);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("punteo"))))));
 BA.debugLineNum = 1923;BA.debugLine="Log(reqs.Size)";
Debug.ShouldStop(4);
c_principal.__c.runVoidMethod ("LogImpl","814877009",BA.NumberToString(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"getSize")),0);
 };
 BA.debugLineNum = 1925;BA.debugLine="Starter.skmt.BeginTransaction";
Debug.ShouldStop(16);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("BeginTransaction");
 BA.debugLineNum = 1926;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(32);
{
final RemoteObject group290 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen290 = group290.runMethod(true,"getSize").<Integer>get()
;int index290 = 0;
;
for (; index290 < groupLen290;index290++){
_records = (group290.runMethod(false,"Get",index290));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1927;BA.debugLine="Dim HV_CLIENTE As String = records(result.Col";
Debug.ShouldStop(64);
_hv_cliente = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HV_CLIENTE")))))));Debug.locals.put("HV_CLIENTE", _hv_cliente);Debug.locals.put("HV_CLIENTE", _hv_cliente);
 BA.debugLineNum = 1928;BA.debugLine="Dim HV_LONG As String = records(result.Column";
Debug.ShouldStop(128);
_hv_long = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HV_LONG")))))));Debug.locals.put("HV_LONG", _hv_long);Debug.locals.put("HV_LONG", _hv_long);
 BA.debugLineNum = 1929;BA.debugLine="Dim HV_LAT As String = records(result.Columns";
Debug.ShouldStop(256);
_hv_lat = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HV_LAT")))))));Debug.locals.put("HV_LAT", _hv_lat);Debug.locals.put("HV_LAT", _hv_lat);
 BA.debugLineNum = 1931;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PUNTE";
Debug.ShouldStop(1024);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PUNTEO_GPS(HV_CLIENTE, HV_LONG, HV_LAT) VALUES (?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_hv_cliente),(_hv_long),(_hv_lat)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1933;BA.debugLine="Starter.skmt.TransactionSuccessful";
Debug.ShouldStop(4096);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("TransactionSuccessful");
 BA.debugLineNum = 1934;BA.debugLine="Starter.skmt.EndTransaction";
Debug.ShouldStop(8192);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("EndTransaction");
 };
 };
 BA.debugLineNum = 1938;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1939;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(262144);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 1940;BA.debugLine="If result.Tag = \"hist_datos\" Then 'query tag";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("hist_datos")))) { 
 BA.debugLineNum = 1941;BA.debugLine="If reqs.IndexOf(\"hist_datos\") > -1 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("hist_datos")))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 1942;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"hist_datos\"))";
Debug.ShouldStop(2097152);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("hist_datos"))))));
 };
 BA.debugLineNum = 1945;BA.debugLine="Log(l_ruta.text)";
Debug.ShouldStop(16777216);
c_principal.__c.runVoidMethod ("LogImpl","814877031",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),0);
 BA.debugLineNum = 1946;BA.debugLine="Log($\"********  Insertamos HV - ${result.Rows.";
Debug.ShouldStop(33554432);
c_principal.__c.runVoidMethod ("LogImpl","814877032",(RemoteObject.concat(RemoteObject.createImmutable("********  Insertamos HV - "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_result.getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1947;BA.debugLine="Starter.skmt.BeginTransaction";
Debug.ShouldStop(67108864);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("BeginTransaction");
 BA.debugLineNum = 1948;BA.debugLine="Dim consecutivo  As Int= 0";
Debug.ShouldStop(134217728);
_consecutivo = BA.numberCast(int.class, 0);Debug.locals.put("consecutivo", _consecutivo);Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 1949;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(268435456);
{
final RemoteObject group310 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen310 = group310.runMethod(true,"getSize").<Integer>get()
;int index310 = 0;
;
for (; index310 < groupLen310;index310++){
_records = (group310.runMethod(false,"Get",index310));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1950;BA.debugLine="Dim HVD_CLIENTE As String = records(result.Co";
Debug.ShouldStop(536870912);
_hvd_cliente = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_CLIENTE")))))));Debug.locals.put("HVD_CLIENTE", _hvd_cliente);Debug.locals.put("HVD_CLIENTE", _hvd_cliente);
 BA.debugLineNum = 1951;BA.debugLine="Dim HVD_PRONOMBRE As String = records(result.";
Debug.ShouldStop(1073741824);
_hvd_pronombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_PRONOMBRE")))))));Debug.locals.put("HVD_PRONOMBRE", _hvd_pronombre);Debug.locals.put("HVD_PRONOMBRE", _hvd_pronombre);
 BA.debugLineNum = 1952;BA.debugLine="Dim HVD_CANT As String = records(result.Colum";
Debug.ShouldStop(-2147483648);
_hvd_cant = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_CANT")))))));Debug.locals.put("HVD_CANT", _hvd_cant);Debug.locals.put("HVD_CANT", _hvd_cant);
 BA.debugLineNum = 1953;BA.debugLine="Dim HVD_COSTO_TOT As String = records(result.";
Debug.ShouldStop(1);
_hvd_costo_tot = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_COSTO_TOT")))))));Debug.locals.put("HVD_COSTO_TOT", _hvd_costo_tot);Debug.locals.put("HVD_COSTO_TOT", _hvd_costo_tot);
 BA.debugLineNum = 1954;BA.debugLine="Dim HVD_FECHA As String = records(result.Colu";
Debug.ShouldStop(2);
_hvd_fecha = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_FECHA")))))));Debug.locals.put("HVD_FECHA", _hvd_fecha);Debug.locals.put("HVD_FECHA", _hvd_fecha);
 BA.debugLineNum = 1955;BA.debugLine="Dim HVD_CODPROMO As String = records(result.C";
Debug.ShouldStop(4);
_hvd_codpromo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_CODPROMO")))))));Debug.locals.put("HVD_CODPROMO", _hvd_codpromo);Debug.locals.put("HVD_CODPROMO", _hvd_codpromo);
 BA.debugLineNum = 1956;BA.debugLine="Dim HVD_PROID As String = records(result.Colu";
Debug.ShouldStop(8);
_hvd_proid = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_PROID")))))));Debug.locals.put("HVD_PROID", _hvd_proid);Debug.locals.put("HVD_PROID", _hvd_proid);
 BA.debugLineNum = 1957;BA.debugLine="Dim HVD_NUM_TICKET As String = records(result";
Debug.ShouldStop(16);
_hvd_num_ticket = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_NUM_TICKET")))))));Debug.locals.put("HVD_NUM_TICKET", _hvd_num_ticket);Debug.locals.put("HVD_NUM_TICKET", _hvd_num_ticket);
 BA.debugLineNum = 1958;BA.debugLine="Dim HVD_NUM_REGISTRO As String = records(resu";
Debug.ShouldStop(32);
_hvd_num_registro = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_NUM_REGISTRO")))))));Debug.locals.put("HVD_NUM_REGISTRO", _hvd_num_registro);Debug.locals.put("HVD_NUM_REGISTRO", _hvd_num_registro);
 BA.debugLineNum = 1959;BA.debugLine="Dim HVD_RECHAZO As String = records(result.Co";
Debug.ShouldStop(64);
_hvd_rechazo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_RECHAZO")))))));Debug.locals.put("HVD_RECHAZO", _hvd_rechazo);Debug.locals.put("HVD_RECHAZO", _hvd_rechazo);
 BA.debugLineNum = 1960;BA.debugLine="Dim HVD_BCREDITO As String = records(result.C";
Debug.ShouldStop(128);
_hvd_bcredito = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_BCREDITO")))))));Debug.locals.put("HVD_BCREDITO", _hvd_bcredito);Debug.locals.put("HVD_BCREDITO", _hvd_bcredito);
 BA.debugLineNum = 1962;BA.debugLine="Dim bcajas As String = 0 ' records(result.Col";
Debug.ShouldStop(512);
_bcajas = BA.NumberToString(0);Debug.locals.put("bcajas", _bcajas);Debug.locals.put("bcajas", _bcajas);
 BA.debugLineNum = 1963;BA.debugLine="Dim cantc As String = 0 'records(result.Colum";
Debug.ShouldStop(1024);
_cantc = BA.NumberToString(0);Debug.locals.put("cantc", _cantc);Debug.locals.put("cantc", _cantc);
 BA.debugLineNum = 1965;BA.debugLine="consecutivo = consecutivo +1";
Debug.ShouldStop(4096);
_consecutivo = RemoteObject.solve(new RemoteObject[] {_consecutivo,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("consecutivo", _consecutivo);
 BA.debugLineNum = 1966;BA.debugLine="Log(HVD_PRONOMBRE & \", \" & HVD_CANT & \", \" &H";
Debug.ShouldStop(8192);
c_principal.__c.runVoidMethod ("LogImpl","814877052",RemoteObject.concat(_hvd_pronombre,RemoteObject.createImmutable(", "),_hvd_cant,RemoteObject.createImmutable(", "),_hvd_cliente),0);
 BA.debugLineNum = 1967;BA.debugLine="If l_ruta.Text = \"0\" Then 'Si no hay ruta car";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 1968;BA.debugLine="Log(\"No hay ruta, guardamos todos\")";
Debug.ShouldStop(32768);
c_principal.__c.runVoidMethod ("LogImpl","814877054",RemoteObject.createImmutable("No hay ruta, guardamos todos"),0);
 BA.debugLineNum = 1969;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST";
Debug.ShouldStop(65536);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {16},new Object[] {(_hvd_cliente),(_hvd_pronombre),(_hvd_cant),(_hvd_costo_tot),(_hvd_fecha),(_hvd_codpromo),(_hvd_proid),(_hvd_num_ticket),(_hvd_num_registro),(_hvd_rechazo),(_bcajas),(_cantc),(_consecutivo),(_bcajas),(_cantc),(_hvd_bcredito)})))));
 BA.debugLineNum = 1970;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST";
Debug.ShouldStop(131072);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {10},new Object[] {(_hvd_cliente),(_hvd_pronombre),(_hvd_cant),(_hvd_costo_tot),(_hvd_fecha),(_hvd_codpromo),(_hvd_proid),(_hvd_num_ticket),(_hvd_num_registro),(_hvd_rechazo)})))));
 }else {
 BA.debugLineNum = 1973;BA.debugLine="Private tc As Cursor = Starter.skmt.ExecQuer";
Debug.ShouldStop(1048576);
_tc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_tc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select HVD_CLIENTE from HIST_VENTAS where HVD_CLIENTE = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_hvd_cliente))),RemoteObject.createImmutable("' and HVD_PROID = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_hvd_proid))),RemoteObject.createImmutable("' AND HVD_CANT = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_hvd_cant))),RemoteObject.createImmutable("' AND HVD_CODPROMO = '"),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_hvd_codpromo))),RemoteObject.createImmutable("' "))))));Debug.locals.put("tc", _tc);Debug.locals.put("tc", _tc);
 BA.debugLineNum = 1974;BA.debugLine="If tc.RowCount = 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",_tc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1975;BA.debugLine="Log($\"Guardamos ${HVD_CLIENTE}\"$)";
Debug.ShouldStop(4194304);
c_principal.__c.runVoidMethod ("LogImpl","814877061",(RemoteObject.concat(RemoteObject.createImmutable("Guardamos "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_hvd_cliente))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1976;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS";
Debug.ShouldStop(8388608);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {16},new Object[] {(_hvd_cliente),(_hvd_pronombre),(_hvd_cant),(_hvd_costo_tot),(_hvd_fecha),(_hvd_codpromo),(_hvd_proid),(_hvd_num_ticket),(_hvd_num_registro),(_hvd_rechazo),(_bcajas),(_cantc),(_consecutivo),(_bcajas),(_cantc),(_hvd_bcredito)})))));
 BA.debugLineNum = 1977;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS";
Debug.ShouldStop(16777216);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {10},new Object[] {(_hvd_cliente),(_hvd_pronombre),(_hvd_cant),(_hvd_costo_tot),(_hvd_fecha),(_hvd_codpromo),(_hvd_proid),(_hvd_num_ticket),(_hvd_num_registro),(_hvd_rechazo)})))));
 };
 };
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1981;BA.debugLine="Starter.skmt.TransactionSuccessful";
Debug.ShouldStop(268435456);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("TransactionSuccessful");
 BA.debugLineNum = 1982;BA.debugLine="Starter.skmt.EndTransaction";
Debug.ShouldStop(536870912);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("EndTransaction");
 BA.debugLineNum = 1983;BA.debugLine="Log($\"********  Terminamos HV - ${result.Rows.";
Debug.ShouldStop(1073741824);
c_principal.__c.runVoidMethod ("LogImpl","814877069",(RemoteObject.concat(RemoteObject.createImmutable("********  Terminamos HV - "),c_principal.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_result.getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 1997;BA.debugLine="Listo3 =1";
Debug.ShouldStop(4096);
__ref.setField ("_listo3" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1998;BA.debugLine="If Listo1 = 1  And Listo3 = 1  Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1999;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True";
Debug.ShouldStop(16384);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 2000;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(32768);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_b4xpage_appear" /*RemoteObject*/ );
 BA.debugLineNum = 2001;BA.debugLine="img2.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2002;BA.debugLine="EJECUTANDO = 0";
Debug.ShouldStop(131072);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 };
 };
 };
 BA.debugLineNum = 2008;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2009;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(16777216);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2010;BA.debugLine="If result.Tag = \"variables\" Then 'query tag";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("variables")))) { 
 BA.debugLineNum = 2011;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(67108864);
{
final RemoteObject group354 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen354 = group354.runMethod(true,"getSize").<Integer>get()
;int index354 = 0;
;
for (; index354 < groupLen354;index354++){
_records = (group354.runMethod(false,"Get",index354));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2012;BA.debugLine="Dim Cat_Va_Descripcion As String = records(re";
Debug.ShouldStop(134217728);
_cat_va_descripcion = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VA_DESCRIPCION")))))));Debug.locals.put("Cat_Va_Descripcion", _cat_va_descripcion);Debug.locals.put("Cat_Va_Descripcion", _cat_va_descripcion);
 BA.debugLineNum = 2013;BA.debugLine="Dim Cat_Va_Valor As String = records(result.C";
Debug.ShouldStop(268435456);
_cat_va_valor = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VA_VALOR")))))));Debug.locals.put("Cat_Va_Valor", _cat_va_valor);Debug.locals.put("Cat_Va_Valor", _cat_va_valor);
 BA.debugLineNum = 2015;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V";
Debug.ShouldStop(1073741824);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cat_va_descripcion),(_cat_va_valor)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2021;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2022;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(32);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2023;BA.debugLine="If result.Tag = \"PAGARES\" Then 'query tag";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("PAGARES")))) { 
 BA.debugLineNum = 2024;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(128);
{
final RemoteObject group364 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen364 = group364.runMethod(true,"getSize").<Integer>get()
;int index364 = 0;
;
for (; index364 < groupLen364;index364++){
_records = (group364.runMethod(false,"Get",index364));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2026;BA.debugLine="Dim TMP_MONTO_PAGARE As String = records(resu";
Debug.ShouldStop(512);
_tmp_monto_pagare = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("TMP_MONTO_PAGARE")))))));Debug.locals.put("TMP_MONTO_PAGARE", _tmp_monto_pagare);Debug.locals.put("TMP_MONTO_PAGARE", _tmp_monto_pagare);
 BA.debugLineNum = 2027;BA.debugLine="Dim TMP_CLIENTE As String = records(result.Co";
Debug.ShouldStop(1024);
_tmp_cliente = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("TMP_CLIENTE")))))));Debug.locals.put("TMP_CLIENTE", _tmp_cliente);Debug.locals.put("TMP_CLIENTE", _tmp_cliente);
 BA.debugLineNum = 2029;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PAGAR";
Debug.ShouldStop(4096);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PAGARES(TMP_MONTO_PAGARE, TMP_CLIENTE) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_tmp_monto_pagare),(_tmp_cliente)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2034;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2035;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(262144);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2036;BA.debugLine="If result.Tag = \"valida_pedido\" Then 'query tag";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("valida_pedido")))) { 
 BA.debugLineNum = 2037;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(1048576);
{
final RemoteObject group374 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen374 = group374.runMethod(true,"getSize").<Integer>get()
;int index374 = 0;
;
for (; index374 < groupLen374;index374++){
_records = (group374.runMethod(false,"Get",index374));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2038;BA.debugLine="Dim CUANTOSP As Int = records(result.Columns.";
Debug.ShouldStop(2097152);
_cuantosp = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUANTOSP")))))));Debug.locals.put("CUANTOSP", _cuantosp);Debug.locals.put("CUANTOSP", _cuantosp);
 BA.debugLineNum = 2039;BA.debugLine="If cuantos_pedido = CUANTOSP Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos_pedido" /*RemoteObject*/ ),BA.NumberToString(_cuantosp))) { 
 BA.debugLineNum = 2041;BA.debugLine="datos_iguales = \"ok\"";
Debug.ShouldStop(16777216);
__ref.setField ("_datos_iguales" /*RemoteObject*/ ,BA.ObjectToString("ok"));
 }else {
 BA.debugLineNum = 2043;BA.debugLine="ToastMessageShow(\"No se cargo bien la info P";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info P. Sync Nuevamente"),_cuantosp,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_pedido" /*RemoteObject*/ )))),(Object)(c_principal.__c.getField(true,"True")));
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2051;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2052;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(8);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2053;BA.debugLine="If result.Tag = \"valida_pedidoc\" Then 'query ta";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("valida_pedidoc")))) { 
 BA.debugLineNum = 2054;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(32);
{
final RemoteObject group387 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen387 = group387.runMethod(true,"getSize").<Integer>get()
;int index387 = 0;
;
for (; index387 < groupLen387;index387++){
_records = (group387.runMethod(false,"Get",index387));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2055;BA.debugLine="Dim CUANTOSC As Int = records(result.Columns.";
Debug.ShouldStop(64);
_cuantosc = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUANTOSC")))))));Debug.locals.put("CUANTOSC", _cuantosc);Debug.locals.put("CUANTOSC", _cuantosc);
 BA.debugLineNum = 2056;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos_pedidosc" /*RemoteObject*/ ),BA.NumberToString(_cuantosc))) { 
 BA.debugLineNum = 2058;BA.debugLine="datos_iguales = \"ok\"";
Debug.ShouldStop(512);
__ref.setField ("_datos_iguales" /*RemoteObject*/ ,BA.ObjectToString("ok"));
 }else {
 BA.debugLineNum = 2060;BA.debugLine="ToastMessageShow(\"No se cargo bien la info C";
Debug.ShouldStop(2048);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info C. Sync Nuevamente"),_cuantosc,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_pedidosc" /*RemoteObject*/ )))),(Object)(c_principal.__c.getField(true,"True")));
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2066;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2067;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(262144);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2068;BA.debugLine="If result.Tag = \"valida_noventa\" Then 'query ta";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("valida_noventa")))) { 
 BA.debugLineNum = 2069;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(1048576);
{
final RemoteObject group400 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen400 = group400.runMethod(true,"getSize").<Integer>get()
;int index400 = 0;
;
for (; index400 < groupLen400;index400++){
_records = (group400.runMethod(false,"Get",index400));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2070;BA.debugLine="Dim CUANTOSN As Int = records(result.Columns.";
Debug.ShouldStop(2097152);
_cuantosn = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUANTOSN")))))));Debug.locals.put("CUANTOSN", _cuantosn);Debug.locals.put("CUANTOSN", _cuantosn);
 BA.debugLineNum = 2071;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos_noventa" /*RemoteObject*/ ),BA.NumberToString(_cuantosn))) { 
 BA.debugLineNum = 2073;BA.debugLine="datos_iguales = \"ok\"";
Debug.ShouldStop(16777216);
__ref.setField ("_datos_iguales" /*RemoteObject*/ ,BA.ObjectToString("ok"));
 }else {
 BA.debugLineNum = 2075;BA.debugLine="ToastMessageShow(\"No se cargo bien la info N";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info N. Sync Nuevamente"),_cuantosn,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_noventa" /*RemoteObject*/ )))),(Object)(c_principal.__c.getField(true,"True")));
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2081;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2082;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(2);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2083;BA.debugLine="If result.Tag = \"insert_pedido\" Then 'query tag";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("insert_pedido")))) { 
 BA.debugLineNum = 2084;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True)";
Debug.ShouldStop(8);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Datos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));
 };
 };
 BA.debugLineNum = 2088;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2089;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(256);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2090;BA.debugLine="If result.Tag = \"version\" Then 'query tag";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("version")))) { 
 BA.debugLineNum = 2091;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(1024);
{
final RemoteObject group419 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen419 = group419.runMethod(true,"getSize").<Integer>get()
;int index419 = 0;
;
for (; index419 < groupLen419;index419++){
_records = (group419.runMethod(false,"Get",index419));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2092;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO";
Debug.ShouldStop(2048);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from VERSION")));
 BA.debugLineNum = 2093;BA.debugLine="Dim CAT_VE_VERSION As String = records(result";
Debug.ShouldStop(4096);
_cat_ve_version = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VE_VERSION")))))));Debug.locals.put("CAT_VE_VERSION", _cat_ve_version);Debug.locals.put("CAT_VE_VERSION", _cat_ve_version);
 BA.debugLineNum = 2095;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI";
Debug.ShouldStop(16384);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO VERSION(NOVERSION) VALUES (?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(_cat_ve_version)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2100;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2101;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(1048576);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2102;BA.debugLine="If result.Tag = \"count_cli\" Then 'query tag";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("count_cli")))) { 
 BA.debugLineNum = 2103;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(4194304);
{
final RemoteObject group429 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen429 = group429.runMethod(true,"getSize").<Integer>get()
;int index429 = 0;
;
for (; index429 < groupLen429;index429++){
_records = (group429.runMethod(false,"Get",index429));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2104;BA.debugLine="COUNT_CLIE = records(result.Columns.Get(\"COUN";
Debug.ShouldStop(8388608);
__ref.setField ("_count_clie" /*RemoteObject*/ ,BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("COUNT_CLIE"))))))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2109;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2110;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(536870912);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2111;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("ruta")))) { 
 BA.debugLineNum = 2112;BA.debugLine="If reqs.IndexOf(\"ruta\") > -1 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("ruta")))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 2113;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"ruta\"))";
Debug.ShouldStop(1);
__ref.getField(false,"_reqs" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)((RemoteObject.createImmutable("ruta"))))));
 BA.debugLineNum = 2114;BA.debugLine="Log(reqs.Size)";
Debug.ShouldStop(2);
c_principal.__c.runVoidMethod ("LogImpl","814877200",BA.NumberToString(__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"getSize")),0);
 };
 BA.debugLineNum = 2116;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(8);
{
final RemoteObject group441 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen441 = group441.runMethod(true,"getSize").<Integer>get()
;int index441 = 0;
;
for (; index441 < groupLen441;index441++){
_records = (group441.runMethod(false,"Get",index441));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2117;BA.debugLine="Dim VALIDO As String = records(result.Columns";
Debug.ShouldStop(16);
_valido = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("VALIDO")))))));Debug.locals.put("VALIDO", _valido);Debug.locals.put("VALIDO", _valido);
 BA.debugLineNum = 2119;BA.debugLine="If VALIDO = \"OK\" Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_valido,BA.ObjectToString("OK"))) { 
 BA.debugLineNum = 2120;BA.debugLine="If l_ctast.Text = \"0\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 2121;BA.debugLine="Subir.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 }else 
{ BA.debugLineNum = 2122;BA.debugLine="Else If l_ctast.Text <> \"0\" Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 2123;BA.debugLine="Subir.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 }}
;
 BA.debugLineNum = 2125;BA.debugLine="cargar.Visible = True";
Debug.ShouldStop(4096);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2126;BA.debugLine="If Subs.dameUsuarioDeDB = \"ROOT\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",c_principal._subs.runMethod(true,"_dameusuariodedb" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.ObjectToString("ROOT"))) { 
 BA.debugLineNum = 2127;BA.debugLine="Subir.Visible = True";
Debug.ShouldStop(16384);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 };
 BA.debugLineNum = 2129;BA.debugLine="connecta.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2130;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA";
Debug.ShouldStop(131072);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM RUTAA")));
 BA.debugLineNum = 2133;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTA";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO RUTAA(RUTAA) VALUES (?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 2135;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT";
Debug.ShouldStop(4194304);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_rutapreventa" /*RemoteObject*/ ,__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 2137;BA.debugLine="If conn = \"1\" Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_conn" /*RemoteObject*/ ),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 2138;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
Debug.ShouldStop(33554432);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Existe Conexión con el Servidor.")),(Object)(c_principal.__c.getField(true,"True")));
 };
 }else {
 BA.debugLineNum = 2141;BA.debugLine="MsgboxAsync(\"La ruta no esta asignada a este";
Debug.ShouldStop(268435456);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("La ruta no esta asignada a este usuario")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2142;BA.debugLine="cargar.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2143;BA.debugLine="Subir.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2144;BA.debugLine="inv.Visible = False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_inv" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2145;BA.debugLine="connecta.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2151;BA.debugLine="If Job.JobName = \"DBRequest\" Then 'Traemos las c";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2152;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(128);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2153;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("coords_almacen")))) { 
 BA.debugLineNum = 2154;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(512);
{
final RemoteObject group473 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen473 = group473.runMethod(true,"getSize").<Integer>get()
;int index473 = 0;
;
for (; index473 < groupLen473;index473++){
_records = (group473.runMethod(false,"Get",index473));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2155;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res";
Debug.ShouldStop(1024);
c_principal.__c.runVoidMethod ("LogImpl","814877241",RemoteObject.concat(RemoteObject.createImmutable("Coordenadas del almacen: "),_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_LATITUD")))))),RemoteObject.createImmutable(","),_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_LONGITUD"))))))),0);
 BA.debugLineNum = 2156;BA.debugLine="Private lat, lon As Double";
Debug.ShouldStop(2048);
_lat = RemoteObject.createImmutable(0);Debug.locals.put("lat", _lat);
_lon = RemoteObject.createImmutable(0);Debug.locals.put("lon", _lon);
 BA.debugLineNum = 2157;BA.debugLine="lat = 0.0";
Debug.ShouldStop(4096);
_lat = BA.numberCast(double.class, 0.0);Debug.locals.put("lat", _lat);
 BA.debugLineNum = 2158;BA.debugLine="lon = 0.0";
Debug.ShouldStop(8192);
_lon = BA.numberCast(double.class, 0.0);Debug.locals.put("lon", _lon);
 BA.debugLineNum = 2159;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(".",c_principal.__c.runMethod(true,"IsNumber",(Object)(BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_LATITUD")))))))))) && RemoteObject.solveBoolean(".",c_principal.__c.runMethod(true,"IsNumber",(Object)(BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_LONGITUD"))))))))))) { 
 BA.debugLineNum = 2160;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT";
Debug.ShouldStop(32768);
_lat = BA.numberCast(double.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_LATITUD")))))));Debug.locals.put("lat", _lat);
 BA.debugLineNum = 2161;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON";
Debug.ShouldStop(65536);
_lon = BA.numberCast(double.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_AL_LONGITUD")))))));Debug.locals.put("lon", _lon);
 };
 BA.debugLineNum = 2163;BA.debugLine="Starter.cedisLocation.Latitude = lat";
Debug.ShouldStop(262144);
c_principal._starter._cedislocation /*RemoteObject*/ .runMethod(true,"setLatitude",_lat);
 BA.debugLineNum = 2164;BA.debugLine="Starter.cedisLocation.Longitude = lon";
Debug.ShouldStop(524288);
c_principal._starter._cedislocation /*RemoteObject*/ .runMethod(true,"setLongitude",_lon);
 BA.debugLineNum = 2165;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("COORDS_ALMACEN"))})))));
 BA.debugLineNum = 2166;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("COORDS_ALMACEN")),(RemoteObject.concat(_lon,RemoteObject.createImmutable(","),_lat))})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2172;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2173;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(268435456);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2174;BA.debugLine="If result.Tag = \"ins_reparto\" Then 'query tag";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("ins_reparto")))) { 
 BA.debugLineNum = 2175;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(1073741824);
{
final RemoteObject group492 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen492 = group492.runMethod(true,"getSize").<Integer>get()
;int index492 = 0;
;
for (; index492 < groupLen492;index492++){
_records = (group492.runMethod(false,"Get",index492));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2176;BA.debugLine="For Each k As String In result.Columns.Keys";
Debug.ShouldStop(-2147483648);
{
final RemoteObject group493 = _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen493 = group493.runMethod(true,"getSize").<Integer>get()
;int index493 = 0;
;
for (; index493 < groupLen493;index493++){
_k = BA.ObjectToString(group493.runMethod(false,"Get",index493));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 2177;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)";
Debug.ShouldStop(1);
c_principal.__c.runVoidMethod ("LogImpl","814877263",RemoteObject.concat(_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2183;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2184;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
Debug.ShouldStop(128);
_result = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("result", _result);Debug.locals.put("result", _result);
 BA.debugLineNum = 2185;BA.debugLine="If result.Tag = \"ins_rechazos\" Then 'query tag";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("ins_rechazos")))) { 
 BA.debugLineNum = 2186;BA.debugLine="For Each records() As Object In result.Rows";
Debug.ShouldStop(512);
{
final RemoteObject group502 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen502 = group502.runMethod(true,"getSize").<Integer>get()
;int index502 = 0;
;
for (; index502 < groupLen502;index502++){
_records = (group502.runMethod(false,"Get",index502));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2187;BA.debugLine="For Each k As String In result.Columns.Keys";
Debug.ShouldStop(1024);
{
final RemoteObject group503 = _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen503 = group503.runMethod(true,"getSize").<Integer>get()
;int index503 = 0;
;
for (; index503 < groupLen503;index503++){
_k = BA.ObjectToString(group503.runMethod(false,"Get",index503));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 2188;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)";
Debug.ShouldStop(2048);
c_principal.__c.runVoidMethod ("LogImpl","814877274",RemoteObject.concat(_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2193;BA.debugLine="Job.Release";
Debug.ShouldStop(65536);
_job.runClassMethod (reparto_izca.keymon.lat.httpjob.class, "_release" /*RemoteObject*/ );
 };
 BA.debugLineNum = 2196;BA.debugLine="If reqs.Size = 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_reqs" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2202;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS C";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) AS CUANTOS FROM CHECADO_CHECK"))));
 BA.debugLineNum = 2203;BA.debugLine="c.Position = 0";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2204;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 2205;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into CHECADO";
Debug.ShouldStop(268435456);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into CHECADO_CHECK (CHECADO) VALUES(?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("0")})))));
 }else 
{ BA.debugLineNum = 2207;BA.debugLine="Else If c.GetString(\"CUANTOS\") = 1 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(1))) { 
 }}
;
 BA.debugLineNum = 2210;BA.debugLine="c.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 2216;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _listview1_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("ListView1_ItemClick (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2609);
if (RapidSub.canDelegate("listview1_itemclick")) { return __ref.runUserSub(false, "c_principal","listview1_itemclick", __ref, _position, _value);}
RemoteObject _clieasing = null;
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 2609;BA.debugLine="Private Sub ListView1_ItemClick (Position As Int,";
Debug.ShouldStop(65536);
 BA.debugLineNum = 2610;BA.debugLine="Log(Value)";
Debug.ShouldStop(131072);
c_principal.__c.runVoidMethod ("LogImpl","815728641",BA.ObjectToString(_value),0);
 BA.debugLineNum = 2612;BA.debugLine="Dim clieasing() As String = Regex.Split(\" \", Valu";
Debug.ShouldStop(524288);
_clieasing = c_principal.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(BA.ObjectToString(_value)));Debug.locals.put("clieasing", _clieasing);Debug.locals.put("clieasing", _clieasing);
 BA.debugLineNum = 2613;BA.debugLine="Log(clieasing(0))";
Debug.ShouldStop(1048576);
c_principal.__c.runVoidMethod ("LogImpl","815728644",_clieasing.getArrayElement(true,BA.numberCast(int.class, 0)),0);
 BA.debugLineNum = 2615;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")";
Debug.ShouldStop(4194304);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CUENTAA")));
 BA.debugLineNum = 2616;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V";
Debug.ShouldStop(8388608);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CUENTAA VALUES (?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(_clieasing.getArrayElement(true,BA.numberCast(int.class, 0)))})))));
 BA.debugLineNum = 2617;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 BA.debugLineNum = 2618;BA.debugLine="Panel1.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2619;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_carga_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("P_carga_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2813);
if (RapidSub.canDelegate("p_carga_click")) { return __ref.runUserSub(false, "c_principal","p_carga_click", __ref);}
 BA.debugLineNum = 2813;BA.debugLine="Private Sub P_carga_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 2815;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_ciego_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("P_CIEGO_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,3566);
if (RapidSub.canDelegate("p_ciego_click")) { return __ref.runUserSub(false, "c_principal","p_ciego_click", __ref);}
 BA.debugLineNum = 3566;BA.debugLine="Private Sub P_CIEGO_Click";
Debug.ShouldStop(8192);
 BA.debugLineNum = 3568;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_prod_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_prod_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2681);
if (RapidSub.canDelegate("p_prod_click")) { return __ref.runUserSub(false, "c_principal","p_prod_click", __ref);}
 BA.debugLineNum = 2681;BA.debugLine="Private Sub p_prod_Click";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 2683;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printer_connected(RemoteObject __ref,RemoteObject _success) throws Exception{
try {
		Debug.PushSubsStack("Printer_Connected (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2954);
if (RapidSub.canDelegate("printer_connected")) { return __ref.runUserSub(false, "c_principal","printer_connected", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 2954;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
Debug.ShouldStop(512);
 BA.debugLineNum = 2955;BA.debugLine="If Success Then";
Debug.ShouldStop(1024);
if (_success.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 2957;BA.debugLine="PASA_IMP = \"1\"";
Debug.ShouldStop(4096);
__ref.setField ("_pasa_imp" /*RemoteObject*/ ,BA.ObjectToString("1"));
 }else {
 BA.debugLineNum = 2960;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",c_principal.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("")),(Object)(BA.ObjectToCharSequence("Printer Error")),(Object)(BA.ObjectToString("Reprint")),(Object)(BA.ObjectToString("Cancel")),(Object)(BA.ObjectToString("")),(Object)((c_principal.__c.getField(false,"Null"))),__ref.getField(false, "ba")),BA.numberCast(double.class, c_principal.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 2961;BA.debugLine="StartPrinter";
Debug.ShouldStop(65536);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_startprinter" /*RemoteObject*/ );
 };
 };
 BA.debugLineNum = 2964;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printer1_connected(RemoteObject __ref,RemoteObject _success) throws Exception{
try {
		Debug.PushSubsStack("Printer1_Connected (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2929);
if (RapidSub.canDelegate("printer1_connected")) { return __ref.runUserSub(false, "c_principal","printer1_connected", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 2929;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
Debug.ShouldStop(65536);
 BA.debugLineNum = 2931;BA.debugLine="If Success Then";
Debug.ShouldStop(262144);
if (_success.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 2932;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
Debug.ShouldStop(524288);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Impresora conectada")),(Object)(c_principal.__c.getField(true,"False")));
 BA.debugLineNum = 2933;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARI";
Debug.ShouldStop(1048576);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("MACIMP"))})))));
 BA.debugLineNum = 2934;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARI";
Debug.ShouldStop(2097152);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("MACIMP")),(c_principal._starter._mac_impresora /*RemoteObject*/ )})))));
 BA.debugLineNum = 2937;BA.debugLine="impresoraConectada = True";
Debug.ShouldStop(16777216);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,c_principal.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 2941;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
Debug.ShouldStop(268435456);
c_principal.__c.runVoidMethod ("LogImpl","816252940",BA.ObjectToString("Error conectando la impresora"),c_principal.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 2942;BA.debugLine="errorImpresora = errorImpresora + 1";
Debug.ShouldStop(536870912);
__ref.setField ("_errorimpresora" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_errorimpresora" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "+",1, 1));
 BA.debugLineNum = 2943;BA.debugLine="If errorImpresora > 1 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(true,"_errorimpresora" /*RemoteObject*/ ),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2944;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
Debug.ShouldStop(-2147483648);
c_principal._starter._mac_impresora /*RemoteObject*/  = BA.ObjectToString("0");
 BA.debugLineNum = 2945;BA.debugLine="errorImpresora = 0";
Debug.ShouldStop(1);
__ref.setField ("_errorimpresora" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 };
 };
 BA.debugLineNum = 2948;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printer1_error(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Printer1_Error (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2950);
if (RapidSub.canDelegate("printer1_error")) { return __ref.runUserSub(false, "c_principal","printer1_error", __ref);}
 BA.debugLineNum = 2950;BA.debugLine="Sub Printer1_Error";
Debug.ShouldStop(32);
 BA.debugLineNum = 2951;BA.debugLine="Log(\"error printer\")";
Debug.ShouldStop(64);
c_principal.__c.runVoidMethod ("LogImpl","816318465",RemoteObject.createImmutable("error printer"),0);
 BA.debugLineNum = 2952;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _startprinter(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("StartPrinter (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2966);
if (RapidSub.canDelegate("startprinter")) { return __ref.runUserSub(false, "c_principal","startprinter", __ref);}
RemoteObject _paireddevices = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _l1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _resimp = RemoteObject.createImmutable(0);
int _i = 0;
 BA.debugLineNum = 2966;BA.debugLine="Sub StartPrinter";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 2967;BA.debugLine="Dim PairedDevices As Map";
Debug.ShouldStop(4194304);
_paireddevices = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("PairedDevices", _paireddevices);
 BA.debugLineNum = 2968;BA.debugLine="Dim L1 As List";
Debug.ShouldStop(8388608);
_l1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("L1", _l1);
 BA.debugLineNum = 2969;BA.debugLine="Dim resimp As Int";
Debug.ShouldStop(16777216);
_resimp = RemoteObject.createImmutable(0);Debug.locals.put("resimp", _resimp);
 BA.debugLineNum = 2970;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
Debug.ShouldStop(33554432);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Printing.....")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 2971;BA.debugLine="PairedDevices.Initialize";
Debug.ShouldStop(67108864);
_paireddevices.runVoidMethod ("Initialize");
 BA.debugLineNum = 2972;BA.debugLine="Try";
Debug.ShouldStop(134217728);
try { BA.debugLineNum = 2973;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
Debug.ShouldStop(268435456);
_paireddevices = __ref.getField(false,"_cmp20" /*RemoteObject*/ ).runMethod(false,"GetPairedDevices");Debug.locals.put("PairedDevices", _paireddevices);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e9) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e9.toString()); BA.debugLineNum = 2975;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
Debug.ShouldStop(1073741824);
c_principal.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Getting Paired Devices")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Printer Error"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2976;BA.debugLine="printer.Close";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2977;BA.debugLine="cmp20.Disconnect";
Debug.ShouldStop(1);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Disconnect");
 };
 BA.debugLineNum = 2980;BA.debugLine="If PairedDevices.Size = 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",_paireddevices.runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2981;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No";
Debug.ShouldStop(16);
c_principal.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2982;BA.debugLine="Return";
Debug.ShouldStop(32);
if (true) return RemoteObject.createImmutable("");
 };
 BA.debugLineNum = 2985;BA.debugLine="If PairedDevices.Size = 1 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_paireddevices.runMethod(true,"getSize"),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2986;BA.debugLine="Try";
Debug.ShouldStop(512);
try { BA.debugLineNum = 2987;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G";
Debug.ShouldStop(1024);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Connect",__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_paireddevices.runMethod(false,"Get",(Object)(_paireddevices.runMethod(false,"GetKeyAt",(Object)(BA.numberCast(int.class, 0))))))));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e21) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e21.toString()); BA.debugLineNum = 2989;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
Debug.ShouldStop(4096);
c_principal.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Connecting")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Printer Error"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2990;BA.debugLine="printer.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2991;BA.debugLine="cmp20.Disconnect";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Disconnect");
 };
 }else {
 BA.debugLineNum = 2994;BA.debugLine="L1.Initialize";
Debug.ShouldStop(131072);
_l1.runVoidMethod ("Initialize");
 BA.debugLineNum = 2995;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
Debug.ShouldStop(262144);
{
final int step27 = 1;
final int limit27 = RemoteObject.solve(new RemoteObject[] {_paireddevices.runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step27 > 0 && _i <= limit27) || (step27 < 0 && _i >= limit27) ;_i = ((int)(0 + _i + step27))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2996;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
Debug.ShouldStop(524288);
_l1.runVoidMethod ("Add",(Object)(_paireddevices.runMethod(false,"GetKeyAt",(Object)(BA.numberCast(int.class, _i)))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 2998;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
Debug.ShouldStop(2097152);
_resimp = c_principal.__c.runMethodAndSync(true,"InputList",(Object)(_l1),(Object)(BA.ObjectToCharSequence("Choose device")),(Object)(BA.numberCast(int.class, -(double) (0 + 1))),__ref.getField(false, "ba"));Debug.locals.put("resimp", _resimp);
 BA.debugLineNum = 2999;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("!",_resimp,BA.numberCast(double.class, c_principal.__c.getField(false,"DialogResponse").getField(true,"CANCEL")))) { 
 BA.debugLineNum = 3000;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Connect",__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_paireddevices.runMethod(false,"Get",(Object)(_l1.runMethod(false,"Get",(Object)(_resimp)))))));
 };
 };
 BA.debugLineNum = 3003;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _subir_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Subir_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,819);
if (RapidSub.canDelegate("subir_click")) { return __ref.runUserSub(false, "c_principal","subir_click", __ref);}
 BA.debugLineNum = 819;BA.debugLine="Sub Subir_Click";
Debug.ShouldStop(262144);
 BA.debugLineNum = 820;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"N";
Debug.ShouldStop(524288);
if (c_principal.__c.runMethod(true,"Not",(Object)(__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_isconnectedtointernet" /*RemoteObject*/ ))).<Boolean>get().booleanValue()) { 
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No hay conexión a conexión a Internet")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Revisa tu conexión"))),__ref.getField(false, "ba"));};
 BA.debugLineNum = 821;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 822;BA.debugLine="c.Position = 0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 823;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(4194304);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 824;BA.debugLine="c.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 826;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOCKEN";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM BLOCKENVIO"))));
 BA.debugLineNum = 827;BA.debugLine="If c.RowCount = 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 828;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCKENV";
Debug.ShouldStop(134217728);
c_principal._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO BLOCKENVIO(ENVIADO) VALUES (?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((1))})))));
 BA.debugLineNum = 829;BA.debugLine="envioinfo";
Debug.ShouldStop(268435456);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_envioinfo" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 831;BA.debugLine="envioinfo";
Debug.ShouldStop(1073741824);
__ref.runClassMethod (reparto_izca.keymon.lat.c_principal.class, "_envioinfo" /*RemoteObject*/ );
 };
 BA.debugLineNum = 833;BA.debugLine="c.Close";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 839;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _t1_tick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("t1_tick (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2313);
if (RapidSub.canDelegate("t1_tick")) { return __ref.runUserSub(false, "c_principal","t1_tick", __ref);}
 BA.debugLineNum = 2313;BA.debugLine="Sub t1_tick";
Debug.ShouldStop(256);
 BA.debugLineNum = 2314;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(512);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2315;BA.debugLine="cmd.Name = \"select_cuantos_pedido\"";
Debug.ShouldStop(1024);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cuantos_pedido"));
 BA.debugLineNum = 2316;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
Debug.ShouldStop(2048);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 2317;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedido\")";
Debug.ShouldStop(4096);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("valida_pedido"))));
 BA.debugLineNum = 2319;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2320;BA.debugLine="cmd.Name = \"select_cuantos_noventa_mards\"";
Debug.ShouldStop(32768);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cuantos_noventa_mards"));
 BA.debugLineNum = 2321;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
Debug.ShouldStop(65536);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 2322;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_noventa\"";
Debug.ShouldStop(131072);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("valida_noventa"))));
 BA.debugLineNum = 2324;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2325;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cuantos_pedidoc"));
 BA.debugLineNum = 2326;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 2327;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedidoc\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("valida_pedidoc"))));
 BA.debugLineNum = 2328;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2329;BA.debugLine="t1.Enabled = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_t1" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2330;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _t8_tick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("t8_tick (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,2801);
if (RapidSub.canDelegate("t8_tick")) { return __ref.runUserSub(false, "c_principal","t8_tick", __ref);}
 BA.debugLineNum = 2801;BA.debugLine="Sub t8_tick";
Debug.ShouldStop(65536);
 BA.debugLineNum = 2802;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2803;BA.debugLine="cmd.Name = \"select_conteo_izca\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_conteo_izca"));
 BA.debugLineNum = 2804;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2805;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"CONTEO_DATOS\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (reparto_izca.keymon.lat.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("CONTEO_DATOS"))));
 BA.debugLineNum = 2806;BA.debugLine="l_carga2.Text = \"VALIDANDO\"";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_carga2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("VALIDANDO"));
 BA.debugLineNum = 2807;BA.debugLine="L_carga.Text = \"VALIDANDO\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_carga" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("VALIDANDO"));
 BA.debugLineNum = 2808;BA.debugLine="PB_carga.Progress = 50";
Debug.ShouldStop(8388608);
__ref.getField(false,"_pb_carga" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 50));
 BA.debugLineNum = 2809;BA.debugLine="PB_carga2.Progress = 50";
Debug.ShouldStop(16777216);
__ref.getField(false,"_pb_carga2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 50));
 BA.debugLineNum = 2810;BA.debugLine="t8.Enabled = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_t8" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2811;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _to_number_vb(RemoteObject __ref,RemoteObject _valor) throws Exception{
try {
		Debug.PushSubsStack("to_number_vb (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,797);
if (RapidSub.canDelegate("to_number_vb")) { return __ref.runUserSub(false, "c_principal","to_number_vb", __ref, _valor);}
RemoteObject _valstring = RemoteObject.createImmutable(0);
RemoteObject _valstring2 = RemoteObject.createImmutable("");
Debug.locals.put("valor", _valor);
 BA.debugLineNum = 797;BA.debugLine="Sub to_number_vb (valor As Object) As String";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 798;BA.debugLine="Dim valstring As Int";
Debug.ShouldStop(536870912);
_valstring = RemoteObject.createImmutable(0);Debug.locals.put("valstring", _valstring);
 BA.debugLineNum = 799;BA.debugLine="Dim valstring2 As String = valor";
Debug.ShouldStop(1073741824);
_valstring2 = BA.ObjectToString(_valor);Debug.locals.put("valstring2", _valstring2);Debug.locals.put("valstring2", _valstring2);
 BA.debugLineNum = 800;BA.debugLine="valstring2.Replace(\":\",\"\")";
Debug.ShouldStop(-2147483648);
_valstring2.runVoidMethod ("replace",(Object)(BA.ObjectToString(":")),(Object)(RemoteObject.createImmutable("")));
 BA.debugLineNum = 801;BA.debugLine="Try";
Debug.ShouldStop(1);
try { BA.debugLineNum = 802;BA.debugLine="valstring =valstring2.Replace(\":\",\"\")";
Debug.ShouldStop(2);
_valstring = BA.numberCast(int.class, _valstring2.runMethod(true,"replace",(Object)(BA.ObjectToString(":")),(Object)(RemoteObject.createImmutable(""))));Debug.locals.put("valstring", _valstring);
 BA.debugLineNum = 803;BA.debugLine="Return valstring";
Debug.ShouldStop(4);
Debug.CheckDeviceExceptions();if (true) return BA.NumberToString(_valstring);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e8) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e8.toString()); BA.debugLineNum = 805;BA.debugLine="Return 0";
Debug.ShouldStop(16);
if (true) return BA.NumberToString(0);
 };
 BA.debugLineNum = 807;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _trabajar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("trabajar_Click (c_principal) ","c_principal",11,__ref.getField(false, "ba"),__ref,809);
if (RapidSub.canDelegate("trabajar_click")) { return __ref.runUserSub(false, "c_principal","trabajar_click", __ref);}
 BA.debugLineNum = 809;BA.debugLine="Sub trabajar_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 810;BA.debugLine="If b_check.Visible = True Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_b_check" /*RemoteObject*/ ).runMethod(true,"getVisible"),c_principal.__c.getField(true,"True"))) { 
 BA.debugLineNum = 811;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Atenc";
Debug.ShouldStop(1024);
c_principal.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Favor de hacer el checklist.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 814;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
Debug.ShouldStop(8192);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Clientes")));
 };
 BA.debugLineNum = 817;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}