package keymon.lat.medicomed;

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

public class c_cliente_subs_0 {


public static void  _b_abono_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_abono_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,963);
if (RapidSub.canDelegate("b_abono_click")) { __ref.runUserSub(false, "c_cliente","b_abono_click", __ref); return;}
ResumableSub_b_abono_Click rsub = new ResumableSub_b_abono_Click(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_b_abono_Click extends BA.ResumableSub {
public ResumableSub_b_abono_Click(keymon.lat.medicomed.c_cliente parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_cliente parent;
RemoteObject _resultado = RemoteObject.createImmutable(0);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("b_abono_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,963);
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 = 964;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 965;BA.debugLine="If et_abono.Text <> \"\" Then";
Debug.ShouldStop(16);
if (true) break;

case 1:
//if
this.state = 8;
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 966;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar un a";
Debug.ShouldStop(32);
parent.__c.runVoidMethod ("Msgbox2Async",(Object)(BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("¿Seguro que quieres realizar un abono de $"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable(" para este cliente?"))))),(Object)(BA.ObjectToCharSequence("Guardar Abono")),(Object)(BA.ObjectToString("Guardar")),(Object)(BA.ObjectToString("Cancelar")),(Object)(BA.ObjectToString("")),RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper"), parent.__c.getField(false,"Null")),__ref.getField(false, "ba"),(Object)(parent.__c.getField(true,"True")));
 BA.debugLineNum = 967;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(64);
parent.__c.runVoidMethod ("WaitFor","msgbox_result", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "b_abono_click"), null);
this.state = 9;
return;
case 9:
//C
this.state = 4;
_resultado = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("resultado", _resultado);
;
 BA.debugLineNum = 968;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(128);
if (true) break;

case 4:
//if
this.state = 7;
if (RemoteObject.solveBoolean("=",_resultado,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 6;
}if (true) break;

case 6:
//C
this.state = 7;
 BA.debugLineNum = 969;BA.debugLine="skmt.ExecNonQuery($\"INSERT INTO ABONOS(a_usuari";
Debug.ShouldStop(256);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha) VALUES ('"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("', '"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("', '"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("' ,'"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable("', '"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_fechakmt" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))))))),RemoteObject.createImmutable("')")))));
 BA.debugLineNum = 970;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
Debug.ShouldStop(512);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Abono guardado")),(Object)(parent.__c.getField(true,"False")));
 if (true) break;

case 7:
//C
this.state = 8;
;
 if (true) break;

case 8:
//C
this.state = -1;
;
 BA.debugLineNum = 973;BA.debugLine="et_abono.Text = \"\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 974;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(8192);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 975;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _msgbox_result(RemoteObject __ref,RemoteObject _resultado) throws Exception{
}
public static RemoteObject  _b_abono1_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_abono1_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,983);
if (RapidSub.canDelegate("b_abono1_click")) { return __ref.runUserSub(false, "c_cliente","b_abono1_click", __ref);}
 BA.debugLineNum = 983;BA.debugLine="Private Sub b_abono1_Click";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 984;BA.debugLine="p_abono.Visible = True";
Debug.ShouldStop(8388608);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 985;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_can_monto_venta_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_can_monto_venta_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1091);
if (RapidSub.canDelegate("b_can_monto_venta_click")) { return __ref.runUserSub(false, "c_cliente","b_can_monto_venta_click", __ref);}
 BA.debugLineNum = 1091;BA.debugLine="Private Sub b_can_monto_venta_Click";
Debug.ShouldStop(4);
 BA.debugLineNum = 1092;BA.debugLine="p_monto_venta.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_p_monto_venta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 1093;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_cancelar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_cancelar_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,977);
if (RapidSub.canDelegate("b_cancelar_click")) { return __ref.runUserSub(false, "c_cliente","b_cancelar_click", __ref);}
 BA.debugLineNum = 977;BA.debugLine="Private Sub b_cancelar_Click";
Debug.ShouldStop(65536);
 BA.debugLineNum = 978;BA.debugLine="et_abono.Text = \"\"";
Debug.ShouldStop(131072);
__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 979;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(262144);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 980;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(524288);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 981;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_clienteventa_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_clienteVenta_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1022);
if (RapidSub.canDelegate("b_clienteventa_click")) { return __ref.runUserSub(false, "c_cliente","b_clienteventa_click", __ref);}
 BA.debugLineNum = 1022;BA.debugLine="Private Sub b_clienteVenta_Click";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 1024;BA.debugLine="et_monto_venta.Text = \"\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_et_monto_venta" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 1025;BA.debugLine="p_monto_venta.Visible = True";
Debug.ShouldStop(1);
__ref.getField(false,"_p_monto_venta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1027;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_clintesinventa_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_clinteSinVenta_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1029);
if (RapidSub.canDelegate("b_clintesinventa_click")) { return __ref.runUserSub(false, "c_cliente","b_clintesinventa_click", __ref);}
 BA.debugLineNum = 1029;BA.debugLine="Private Sub b_clinteSinVenta_Click";
Debug.ShouldStop(16);
 BA.debugLineNum = 1031;BA.debugLine="Guardar_Click";
Debug.ShouldStop(64);
__ref.runClassMethod (keymon.lat.medicomed.c_cliente.class, "_guardar_click" /*RemoteObject*/ );
 BA.debugLineNum = 1032;BA.debugLine="et_monto_venta.Text = \"0\"";
Debug.ShouldStop(128);
__ref.getField(false,"_et_monto_venta" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("0"));
 BA.debugLineNum = 1033;BA.debugLine="Subs.ventaNoVenta(usuario, Id_Almacen, ruta_tiend";
Debug.ShouldStop(256);
c_cliente._subs.runVoidMethod ("_ventanoventa" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_id_almacen" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_ruta_tienda" /*RemoteObject*/ )),(Object)(BA.ObjectToString("SinVenta")),(Object)(c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_cliente._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_et_monto_venta" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 1035;BA.debugLine="Try";
Debug.ShouldStop(1024);
try { BA.debugLineNum = 1036;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"Select CUE";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 1037;BA.debugLine="c.Position = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1038;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(8192);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 1039;BA.debugLine="c.Close";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1041;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(65536);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from NOVENTA where NV_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1042;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(131072);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1044;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_";
Debug.ShouldStop(524288);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1046;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
Debug.ShouldStop(2097152);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_STORE set HSS_OUT = ? where HSS_OUT = 0 AND HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(c_cliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))})))));
 BA.debugLineNum = 1047;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
Debug.ShouldStop(4194304);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_OUT set HSO_FIN = ? ")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(c_cliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))})))));
 BA.debugLineNum = 1049;BA.debugLine="ToastMessageShow(\"Cliente con venta eliminado co";
Debug.ShouldStop(16777216);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Cliente con venta eliminado correctamente.")),(Object)(c_cliente.__c.getField(true,"False")));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e16) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e16.toString()); BA.debugLineNum = 1052;BA.debugLine="ToastMessageShow(\"Error eliminando cliente con v";
Debug.ShouldStop(134217728);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Error eliminando cliente con venta.")),(Object)(c_cliente.__c.getField(true,"True")));
 };
 BA.debugLineNum = 1055;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_e_next_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_E_NEXT_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,757);
if (RapidSub.canDelegate("b_e_next_click")) { return __ref.runUserSub(false, "c_cliente","b_e_next_click", __ref);}
 BA.debugLineNum = 757;BA.debugLine="Sub B_E_NEXT_Click";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 758;BA.debugLine="If E_RES_E.Text <> \"\" Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 759;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int";
Debug.ShouldStop(4194304);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO) VALUES (?,?,?,?)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethod(true,"getText")),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(RemoteObject.createImmutable("DONDE"))})))));
 BA.debugLineNum = 760;BA.debugLine="Panel2.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_panel2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 761;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
Debug.ShouldStop(16777216);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Productos")));
 }else {
 BA.debugLineNum = 763;BA.debugLine="Msgbox(\"SIN RESPUESTA\",\"AVISO\") 'Ignore";
Debug.ShouldStop(67108864);
c_cliente.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("SIN RESPUESTA")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 765;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_gu_monto_venta_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_gu_monto_venta_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1058);
if (RapidSub.canDelegate("b_gu_monto_venta_click")) { return __ref.runUserSub(false, "c_cliente","b_gu_monto_venta_click", __ref);}
 BA.debugLineNum = 1058;BA.debugLine="Private Sub b_gu_monto_venta_Click";
Debug.ShouldStop(2);
 BA.debugLineNum = 1060;BA.debugLine="If et_monto_venta.Text = \"\" Or et_monto_venta.Tex";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_et_monto_venta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_et_monto_venta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 1061;BA.debugLine="ToastMessageShow(\"El monto de venta no puede ser";
Debug.ShouldStop(16);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("El monto de venta no puede ser vacío o 0.")),(Object)(c_cliente.__c.getField(true,"True")));
 }else {
 BA.debugLineNum = 1063;BA.debugLine="Guardar_Click";
Debug.ShouldStop(64);
__ref.runClassMethod (keymon.lat.medicomed.c_cliente.class, "_guardar_click" /*RemoteObject*/ );
 BA.debugLineNum = 1064;BA.debugLine="Subs.ventaNoVenta(usuario, Id_Almacen, ruta_tien";
Debug.ShouldStop(128);
c_cliente._subs.runVoidMethod ("_ventanoventa" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_id_almacen" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_ruta_tienda" /*RemoteObject*/ )),(Object)(BA.ObjectToString("ConVenta")),(Object)(c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_cliente._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_et_monto_venta" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 1066;BA.debugLine="Try";
Debug.ShouldStop(512);
try { BA.debugLineNum = 1067;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"Select CU";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 1068;BA.debugLine="c.Position = 0";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1069;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(4096);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 1070;BA.debugLine="c.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1072;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(32768);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from NOVENTA where NV_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1073;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(65536);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1075;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
Debug.ShouldStop(262144);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 BA.debugLineNum = 1077;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
Debug.ShouldStop(1048576);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_STORE set HSS_OUT = ? where HSS_OUT = 0 AND HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(c_cliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))})))));
 BA.debugLineNum = 1078;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
Debug.ShouldStop(2097152);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_OUT set HSO_FIN = ? ")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(c_cliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))})))));
 BA.debugLineNum = 1080;BA.debugLine="ToastMessageShow(\"Cliente con venta eliminado c";
Debug.ShouldStop(8388608);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Cliente con venta eliminado correctamente.")),(Object)(c_cliente.__c.getField(true,"False")));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e18) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e18.toString()); BA.debugLineNum = 1083;BA.debugLine="ToastMessageShow(\"Error eliminando cliente con";
Debug.ShouldStop(67108864);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Error eliminando cliente con venta.")),(Object)(c_cliente.__c.getField(true,"True")));
 };
 BA.debugLineNum = 1086;BA.debugLine="p_monto_venta.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_monto_venta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 1088;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_guarda_c_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_GUARDA_C_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,701);
if (RapidSub.canDelegate("b_guarda_c_click")) { return __ref.runUserSub(false, "c_cliente","b_guarda_c_click", __ref);}
 BA.debugLineNum = 701;BA.debugLine="Sub B_GUARDA_C_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 702;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(536870912);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 703;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(1073741824);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_cliente.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 704;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(-2147483648);
__ref.setField ("_stime" /*RemoteObject*/ ,c_cliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 705;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENTA";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CUENTA from cuentaa"))));
 BA.debugLineNum = 706;BA.debugLine="c.Position=0";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 707;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(4);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 708;BA.debugLine="c.Close";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 709;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUARI";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 710;BA.debugLine="c.Position=0";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 711;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(64);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 712;BA.debugLine="c.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 713;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
Debug.ShouldStop(256);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO  PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA) VALUES(?,?,?,?,?,?,?,?,?,?) ")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {10},new Object[] {RemoteObject.createImmutable(("4")),RemoteObject.createImmutable((.01)),RemoteObject.createImmutable((.01)),RemoteObject.createImmutable((2)),RemoteObject.createImmutable(("KNORR RINDE MAS 70 GR")),RemoteObject.createImmutable(("GUNA2")),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 714;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
Debug.ShouldStop(512);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_FACE(HFCLIENTE, HFALIAS,HFRUTA,HFALMACEN) VALUES (?,?,?,?) ")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_i_compra" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ )),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 715;BA.debugLine="Panel1.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 717;BA.debugLine="Tar.Visible = False";
Debug.ShouldStop(4096);
__ref.getField(false,"_tar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 718;BA.debugLine="Tels.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 719;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 721;BA.debugLine="Guardar.Visible = True";
Debug.ShouldStop(65536);
__ref.getField(false,"_guardar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 722;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_imp_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_IMP_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,609);
if (RapidSub.canDelegate("b_imp_click")) { return __ref.runUserSub(false, "c_cliente","b_imp_click", __ref);}
int _i = 0;
int _e = 0;
 BA.debugLineNum = 609;BA.debugLine="Sub B_IMP_Click";
Debug.ShouldStop(1);
 BA.debugLineNum = 610;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(2);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 611;BA.debugLine="ESPACIO = 21";
Debug.ShouldStop(4);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 21));
 BA.debugLineNum = 612;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(8);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 613;BA.debugLine="printer.Initialize(cmp20.OutputStream)";
Debug.ShouldStop(16);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runMethod(false,"getOutputStream")));
 BA.debugLineNum = 614;BA.debugLine="printer.WriteLine(\"DURAKELO S.A. de C.V.\")";
Debug.ShouldStop(32);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("DURAKELO S.A. de C.V.")));
 BA.debugLineNum = 615;BA.debugLine="printer.WriteLine(\"RFC: DUR-011025-T12\")";
Debug.ShouldStop(64);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("RFC: DUR-011025-T12")));
 BA.debugLineNum = 616;BA.debugLine="printer.WriteLine(\"Tel.: 618-826-0104\")";
Debug.ShouldStop(128);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("Tel.: 618-826-0104")));
 BA.debugLineNum = 617;BA.debugLine="printer.WriteLine(\"Vendedor: KMTS \")";
Debug.ShouldStop(256);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("Vendedor: KMTS ")));
 BA.debugLineNum = 618;BA.debugLine="printer.WriteLine(\"Tienda: \" & La_nombre.Text)";
Debug.ShouldStop(512);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.concat(RemoteObject.createImmutable("Tienda: "),__ref.getField(false,"_la_nombre" /*RemoteObject*/ ).runMethod(true,"getText"))));
 BA.debugLineNum = 619;BA.debugLine="printer.WriteLine(\"-----------PREVENTA-----------";
Debug.ShouldStop(1024);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("-----------PREVENTA-----------")));
 BA.debugLineNum = 620;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"select PE_PRO";
Debug.ShouldStop(2048);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 621;BA.debugLine="If S.RowCount>0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 622;BA.debugLine="For i=0 To S.RowCount -1";
Debug.ShouldStop(8192);
{
final int step13 = 1;
final int limit13 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step13 > 0 && _i <= limit13) || (step13 < 0 && _i >= limit13) ;_i = ((int)(0 + _i + step13))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 623;BA.debugLine="S.Position=i";
Debug.ShouldStop(16384);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 624;BA.debugLine="printer.WriteLine(s.GetString(\"PE_CANT\") & \" \"";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),RemoteObject.createImmutable(" "),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))))));
 BA.debugLineNum = 625;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO";
Debug.ShouldStop(65536);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetLong",(Object)(RemoteObject.createImmutable("L_CANT"))),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "+",1, 2)));
 BA.debugLineNum = 626;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO";
Debug.ShouldStop(131072);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetLong",(Object)(RemoteObject.createImmutable("L_COSTOU"))),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "+",1, 2)));
 BA.debugLineNum = 627;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO";
Debug.ShouldStop(262144);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetLong",(Object)(RemoteObject.createImmutable("L_COSTO_TOT"))),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "+",1, 2)));
 BA.debugLineNum = 628;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
Debug.ShouldStop(524288);
__ref.setField ("_espacio" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "-",1, 1));
 BA.debugLineNum = 629;BA.debugLine="For E=0 To ESPACIO -1";
Debug.ShouldStop(1048576);
{
final int step20 = 1;
final int limit20 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_e = 0 ;
for (;(step20 > 0 && _e <= limit20) || (step20 < 0 && _e >= limit20) ;_e = ((int)(0 + _e + step20))  ) {
Debug.locals.put("E", _e);
 BA.debugLineNum = 630;BA.debugLine="BLANCO = \" \" & BLANCO";
Debug.ShouldStop(2097152);
__ref.setField ("_blanco" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable(" "),__ref.getField(true,"_blanco" /*RemoteObject*/ )));
 }
}Debug.locals.put("E", _e);
;
 BA.debugLineNum = 632;BA.debugLine="printer.WriteLine(BLANCO & s.GETSTRING(\"PE_CANT";
Debug.ShouldStop(8388608);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.concat(__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),RemoteObject.createImmutable(" X $"),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU"))),RemoteObject.createImmutable("   $"),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))));
 BA.debugLineNum = 633;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(16777216);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 634;BA.debugLine="ESPACIO = 21";
Debug.ShouldStop(33554432);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 21));
 BA.debugLineNum = 635;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(67108864);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 638;BA.debugLine="s.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 639;BA.debugLine="printer.WriteLine(\"Total Preventa:   $\" & total_c";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total Preventa:   $"),__ref.getField(true,"_total_cliente" /*RemoteObject*/ ))));
 BA.debugLineNum = 640;BA.debugLine="printer.WriteLine(\"------------VENTA-------------";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("------------VENTA-------------")));
 BA.debugLineNum = 641;BA.debugLine="printer.WriteLine(\" \")";
Debug.ShouldStop(1);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable(" ")));
 BA.debugLineNum = 642;BA.debugLine="printer.WriteLine(\"TOTAL:   $\" & total_cliente)";
Debug.ShouldStop(2);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.concat(RemoteObject.createImmutable("TOTAL:   $"),__ref.getField(true,"_total_cliente" /*RemoteObject*/ ))));
 BA.debugLineNum = 643;BA.debugLine="printer.WriteLine(\" \")";
Debug.ShouldStop(4);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable(" ")));
 BA.debugLineNum = 644;BA.debugLine="printer.WriteLine(\"----ESTE TICKET NO ES UN -----";
Debug.ShouldStop(8);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("----ESTE TICKET NO ES UN -----")));
 BA.debugLineNum = 645;BA.debugLine="printer.WriteLine(\"--COMPROBANTE FISCAL, SOLO ES-";
Debug.ShouldStop(16);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("--COMPROBANTE FISCAL, SOLO ES-")));
 BA.debugLineNum = 646;BA.debugLine="printer.WriteLine(\"--------INFORMATIVO-----------";
Debug.ShouldStop(32);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("--------INFORMATIVO-----------")));
 BA.debugLineNum = 647;BA.debugLine="printer.WriteLine(\"------------------------------";
Debug.ShouldStop(64);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable("------------------------------")));
 BA.debugLineNum = 648;BA.debugLine="printer.WriteLine(\" \")";
Debug.ShouldStop(128);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("WriteLine",(Object)(RemoteObject.createImmutable(" ")));
 BA.debugLineNum = 649;BA.debugLine="printer.Flush";
Debug.ShouldStop(256);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("Flush");
 BA.debugLineNum = 651;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_iniciofinventa_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_inicioFinVenta_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,987);
if (RapidSub.canDelegate("b_iniciofinventa_click")) { return __ref.runUserSub(false, "c_cliente","b_iniciofinventa_click", __ref);}
 BA.debugLineNum = 987;BA.debugLine="Private Sub b_inicioFinVenta_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 988;BA.debugLine="usuario = Subs.traeUsuarioDeBD";
Debug.ShouldStop(134217728);
__ref.setField ("_usuario" /*RemoteObject*/ ,c_cliente._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 989;BA.debugLine="Id_Almacen = Subs.traeAlmacen";
Debug.ShouldStop(268435456);
__ref.setField ("_id_almacen" /*RemoteObject*/ ,c_cliente._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 991;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select CAT_";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))));
 BA.debugLineNum = 992;BA.debugLine="c.Position = 0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 993;BA.debugLine="ruta_tienda = c.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(1);
__ref.setField ("_ruta_tienda" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))));
 BA.debugLineNum = 995;BA.debugLine="If dentroDeGeocerca Then precision = 1";
Debug.ShouldStop(4);
if (__ref.getField(true,"_dentrodegeocerca" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
__ref.setField ("_precision" /*RemoteObject*/ ,BA.numberCast(int.class, 1));};
 BA.debugLineNum = 996;BA.debugLine="motivoNoVenta = \"\"";
Debug.ShouldStop(8);
__ref.setField ("_motivonoventa" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 997;BA.debugLine="motivoNoVisita = \"\"";
Debug.ShouldStop(16);
__ref.setField ("_motivonovisita" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 999;BA.debugLine="If Starter.enVenta Then";
Debug.ShouldStop(64);
if (c_cliente._starter._enventa /*RemoteObject*/ .<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1000;BA.debugLine="b_inicioFinVenta.Visible = True";
Debug.ShouldStop(128);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1001;BA.debugLine="Subs.bitacora(Subs.fechanormal(DateTime.Now), us";
Debug.ShouldStop(256);
c_cliente._subs.runVoidMethod ("_bitacora" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_cliente._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_id_almacen" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_ruta_tienda" /*RemoteObject*/ )),(Object)(BA.ObjectToString("Termina Venta")),(Object)(c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(BA.ObjectToString("")),(Object)(c_cliente._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(BA.NumberToString(__ref.getField(true,"_precision" /*RemoteObject*/ ))),(Object)(__ref.getField(true,"_motivonoventa" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_motivonovisita" /*RemoteObject*/ )));
 BA.debugLineNum = 1002;BA.debugLine="Starter.enVenta = False";
Debug.ShouldStop(512);
c_cliente._starter._enventa /*RemoteObject*/  = c_cliente.__c.getField(true,"False");
 BA.debugLineNum = 1003;BA.debugLine="LogColor($\">>>>>> TERMINA VENTA: ${Starter.enVen";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("LogImpl","37864336",(RemoteObject.concat(RemoteObject.createImmutable(">>>>>> TERMINA VENTA: "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente._starter._enventa /*RemoteObject*/ ))),RemoteObject.createImmutable(" - "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable(""))),c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1004;BA.debugLine="Subs.iniciaActividad(\"principal\")";
Debug.ShouldStop(2048);
c_cliente._subs.runVoidMethod ("_iniciaactividad" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("principal")));
 BA.debugLineNum = 1005;BA.debugLine="B4XPages.ShowPageAndRemovePreviousPages(\"Princip";
Debug.ShouldStop(4096);
c_cliente._b4xpages.runVoidMethod ("_showpageandremovepreviouspages" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 BA.debugLineNum = 1006;BA.debugLine="Guardar2_Click";
Debug.ShouldStop(8192);
__ref.runClassMethod (keymon.lat.medicomed.c_cliente.class, "_guardar2_click" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 1010;BA.debugLine="b_inicioFinVenta.Width = Root.Width";
Debug.ShouldStop(131072);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 1011;BA.debugLine="Subs.bitacora(Subs.fechanormal(DateTime.Now), us";
Debug.ShouldStop(262144);
c_cliente._subs.runVoidMethod ("_bitacora" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_cliente._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_id_almacen" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_ruta_tienda" /*RemoteObject*/ )),(Object)(BA.ObjectToString("Inicia Venta")),(Object)(c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(Object)(c_cliente._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(BA.ObjectToString("")),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(BA.NumberToString(__ref.getField(true,"_precision" /*RemoteObject*/ ))),(Object)(__ref.getField(true,"_motivonoventa" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("")));
 BA.debugLineNum = 1012;BA.debugLine="Starter.enVenta = True";
Debug.ShouldStop(524288);
c_cliente._starter._enventa /*RemoteObject*/  = c_cliente.__c.getField(true,"True");
 BA.debugLineNum = 1013;BA.debugLine="LogColor($\">>>>>> INICIA VENTA: ${Starter.enVent";
Debug.ShouldStop(1048576);
c_cliente.__c.runVoidMethod ("LogImpl","37864346",(RemoteObject.concat(RemoteObject.createImmutable(">>>>>> INICIA VENTA: "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente._starter._enventa /*RemoteObject*/ ))),RemoteObject.createImmutable(" - "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable(""))),c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1014;BA.debugLine="b_inicioFinVenta.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 1018;BA.debugLine="c.Close";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1020;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
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_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,605);
if (RapidSub.canDelegate("b_mapa_click")) { return __ref.runUserSub(false, "c_cliente","b_mapa_click", __ref);}
 BA.debugLineNum = 605;BA.debugLine="Sub b_mapa_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 606;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
Debug.ShouldStop(536870912);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("mapas")));
 BA.debugLineNum = 607;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_venta_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_venta_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,724);
if (RapidSub.canDelegate("b_venta_click")) { return __ref.runUserSub(false, "c_cliente","b_venta_click", __ref);}
 BA.debugLineNum = 724;BA.debugLine="Sub b_venta_Click";
Debug.ShouldStop(524288);
 BA.debugLineNum = 725;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(1048576);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 726;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(2097152);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_cliente.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 727;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(4194304);
__ref.setField ("_stime" /*RemoteObject*/ ,c_cliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 755;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_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,203);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_cliente","b4xpage_appear", __ref);}
RemoteObject _factura = RemoteObject.createImmutable("");
 BA.debugLineNum = 203;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(1024);
 BA.debugLineNum = 205;BA.debugLine="b_clinteSinVenta.Enabled = False";
Debug.ShouldStop(4096);
__ref.getField(false,"_b_clintesinventa" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 206;BA.debugLine="b_clienteVenta.Enabled = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_b_clienteventa" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 212;BA.debugLine="b_inicioFinVenta.Width = Root.Width";
Debug.ShouldStop(524288);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 213;BA.debugLine="LA_GPS.TextColor = Colors.Red";
Debug.ShouldStop(1048576);
__ref.getField(false,"_la_gps" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 214;BA.debugLine="LA_GPS.Text = \"SIN UBICACION GPS\"";
Debug.ShouldStop(2097152);
__ref.getField(false,"_la_gps" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("SIN UBICACION GPS"));
 BA.debugLineNum = 215;BA.debugLine="cercavalor = 0";
Debug.ShouldStop(4194304);
__ref.setField ("_cercavalor" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 216;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
Debug.ShouldStop(8388608);
if (c_cliente.__c.runMethod(true,"Not",(Object)(c_cliente._starter._gps /*RemoteObject*/ .runMethod(true,"getGPSEnabled"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 217;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
Debug.ShouldStop(16777216);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Es necesario tener el GPS encendido")),(Object)(c_cliente.__c.getField(true,"True")));
 BA.debugLineNum = 218;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
Debug.ShouldStop(33554432);
c_cliente.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((c_cliente._starter._gps /*RemoteObject*/ .runMethod(false,"getLocationSettingsIntent"))));
 };
 BA.debugLineNum = 220;BA.debugLine="cb_factura.Checked = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cb_factura" /*RemoteObject*/ ).runMethodAndSync(true,"setChecked",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 221;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 222;BA.debugLine="Subs.centraPanel(p_abono, Root.Width)";
Debug.ShouldStop(536870912);
c_cliente._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_abono" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 223;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(BA.ObjectToString("kmt.db")),(Object)(c_cliente.__c.getField(true,"True")));
 BA.debugLineNum = 224;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select 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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO  from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))));
 BA.debugLineNum = 225;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"Select SUM(PE";
Debug.ShouldStop(1);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select SUM(PE_COSTO_TOT)  As TOTAL_CLIE, SUM(PE_CANT)  As CANT_CLIE, PC_FACTURA FROM PEDIDO_CLIENTE INNER JOIN PEDIDO ON PEDIDO_CLIENTE.PC_CLIENTE = PEDIDO.PE_CLIENTE WHERE (PE_CLIENTE IN (Select cuenta from cuentaa))"))));
 BA.debugLineNum = 226;BA.debugLine="s.Position=0";
Debug.ShouldStop(2);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 227;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 = 228;BA.debugLine="c.Position=0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 229;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
Debug.ShouldStop(16);
__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))));
 BA.debugLineNum = 230;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
Debug.ShouldStop(32);
__ref.getField(false,"_la_nombre" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))));
 BA.debugLineNum = 231;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\")";
Debug.ShouldStop(64);
__ref.getField(false,"_la_calle" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE")))));
 BA.debugLineNum = 232;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
Debug.ShouldStop(128);
__ref.getField(false,"_la_col" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_COLONIA")))));
 BA.debugLineNum = 233;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
Debug.ShouldStop(256);
__ref.getField(false,"_la_edo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_EDO")))));
 BA.debugLineNum = 234;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_NOEXT\")";
Debug.ShouldStop(512);
__ref.getField(false,"_l_entre1" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOEXT")))));
 BA.debugLineNum = 235;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_NOINT\")";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_entre2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOINT")))));
 BA.debugLineNum = 236;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_atiende" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_ATIENDE1")))));
 BA.debugLineNum = 237;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_atiende2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_ATIENTE2")))));
 BA.debugLineNum = 238;BA.debugLine="Label20.Text = c.GetString(\"CAT_CL_CP\")";
Debug.ShouldStop(8192);
__ref.getField(false,"_label20" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CP")))));
 BA.debugLineNum = 239;BA.debugLine="l_calle1.Text = c.GetString(\"CAT_CL_CALLE1\")";
Debug.ShouldStop(16384);
__ref.getField(false,"_l_calle1" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE1")))));
 BA.debugLineNum = 240;BA.debugLine="TELEFONO  = c.GetString(\"CAT_CL_TELEFONO\")";
Debug.ShouldStop(32768);
__ref.setField ("_telefono" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_TELEFONO"))));
 BA.debugLineNum = 241;BA.debugLine="l_total.Text = s.GetString(\"TOTAL_CLIE\")";
Debug.ShouldStop(65536);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))));
 BA.debugLineNum = 242;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
Debug.ShouldStop(131072);
__ref.setField ("_total_cliente" /*RemoteObject*/ ,__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE"))));
 BA.debugLineNum = 243;BA.debugLine="Private factura As String = 0";
Debug.ShouldStop(262144);
_factura = BA.NumberToString(0);Debug.locals.put("factura", _factura);Debug.locals.put("factura", _factura);
 BA.debugLineNum = 244;BA.debugLine="If s.GetString(\"PC_FACTURA\") <> Null And IsNumbe";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("N",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FACTURA")))) && RemoteObject.solveBoolean(".",c_cliente.__c.runMethod(true,"IsNumber",(Object)(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FACTURA"))))))) { 
_factura = __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FACTURA")));Debug.locals.put("factura", _factura);};
 BA.debugLineNum = 245;BA.debugLine="If factura = \"1\" Then cb_factura.Checked = True";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_factura,BA.ObjectToString("1"))) { 
__ref.getField(false,"_cb_factura" /*RemoteObject*/ ).runMethodAndSync(true,"setChecked",c_cliente.__c.getField(true,"True"));};
 BA.debugLineNum = 246;BA.debugLine="m_lat = \"0\"";
Debug.ShouldStop(2097152);
__ref.setField ("_m_lat" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 247;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then m_lat =c";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LAT"))),BA.ObjectToString(""))) { 
__ref.setField ("_m_lat" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LAT"))));};
 BA.debugLineNum = 248;BA.debugLine="If m_lat.Length < 5 Then m_lat = \"0\"";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_m_lat" /*RemoteObject*/ ).runMethod(true,"length"),BA.numberCast(double.class, 5))) { 
__ref.setField ("_m_lat" /*RemoteObject*/ ,BA.ObjectToString("0"));};
 BA.debugLineNum = 249;BA.debugLine="m_lon = \"0\"";
Debug.ShouldStop(16777216);
__ref.setField ("_m_lon" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 250;BA.debugLine="If c.GetString(\"CAT_CL_LONG\") <> \"\" Then m_lon =";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LONG"))),BA.ObjectToString(""))) { 
__ref.setField ("_m_lon" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LONG"))));};
 BA.debugLineNum = 251;BA.debugLine="If m_lon.Length < 5 Then m_lon = \"0\"";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_m_lon" /*RemoteObject*/ ).runMethod(true,"length"),BA.numberCast(double.class, 5))) { 
__ref.setField ("_m_lon" /*RemoteObject*/ ,BA.ObjectToString("0"));};
 BA.debugLineNum = 252;BA.debugLine="LA_RUTA = c.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(134217728);
__ref.setField ("_la_ruta" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))));
 BA.debugLineNum = 254;BA.debugLine="If c.GetString(\"CAT_CL_NUM_SERIEFISICO\") = \"0\"";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NUM_SERIEFISICO"))),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 255;BA.debugLine="L_QR.TEXT = \"SIN CODIGO\"";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("SIN CODIGO"));
 BA.debugLineNum = 256;BA.debugLine="L_QR.TextColor = Colors.Red";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 257;BA.debugLine="gest.VISIBLE = False";
Debug.ShouldStop(1);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 258;BA.debugLine="BT_QR.Visible = True";
Debug.ShouldStop(2);
__ref.getField(false,"_bt_qr" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 260;BA.debugLine="L_QR.TEXT = c.GetString(\"CAT_CL_NUM_SERIEFISICO";
Debug.ShouldStop(8);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NUM_SERIEFISICO")))));
 BA.debugLineNum = 261;BA.debugLine="L_QR.TextColor = Colors.Blue";
Debug.ShouldStop(16);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 262;BA.debugLine="BT_QR.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_bt_qr" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 };
 BA.debugLineNum = 265;BA.debugLine="c.Close";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 266;BA.debugLine="s.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 267;BA.debugLine="S2=B4XPages.MainPage.skmt.ExecQuery(\"select count";
Debug.ShouldStop(1024);
__ref.getField(false,"_s2" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) AS CUANTOS from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 268;BA.debugLine="S2.Position =0";
Debug.ShouldStop(2048);
__ref.getField(false,"_s2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 269;BA.debugLine="CUANTOS = S2.GetString(\"CUANTOS\")";
Debug.ShouldStop(4096);
__ref.setField ("_cuantos" /*RemoteObject*/ ,__ref.getField(false,"_s2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))));
 BA.debugLineNum = 270;BA.debugLine="S2.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_s2" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 271;BA.debugLine="If CUANTOS > 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(true,"_cuantos" /*RemoteObject*/ )),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 272;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery(\"select sum(";
Debug.ShouldStop(32768);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(HVD_COSTO_TOT) AS TOTAL from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 273;BA.debugLine="c2.Position =0";
Debug.ShouldStop(65536);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 274;BA.debugLine="MONTO_COMPRA = c2.GetString(\"TOTAL\")";
Debug.ShouldStop(131072);
__ref.setField ("_monto_compra" /*RemoteObject*/ ,__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL"))));
 BA.debugLineNum = 275;BA.debugLine="c2.Close";
Debug.ShouldStop(262144);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 277;BA.debugLine="MONTO_COMPRA = \"0\"";
Debug.ShouldStop(1048576);
__ref.setField ("_monto_compra" /*RemoteObject*/ ,BA.ObjectToString("0"));
 };
 BA.debugLineNum = 280;BA.debugLine="la_saldotot.Text = MONTO_COMPRA";
Debug.ShouldStop(8388608);
__ref.getField(false,"_la_saldotot" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_monto_compra" /*RemoteObject*/ )));
 BA.debugLineNum = 281;BA.debugLine="If MONTO_COMPRA <> \"0\" Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_monto_compra" /*RemoteObject*/ ),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 282;BA.debugLine="META2 = 1200 -  MONTO_COMPRA";
Debug.ShouldStop(33554432);
__ref.setField ("_meta2" /*RemoteObject*/ ,BA.NumberToString(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1200),BA.numberCast(double.class, __ref.getField(true,"_monto_compra" /*RemoteObject*/ ))}, "-",1, 0)));
 }else {
 BA.debugLineNum = 284;BA.debugLine="META2 = 1200";
Debug.ShouldStop(134217728);
__ref.setField ("_meta2" /*RemoteObject*/ ,BA.NumberToString(1200));
 };
 BA.debugLineNum = 286;BA.debugLine="If META2 < 1 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(true,"_meta2" /*RemoteObject*/ )),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 287;BA.debugLine="META2 = \"CUBIERTO\"";
Debug.ShouldStop(1073741824);
__ref.setField ("_meta2" /*RemoteObject*/ ,BA.ObjectToString("CUBIERTO"));
 };
 BA.debugLineNum = 289;BA.debugLine="la_saldooper.Text = META2";
Debug.ShouldStop(1);
__ref.getField(false,"_la_saldooper" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_meta2" /*RemoteObject*/ )));
 BA.debugLineNum = 290;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select ID_ALM";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select ID_ALMACEN from CAT_ALMACEN"))));
 BA.debugLineNum = 291;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 = 292;BA.debugLine="C.Position=0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 293;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
Debug.ShouldStop(16);
__ref.setField ("_almacen" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))));
 };
 BA.debugLineNum = 295;BA.debugLine="c.Close";
Debug.ShouldStop(64);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 296;BA.debugLine="If ALMACEN = \"1\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 297;BA.debugLine="Tels.Visible = False";
Debug.ShouldStop(256);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 298;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 301;BA.debugLine="If ALMACEN = \"4\"  Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
 BA.debugLineNum = 303;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU";
Debug.ShouldStop(16384);
__ref.getField(false,"_dd" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT COUNT(*) AS CUANTOS FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select cuenta from cuentaa) AND HVD_PRONOMBRE =?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("KNORR RINDE MAS 70 GR")}))));
 BA.debugLineNum = 304;BA.debugLine="DD.Position =0";
Debug.ShouldStop(32768);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 305;BA.debugLine="If DD.GetString(\"CUANTOS\")  = 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 306;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT COUNT(*) AS CUANTOS FROM PEDIDO  WHERE PE_CLIENTE  IN (Select cuenta from cuentaa) AND PE_PRONOMBRE =?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("KNORR RINDE MAS 70 GR")}))));
 BA.debugLineNum = 307;BA.debugLine="c.Position =0";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 313;BA.debugLine="c.Close";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 };
 BA.debugLineNum = 317;BA.debugLine="DD.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 };
 BA.debugLineNum = 321;BA.debugLine="If ALMACEN = \"16\" Or ALMACEN = \"13\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("16")) || RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("13"))) { 
 BA.debugLineNum = 322;BA.debugLine="Tels.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 323;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 325;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
Debug.ShouldStop(16);
c_cliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_cliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("Track")));
 BA.debugLineNum = 327;BA.debugLine="If Not(Starter.GPS.GPSEnabled) Then";
Debug.ShouldStop(64);
if (c_cliente.__c.runMethod(true,"Not",(Object)(c_cliente._starter._gps /*RemoteObject*/ .runMethod(true,"getGPSEnabled"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 328;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo";
Debug.ShouldStop(128);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Debe Activar el GPS del Equipo.")),(Object)(c_cliente.__c.getField(true,"True")));
 BA.debugLineNum = 329;BA.debugLine="StartActivity(Starter.GPS.LocationSettingsIntent";
Debug.ShouldStop(256);
c_cliente.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((c_cliente._starter._gps /*RemoteObject*/ .runMethod(false,"getLocationSettingsIntent"))));
 }else {
 BA.debugLineNum = 331;BA.debugLine="Starter.GPS.Start(0, 0)";
Debug.ShouldStop(1024);
c_cliente._starter._gps /*RemoteObject*/ .runVoidMethodAndSync ("Start",__ref.getField(false, "ba"),(Object)(BA.numberCast(long.class, 0)),(Object)(BA.numberCast(float.class, 0)));
 };
 BA.debugLineNum = 334;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
Debug.ShouldStop(8192);
c_cliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_cliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("StartFLPSmall")));
 BA.debugLineNum = 335;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(".",c_cliente._tracker._flp /*RemoteObject*/ .runMethod(true,"IsInitialized")) && RemoteObject.solveBoolean(".",c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"IsInitialized"))) { 
 BA.debugLineNum = 336;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(32768);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_lat_gps" /*RemoteObject*/ ,BA.NumberToString(c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLatitude")));
 BA.debugLineNum = 337;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(65536);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_lon_gps" /*RemoteObject*/ ,BA.NumberToString(c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLongitude")));
 BA.debugLineNum = 339;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
Debug.ShouldStop(262144);
__ref.runClassMethod (keymon.lat.medicomed.c_cliente.class, "_gps_locationchanged" /*RemoteObject*/ ,(Object)(c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation")));
 };
 BA.debugLineNum = 341;BA.debugLine="Tels.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 342;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 344;BA.debugLine="If la_cuenta.text.SubString2(0,1) = \"N\" Then gest";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"substring",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1))),BA.ObjectToString("N"))) { 
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));};
 BA.debugLineNum = 346;BA.debugLine="b_inicioFinVenta.Text = \"INICIAR VENTA\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("INICIAR VENTA"));
 BA.debugLineNum = 347;BA.debugLine="b_inicioFinVenta.BringToFront";
Debug.ShouldStop(67108864);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 349;BA.debugLine="If Not(Starter.enVenta) And la_cuenta.Text <> \"0\"";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(".",c_cliente.__c.runMethod(true,"Not",(Object)(c_cliente._starter._enventa /*RemoteObject*/ ))) && RemoteObject.solveBoolean("!",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 350;BA.debugLine="b_inicioFinVenta.Visible = True";
Debug.ShouldStop(536870912);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 354;BA.debugLine="b_inicioFinVenta.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 358;BA.debugLine="End Sub";
Debug.ShouldStop(32);
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_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,422);
if (RapidSub.canDelegate("b4xpage_closerequest")) { return __ref.runUserSub(false, "c_cliente","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(keymon.lat.medicomed.c_cliente parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_cliente parent;
RemoteObject _resultado1 = RemoteObject.createImmutable(0);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,422);
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 = 426;BA.debugLine="If IsNumber(l_total.text) And l_total.text <> \"0\"";
Debug.ShouldStop(512);
if (true) break;

case 1:
//if
this.state = 10;
if (RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"IsNumber",(Object)(__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")))) && RemoteObject.solveBoolean("!",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0")) && RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"Not",(Object)(parent._subs.runMethod(true,"_pedidoguardado" /*RemoteObject*/ ,__ref.getField(false, "ba")))))) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 427;BA.debugLine="LogColor(\"Hay Venta\", Colors.Red)";
Debug.ShouldStop(1024);
parent.__c.runVoidMethod ("LogImpl","35767173",BA.ObjectToString("Hay Venta"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 428;BA.debugLine="Private resultado1 As Int = Msgbox2($\"Va salir s";
Debug.ShouldStop(2048);
_resultado1 = parent.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Va salir sin haber guardado la venta, si continua, la venta se BORRARA."),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent.__c.getField(true,"CRLF")))),RemoteObject.createImmutable(""),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("¿Esta seguro que desea continuar?"))))),(Object)(BA.ObjectToCharSequence("SE VA A BORRAR LA VENTA")),(Object)(BA.ObjectToString("Borrar Venta")),(Object)(BA.ObjectToString("Guardar Venta")),(Object)(BA.ObjectToString("")),(Object)((parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"));Debug.locals.put("resultado1", _resultado1);Debug.locals.put("resultado1", _resultado1);
 BA.debugLineNum = 429;BA.debugLine="If resultado1 = DialogResponse.POSITIVE Then";
Debug.ShouldStop(4096);
if (true) break;

case 4:
//if
this.state = 9;
if (RemoteObject.solveBoolean("=",_resultado1,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 6;
}else 
{ BA.debugLineNum = 435;BA.debugLine="else if resultado1=DialogResponse.CANCEL Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_resultado1,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"CANCEL")))) { 
this.state = 8;
}}
if (true) break;

case 6:
//C
this.state = 9;
 BA.debugLineNum = 430;BA.debugLine="Log(\"Borrra venta\")";
Debug.ShouldStop(8192);
parent.__c.runVoidMethod ("LogImpl","35767176",RemoteObject.createImmutable("Borrra venta"),0);
 BA.debugLineNum = 431;BA.debugLine="Subs.borraPedidoClienteActual";
Debug.ShouldStop(16384);
parent._subs.runVoidMethod ("_borrapedidoclienteactual" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 432;BA.debugLine="ToastMessageShow(\"Venta Borrada\", False)";
Debug.ShouldStop(32768);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Venta Borrada")),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 434;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(131072);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 if (true) break;

case 8:
//C
this.state = 9;
 BA.debugLineNum = 436;BA.debugLine="Log(\"Pedido guardado\")";
Debug.ShouldStop(524288);
parent.__c.runVoidMethod ("LogImpl","35767182",RemoteObject.createImmutable("Pedido guardado"),0);
 BA.debugLineNum = 437;BA.debugLine="Guardar_Click";
Debug.ShouldStop(1048576);
__ref.runClassMethod (keymon.lat.medicomed.c_cliente.class, "_guardar_click" /*RemoteObject*/ );
 BA.debugLineNum = 438;BA.debugLine="ToastMessageShow(\"Venta Guardada\", False)";
Debug.ShouldStop(2097152);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Venta Guardada")),(Object)(parent.__c.getField(true,"False")));
 if (true) break;

case 9:
//C
this.state = 10;
;
 if (true) break;

case 10:
//C
this.state = -1;
;
 BA.debugLineNum = 441;BA.debugLine="ToastMessageShow(\"Por favor presione GUARDAR para";
Debug.ShouldStop(16777216);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Por favor presione GUARDAR para continuar")),(Object)(parent.__c.getField(true,"True")));
 BA.debugLineNum = 445;BA.debugLine="Return False";
Debug.ShouldStop(268435456);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 BA.debugLineNum = 446;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
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_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,161);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_cliente","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 161;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(1);
 BA.debugLineNum = 162;BA.debugLine="Root = Root1";
Debug.ShouldStop(2);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 165;BA.debugLine="Root.LoadLayout(\"cliente\")";
Debug.ShouldStop(16);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("cliente")),__ref.getField(false, "ba"));
 BA.debugLineNum = 166;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(32);
__ref.setField ("_ruta" /*RemoteObject*/ ,c_cliente.__c.getField(false,"File").runMethod(true,"getDirInternal"));
 BA.debugLineNum = 167;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",c_cliente.__c.getField(false,"File").runMethod(true,"Exists",(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db"))),c_cliente.__c.getField(true,"False"))) { 
 BA.debugLineNum = 168;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
Debug.ShouldStop(128);
c_cliente.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_cliente.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("kmt.db")),(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db")));
 };
 BA.debugLineNum = 170;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
Debug.ShouldStop(512);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(BA.ObjectToString("kmt.db")),(Object)(c_cliente.__c.getField(true,"True")));
 BA.debugLineNum = 171;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select 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_MTOCOMPRA  from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))));
 BA.debugLineNum = 172;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"select sum(pe";
Debug.ShouldStop(2048);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 173;BA.debugLine="s.Position=0";
Debug.ShouldStop(4096);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 174;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 = 175;BA.debugLine="c.Position=0";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 176;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")";
Debug.ShouldStop(32768);
__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))));
 BA.debugLineNum = 177;BA.debugLine="cuenta = c.GetString(\"CAT_CL_CODIGO\")";
Debug.ShouldStop(65536);
__ref.setField ("_cuenta" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))));
 BA.debugLineNum = 178;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")";
Debug.ShouldStop(131072);
__ref.getField(false,"_la_nombre" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))));
 BA.debugLineNum = 179;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.";
Debug.ShouldStop(262144);
__ref.getField(false,"_la_calle" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE"))),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOEXT"))))));
 BA.debugLineNum = 180;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")";
Debug.ShouldStop(524288);
__ref.getField(false,"_la_col" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_COLONIA")))));
 BA.debugLineNum = 181;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_la_edo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_EDO")))));
 BA.debugLineNum = 183;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_NOEXT\")";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_entre1" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOEXT")))));
 BA.debugLineNum = 184;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_NOINT\")";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_entre2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOINT")))));
 BA.debugLineNum = 185;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_atiende" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_ATIENDE1")))));
 BA.debugLineNum = 186;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_atiende2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_ATIENTE2")))));
 BA.debugLineNum = 187;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_la_saldotot" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_TELEFONO")))));
 BA.debugLineNum = 188;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")";
Debug.ShouldStop(134217728);
__ref.getField(false,"_la_saldooper" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_EMAIL")))));
 BA.debugLineNum = 189;BA.debugLine="l_total.Text = s.GetString(\"TOTAL_CLIE\")";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))));
 BA.debugLineNum = 190;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
Debug.ShouldStop(536870912);
__ref.setField ("_total_cliente" /*RemoteObject*/ ,__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE"))));
 BA.debugLineNum = 191;BA.debugLine="MONTO_COMPRA = c.GetString(\"CAT_CL_MTOCOMPRA\")";
Debug.ShouldStop(1073741824);
__ref.setField ("_monto_compra" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_MTOCOMPRA"))));
 BA.debugLineNum = 192;BA.debugLine="Label20.Text = c.GetString(\"CAT_CL_CP\")";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_label20" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CP")))));
 };
 BA.debugLineNum = 194;BA.debugLine="c.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 195;BA.debugLine="s.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 196;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
Debug.ShouldStop(8);
__ref.getField(false,"_btadmin" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("BlueTeeth")));
 BA.debugLineNum = 197;BA.debugLine="cmp20.Initialize(\"Printer\")";
Debug.ShouldStop(16);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(RemoteObject.createImmutable("Printer")));
 BA.debugLineNum = 198;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
Debug.ShouldStop(32);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )));
 BA.debugLineNum = 199;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _bt_qr_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("BT_QR_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,547);
if (RapidSub.canDelegate("bt_qr_click")) { return __ref.runUserSub(false, "c_cliente","bt_qr_click", __ref);}
 BA.debugLineNum = 547;BA.debugLine="Sub BT_QR_Click";
Debug.ShouldStop(4);
 BA.debugLineNum = 548;BA.debugLine="sc.isportrait = True";
Debug.ShouldStop(8);
__ref.getField(false,"_sc" /*RemoteObject*/ ).setField ("isportrait",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 549;BA.debugLine="sc.timeoutDuration = 45";
Debug.ShouldStop(16);
__ref.getField(false,"_sc" /*RemoteObject*/ ).setField ("timeoutDuration",BA.numberCast(int.class, 45));
 BA.debugLineNum = 550;BA.debugLine="sc.theViewFinderXfactor = 0.7";
Debug.ShouldStop(32);
__ref.getField(false,"_sc" /*RemoteObject*/ ).setField ("theViewFinderXfactor",BA.numberCast(double.class, 0.7));
 BA.debugLineNum = 551;BA.debugLine="sc.theViewFinderYfactor = 0.5";
Debug.ShouldStop(64);
__ref.getField(false,"_sc" /*RemoteObject*/ ).setField ("theViewFinderYfactor",BA.numberCast(double.class, 0.5));
 BA.debugLineNum = 552;BA.debugLine="sc.theResultColor = Colors.Green";
Debug.ShouldStop(128);
__ref.getField(false,"_sc" /*RemoteObject*/ ).setField ("theResultColor",c_cliente.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 553;BA.debugLine="sc.mustVibrate = True";
Debug.ShouldStop(256);
__ref.getField(false,"_sc" /*RemoteObject*/ ).setField ("mustVibrate",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 554;BA.debugLine="sc.BeginScan(\"sc\")";
Debug.ShouldStop(512);
__ref.getField(false,"_sc" /*RemoteObject*/ ).runVoidMethod ("BeginScan",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("sc")));
 BA.debugLineNum = 555;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _calc_ean_checksum(RemoteObject __ref,RemoteObject _number) throws Exception{
try {
		Debug.PushSubsStack("calc_ean_checksum (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,590);
if (RapidSub.canDelegate("calc_ean_checksum")) { return __ref.runUserSub(false, "c_cliente","calc_ean_checksum", __ref, _number);}
RemoteObject _i = RemoteObject.createImmutable(0);
RemoteObject _co = RemoteObject.createImmutable('\0');
RemoteObject _soma = RemoteObject.createImmutable(0);
RemoteObject _n = RemoteObject.createImmutable(0);
RemoteObject _digit = RemoteObject.createImmutable(0f);
Debug.locals.put("number", _number);
 BA.debugLineNum = 590;BA.debugLine="Sub calc_ean_checksum(number As String) As String";
Debug.ShouldStop(8192);
 BA.debugLineNum = 591;BA.debugLine="Dim i As Int";
Debug.ShouldStop(16384);
_i = RemoteObject.createImmutable(0);Debug.locals.put("i", _i);
 BA.debugLineNum = 592;BA.debugLine="Dim cO As Char";
Debug.ShouldStop(32768);
_co = RemoteObject.createImmutable('\0');Debug.locals.put("cO", _co);
 BA.debugLineNum = 593;BA.debugLine="Dim soma As Int";
Debug.ShouldStop(65536);
_soma = RemoteObject.createImmutable(0);Debug.locals.put("soma", _soma);
 BA.debugLineNum = 594;BA.debugLine="Dim n As Int";
Debug.ShouldStop(131072);
_n = RemoteObject.createImmutable(0);Debug.locals.put("n", _n);
 BA.debugLineNum = 595;BA.debugLine="Dim digit As Float";
Debug.ShouldStop(262144);
_digit = RemoteObject.createImmutable(0f);Debug.locals.put("digit", _digit);
 BA.debugLineNum = 596;BA.debugLine="soma = 0";
Debug.ShouldStop(524288);
_soma = BA.numberCast(int.class, 0);Debug.locals.put("soma", _soma);
 BA.debugLineNum = 597;BA.debugLine="For i=0 To number.Length - 1";
Debug.ShouldStop(1048576);
{
final int step7 = 1;
final int limit7 = RemoteObject.solve(new RemoteObject[] {_number.runMethod(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = BA.numberCast(int.class, 0) ;
for (;(step7 > 0 && _i.<Integer>get().intValue() <= limit7) || (step7 < 0 && _i.<Integer>get().intValue() >= limit7) ;_i = RemoteObject.createImmutable((int)(0 + _i.<Integer>get().intValue() + step7))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 598;BA.debugLine="digit = number.SubString2(i,i+1)";
Debug.ShouldStop(2097152);
_digit = BA.numberCast(float.class, _number.runMethod(true,"substring",(Object)(_i),(Object)(RemoteObject.solve(new RemoteObject[] {_i,RemoteObject.createImmutable(1)}, "+",1, 1))));Debug.locals.put("digit", _digit);
 BA.debugLineNum = 599;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)";
Debug.ShouldStop(4194304);
_n = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_digit,(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {_i,RemoteObject.createImmutable(2)}, "%",0, 1)),RemoteObject.createImmutable(2),RemoteObject.createImmutable(1)}, "*+",1, 1))}, "*",0, 0));Debug.locals.put("n", _n);
 BA.debugLineNum = 600;BA.debugLine="soma=soma+n";
Debug.ShouldStop(8388608);
_soma = RemoteObject.solve(new RemoteObject[] {_soma,_n}, "+",1, 1);Debug.locals.put("soma", _soma);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 602;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10";
Debug.ShouldStop(33554432);
if (true) return RemoteObject.concat(_number,(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(10),(RemoteObject.solve(new RemoteObject[] {_soma,RemoteObject.createImmutable(10)}, "%",0, 1))}, "-",1, 1)),RemoteObject.createImmutable(10)}, "%",0, 1)));
 BA.debugLineNum = 603;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cb_factura_checkedchange(RemoteObject __ref,RemoteObject _checked) throws Exception{
try {
		Debug.PushSubsStack("cb_factura_CheckedChange (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,814);
if (RapidSub.canDelegate("cb_factura_checkedchange")) { return __ref.runUserSub(false, "c_cliente","cb_factura_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 814;BA.debugLine="Private Sub cb_factura_CheckedChange(Checked As Bo";
Debug.ShouldStop(8192);
 BA.debugLineNum = 816;BA.debugLine="If Checked Then p_cbFactura.Color = Colors.Green";
Debug.ShouldStop(32768);
if (_checked.<Boolean>get().booleanValue()) { 
__ref.getField(false,"_p_cbfactura" /*RemoteObject*/ ).runVoidMethod ("setColor",c_cliente.__c.getField(false,"Colors").getField(true,"Green"));}
else {
__ref.getField(false,"_p_cbfactura" /*RemoteObject*/ ).runVoidMethod ("setColor",c_cliente.__c.getField(false,"Colors").getField(true,"Red"));};
 BA.debugLineNum = 817;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 5;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 6;BA.debugLine="Private Root As B4XView 'ignore";
c_cliente._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_cliente._root);
 //BA.debugLineNum = 7;BA.debugLine="Private xui As XUI 'ignore";
c_cliente._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_cliente._xui);
 //BA.debugLineNum = 8;BA.debugLine="Private p_cliente As Panel";
c_cliente._p_cliente = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_cliente",c_cliente._p_cliente);
 //BA.debugLineNum = 9;BA.debugLine="Dim reqManager As DBRequestManager";
c_cliente._reqmanager = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager");__ref.setField("_reqmanager",c_cliente._reqmanager);
 //BA.debugLineNum = 10;BA.debugLine="Dim cmd As DBCommand";
c_cliente._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 //BA.debugLineNum = 11;BA.debugLine="Dim ime As IME";
c_cliente._ime = RemoteObject.createNew ("anywheresoftware.b4a.objects.IME");__ref.setField("_ime",c_cliente._ime);
 //BA.debugLineNum = 13;BA.debugLine="Dim g As GPS";
c_cliente._g = RemoteObject.createNew ("anywheresoftware.b4a.gps.GPS");__ref.setField("_g",c_cliente._g);
 //BA.debugLineNum = 14;BA.debugLine="Dim ruta As String";
c_cliente._ruta = RemoteObject.createImmutable("");__ref.setField("_ruta",c_cliente._ruta);
 //BA.debugLineNum = 15;BA.debugLine="Dim skmt As SQL";
c_cliente._skmt = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL");__ref.setField("_skmt",c_cliente._skmt);
 //BA.debugLineNum = 16;BA.debugLine="Dim clie_id As String";
c_cliente._clie_id = RemoteObject.createImmutable("");__ref.setField("_clie_id",c_cliente._clie_id);
 //BA.debugLineNum = 17;BA.debugLine="Dim sDate,sTime As String";
c_cliente._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_cliente._sdate);
c_cliente._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_cliente._stime);
 //BA.debugLineNum = 18;BA.debugLine="Dim usuario As String";
c_cliente._usuario = RemoteObject.createImmutable("");__ref.setField("_usuario",c_cliente._usuario);
 //BA.debugLineNum = 19;BA.debugLine="Dim total_cliente As String";
c_cliente._total_cliente = RemoteObject.createImmutable("");__ref.setField("_total_cliente",c_cliente._total_cliente);
 //BA.debugLineNum = 20;BA.debugLine="Dim m_lat, m_lon As String";
c_cliente._m_lat = RemoteObject.createImmutable("");__ref.setField("_m_lat",c_cliente._m_lat);
c_cliente._m_lon = RemoteObject.createImmutable("");__ref.setField("_m_lon",c_cliente._m_lon);
 //BA.debugLineNum = 21;BA.debugLine="Dim btAdmin As BluetoothAdmin";
c_cliente._btadmin = RemoteObject.createNew ("anywheresoftware.b4a.objects.Serial.BluetoothAdmin");__ref.setField("_btadmin",c_cliente._btadmin);
 //BA.debugLineNum = 22;BA.debugLine="Dim cmp20 As Serial";
c_cliente._cmp20 = RemoteObject.createNew ("anywheresoftware.b4a.objects.Serial");__ref.setField("_cmp20",c_cliente._cmp20);
 //BA.debugLineNum = 23;BA.debugLine="Dim printer As TextWriter";
c_cliente._printer = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.TextWriterWrapper");__ref.setField("_printer",c_cliente._printer);
 //BA.debugLineNum = 24;BA.debugLine="Dim PairedDevices As Map";
c_cliente._paireddevices = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_paireddevices",c_cliente._paireddevices);
 //BA.debugLineNum = 25;BA.debugLine="Dim L As List";
c_cliente._l = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_l",c_cliente._l);
 //BA.debugLineNum = 26;BA.debugLine="Dim TAMANO As Int";
c_cliente._tamano = RemoteObject.createImmutable(0);__ref.setField("_tamano",c_cliente._tamano);
 //BA.debugLineNum = 27;BA.debugLine="Dim ESPACIO As Int";
c_cliente._espacio = RemoteObject.createImmutable(0);__ref.setField("_espacio",c_cliente._espacio);
 //BA.debugLineNum = 28;BA.debugLine="Dim BLANCO As String";
c_cliente._blanco = RemoteObject.createImmutable("");__ref.setField("_blanco",c_cliente._blanco);
 //BA.debugLineNum = 29;BA.debugLine="Dim cuenta As String";
c_cliente._cuenta = RemoteObject.createImmutable("");__ref.setField("_cuenta",c_cliente._cuenta);
 //BA.debugLineNum = 30;BA.debugLine="Dim tipo_venta As String = \"PREVENTA\"";
c_cliente._tipo_venta = BA.ObjectToString("PREVENTA");__ref.setField("_tipo_venta",c_cliente._tipo_venta);
 //BA.debugLineNum = 31;BA.debugLine="Dim MAC_IMPRESORA As String";
c_cliente._mac_impresora = RemoteObject.createImmutable("");__ref.setField("_mac_impresora",c_cliente._mac_impresora);
 //BA.debugLineNum = 33;BA.debugLine="Dim c As Cursor";
c_cliente._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_cliente._c);
 //BA.debugLineNum = 34;BA.debugLine="Dim s As Cursor";
c_cliente._s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s",c_cliente._s);
 //BA.debugLineNum = 35;BA.debugLine="Dim DD As Cursor";
c_cliente._dd = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_dd",c_cliente._dd);
 //BA.debugLineNum = 36;BA.debugLine="Dim c2 As Cursor";
c_cliente._c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c2",c_cliente._c2);
 //BA.debugLineNum = 37;BA.debugLine="Dim ListView1 As ListView";
c_cliente._listview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_listview1",c_cliente._listview1);
 //BA.debugLineNum = 38;BA.debugLine="Dim la_cuenta As Label";
c_cliente._la_cuenta = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_cuenta",c_cliente._la_cuenta);
 //BA.debugLineNum = 39;BA.debugLine="Dim La_nombre As Label";
c_cliente._la_nombre = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_nombre",c_cliente._la_nombre);
 //BA.debugLineNum = 40;BA.debugLine="Dim la_Calle As Label";
c_cliente._la_calle = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_calle",c_cliente._la_calle);
 //BA.debugLineNum = 41;BA.debugLine="Dim la_numero As Label";
c_cliente._la_numero = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_numero",c_cliente._la_numero);
 //BA.debugLineNum = 42;BA.debugLine="Dim la_nint As Label";
c_cliente._la_nint = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_nint",c_cliente._la_nint);
 //BA.debugLineNum = 43;BA.debugLine="Dim la_edo As Label";
c_cliente._la_edo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_edo",c_cliente._la_edo);
 //BA.debugLineNum = 44;BA.debugLine="Dim la_pob As Label";
c_cliente._la_pob = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_pob",c_cliente._la_pob);
 //BA.debugLineNum = 45;BA.debugLine="Dim la_col As Label";
c_cliente._la_col = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_col",c_cliente._la_col);
 //BA.debugLineNum = 46;BA.debugLine="Dim la_cp As Label";
c_cliente._la_cp = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_cp",c_cliente._la_cp);
 //BA.debugLineNum = 47;BA.debugLine="Dim la_zona As Label";
c_cliente._la_zona = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_zona",c_cliente._la_zona);
 //BA.debugLineNum = 48;BA.debugLine="Dim gest As Button";
c_cliente._gest = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_gest",c_cliente._gest);
 //BA.debugLineNum = 49;BA.debugLine="Dim la_saldotot As Label";
c_cliente._la_saldotot = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_saldotot",c_cliente._la_saldotot);
 //BA.debugLineNum = 50;BA.debugLine="Dim la_saldooper As Label";
c_cliente._la_saldooper = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_saldooper",c_cliente._la_saldooper);
 //BA.debugLineNum = 52;BA.debugLine="Dim Tels As Button";
c_cliente._tels = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_tels",c_cliente._tels);
 //BA.debugLineNum = 53;BA.debugLine="Dim Label10 As Label";
c_cliente._label10 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label10",c_cliente._label10);
 //BA.debugLineNum = 54;BA.debugLine="Dim Label11 As Label";
c_cliente._label11 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label11",c_cliente._label11);
 //BA.debugLineNum = 56;BA.debugLine="Dim Tar As Button";
c_cliente._tar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_tar",c_cliente._tar);
 //BA.debugLineNum = 58;BA.debugLine="Dim la_comm As Label";
c_cliente._la_comm = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_comm",c_cliente._la_comm);
 //BA.debugLineNum = 59;BA.debugLine="Dim la_actdte As Label";
c_cliente._la_actdte = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_actdte",c_cliente._la_actdte);
 //BA.debugLineNum = 60;BA.debugLine="Dim la_usuario As Label";
c_cliente._la_usuario = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_usuario",c_cliente._la_usuario);
 //BA.debugLineNum = 61;BA.debugLine="Dim la_resultado As Label";
c_cliente._la_resultado = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_resultado",c_cliente._la_resultado);
 //BA.debugLineNum = 62;BA.debugLine="Dim l_entre1 As Label";
c_cliente._l_entre1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_entre1",c_cliente._l_entre1);
 //BA.debugLineNum = 63;BA.debugLine="Dim l_entre2 As Label";
c_cliente._l_entre2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_entre2",c_cliente._l_entre2);
 //BA.debugLineNum = 64;BA.debugLine="Dim l_atiende As Label";
c_cliente._l_atiende = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_atiende",c_cliente._l_atiende);
 //BA.debugLineNum = 65;BA.debugLine="Dim l_atiende2 As Label";
c_cliente._l_atiende2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_atiende2",c_cliente._l_atiende2);
 //BA.debugLineNum = 66;BA.debugLine="Dim DATOS As Button";
c_cliente._datos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_datos",c_cliente._datos);
 //BA.debugLineNum = 67;BA.debugLine="Dim Guardar As Button";
c_cliente._guardar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_guardar",c_cliente._guardar);
 //BA.debugLineNum = 68;BA.debugLine="Dim NUEVO As Button";
c_cliente._nuevo = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_nuevo",c_cliente._nuevo);
 //BA.debugLineNum = 71;BA.debugLine="Dim l_total As Label";
c_cliente._l_total = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total",c_cliente._l_total);
 //BA.debugLineNum = 72;BA.debugLine="Dim c2 As Cursor";
c_cliente._c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c2",c_cliente._c2);
 //BA.debugLineNum = 73;BA.debugLine="Dim S2 As Cursor";
c_cliente._s2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s2",c_cliente._s2);
 //BA.debugLineNum = 74;BA.debugLine="Private s As Cursor";
c_cliente._s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s",c_cliente._s);
 //BA.debugLineNum = 75;BA.debugLine="Dim res As String";
c_cliente._res = RemoteObject.createImmutable("");__ref.setField("_res",c_cliente._res);
 //BA.debugLineNum = 76;BA.debugLine="Private HIST As Button";
c_cliente._hist = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_hist",c_cliente._hist);
 //BA.debugLineNum = 77;BA.debugLine="Private MONTO_COMPRA As String";
c_cliente._monto_compra = RemoteObject.createImmutable("");__ref.setField("_monto_compra",c_cliente._monto_compra);
 //BA.debugLineNum = 78;BA.debugLine="Private META As String";
c_cliente._meta = RemoteObject.createImmutable("");__ref.setField("_meta",c_cliente._meta);
 //BA.debugLineNum = 79;BA.debugLine="Private META2 As String";
c_cliente._meta2 = RemoteObject.createImmutable("");__ref.setField("_meta2",c_cliente._meta2);
 //BA.debugLineNum = 80;BA.debugLine="Private VERIFICA As String";
c_cliente._verifica = RemoteObject.createImmutable("");__ref.setField("_verifica",c_cliente._verifica);
 //BA.debugLineNum = 81;BA.debugLine="Private L_QR As Label";
c_cliente._l_qr = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_qr",c_cliente._l_qr);
 //BA.debugLineNum = 82;BA.debugLine="Private BT_QR As Button";
c_cliente._bt_qr = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_bt_qr",c_cliente._bt_qr);
 //BA.debugLineNum = 84;BA.debugLine="Dim CODIGO As String";
c_cliente._codigo = RemoteObject.createImmutable("");__ref.setField("_codigo",c_cliente._codigo);
 //BA.debugLineNum = 86;BA.debugLine="Private b_mapa As Button";
c_cliente._b_mapa = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_mapa",c_cliente._b_mapa);
 //BA.debugLineNum = 87;BA.debugLine="Dim CUANTOS As String";
c_cliente._cuantos = RemoteObject.createImmutable("");__ref.setField("_cuantos",c_cliente._cuantos);
 //BA.debugLineNum = 88;BA.debugLine="Private B_IMP As Button";
c_cliente._b_imp = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_imp",c_cliente._b_imp);
 //BA.debugLineNum = 89;BA.debugLine="Dim Toggla As Toggle";
c_cliente._toggla = RemoteObject.createNew ("com.rootsoft.togglelibrary.ToggleLibrary");__ref.setField("_toggla",c_cliente._toggla);
 //BA.debugLineNum = 90;BA.debugLine="Dim tgl As Toggle";
c_cliente._tgl = RemoteObject.createNew ("com.rootsoft.togglelibrary.ToggleLibrary");__ref.setField("_tgl",c_cliente._tgl);
 //BA.debugLineNum = 91;BA.debugLine="Private Panel1 As Panel";
c_cliente._panel1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel1",c_cliente._panel1);
 //BA.debugLineNum = 92;BA.debugLine="Private I_COMPRA As EditText";
c_cliente._i_compra = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_i_compra",c_cliente._i_compra);
 //BA.debugLineNum = 93;BA.debugLine="Private B_GUARDA_C As Button";
c_cliente._b_guarda_c = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_guarda_c",c_cliente._b_guarda_c);
 //BA.debugLineNum = 94;BA.debugLine="Private b_venta As Button";
c_cliente._b_venta = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_venta",c_cliente._b_venta);
 //BA.debugLineNum = 95;BA.debugLine="Dim ALMACEN As String";
c_cliente._almacen = RemoteObject.createImmutable("");__ref.setField("_almacen",c_cliente._almacen);
 //BA.debugLineNum = 96;BA.debugLine="Private LA_GPS As Label";
c_cliente._la_gps = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_gps",c_cliente._la_gps);
 //BA.debugLineNum = 97;BA.debugLine="Private B_E_NEXT As Button";
c_cliente._b_e_next = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_e_next",c_cliente._b_e_next);
 //BA.debugLineNum = 98;BA.debugLine="Private E_RES_E As EditText";
c_cliente._e_res_e = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_e_res_e",c_cliente._e_res_e);
 //BA.debugLineNum = 99;BA.debugLine="Private t_tenc As Label";
c_cliente._t_tenc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_t_tenc",c_cliente._t_tenc);
 //BA.debugLineNum = 100;BA.debugLine="Private Panel2 As Panel";
c_cliente._panel2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel2",c_cliente._panel2);
 //BA.debugLineNum = 101;BA.debugLine="Private CONTADOR_E As String";
c_cliente._contador_e = RemoteObject.createImmutable("");__ref.setField("_contador_e",c_cliente._contador_e);
 //BA.debugLineNum = 102;BA.debugLine="Private HR_RES1 As String";
c_cliente._hr_res1 = RemoteObject.createImmutable("");__ref.setField("_hr_res1",c_cliente._hr_res1);
 //BA.debugLineNum = 103;BA.debugLine="Private HR_RES2 As String";
c_cliente._hr_res2 = RemoteObject.createImmutable("");__ref.setField("_hr_res2",c_cliente._hr_res2);
 //BA.debugLineNum = 104;BA.debugLine="Private HR_RES3 As String";
c_cliente._hr_res3 = RemoteObject.createImmutable("");__ref.setField("_hr_res3",c_cliente._hr_res3);
 //BA.debugLineNum = 105;BA.debugLine="Private EXISTE As String";
c_cliente._existe = RemoteObject.createImmutable("");__ref.setField("_existe",c_cliente._existe);
 //BA.debugLineNum = 106;BA.debugLine="Private TELEFONO As String";
c_cliente._telefono = RemoteObject.createImmutable("");__ref.setField("_telefono",c_cliente._telefono);
 //BA.debugLineNum = 108;BA.debugLine="Private RB1 As RadioButton";
c_cliente._rb1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb1",c_cliente._rb1);
 //BA.debugLineNum = 109;BA.debugLine="Private RB2 As RadioButton";
c_cliente._rb2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb2",c_cliente._rb2);
 //BA.debugLineNum = 110;BA.debugLine="Private RB3 As RadioButton";
c_cliente._rb3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb3",c_cliente._rb3);
 //BA.debugLineNum = 111;BA.debugLine="Private RB4 As RadioButton";
c_cliente._rb4 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb4",c_cliente._rb4);
 //BA.debugLineNum = 112;BA.debugLine="Private RB5 As RadioButton";
c_cliente._rb5 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb5",c_cliente._rb5);
 //BA.debugLineNum = 114;BA.debugLine="Private stay_hh As String";
c_cliente._stay_hh = RemoteObject.createImmutable("");__ref.setField("_stay_hh",c_cliente._stay_hh);
 //BA.debugLineNum = 115;BA.debugLine="Private stay_mi As String";
c_cliente._stay_mi = RemoteObject.createImmutable("");__ref.setField("_stay_mi",c_cliente._stay_mi);
 //BA.debugLineNum = 116;BA.debugLine="Private stay_ss As String";
c_cliente._stay_ss = RemoteObject.createImmutable("");__ref.setField("_stay_ss",c_cliente._stay_ss);
 //BA.debugLineNum = 118;BA.debugLine="Private LA_GEO As Label";
c_cliente._la_geo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_la_geo",c_cliente._la_geo);
 //BA.debugLineNum = 119;BA.debugLine="Dim result As Int";
c_cliente._result = RemoteObject.createImmutable(0);__ref.setField("_result",c_cliente._result);
 //BA.debugLineNum = 120;BA.debugLine="Private cercavalor As String";
c_cliente._cercavalor = RemoteObject.createImmutable("");__ref.setField("_cercavalor",c_cliente._cercavalor);
 //BA.debugLineNum = 121;BA.debugLine="Private LA_RUTA As String";
c_cliente._la_ruta = RemoteObject.createImmutable("");__ref.setField("_la_ruta",c_cliente._la_ruta);
 //BA.debugLineNum = 123;BA.debugLine="Private b_like As Button";
c_cliente._b_like = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_like",c_cliente._b_like);
 //BA.debugLineNum = 124;BA.debugLine="Private B_GPS As Button";
c_cliente._b_gps = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_gps",c_cliente._b_gps);
 //BA.debugLineNum = 125;BA.debugLine="Dim sc As JhsIceZxing1";
c_cliente._sc = RemoteObject.createNew ("ice.zxing.b4aZXingLib");__ref.setField("_sc",c_cliente._sc);
 //BA.debugLineNum = 126;BA.debugLine="Dim CODIGO As String";
c_cliente._codigo = RemoteObject.createImmutable("");__ref.setField("_codigo",c_cliente._codigo);
 //BA.debugLineNum = 127;BA.debugLine="Private cb_factura As CheckBox";
c_cliente._cb_factura = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper");__ref.setField("_cb_factura",c_cliente._cb_factura);
 //BA.debugLineNum = 128;BA.debugLine="Private p_cbFactura As Panel";
c_cliente._p_cbfactura = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_cbfactura",c_cliente._p_cbfactura);
 //BA.debugLineNum = 129;BA.debugLine="Dim venimosDeTicketsDia As Boolean = False";
c_cliente._venimosdeticketsdia = c_cliente.__c.getField(true,"False");__ref.setField("_venimosdeticketsdia",c_cliente._venimosdeticketsdia);
 //BA.debugLineNum = 130;BA.debugLine="Private p_abono As Panel";
c_cliente._p_abono = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_abono",c_cliente._p_abono);
 //BA.debugLineNum = 131;BA.debugLine="Private et_abono As EditText";
c_cliente._et_abono = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_abono",c_cliente._et_abono);
 //BA.debugLineNum = 132;BA.debugLine="Private b_abono As Button";
c_cliente._b_abono = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_abono",c_cliente._b_abono);
 //BA.debugLineNum = 133;BA.debugLine="Private b_cancelar As Button";
c_cliente._b_cancelar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_cancelar",c_cliente._b_cancelar);
 //BA.debugLineNum = 134;BA.debugLine="Private b_abono1 As Button";
c_cliente._b_abono1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_abono1",c_cliente._b_abono1);
 //BA.debugLineNum = 135;BA.debugLine="Private Label20 As Label";
c_cliente._label20 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label20",c_cliente._label20);
 //BA.debugLineNum = 136;BA.debugLine="Private l_calle1 As Label";
c_cliente._l_calle1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_calle1",c_cliente._l_calle1);
 //BA.debugLineNum = 137;BA.debugLine="Private l_ubicacion2 As Label";
c_cliente._l_ubicacion2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ubicacion2",c_cliente._l_ubicacion2);
 //BA.debugLineNum = 139;BA.debugLine="Dim dentroDeGeocerca As Boolean = False";
c_cliente._dentrodegeocerca = c_cliente.__c.getField(true,"False");__ref.setField("_dentrodegeocerca",c_cliente._dentrodegeocerca);
 //BA.debugLineNum = 140;BA.debugLine="Dim b_inicioFinVenta As Button";
c_cliente._b_iniciofinventa = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_iniciofinventa",c_cliente._b_iniciofinventa);
 //BA.debugLineNum = 141;BA.debugLine="Dim precision As Int = 0";
c_cliente._precision = BA.numberCast(int.class, 0);__ref.setField("_precision",c_cliente._precision);
 //BA.debugLineNum = 142;BA.debugLine="Dim motivoNoVenta, motivoNoVisita As String";
c_cliente._motivonoventa = RemoteObject.createImmutable("");__ref.setField("_motivonoventa",c_cliente._motivonoventa);
c_cliente._motivonovisita = RemoteObject.createImmutable("");__ref.setField("_motivonovisita",c_cliente._motivonovisita);
 //BA.debugLineNum = 143;BA.debugLine="Dim usuario As String = \"\"";
c_cliente._usuario = BA.ObjectToString("");__ref.setField("_usuario",c_cliente._usuario);
 //BA.debugLineNum = 144;BA.debugLine="Dim Id_Almacen As String";
c_cliente._id_almacen = RemoteObject.createImmutable("");__ref.setField("_id_almacen",c_cliente._id_almacen);
 //BA.debugLineNum = 145;BA.debugLine="Dim ruta_tienda As String";
c_cliente._ruta_tienda = RemoteObject.createImmutable("");__ref.setField("_ruta_tienda",c_cliente._ruta_tienda);
 //BA.debugLineNum = 147;BA.debugLine="Private b_clinteSinVenta As Button";
c_cliente._b_clintesinventa = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_clintesinventa",c_cliente._b_clintesinventa);
 //BA.debugLineNum = 148;BA.debugLine="Private b_clienteVenta As Button";
c_cliente._b_clienteventa = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_clienteventa",c_cliente._b_clienteventa);
 //BA.debugLineNum = 149;BA.debugLine="Private p_monto_venta As Panel";
c_cliente._p_monto_venta = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_monto_venta",c_cliente._p_monto_venta);
 //BA.debugLineNum = 150;BA.debugLine="Private et_monto_venta As EditText";
c_cliente._et_monto_venta = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_monto_venta",c_cliente._et_monto_venta);
 //BA.debugLineNum = 151;BA.debugLine="Private b_can_monto_venta As Button";
c_cliente._b_can_monto_venta = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_can_monto_venta",c_cliente._b_can_monto_venta);
 //BA.debugLineNum = 152;BA.debugLine="Private b_gu_monto_venta As Button";
c_cliente._b_gu_monto_venta = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_gu_monto_venta",c_cliente._b_gu_monto_venta);
 //BA.debugLineNum = 153;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _datos_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("DATOS_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,456);
if (RapidSub.canDelegate("datos_click")) { return __ref.runUserSub(false, "c_cliente","datos_click", __ref);}
 BA.debugLineNum = 456;BA.debugLine="Sub DATOS_Click";
Debug.ShouldStop(128);
 BA.debugLineNum = 457;BA.debugLine="B4XPages.ShowPage(\"telefonos\")";
Debug.ShouldStop(256);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("telefonos")));
 BA.debugLineNum = 458;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _gest_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("gest_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,409);
if (RapidSub.canDelegate("gest_click")) { return __ref.runUserSub(false, "c_cliente","gest_click", __ref);}
 BA.debugLineNum = 409;BA.debugLine="Sub gest_Click";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 410;BA.debugLine="B4XPages.MainPage.tipo_venta = \"PREVENTA\"";
Debug.ShouldStop(33554432);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_tipo_venta" /*RemoteObject*/ ,BA.ObjectToString("PREVENTA"));
 BA.debugLineNum = 415;BA.debugLine="B4XPages.ShowPage(\"productos\")";
Debug.ShouldStop(1073741824);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("productos")));
 BA.debugLineNum = 416;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _gps_locationchanged(RemoteObject __ref,RemoteObject _location1) throws Exception{
try {
		Debug.PushSubsStack("GPS_LocationChanged (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,360);
if (RapidSub.canDelegate("gps_locationchanged")) { return __ref.runUserSub(false, "c_cliente","gps_locationchanged", __ref, _location1);}
RemoteObject _l1 = RemoteObject.declareNull("anywheresoftware.b4a.gps.LocationWrapper");
RemoteObject _l2 = RemoteObject.declareNull("anywheresoftware.b4a.gps.LocationWrapper");
RemoteObject _distance = RemoteObject.createImmutable(0L);
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 360;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(128);
 BA.debugLineNum = 362;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(".",c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"IsInitialized")) && RemoteObject.solveBoolean("!",c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLatitude"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 363;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(1024);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_lat_gps" /*RemoteObject*/ ,BA.NumberToString(c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLatitude")));
 BA.debugLineNum = 364;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(2048);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_lon_gps" /*RemoteObject*/ ,BA.NumberToString(c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLongitude")));
 };
 BA.debugLineNum = 368;BA.debugLine="Dim l1, l2 As Location";
Debug.ShouldStop(32768);
_l1 = RemoteObject.createNew ("anywheresoftware.b4a.gps.LocationWrapper");Debug.locals.put("l1", _l1);
_l2 = RemoteObject.createNew ("anywheresoftware.b4a.gps.LocationWrapper");Debug.locals.put("l2", _l2);
 BA.debugLineNum = 369;BA.debugLine="l1.Initialize2(B4XPages.MainPage.lat_gps, B4XPage";
Debug.ShouldStop(65536);
_l1.runVoidMethod ("Initialize2",(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )));
 BA.debugLineNum = 371;BA.debugLine="l2.Initialize2(m_lat, m_lon)";
Debug.ShouldStop(262144);
_l2.runVoidMethod ("Initialize2",(Object)(__ref.getField(true,"_m_lat" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_m_lon" /*RemoteObject*/ )));
 BA.debugLineNum = 373;BA.debugLine="BT_QR.Enabled = True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_bt_qr" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 374;BA.debugLine="LA_GPS.TextColor = Colors.Blue";
Debug.ShouldStop(2097152);
__ref.getField(false,"_la_gps" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 375;BA.debugLine="LA_GPS.Text = \"CON UBICACION GPS\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_la_gps" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CON UBICACION GPS"));
 BA.debugLineNum = 376;BA.debugLine="b_clinteSinVenta.Enabled = True";
Debug.ShouldStop(8388608);
__ref.getField(false,"_b_clintesinventa" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 377;BA.debugLine="b_clienteVenta.Enabled = True";
Debug.ShouldStop(16777216);
__ref.getField(false,"_b_clienteventa" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 380;BA.debugLine="Dim distance As Long";
Debug.ShouldStop(134217728);
_distance = RemoteObject.createImmutable(0L);Debug.locals.put("distance", _distance);
 BA.debugLineNum = 381;BA.debugLine="distance =    l1.DistanceTo(l2)  'the result is i";
Debug.ShouldStop(268435456);
_distance = BA.numberCast(long.class, _l1.runMethod(true,"DistanceTo",(Object)((_l2.getObject()))));Debug.locals.put("distance", _distance);
 BA.debugLineNum = 382;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 384;BA.debugLine="LA_GEO.TextColor = Colors.Blue";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_la_geo" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 385;BA.debugLine="Tels.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 386;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 390;BA.debugLine="LA_GEO.Text= $\"$1.2{distance/1000} kms\"$";
Debug.ShouldStop(32);
__ref.getField(false,"_la_geo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable(""),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.2")),(Object)((RemoteObject.solve(new RemoteObject[] {_distance,RemoteObject.createImmutable(1000)}, "/",0, 0)))),RemoteObject.createImmutable(" kms")))));
 BA.debugLineNum = 391;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(64);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_GPS")));
 BA.debugLineNum = 392;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
Debug.ShouldStop(128);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO  HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 394;BA.debugLine="l_ubicacion2.TextSize = 13";
Debug.ShouldStop(512);
__ref.getField(false,"_l_ubicacion2" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 395;BA.debugLine="l_ubicacion2.Text = $\"Precisión GPS $1.0{Location";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_ubicacion2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Precisión GPS "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((_location1.runMethod(true,"getAccuracy")))),RemoteObject.createImmutable(" m")))));
 BA.debugLineNum = 396;BA.debugLine="If Location1.Accuracy > 200 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",_location1.runMethod(true,"getAccuracy"),BA.numberCast(double.class, 200))) { 
 BA.debugLineNum = 397;BA.debugLine="l_ubicacion2.TextColor = Colors.Red";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_ubicacion2" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 398;BA.debugLine="l_ubicacion2.TextSize = 16";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_ubicacion2" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 16));
 BA.debugLineNum = 399;BA.debugLine="l_ubicacion2.Text = $\"Mala señal $1.0{Location1.";
Debug.ShouldStop(16384);
__ref.getField(false,"_l_ubicacion2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Mala señal "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((_location1.runMethod(true,"getAccuracy")))),RemoteObject.createImmutable(" m")))));
 };
 BA.debugLineNum = 402;BA.debugLine="CallSubDelayed(Tracker, \"CreateLocationRequest\")";
Debug.ShouldStop(131072);
c_cliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_cliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("CreateLocationRequest")));
 BA.debugLineNum = 403;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _guardar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Guardar_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,460);
if (RapidSub.canDelegate("guardar_click")) { return __ref.runUserSub(false, "c_cliente","guardar_click", __ref);}
 BA.debugLineNum = 460;BA.debugLine="Sub Guardar_Click";
Debug.ShouldStop(2048);
 BA.debugLineNum = 461;BA.debugLine="b_inicioFinVenta.Text = \"FIN VENTA\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("FIN VENTA"));
 BA.debugLineNum = 462;BA.debugLine="b_inicioFinVenta.Visible = True";
Debug.ShouldStop(8192);
__ref.getField(false,"_b_iniciofinventa" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 463;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _guardar2_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Guardar2_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,465);
if (RapidSub.canDelegate("guardar2_click")) { return __ref.runUserSub(false, "c_cliente","guardar2_click", __ref);}
 BA.debugLineNum = 465;BA.debugLine="Sub Guardar2_Click";
Debug.ShouldStop(65536);
 BA.debugLineNum = 537;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _hist_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("HIST_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,543);
if (RapidSub.canDelegate("hist_click")) { return __ref.runUserSub(false, "c_cliente","hist_click", __ref);}
 BA.debugLineNum = 543;BA.debugLine="Sub HIST_Click";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 544;BA.debugLine="B4XPages.ShowPage(\"Historico\")";
Debug.ShouldStop(-2147483648);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Historico")));
 BA.debugLineNum = 545;BA.debugLine="End Sub";
Debug.ShouldStop(1);
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_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,156);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_cliente","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 156;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 157;BA.debugLine="Return Me";
Debug.ShouldStop(268435456);
if (true) return __ref;
 BA.debugLineNum = 158;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable(null);
}
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_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,893);
if (RapidSub.canDelegate("jobdone")) { return __ref.runUserSub(false, "c_cliente","jobdone", __ref, _job);}
RemoteObject _resultado = RemoteObject.declareNull("keymon.lat.medicomed.dbrequestmanager._dbresult");
RemoteObject _cliente = RemoteObject.createImmutable("");
RemoteObject _records = null;
RemoteObject _k = RemoteObject.createImmutable("");
Debug.locals.put("Job", _job);
 BA.debugLineNum = 893;BA.debugLine="Sub JobDone(Job As HttpJob)";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 894;BA.debugLine="Log(Job.Success)";
Debug.ShouldStop(536870912);
c_cliente.__c.runVoidMethod ("LogImpl","37536641",BA.ObjectToString(_job.getField(true,"_success" /*RemoteObject*/ )),0);
 BA.debugLineNum = 895;BA.debugLine="If Job.Success = False Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_success" /*RemoteObject*/ ),c_cliente.__c.getField(true,"False"))) { 
 }else {
 BA.debugLineNum = 898;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
Debug.ShouldStop(2);
c_cliente.__c.runVoidMethod ("LogImpl","37536645",RemoteObject.concat(RemoteObject.createImmutable("JobDone: '"),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable("' - Registros: "),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")),c_cliente.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 899;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 900;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(8);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 901;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_pedido";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",(BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ))).runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("ins_pedidosPendientes_head_"))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 902;BA.debugLine="Private cliente As String= resultado.Tag";
Debug.ShouldStop(32);
_cliente = BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 903;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
Debug.ShouldStop(64);
_cliente = _cliente.runMethod(true,"substring",(Object)(RemoteObject.solve(new RemoteObject[] {_cliente.runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("_"))),RemoteObject.createImmutable(24)}, "+",1, 1)));Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 904;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
Debug.ShouldStop(128);
c_cliente.__c.runVoidMethod ("LogImpl","37536651",(RemoteObject.concat(RemoteObject.createImmutable("Cliente1:"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 905;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"update P";
Debug.ShouldStop(256);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update PEDIDO_CLIENTE SET pc_envio_ok = ? WHERE PC_CLIENTE = ? AND pc_envio_ok <> 1")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("1"),_cliente})))));
 BA.debugLineNum = 906;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(512);
{
final RemoteObject group12 = _resultado.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 = 907;BA.debugLine="For Each k As String In resultado.Columns.Key";
Debug.ShouldStop(1024);
{
final RemoteObject group13 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen13 = group13.runMethod(true,"getSize").<Integer>get()
;int index13 = 0;
;
for (; index13 < groupLen13;index13++){
_k = BA.ObjectToString(group13.runMethod(false,"Get",index13));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 908;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
Debug.ShouldStop(2048);
c_cliente.__c.runVoidMethod ("LogImpl","37536655",RemoteObject.concat(_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(": "),_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 914;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 915;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(262144);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 916;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_pedido";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",(BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ))).runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("ins_pedidosPendientes_prods_"))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 917;BA.debugLine="Private cliente As String= resultado.Tag";
Debug.ShouldStop(1048576);
_cliente = BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 918;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
Debug.ShouldStop(2097152);
_cliente = _cliente.runMethod(true,"substring",(Object)(RemoteObject.solve(new RemoteObject[] {_cliente.runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("_"))),RemoteObject.createImmutable(25)}, "+",1, 1)));Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 919;BA.debugLine="Log($\"Cliente2:${cliente}\"$)";
Debug.ShouldStop(4194304);
c_cliente.__c.runVoidMethod ("LogImpl","37536666",(RemoteObject.concat(RemoteObject.createImmutable("Cliente2:"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 920;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(8388608);
{
final RemoteObject group25 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen25 = group25.runMethod(true,"getSize").<Integer>get()
;int index25 = 0;
;
for (; index25 < groupLen25;index25++){
_records = (group25.runMethod(false,"Get",index25));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 921;BA.debugLine="For Each k As String In resultado.Columns.Key";
Debug.ShouldStop(16777216);
{
final RemoteObject group26 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen26 = group26.runMethod(true,"getSize").<Integer>get()
;int index26 = 0;
;
for (; index26 < groupLen26;index26++){
_k = BA.ObjectToString(group26.runMethod(false,"Get",index26));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 922;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
Debug.ShouldStop(33554432);
c_cliente.__c.runVoidMethod ("LogImpl","37536669",RemoteObject.concat(_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(": "),_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 928;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 929;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(1);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 930;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_abonos";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",(BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ))).runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("ins_abonosPendientes_"))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 931;BA.debugLine="Private cliente As String= resultado.Tag";
Debug.ShouldStop(4);
_cliente = BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 932;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
Debug.ShouldStop(8);
_cliente = _cliente.runMethod(true,"substring",(Object)(RemoteObject.solve(new RemoteObject[] {_cliente.runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("_"))),RemoteObject.createImmutable(18)}, "+",1, 1)));Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 933;BA.debugLine="Log($\"Cliente2:${cliente}\"$)";
Debug.ShouldStop(16);
c_cliente.__c.runVoidMethod ("LogImpl","37536680",(RemoteObject.concat(RemoteObject.createImmutable("Cliente2:"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 934;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE A";
Debug.ShouldStop(32);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("UPDATE ABONOS set a_enviado = 1  where a_cliente = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 935;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(64);
{
final RemoteObject group39 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen39 = group39.runMethod(true,"getSize").<Integer>get()
;int index39 = 0;
;
for (; index39 < groupLen39;index39++){
_records = (group39.runMethod(false,"Get",index39));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 936;BA.debugLine="For Each k As String In resultado.Columns.Key";
Debug.ShouldStop(128);
{
final RemoteObject group40 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen40 = group40.runMethod(true,"getSize").<Integer>get()
;int index40 = 0;
;
for (; index40 < groupLen40;index40++){
_k = BA.ObjectToString(group40.runMethod(false,"Get",index40));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 937;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
Debug.ShouldStop(256);
c_cliente.__c.runVoidMethod ("LogImpl","37536684",RemoteObject.concat(_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(": "),_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 942;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 943;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(16384);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 944;BA.debugLine="If resultado.Tag= \"mandaBitacora\" Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("mandaBitacora")))) { 
 BA.debugLineNum = 945;BA.debugLine="Log(\"mandaBitacora\")";
Debug.ShouldStop(65536);
c_cliente.__c.runVoidMethod ("LogImpl","37536692",RemoteObject.createImmutable("mandaBitacora"),0);
 };
 };
 BA.debugLineNum = 948;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 949;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(1048576);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 950;BA.debugLine="If resultado.Tag= \"ventaNoVenta\" Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("ventaNoVenta")))) { 
 BA.debugLineNum = 951;BA.debugLine="Log(\"ventaNoVenta\")";
Debug.ShouldStop(4194304);
c_cliente.__c.runVoidMethod ("LogImpl","37536698",RemoteObject.createImmutable("ventaNoVenta"),0);
 };
 };
 BA.debugLineNum = 954;BA.debugLine="Job.Release";
Debug.ShouldStop(33554432);
_job.runClassMethod (keymon.lat.medicomed.httpjob.class, "_release" /*RemoteObject*/ );
 };
 BA.debugLineNum = 957;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _listview1_itemlongclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("ListView1_ItemLongClick (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,405);
if (RapidSub.canDelegate("listview1_itemlongclick")) { return __ref.runUserSub(false, "c_cliente","listview1_itemlongclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 405;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 407;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mandapendientes(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("mandaPendientes (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,819);
if (RapidSub.canDelegate("mandapendientes")) { return __ref.runUserSub(false, "c_cliente","mandapendientes", __ref);}
int _i = 0;
RemoteObject _ab = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 819;BA.debugLine="Sub mandaPendientes";
Debug.ShouldStop(262144);
 BA.debugLineNum = 821;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PC_CLI";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT, PC_COSTO_SIN, PC_RUTA, PC_ALMACEN, PC_FACTURA FROM PEDIDO_CLIENTE where pc_envio_ok <> 1"))));
 BA.debugLineNum = 823;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 824;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(8388608);
{
final int step3 = 1;
final int limit3 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step3 > 0 && _i <= limit3) || (step3 < 0 && _i >= limit3) ;_i = ((int)(0 + _i + step3))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 825;BA.debugLine="c.Position=i";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 826;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(33554432);
c_cliente._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 832;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(-2147483648);
c_cliente._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 833;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 834;BA.debugLine="cmd.Name = \"insert_pedidos_MEDI\"";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_pedidos_MEDI"));
 BA.debugLineNum = 835;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"P";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_CLIENTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_USER")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_LON")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_LAT")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_principal" /*RemoteObject*/ ).getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_COSTO_SIN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FACTURA"))))}));
 BA.debugLineNum = 836;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosPe";
Debug.ShouldStop(8);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("ins_pedidosPendientes_head_"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_CLIENTE")))))),RemoteObject.createImmutable(""))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 841;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PC_ENV";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT PC_ENVIO_OK, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO FROM  pedido_cliente left join PEDIDO where pc_cliente = pe_cliente and pc_envio_ok <> 1"))));
 BA.debugLineNum = 843;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 844;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(2048);
{
final int step15 = 1;
final int limit15 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step15 > 0 && _i <= limit15) || (step15 < 0 && _i >= limit15) ;_i = ((int)(0 + _i + step15))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 845;BA.debugLine="c.Position=i";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 846;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(8192);
c_cliente._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 853;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1048576);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 854;BA.debugLine="cmd.Name = \"insert_pedido_MEDI\"";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_pedido_MEDI"));
 BA.debugLineNum = 855;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"P";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {14},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__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_RUTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_SIN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_DESC")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))))}));
 BA.debugLineNum = 856;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosPe";
Debug.ShouldStop(8388608);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("ins_pedidosPendientes_prods_"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CLIENTE")))))),RemoteObject.createImmutable(""))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 861;BA.debugLine="Dim ab As Cursor = B4XPages.MainPage.skmt.ExecQue";
Debug.ShouldStop(268435456);
_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_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("SELECT * from ABONOS where a_enviado is null")))));Debug.locals.put("ab", _ab);Debug.locals.put("ab", _ab);
 BA.debugLineNum = 863;BA.debugLine="If ab.RowCount > 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",_ab.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 864;BA.debugLine="For i=0 To ab.RowCount -1";
Debug.ShouldStop(-2147483648);
{
final int step26 = 1;
final int limit26 = RemoteObject.solve(new RemoteObject[] {_ab.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step26 > 0 && _i <= limit26) || (step26 < 0 && _i >= limit26) ;_i = ((int)(0 + _i + step26))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 865;BA.debugLine="ab.Position = i";
Debug.ShouldStop(1);
_ab.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 866;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2);
c_cliente._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 867;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 868;BA.debugLine="cmd.Name = \"insert_abono_MEDI\"";
Debug.ShouldStop(8);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_abono_MEDI"));
 BA.debugLineNum = 869;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString(";
Debug.ShouldStop(16);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {5},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"))))}));
 BA.debugLineNum = 870;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
Debug.ShouldStop(32);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("ins_abonosPendientes_"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable(""))))));
 BA.debugLineNum = 871;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl";
Debug.ShouldStop(64);
c_cliente.__c.runVoidMethod ("LogImpl","37471156",(RemoteObject.concat(RemoteObject.createImmutable("ins_abonosPendientes_"),c_cliente.__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 = 874;BA.debugLine="ab.Close";
Debug.ShouldStop(512);
_ab.runVoidMethod ("Close");
 BA.debugLineNum = 891;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mods(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("MODS (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1);
if (RapidSub.canDelegate("mods")) { return __ref.runUserSub(false, "c_cliente","mods", __ref);}
 BA.debugLineNum = 1;BA.debugLine="Sub MODS 'ignore";
Debug.ShouldStop(1);
 BA.debugLineNum = 3;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _nuevo_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("NUEVO_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,539);
if (RapidSub.canDelegate("nuevo_click")) { return __ref.runUserSub(false, "c_cliente","nuevo_click", __ref);}
 BA.debugLineNum = 539;BA.debugLine="Sub NUEVO_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 540;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
Debug.ShouldStop(134217728);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("NuevoCliente")));
 BA.debugLineNum = 541;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_abono_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_abono_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,959);
if (RapidSub.canDelegate("p_abono_click")) { return __ref.runUserSub(false, "c_cliente","p_abono_click", __ref);}
 BA.debugLineNum = 959;BA.debugLine="Private Sub p_abono_Click";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 961;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_cliente_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_cliente_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,810);
if (RapidSub.canDelegate("p_cliente_click")) { return __ref.runUserSub(false, "c_cliente","p_cliente_click", __ref);}
 BA.debugLineNum = 810;BA.debugLine="Private Sub p_cliente_Click";
Debug.ShouldStop(512);
 BA.debugLineNum = 812;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
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_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,653);
if (RapidSub.canDelegate("printer_connected")) { return __ref.runUserSub(false, "c_cliente","printer_connected", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 653;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
Debug.ShouldStop(4096);
 BA.debugLineNum = 654;BA.debugLine="If Success Then";
Debug.ShouldStop(8192);
if (_success.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 655;BA.debugLine="B_IMP.Enabled = True";
Debug.ShouldStop(16384);
__ref.getField(false,"_b_imp" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 657;BA.debugLine="B_IMP.Enabled = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_b_imp" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 658;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",c_cliente.__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_cliente.__c.getField(false,"Null"))),__ref.getField(false, "ba")),BA.numberCast(double.class, c_cliente.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 659;BA.debugLine="StartPrinter";
Debug.ShouldStop(262144);
__ref.runClassMethod (keymon.lat.medicomed.c_cliente.class, "_startprinter" /*RemoteObject*/ );
 };
 };
 BA.debugLineNum = 662;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _rb1_checkedchange(RemoteObject __ref,RemoteObject _checked) throws Exception{
try {
		Debug.PushSubsStack("RB1_CheckedChange (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,767);
if (RapidSub.canDelegate("rb1_checkedchange")) { return __ref.runUserSub(false, "c_cliente","rb1_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 767;BA.debugLine="Sub RB1_CheckedChange(Checked As Boolean)";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 768;BA.debugLine="If RB1.Checked = True Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rb1" /*RemoteObject*/ ).runMethod(true,"getChecked"),c_cliente.__c.getField(true,"True"))) { 
 BA.debugLineNum = 769;BA.debugLine="E_RES_E.Text = \"CENTRAL DE ABASTOS\"";
Debug.ShouldStop(1);
__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("CENTRAL DE ABASTOS"));
 };
 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  _rb2_checkedchange(RemoteObject __ref,RemoteObject _checked) throws Exception{
try {
		Debug.PushSubsStack("RB2_CheckedChange (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,773);
if (RapidSub.canDelegate("rb2_checkedchange")) { return __ref.runUserSub(false, "c_cliente","rb2_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 773;BA.debugLine="Sub RB2_CheckedChange(Checked As Boolean)";
Debug.ShouldStop(16);
 BA.debugLineNum = 774;BA.debugLine="If RB2.Checked = True Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rb2" /*RemoteObject*/ ).runMethod(true,"getChecked"),c_cliente.__c.getField(true,"True"))) { 
 BA.debugLineNum = 775;BA.debugLine="E_RES_E.Text = \"AUTOSERVICIO\"";
Debug.ShouldStop(64);
__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("AUTOSERVICIO"));
 };
 BA.debugLineNum = 777;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _rb3_checkedchange(RemoteObject __ref,RemoteObject _checked) throws Exception{
try {
		Debug.PushSubsStack("RB3_CheckedChange (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,779);
if (RapidSub.canDelegate("rb3_checkedchange")) { return __ref.runUserSub(false, "c_cliente","rb3_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 779;BA.debugLine="Sub RB3_CheckedChange(Checked As Boolean)";
Debug.ShouldStop(1024);
 BA.debugLineNum = 780;BA.debugLine="If RB3.Checked = True Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rb3" /*RemoteObject*/ ).runMethod(true,"getChecked"),c_cliente.__c.getField(true,"True"))) { 
 BA.debugLineNum = 781;BA.debugLine="E_RES_E.Text = \"CLUB DE PRECIO\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("CLUB DE PRECIO"));
 };
 BA.debugLineNum = 783;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _rb4_checkedchange(RemoteObject __ref,RemoteObject _checked) throws Exception{
try {
		Debug.PushSubsStack("RB4_CheckedChange (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,785);
if (RapidSub.canDelegate("rb4_checkedchange")) { return __ref.runUserSub(false, "c_cliente","rb4_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 785;BA.debugLine="Sub RB4_CheckedChange(Checked As Boolean)";
Debug.ShouldStop(65536);
 BA.debugLineNum = 786;BA.debugLine="If RB4.Checked = True Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rb4" /*RemoteObject*/ ).runMethod(true,"getChecked"),c_cliente.__c.getField(true,"True"))) { 
 BA.debugLineNum = 787;BA.debugLine="E_RES_E.Text = \"DIRECTO PEDEGREE\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("DIRECTO PEDEGREE"));
 };
 BA.debugLineNum = 789;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _sc_result(RemoteObject __ref,RemoteObject _atype,RemoteObject _values,RemoteObject _image) throws Exception{
try {
		Debug.PushSubsStack("sc_result (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,557);
if (RapidSub.canDelegate("sc_result")) { __ref.runUserSub(false, "c_cliente","sc_result", __ref, _atype, _values, _image); return;}
ResumableSub_sc_result rsub = new ResumableSub_sc_result(null,__ref,_atype,_values,_image);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_sc_result extends BA.ResumableSub {
public ResumableSub_sc_result(keymon.lat.medicomed.c_cliente parent,RemoteObject __ref,RemoteObject _atype,RemoteObject _values,RemoteObject _image) {
this.parent = parent;
this.__ref = __ref;
this._atype = _atype;
this._values = _values;
this._image = _image;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_cliente parent;
RemoteObject _atype;
RemoteObject _values;
RemoteObject _image;
RemoteObject _resultado = RemoteObject.createImmutable(0);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("sc_result (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,557);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

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

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
Debug.locals.put("atype", _atype);
Debug.locals.put("Values", _values);
Debug.locals.put("image", _image);
 BA.debugLineNum = 560;BA.debugLine="CODIGO = Values";
Debug.ShouldStop(32768);
__ref.setField ("_codigo" /*RemoteObject*/ ,_values);
 BA.debugLineNum = 561;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN";
Debug.ShouldStop(65536);
__ref.getField(false,"_dd" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT COUNT(*) AS CUANTOS FROM kmt_info WHERE CAT_CL_NUM_SERIEFISICO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(true,"_codigo" /*RemoteObject*/ )}))));
 BA.debugLineNum = 562;BA.debugLine="DD.Position =0";
Debug.ShouldStop(131072);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 563;BA.debugLine="If DD.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(262144);
if (true) break;

case 1:
//if
this.state = 16;
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 16;
 BA.debugLineNum = 564;BA.debugLine="MsgboxAsync(\"Código ya asignado\", \"AVISO\")";
Debug.ShouldStop(524288);
parent.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Código ya asignado")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 if (true) break;

case 5:
//C
this.state = 6;
 BA.debugLineNum = 566;BA.debugLine="If CODIGO.Length = 7 Then";
Debug.ShouldStop(2097152);
if (true) break;

case 6:
//if
this.state = 15;
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_codigo" /*RemoteObject*/ ).runMethod(true,"length"),BA.numberCast(double.class, 7))) { 
this.state = 8;
}else {
this.state = 14;
}if (true) break;

case 8:
//C
this.state = 9;
 BA.debugLineNum = 567;BA.debugLine="Msgbox2Async(\"El código \"& CODIGO & \" es correc";
Debug.ShouldStop(4194304);
parent.__c.runVoidMethod ("Msgbox2Async",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("El código "),__ref.getField(true,"_codigo" /*RemoteObject*/ ),RemoteObject.createImmutable(" es correcto?")))),(Object)(BA.ObjectToCharSequence("Title")),(Object)(BA.ObjectToString("Yes")),(Object)(BA.ObjectToString("Cancel")),(Object)(BA.ObjectToString("No")),RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper"), parent.__c.getField(false,"Null")),__ref.getField(false, "ba"),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 568;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(8388608);
parent.__c.runVoidMethod ("WaitFor","msgbox_result", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "sc_result"), null);
this.state = 17;
return;
case 17:
//C
this.state = 9;
_resultado = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("resultado", _resultado);
;
 BA.debugLineNum = 569;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(16777216);
if (true) break;

case 9:
//if
this.state = 12;
if (RemoteObject.solveBoolean("=",_resultado,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 11;
}if (true) break;

case 11:
//C
this.state = 12;
 BA.debugLineNum = 570;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE k";
Debug.ShouldStop(33554432);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE kmt_info set CAT_CL_NUM_SERIEFISICO = ?, CAT_CL_LONG = ?, CAT_CL_LAT =? where CAT_CL_CODIGO In (select cuenta from cuentaa)")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(true,"_codigo" /*RemoteObject*/ )),(parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 571;BA.debugLine="L_QR.TEXT =CODIGO";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_codigo" /*RemoteObject*/ )));
 BA.debugLineNum = 572;BA.debugLine="L_QR.TextColor = Colors.Blue";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 573;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert i";
Debug.ShouldStop(268435456);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into HIST_CODIGO_BARRAS(CODIGOKMTS, CODIGOB, LAT, LON) VALUES (?,?,?,?)")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_codigo" /*RemoteObject*/ )),(parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 if (true) break;

case 12:
//C
this.state = 15;
;
 if (true) break;

case 14:
//C
this.state = 15;
 BA.debugLineNum = 576;BA.debugLine="MsgboxAsync(\"Código No Valido\", \"AVISO\")";
Debug.ShouldStop(-2147483648);
parent.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Código No Valido")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 if (true) break;

case 15:
//C
this.state = 16;
;
 if (true) break;

case 16:
//C
this.state = -1;
;
 BA.debugLineNum = 579;BA.debugLine="DD.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 580;BA.debugLine="End Sub";
Debug.ShouldStop(8);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _sc_timedout(RemoteObject __ref,RemoteObject _timedout) throws Exception{
try {
		Debug.PushSubsStack("sc_timedout (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,582);
if (RapidSub.canDelegate("sc_timedout")) { return __ref.runUserSub(false, "c_cliente","sc_timedout", __ref, _timedout);}
Debug.locals.put("timedOut", _timedout);
 BA.debugLineNum = 582;BA.debugLine="Sub sc_timedout(timedOut As Boolean)";
Debug.ShouldStop(32);
 BA.debugLineNum = 583;BA.debugLine="Log(\"timedOut \" & timedOut)";
Debug.ShouldStop(64);
c_cliente.__c.runVoidMethod ("LogImpl","36422529",RemoteObject.concat(RemoteObject.createImmutable("timedOut "),_timedout),0);
 BA.debugLineNum = 584;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _sc_usercancelled(RemoteObject __ref,RemoteObject _usercancelled) throws Exception{
try {
		Debug.PushSubsStack("sc_usercancelled (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,586);
if (RapidSub.canDelegate("sc_usercancelled")) { return __ref.runUserSub(false, "c_cliente","sc_usercancelled", __ref, _usercancelled);}
Debug.locals.put("userCancelled", _usercancelled);
 BA.debugLineNum = 586;BA.debugLine="Sub sc_usercancelled(userCancelled As Boolean)";
Debug.ShouldStop(512);
 BA.debugLineNum = 587;BA.debugLine="Log(\"userCancelled \" & userCancelled)";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("LogImpl","36488065",RemoteObject.concat(RemoteObject.createImmutable("userCancelled "),_usercancelled),0);
 BA.debugLineNum = 588;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
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_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,664);
if (RapidSub.canDelegate("startprinter")) { return __ref.runUserSub(false, "c_cliente","startprinter", __ref);}
RemoteObject _resimp = RemoteObject.createImmutable(0);
int _i = 0;
 BA.debugLineNum = 664;BA.debugLine="Sub StartPrinter";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 665;BA.debugLine="Dim PairedDevices As Map";
Debug.ShouldStop(16777216);
c_cliente._paireddevices = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_paireddevices",c_cliente._paireddevices);
 BA.debugLineNum = 666;BA.debugLine="Dim L As List";
Debug.ShouldStop(33554432);
c_cliente._l = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_l",c_cliente._l);
 BA.debugLineNum = 667;BA.debugLine="Dim resimp As Int";
Debug.ShouldStop(67108864);
_resimp = RemoteObject.createImmutable(0);Debug.locals.put("resimp", _resimp);
 BA.debugLineNum = 668;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
Debug.ShouldStop(134217728);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Printing.....")),(Object)(c_cliente.__c.getField(true,"True")));
 BA.debugLineNum = 669;BA.debugLine="PairedDevices.Initialize";
Debug.ShouldStop(268435456);
__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 670;BA.debugLine="Try";
Debug.ShouldStop(536870912);
try { BA.debugLineNum = 671;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
Debug.ShouldStop(1073741824);
__ref.setField ("_paireddevices" /*RemoteObject*/ ,__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runMethod(false,"GetPairedDevices"));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e9) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e9.toString()); BA.debugLineNum = 673;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
Debug.ShouldStop(1);
c_cliente.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Getting Paired Devices")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Printer Error"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 674;BA.debugLine="printer.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 675;BA.debugLine="cmp20.Disconnect";
Debug.ShouldStop(4);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Disconnect");
 };
 BA.debugLineNum = 677;BA.debugLine="If PairedDevices.Size = 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 678;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No";
Debug.ShouldStop(32);
c_cliente.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 BA.debugLineNum = 679;BA.debugLine="Return";
Debug.ShouldStop(64);
if (true) return RemoteObject.createImmutable("");
 };
 BA.debugLineNum = 681;BA.debugLine="If PairedDevices.Size = 1 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 682;BA.debugLine="Try";
Debug.ShouldStop(512);
try { BA.debugLineNum = 683;BA.debugLine="cmp20.ConnectInsecure(btAdmin,PairedDevices.Get";
Debug.ShouldStop(1024);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("ConnectInsecure",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_btadmin" /*RemoteObject*/ )),(Object)(BA.ObjectToString(__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(false,"GetKeyAt",(Object)(BA.numberCast(int.class, 0))))))),(Object)(BA.numberCast(int.class, 1)));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e21) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e21.toString()); BA.debugLineNum = 685;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'Ignore";
Debug.ShouldStop(4096);
c_cliente.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Connecting")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Printer Error"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 686;BA.debugLine="printer.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 687;BA.debugLine="cmp20.Disconnect";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Disconnect");
 };
 }else {
 BA.debugLineNum = 690;BA.debugLine="L.Initialize";
Debug.ShouldStop(131072);
__ref.getField(false,"_l" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 691;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
Debug.ShouldStop(262144);
{
final int step27 = 1;
final int limit27 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).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 = 692;BA.debugLine="L.Add(PairedDevices.GetKeyAt(i))";
Debug.ShouldStop(524288);
__ref.getField(false,"_l" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(false,"GetKeyAt",(Object)(BA.numberCast(int.class, _i)))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 694;BA.debugLine="resimp = InputList(L, \"Choose device\", -1) 'Igno";
Debug.ShouldStop(2097152);
_resimp = c_cliente.__c.runMethodAndSync(true,"InputList",(Object)(__ref.getField(false,"_l" /*RemoteObject*/ )),(Object)(BA.ObjectToCharSequence("Choose device")),(Object)(BA.numberCast(int.class, -(double) (0 + 1))),__ref.getField(false, "ba"));Debug.locals.put("resimp", _resimp);
 BA.debugLineNum = 695;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("!",_resimp,BA.numberCast(double.class, c_cliente.__c.getField(false,"DialogResponse").getField(true,"CANCEL")))) { 
 BA.debugLineNum = 696;BA.debugLine="cmp20.Connect(PairedDevices.Get(L.Get(resimp)))";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Connect",__ref.getField(false, "ba"),(Object)(BA.ObjectToString(__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(__ref.getField(false,"_l" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(_resimp)))))));
 };
 };
 BA.debugLineNum = 699;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _tar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Tar_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,448);
if (RapidSub.canDelegate("tar_click")) { return __ref.runUserSub(false, "c_cliente","tar_click", __ref);}
 BA.debugLineNum = 448;BA.debugLine="Sub Tar_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 449;BA.debugLine="B4XPages.ShowPage(\"Nota\")";
Debug.ShouldStop(1);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Nota")));
 BA.debugLineNum = 450;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _tar_longclick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Tar_LongClick (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,452);
if (RapidSub.canDelegate("tar_longclick")) { return __ref.runUserSub(false, "c_cliente","tar_longclick", __ref);}
 BA.debugLineNum = 452;BA.debugLine="Sub Tar_LongClick";
Debug.ShouldStop(8);
 BA.debugLineNum = 453;BA.debugLine="p_abono.Visible = True";
Debug.ShouldStop(16);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 454;BA.debugLine="End Sub";
Debug.ShouldStop(32);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _tels_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Tels_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,418);
if (RapidSub.canDelegate("tels_click")) { return __ref.runUserSub(false, "c_cliente","tels_click", __ref);}
 BA.debugLineNum = 418;BA.debugLine="Sub Tels_Click";
Debug.ShouldStop(2);
 BA.debugLineNum = 419;BA.debugLine="B4XPages.ShowPage(\"NoVenta\")";
Debug.ShouldStop(4);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("NoVenta")));
 BA.debugLineNum = 420;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}