package SHARK2.keymon.com.mx;

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,2498);
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(SHARK2.keymon.com.mx.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;
SHARK2.keymon.com.mx.c_cliente parent;
RemoteObject _k = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _y = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
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,2498);
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 = 2500;BA.debugLine="If et_abono.text > l_montoabonostotal.text Then";
Debug.ShouldStop(8);
if (true) break;

case 1:
//if
this.state = 28;
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(false,"_l_montoabonostotal" /*RemoteObject*/ ).runMethod(true,"getText")))) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 28;
 BA.debugLineNum = 2501;BA.debugLine="MsgboxAsync(\"El monto a abonar no puede ser mayo";
Debug.ShouldStop(16);
parent.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("El monto a abonar no puede ser mayor que el monto total")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 if (true) break;

case 5:
//C
this.state = 6;
 BA.debugLineNum = 2503;BA.debugLine="If et_abono.Text <> \"\" Then";
Debug.ShouldStop(64);
if (true) break;

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

case 8:
//C
this.state = 9;
 BA.debugLineNum = 2505;BA.debugLine="Dim k As Cursor = B4XPages.MainPage.skmt.ExecQu";
Debug.ShouldStop(256);
_k = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_k = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT CUENTA from CUENTAA"))));Debug.locals.put("k", _k);Debug.locals.put("k", _k);
 BA.debugLineNum = 2506;BA.debugLine="k.Position = 0";
Debug.ShouldStop(512);
_k.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2507;BA.debugLine="Log(k.GetString(\"CUENTA\"))";
Debug.ShouldStop(1024);
parent.__c.runVoidMethod ("LogImpl","57864329",_k.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))),0);
 BA.debugLineNum = 2508;BA.debugLine="Dim y As Cursor = B4XPages.MainPage.skmt.ExecQu";
Debug.ShouldStop(2048);
_y = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_y = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT a_abono FROM ABONOS WHERE a_cliente = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_k.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA")))}))));Debug.locals.put("y", _y);Debug.locals.put("y", _y);
 BA.debugLineNum = 2509;BA.debugLine="y.position = 0";
Debug.ShouldStop(4096);
_y.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2511;BA.debugLine="If y.RowCount = 0 Then";
Debug.ShouldStop(16384);
if (true) break;

case 9:
//if
this.state = 26;
if (RemoteObject.solveBoolean("=",_y.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 11;
}else 
{ BA.debugLineNum = 2517;BA.debugLine="Else If et_abono.Text > y.GetString(\"a_abono\")";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, _y.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono")))))) { 
this.state = 17;
}else 
{ BA.debugLineNum = 2523;BA.debugLine="Else If et_abono.Text = y.GetString(\"a_abono\")";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText"),_y.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono"))))) { 
this.state = 23;
}else 
{ BA.debugLineNum = 2526;BA.debugLine="Else If et_abono.Text < y.GetString(\"a_abono\")";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, _y.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono")))))) { 
this.state = 25;
}}}}
if (true) break;

case 11:
//C
this.state = 12;
 BA.debugLineNum = 2512;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar un";
Debug.ShouldStop(32768);
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 = 2513;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("WaitFor","msgbox_result", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "b_abono_click"), null);
this.state = 29;
return;
case 29:
//C
this.state = 12;
_resultado = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("resultado", _resultado);
;
 BA.debugLineNum = 2514;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(131072);
if (true) break;

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

case 14:
//C
this.state = 15;
 BA.debugLineNum = 2515;BA.debugLine="imprime_pagare";
Debug.ShouldStop(262144);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_imprime_pagare" /*void*/ );
 if (true) break;

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

case 17:
//C
this.state = 18;
 BA.debugLineNum = 2518;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar un";
Debug.ShouldStop(2097152);
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 = 2519;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(4194304);
parent.__c.runVoidMethod ("WaitFor","msgbox_result", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "b_abono_click"), null);
this.state = 30;
return;
case 30:
//C
this.state = 18;
_resultado = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("resultado", _resultado);
;
 BA.debugLineNum = 2520;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(8388608);
if (true) break;

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

case 20:
//C
this.state = 21;
 BA.debugLineNum = 2521;BA.debugLine="imprime_pagare";
Debug.ShouldStop(16777216);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_imprime_pagare" /*void*/ );
 if (true) break;

case 21:
//C
this.state = 26;
;
 if (true) break;

case 23:
//C
this.state = 26;
 BA.debugLineNum = 2524;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 2525;BA.debugLine="et_abono.Text = \"\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 if (true) break;

case 25:
//C
this.state = 26;
 BA.debugLineNum = 2527;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 2528;BA.debugLine="MsgboxAsync(\"El pago no puede ser menor al mon";
Debug.ShouldStop(-2147483648);
parent.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("El pago no puede ser menor al monto capturado.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2529;BA.debugLine="et_abono.Text = \"\"";
Debug.ShouldStop(1);
__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 if (true) break;

case 26:
//C
this.state = 27;
;
 if (true) break;

case 27:
//C
this.state = 28;
;
 if (true) break;

case 28:
//C
this.state = -1;
;
 BA.debugLineNum = 2537;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(256);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 2538;BA.debugLine="End Sub";
Debug.ShouldStop(512);
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,2546);
if (RapidSub.canDelegate("b_abono1_click")) { return __ref.runUserSub(false, "c_cliente","b_abono1_click", __ref);}
 BA.debugLineNum = 2546;BA.debugLine="Private Sub b_abono1_Click";
Debug.ShouldStop(131072);
 BA.debugLineNum = 2547;BA.debugLine="p_abono.Visible = True";
Debug.ShouldStop(262144);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 2548;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_acepatiende_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_acepatiende_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2928);
if (RapidSub.canDelegate("b_acepatiende_click")) { return __ref.runUserSub(false, "c_cliente","b_acepatiende_click", __ref);}
RemoteObject _coord = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 2928;BA.debugLine="Private Sub b_acepatiende_Click";
Debug.ShouldStop(32768);
 BA.debugLineNum = 2929;BA.debugLine="If et_atiende.Text <> \"\" Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 2931;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skmt";
Debug.ShouldStop(262144);
_coord = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_coord = 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 ATIENDE where CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("coord", _coord);Debug.locals.put("coord", _coord);
 BA.debugLineNum = 2933;BA.debugLine="If coord.RowCount = 0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_coord.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2934;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ATIENDE(ATIENDE";
Debug.ShouldStop(2097152);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO ATIENDE(ATIENDE,CLIENTE) VALUES (?,?)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethod(true,"getText"),c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))})))));
 BA.debugLineNum = 2935;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
Debug.ShouldStop(4194304);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("UPDATE kmt_info set CAT_CL_ATIENDE1 = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable("'  where CAT_CL_CODIGO In (select cuenta from cuentaa)")))));
 BA.debugLineNum = 2936;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
Debug.ShouldStop(8388608);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Datos actualizados.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2937;BA.debugLine="l_atiende.Text = et_atiende.Text";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_atiende" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 2938;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(33554432);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 2939;BA.debugLine="p_atiende.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_p_atiende" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 2940;BA.debugLine="et_atiende.Text = \"\"";
Debug.ShouldStop(134217728);
__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 }else {
 BA.debugLineNum = 2942;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE ATIENDE SET ATIENDE";
Debug.ShouldStop(536870912);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE ATIENDE SET ATIENDE = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethod(true,"getText")})))));
 BA.debugLineNum = 2943;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
Debug.ShouldStop(1073741824);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("UPDATE kmt_info set CAT_CL_ATIENDE1 = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable("'  where CAT_CL_CODIGO In (select cuenta from cuentaa)")))));
 BA.debugLineNum = 2944;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
Debug.ShouldStop(-2147483648);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Datos actualizados.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2945;BA.debugLine="l_atiende.Text = et_atiende.Text";
Debug.ShouldStop(1);
__ref.getField(false,"_l_atiende" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 2946;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(2);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 2947;BA.debugLine="p_atiende.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_p_atiende" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 2948;BA.debugLine="et_atiende.Text = \"\"";
Debug.ShouldStop(8);
__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 };
 }else {
 BA.debugLineNum = 2953;BA.debugLine="MsgboxAsync(\"Por favor captura un nombre valido.";
Debug.ShouldStop(256);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor captura un nombre valido.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 2955;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_acepgiro_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_acepgiro_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2988);
if (RapidSub.canDelegate("b_acepgiro_click")) { return __ref.runUserSub(false, "c_cliente","b_acepgiro_click", __ref);}
RemoteObject _coord = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 2988;BA.debugLine="Private Sub b_acepgiro_Click";
Debug.ShouldStop(2048);
 BA.debugLineNum = 2989;BA.debugLine="If giros <> \"SELECCIONA UNA OPCIÓN\" Or cb_giro.Se";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_giros" /*RemoteObject*/ ),BA.ObjectToString("SELECCIONA UNA OPCIÓN")) || RemoteObject.solveBoolean("!",__ref.getField(false,"_cb_giro" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.b4xcombobox.class, "_getselecteditem" /*RemoteObject*/ ),BA.ObjectToString("SELECCIONA UNA OPCIÓN"))) { 
 BA.debugLineNum = 2990;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skmt";
Debug.ShouldStop(8192);
_coord = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_coord = 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 GIROS_ACTUAL where CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("coord", _coord);Debug.locals.put("coord", _coord);
 BA.debugLineNum = 2992;BA.debugLine="If coord.RowCount = 0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_coord.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2993;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO GIROS_ACTUAL(GI";
Debug.ShouldStop(65536);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO GIROS_ACTUAL(GIRO,CLIENTE) VALUES (?,?)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {__ref.getField(true,"_giros" /*RemoteObject*/ ),c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))})))));
 BA.debugLineNum = 2994;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
Debug.ShouldStop(131072);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("UPDATE kmt_info set CAT_CL_GIRO = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_cb_giro" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.b4xcombobox.class, "_getselecteditem" /*RemoteObject*/ )))),RemoteObject.createImmutable("'  where CAT_CL_CODIGO In (select cuenta from cuentaa)")))));
 BA.debugLineNum = 2995;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
Debug.ShouldStop(262144);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Datos actualizados.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 2996;BA.debugLine="l_giro.Text = giros";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_giro" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_giros" /*RemoteObject*/ )));
 BA.debugLineNum = 2997;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(1048576);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 2998;BA.debugLine="p_giro.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_p_giro" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 2999;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
Debug.ShouldStop(4194304);
__ref.setField ("_giros" /*RemoteObject*/ ,BA.ObjectToString("SELECCIONA UNA OPCIÓN"));
 }else {
 BA.debugLineNum = 3001;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GIROS_ACTUAL SET GIR";
Debug.ShouldStop(16777216);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE GIROS_ACTUAL SET GIRO = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(true,"_giros" /*RemoteObject*/ )})))));
 BA.debugLineNum = 3002;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km";
Debug.ShouldStop(33554432);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("UPDATE kmt_info set CAT_CL_GIRO = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_cb_giro" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.b4xcombobox.class, "_getselecteditem" /*RemoteObject*/ )))),RemoteObject.createImmutable("'  where CAT_CL_CODIGO In (select cuenta from cuentaa)")))));
 BA.debugLineNum = 3003;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")";
Debug.ShouldStop(67108864);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Datos actualizados.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 3004;BA.debugLine="l_giro.Text = giros";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_giro" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_giros" /*RemoteObject*/ )));
 BA.debugLineNum = 3005;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(268435456);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 3006;BA.debugLine="p_giro.Visible = False";
Debug.ShouldStop(536870912);
__ref.getField(false,"_p_giro" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 3007;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
Debug.ShouldStop(1073741824);
__ref.setField ("_giros" /*RemoteObject*/ ,BA.ObjectToString("SELECCIONA UNA OPCIÓN"));
 };
 }else {
 BA.debugLineNum = 3010;BA.debugLine="MsgboxAsync(\"Por favor selecciona un giro valido";
Debug.ShouldStop(2);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor selecciona un giro valido.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 3012;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_acred_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_acred_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,861);
if (RapidSub.canDelegate("b_acred_click")) { return __ref.runUserSub(false, "c_cliente","b_acred_click", __ref);}
RemoteObject _limitcred = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 861;BA.debugLine="Private Sub b_acred_Click";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 862;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
Debug.ShouldStop(536870912);
__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 USUARIO from usuarioa"))));
 BA.debugLineNum = 863;BA.debugLine="c2.Position=0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 864;BA.debugLine="usuario = c2.GetString(\"USUARIO\")";
Debug.ShouldStop(-2147483648);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 865;BA.debugLine="c2.Close";
Debug.ShouldStop(1);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 866;BA.debugLine="Dim limitcred As Cursor";
Debug.ShouldStop(2);
_limitcred = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("limitcred", _limitcred);
 BA.debugLineNum = 867;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(4);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 868;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(8);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 869;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
Debug.ShouldStop(16);
__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 = 870;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
Debug.ShouldStop(32);
__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 = 871;BA.debugLine="limitcred = B4XPages.MainPage.skmt.ExecQuery(\"SEL";
Debug.ShouldStop(64);
_limitcred = 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 CAT_CL_LIMITECREDITO FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) UNION SELECT CAT_CL_LIMITECREDITO FROM kmt_info2 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("limitcred", _limitcred);
 BA.debugLineNum = 872;BA.debugLine="limitcred.Position = 0";
Debug.ShouldStop(128);
_limitcred.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 873;BA.debugLine="l_limite.Text = \"Limite de credito: $\" & limitcre";
Debug.ShouldStop(256);
__ref.getField(false,"_l_limite" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Limite de credito: $"),_limitcred.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LIMITECREDITO"))))));
 BA.debugLineNum = 874;BA.debugLine="If Subs.traeTotalClientepreventaparacredito >=  l";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("g",c_cliente._subs.runMethod(true,"_traetotalclientepreventaparacredito" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.numberCast(double.class, _limitcred.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LIMITECREDITO")))))) { 
 BA.debugLineNum = 876;BA.debugLine="If et_montoacredito.Text > limitcred.GetString(\"";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, _limitcred.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LIMITECREDITO")))))) { 
 BA.debugLineNum = 877;BA.debugLine="MsgboxAsync(\"El monto del pagare no puede ser m";
Debug.ShouldStop(4096);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("El monto del pagare no puede ser mayor al limite del credito")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 878;BA.debugLine="et_montoacredito.Text = limitcred.GetString(\"CA";
Debug.ShouldStop(8192);
__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_limitcred.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LIMITECREDITO")))));
 }else {
 BA.debugLineNum = 880;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CO";
Debug.ShouldStop(32768);
__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 COUNT(*) As REGISTRADO FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
 BA.debugLineNum = 881;BA.debugLine="c.Position = 0";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 882;BA.debugLine="If c.GetString(\"REGISTRADO\") = 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REGISTRADO"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 884;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
Debug.ShouldStop(524288);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA, PA_FECHA, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?) ")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ )),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),(__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 885;BA.debugLine="Log(\"Inserto: \" &\" Almacen: \"& ALMACEN &\" Ruta";
Debug.ShouldStop(1048576);
c_cliente.__c.runVoidMethod ("LogImpl","55373976",RemoteObject.concat(RemoteObject.createImmutable("Inserto: "),RemoteObject.createImmutable(" Almacen: "),__ref.getField(true,"_almacen" /*RemoteObject*/ ),RemoteObject.createImmutable(" Ruta: "),__ref.getField(true,"_la_ruta" /*RemoteObject*/ ),RemoteObject.createImmutable(" Fecha: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),RemoteObject.createImmutable("Captura: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),RemoteObject.createImmutable(" Monto: "),__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable(" Usuario: "),__ref.getField(true,"_usuario" /*RemoteObject*/ ),RemoteObject.createImmutable(" Cliente: "),__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),0);
 BA.debugLineNum = 886;BA.debugLine="GuardaVenta";
Debug.ShouldStop(2097152);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 BA.debugLineNum = 887;BA.debugLine="p_credito.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_p_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 890;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE P";
Debug.ShouldStop(33554432);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE PAGARES set PA_FECHA = ?, PA_CAPTURA = ?, PA_MONTO = ? where PA_CLIENTE In (select cuenta from cuentaa)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),(__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 891;BA.debugLine="Log(\"Actualizo: \" &\" Almacen: \"& ALMACEN &\" Ru";
Debug.ShouldStop(67108864);
c_cliente.__c.runVoidMethod ("LogImpl","55373982",RemoteObject.concat(RemoteObject.createImmutable("Actualizo: "),RemoteObject.createImmutable(" Almacen: "),__ref.getField(true,"_almacen" /*RemoteObject*/ ),RemoteObject.createImmutable(" Ruta: "),__ref.getField(true,"_la_ruta" /*RemoteObject*/ ),RemoteObject.createImmutable(" Fecha: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),RemoteObject.createImmutable("Captura: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),RemoteObject.createImmutable(" Monto: "),__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable(" Usuario: "),__ref.getField(true,"_usuario" /*RemoteObject*/ ),RemoteObject.createImmutable(" Cliente: "),__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),0);
 BA.debugLineNum = 892;BA.debugLine="GuardaVenta";
Debug.ShouldStop(134217728);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 BA.debugLineNum = 893;BA.debugLine="p_credito.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_p_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 };
 }else 
{ BA.debugLineNum = 896;BA.debugLine="Else If Subs.traeTotalClientepreventaparacredito";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("<",c_cliente._subs.runMethod(true,"_traetotalclientepreventaparacredito" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.numberCast(double.class, _limitcred.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LIMITECREDITO")))))) { 
 BA.debugLineNum = 897;BA.debugLine="If et_montoacredito.Text > Subs.traeTotalCliente";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText")),c_cliente._subs.runMethod(true,"_traetotalclientepreventaparacredito" /*RemoteObject*/ ,__ref.getField(false, "ba")))) { 
 BA.debugLineNum = 898;BA.debugLine="MsgboxAsync(\"El monto del pagare no puede ser m";
Debug.ShouldStop(2);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("El monto del pagare no puede ser mayor a la preventa registrada")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 899;BA.debugLine="et_montoacredito.Text = Subs.traeTotalClientepr";
Debug.ShouldStop(4);
__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(c_cliente._subs.runMethod(true,"_traetotalclientepreventaparacredito" /*RemoteObject*/ ,__ref.getField(false, "ba"))));
 }else {
 BA.debugLineNum = 901;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CO";
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 COUNT(*) As REGISTRADO FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
 BA.debugLineNum = 902;BA.debugLine="c.Position = 0";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 903;BA.debugLine="If c.GetString(\"REGISTRADO\") = 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REGISTRADO"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 905;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
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 PAGARES (PA_ALMACEN, PA_RUTA, PA_FECHA, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?) ")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ )),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),(__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 906;BA.debugLine="Log(\"Aqui hay informacion variada e inserte: \"";
Debug.ShouldStop(512);
c_cliente.__c.runVoidMethod ("LogImpl","55373997",RemoteObject.concat(RemoteObject.createImmutable("Aqui hay informacion variada e inserte: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText")),RemoteObject.createImmutable("<<<<<<<<<<<<<<<<<<<<<")),0);
 BA.debugLineNum = 907;BA.debugLine="GuardaVenta";
Debug.ShouldStop(1024);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 BA.debugLineNum = 908;BA.debugLine="p_credito.Visible = False";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 911;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE P";
Debug.ShouldStop(16384);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE PAGARES set PA_FECHA = ?, PA_CAPTURA = ?, PA_MONTO = ? where PA_CLIENTE In (select cuenta from cuentaa)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),(__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 912;BA.debugLine="Log(\"Aqui hay informacion variada y acualice:";
Debug.ShouldStop(32768);
c_cliente.__c.runVoidMethod ("LogImpl","55374003",RemoteObject.concat(RemoteObject.createImmutable("Aqui hay informacion variada y acualice: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText")),RemoteObject.createImmutable("<<<<<<<<<<<<<<<<<<<<<")),0);
 BA.debugLineNum = 913;BA.debugLine="GuardaVenta";
Debug.ShouldStop(65536);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 BA.debugLineNum = 914;BA.debugLine="p_credito.Visible = False";
Debug.ShouldStop(131072);
__ref.getField(false,"_p_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 };
 }}
;
 BA.debugLineNum = 918;BA.debugLine="limitcred.Close";
Debug.ShouldStop(2097152);
_limitcred.runVoidMethod ("Close");
 BA.debugLineNum = 919;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_act_coords_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_act_coords_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2897);
if (RapidSub.canDelegate("b_act_coords_click")) { return __ref.runUserSub(false, "c_cliente","b_act_coords_click", __ref);}
RemoteObject _coord = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 2897;BA.debugLine="Private Sub b_act_coords_Click";
Debug.ShouldStop(65536);
 BA.debugLineNum = 2898;BA.debugLine="h = B4XPages.MainPage.skmt.ExecQuery(\"SELECT IFNU";
Debug.ShouldStop(131072);
__ref.getField(false,"_h" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT IFNULL(CAT_CL_BCOORDENADAS,0) AS CAT_CL_BCOORDENADAS from kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))));
 BA.debugLineNum = 2899;BA.debugLine="h.Position = 0";
Debug.ShouldStop(262144);
__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2900;BA.debugLine="Log(h.GetInt(\"CAT_CL_BCOORDENADAS\"))";
Debug.ShouldStop(524288);
c_cliente.__c.runVoidMethod ("LogImpl","58519683",BA.NumberToString(__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_CL_BCOORDENADAS")))),0);
 BA.debugLineNum = 2901;BA.debugLine="If h.GetInt(\"CAT_CL_BCOORDENADAS\") <= 2 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("k",__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_CL_BCOORDENADAS"))),BA.numberCast(double.class, 2))) { 
 BA.debugLineNum = 2902;BA.debugLine="Log(B4XPages.MainPage.lon_gps & \" , \" & B4XPages";
Debug.ShouldStop(2097152);
c_cliente.__c.runVoidMethod ("LogImpl","58519685",RemoteObject.concat(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ ),RemoteObject.createImmutable(" , "),c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2904;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skmt";
Debug.ShouldStop(8388608);
_coord = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_coord = 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 COORDENADAS where CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("coord", _coord);Debug.locals.put("coord", _coord);
 BA.debugLineNum = 2906;BA.debugLine="If coord.RowCount = 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_coord.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2907;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO COORDENADAS(LAT";
Debug.ShouldStop(67108864);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO COORDENADAS(LAT,LONG,CLIENTE,CANTIDAD) VALUES (?,?,?,?)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {4},new Object[] {c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ ),c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ),c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba")),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_CL_BCOORDENADAS"))),RemoteObject.createImmutable(1)}, "+",1, 1)))})))));
 BA.debugLineNum = 2908;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
Debug.ShouldStop(134217728);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE kmt_info set  CAT_CL_LONG = ?, CAT_CL_LAT =?, CAT_CL_BCOORDENADAS = ? where CAT_CL_CODIGO In (select cuenta from cuentaa)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),((RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_CL_BCOORDENADAS"))),RemoteObject.createImmutable(1)}, "+",1, 1)))})))));
 BA.debugLineNum = 2909;BA.debugLine="MsgboxAsync(\"Coordenadas actualizadas.\",\"Atenci";
Debug.ShouldStop(268435456);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Coordenadas actualizadas.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 2911;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE COORDENADAS SET LAT";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE COORDENADAS SET LAT = ?, LONG = ?,CANTIDAD = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ ),c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ),BA.NumberToString((RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_CL_BCOORDENADAS"))),RemoteObject.createImmutable(1)}, "+",1, 1)))})))));
 BA.debugLineNum = 2912;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km";
Debug.ShouldStop(-2147483648);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE kmt_info set  CAT_CL_LONG = ?, CAT_CL_LAT =?, CAT_CL_BCOORDENADAS = ? where CAT_CL_CODIGO In (select cuenta from cuentaa)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),((RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("CAT_CL_BCOORDENADAS"))),RemoteObject.createImmutable(1)}, "+",1, 1)))})))));
 BA.debugLineNum = 2913;BA.debugLine="MsgboxAsync(\"Coordenadas actualizadas.\",\"Atenci";
Debug.ShouldStop(1);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Coordenadas actualizadas.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 }else {
 BA.debugLineNum = 2918;BA.debugLine="MsgboxAsync(\"Las coordenadas de este cliente ya";
Debug.ShouldStop(32);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Las coordenadas de este cliente ya fueron actualizadas.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 2920;BA.debugLine="End Sub";
Debug.ShouldStop(128);
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,2540);
if (RapidSub.canDelegate("b_cancelar_click")) { return __ref.runUserSub(false, "c_cliente","b_cancelar_click", __ref);}
 BA.debugLineNum = 2540;BA.debugLine="Private Sub b_cancelar_Click";
Debug.ShouldStop(2048);
 BA.debugLineNum = 2541;BA.debugLine="et_abono.Text = \"\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 2542;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 2543;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(16384);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 2544;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_cancelatiende_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_cancelatiende_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2957);
if (RapidSub.canDelegate("b_cancelatiende_click")) { return __ref.runUserSub(false, "c_cliente","b_cancelatiende_click", __ref);}
 BA.debugLineNum = 2957;BA.debugLine="Private Sub b_cancelatiende_Click";
Debug.ShouldStop(4096);
 BA.debugLineNum = 2958;BA.debugLine="p_atiende.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_p_atiende" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 2959;BA.debugLine="et_atiende.Text = \"\"";
Debug.ShouldStop(16384);
__ref.getField(false,"_et_atiende" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 2960;BA.debugLine="ime.HideKeyboard";
Debug.ShouldStop(32768);
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("HideKeyboard",__ref.getField(false, "ba"));
 BA.debugLineNum = 2961;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_cancelgiro_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_cancelgiro_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,3014);
if (RapidSub.canDelegate("b_cancelgiro_click")) { return __ref.runUserSub(false, "c_cliente","b_cancelgiro_click", __ref);}
 BA.debugLineNum = 3014;BA.debugLine="Private Sub b_cancelgiro_Click";
Debug.ShouldStop(32);
 BA.debugLineNum = 3015;BA.debugLine="p_giro.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_p_giro" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 3016;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_cancred_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_cancred_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,921);
if (RapidSub.canDelegate("b_cancred_click")) { return __ref.runUserSub(false, "c_cliente","b_cancred_click", __ref);}
 BA.debugLineNum = 921;BA.debugLine="Private Sub b_cancred_Click";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 922;BA.debugLine="p_credito.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 923;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_cxc_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_cxc_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2550);
if (RapidSub.canDelegate("b_cxc_click")) { return __ref.runUserSub(false, "c_cliente","b_cxc_click", __ref);}
RemoteObject _total = RemoteObject.createImmutable("");
int _i = 0;
 BA.debugLineNum = 2550;BA.debugLine="Private Sub b_cxc_Click";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 2552;BA.debugLine="h = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CUEN";
Debug.ShouldStop(8388608);
__ref.getField(false,"_h" /*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 = 2553;BA.debugLine="h.Position = 0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2554;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
Debug.ShouldStop(33554432);
c_cliente.__c.runVoidMethod ("LogImpl","58060932",__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))),0);
 BA.debugLineNum = 2555;BA.debugLine="j = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT a_a";
Debug.ShouldStop(67108864);
__ref.getField(false,"_j" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT a_abono FROM ABONOS WHERE a_cliente = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA")))}))));
 BA.debugLineNum = 2556;BA.debugLine="j.position = 0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_j" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2557;BA.debugLine="Log(j.RowCount)";
Debug.ShouldStop(268435456);
c_cliente.__c.runVoidMethod ("LogImpl","58060935",BA.NumberToString(__ref.getField(false,"_j" /*RemoteObject*/ ).runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 2558;BA.debugLine="If j.RowCount = 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_j" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2560;BA.debugLine="p_abono.Visible = True";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 2561;BA.debugLine="Dim total As String = 0";
Debug.ShouldStop(1);
_total = BA.NumberToString(0);Debug.locals.put("total", _total);Debug.locals.put("total", _total);
 BA.debugLineNum = 2562;BA.debugLine="f = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CUE";
Debug.ShouldStop(2);
__ref.getField(false,"_f" /*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 = 2563;BA.debugLine="f.Position = 0";
Debug.ShouldStop(4);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2565;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT NO";
Debug.ShouldStop(16);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA")))}))));
 BA.debugLineNum = 2566;BA.debugLine="clv_abonos.Clear";
Debug.ShouldStop(32);
__ref.getField(false,"_clv_abonos" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 2567;BA.debugLine="For i = 0 To d.RowCount - 1";
Debug.ShouldStop(64);
{
final int step14 = 1;
final int limit14 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step14 > 0 && _i <= limit14) || (step14 < 0 && _i >= limit14) ;_i = ((int)(0 + _i + step14))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2568;BA.debugLine="d.Position = i";
Debug.ShouldStop(128);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2569;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA";
Debug.ShouldStop(256);
__ref.getField(false,"_clv_abonos" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NOTA")))),(Object)(RemoteObject.concat(RemoteObject.createImmutable("$ "),__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 BA.debugLineNum = 2570;BA.debugLine="Log(d.GetString(\"NOTA\"))";
Debug.ShouldStop(512);
c_cliente.__c.runVoidMethod ("LogImpl","58060948",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NOTA"))),0);
 BA.debugLineNum = 2571;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("LogImpl","58060949",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),0);
 BA.debugLineNum = 2572;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
Debug.ShouldStop(2048);
_total = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _total),BA.numberCast(double.class, __ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))))}, "+",1, 0));Debug.locals.put("total", _total);
 BA.debugLineNum = 2573;BA.debugLine="Log(total)";
Debug.ShouldStop(4096);
c_cliente.__c.runVoidMethod ("LogImpl","58060951",_total,0);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 2575;BA.debugLine="l_montoabonostotal.Text = total";
Debug.ShouldStop(16384);
__ref.getField(false,"_l_montoabonostotal" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_total));
 BA.debugLineNum = 2576;BA.debugLine="d.Close";
Debug.ShouldStop(32768);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2577;BA.debugLine="f.Close";
Debug.ShouldStop(65536);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 2579;BA.debugLine="Else If j.RowCount > 0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_j" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2580;BA.debugLine="p_abono.Visible = True";
Debug.ShouldStop(524288);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 2581;BA.debugLine="et_abono.text = j.GetString(\"a_abono\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_j" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono")))));
 BA.debugLineNum = 2582;BA.debugLine="Dim total As String = 0";
Debug.ShouldStop(2097152);
_total = BA.NumberToString(0);Debug.locals.put("total", _total);Debug.locals.put("total", _total);
 BA.debugLineNum = 2583;BA.debugLine="f = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CUE";
Debug.ShouldStop(4194304);
__ref.getField(false,"_f" /*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 = 2584;BA.debugLine="f.Position = 0";
Debug.ShouldStop(8388608);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2586;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT NO";
Debug.ShouldStop(33554432);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA")))}))));
 BA.debugLineNum = 2587;BA.debugLine="clv_abonos.Clear";
Debug.ShouldStop(67108864);
__ref.getField(false,"_clv_abonos" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 2588;BA.debugLine="For i = 0 To d.RowCount - 1";
Debug.ShouldStop(134217728);
{
final int step33 = 1;
final int limit33 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step33 > 0 && _i <= limit33) || (step33 < 0 && _i >= limit33) ;_i = ((int)(0 + _i + step33))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2589;BA.debugLine="d.Position = i";
Debug.ShouldStop(268435456);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2590;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA";
Debug.ShouldStop(536870912);
__ref.getField(false,"_clv_abonos" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NOTA")))),(Object)(RemoteObject.concat(RemoteObject.createImmutable("$ "),__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE")))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 BA.debugLineNum = 2591;BA.debugLine="Log(d.GetString(\"NOTA\"))";
Debug.ShouldStop(1073741824);
c_cliente.__c.runVoidMethod ("LogImpl","58060969",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NOTA"))),0);
 BA.debugLineNum = 2592;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
Debug.ShouldStop(-2147483648);
c_cliente.__c.runVoidMethod ("LogImpl","58060970",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),0);
 BA.debugLineNum = 2593;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
Debug.ShouldStop(1);
_total = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _total),BA.numberCast(double.class, __ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))))}, "+",1, 0));Debug.locals.put("total", _total);
 BA.debugLineNum = 2594;BA.debugLine="Log(total)";
Debug.ShouldStop(2);
c_cliente.__c.runVoidMethod ("LogImpl","58060972",_total,0);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 2596;BA.debugLine="l_montoabonostotal.Text = total";
Debug.ShouldStop(8);
__ref.getField(false,"_l_montoabonostotal" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_total));
 BA.debugLineNum = 2597;BA.debugLine="d.Close";
Debug.ShouldStop(16);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2598;BA.debugLine="f.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 }}
;
 BA.debugLineNum = 2601;BA.debugLine="h.Close";
Debug.ShouldStop(256);
__ref.getField(false,"_h" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2602;BA.debugLine="j.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_j" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2605;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_cxc_longclick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_cxc_LongClick (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2887);
if (RapidSub.canDelegate("b_cxc_longclick")) { return __ref.runUserSub(false, "c_cliente","b_cxc_longclick", __ref);}
 BA.debugLineNum = 2887;BA.debugLine="Private Sub b_cxc_LongClick";
Debug.ShouldStop(64);
 BA.debugLineNum = 2889;BA.debugLine="End Sub";
Debug.ShouldStop(256);
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,2019);
if (RapidSub.canDelegate("b_e_next_click")) { return __ref.runUserSub(false, "c_cliente","b_e_next_click", __ref);}
 BA.debugLineNum = 2019;BA.debugLine="Sub B_E_NEXT_Click";
Debug.ShouldStop(4);
 BA.debugLineNum = 2020;BA.debugLine="If E_RES_E.Text <> \"\" Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 2021;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int";
Debug.ShouldStop(16);
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 = 2022;BA.debugLine="Panel2.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_panel2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 2023;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
Debug.ShouldStop(64);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Productos")));
 }else {
 BA.debugLineNum = 2025;BA.debugLine="Msgbox(\"SIN RESPUESTA\",\"AVISO\") 'Ignore";
Debug.ShouldStop(256);
c_cliente.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("SIN RESPUESTA")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 2027;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
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,1962);
if (RapidSub.canDelegate("b_guarda_c_click")) { return __ref.runUserSub(false, "c_cliente","b_guarda_c_click", __ref);}
 BA.debugLineNum = 1962;BA.debugLine="Sub B_GUARDA_C_Click";
Debug.ShouldStop(512);
 BA.debugLineNum = 1963;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(1024);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1964;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(2048);
__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 = 1965;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(4096);
__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 = 1966;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENTA";
Debug.ShouldStop(8192);
__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 = 1967;BA.debugLine="c.Position=0";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1968;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(32768);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 1969;BA.debugLine="c.Close";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1970;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUARI";
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,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 1971;BA.debugLine="c.Position=0";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1972;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(524288);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1973;BA.debugLine="c.Close";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1974;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
Debug.ShouldStop(2097152);
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 = 1975;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
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_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 = 1976;BA.debugLine="Panel1.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_panel1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 1978;BA.debugLine="Tar.Visible = True";
Debug.ShouldStop(33554432);
__ref.getField(false,"_tar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1979;BA.debugLine="Tels.Visible = True";
Debug.ShouldStop(67108864);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1981;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 1983;BA.debugLine="Guardar.Visible = True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_guardar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1984;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
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,1148);
if (RapidSub.canDelegate("b_imp_click")) { return __ref.runUserSub(false, "c_cliente","b_imp_click", __ref);}
 BA.debugLineNum = 1148;BA.debugLine="Sub B_IMP_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 1150;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE P";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE PE_FOLIO = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("VENTA")}))));
 BA.debugLineNum = 1152;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1154;BA.debugLine="imprime_venta";
Debug.ShouldStop(2);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_imprime_venta" /*void*/ );
 BA.debugLineNum = 1155;BA.debugLine="t1.Initialize(\"T1\", 5000) ' 5 segundos de espera";
Debug.ShouldStop(4);
__ref.getField(false,"_t1" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(BA.ObjectToString("T1")),(Object)(BA.numberCast(long.class, 5000)));
 BA.debugLineNum = 1156;BA.debugLine="t1.Enabled = True";
Debug.ShouldStop(8);
__ref.getField(false,"_t1" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 1159;BA.debugLine="s = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE";
Debug.ShouldStop(64);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE (PE_FOLIO = ? OR PE_FOLIO = ?) AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("PREVENTA_CONTADO"),RemoteObject.createImmutable("PREVENTA_CREDITO")}))));
 BA.debugLineNum = 1161;BA.debugLine="If s.RowCount > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1163;BA.debugLine="imprime_preventa";
Debug.ShouldStop(1024);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_imprime_preventa" /*void*/ );
 }else {
 BA.debugLineNum = 1166;BA.debugLine="Msgbox(\"No hay registros de venta o preventa pa";
Debug.ShouldStop(8192);
c_cliente.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("No hay registros de venta o preventa para imprimir")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Aviso"))),__ref.getField(false, "ba"));
 };
 };
 BA.debugLineNum = 1169;BA.debugLine="c.Close";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1170;BA.debugLine="If s <> Null Then s.Close";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("N",__ref.getField(false,"_s" /*RemoteObject*/ ))) { 
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");};
 BA.debugLineNum = 1171;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
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,1144);
if (RapidSub.canDelegate("b_mapa_click")) { return __ref.runUserSub(false, "c_cliente","b_mapa_click", __ref);}
 BA.debugLineNum = 1144;BA.debugLine="Sub b_mapa_Click";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 1145;BA.debugLine="B4XPages.ShowPage(\"mapas\")";
Debug.ShouldStop(16777216);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("mapas")));
 BA.debugLineNum = 1146;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_ubicar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_ubicar_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2891);
if (RapidSub.canDelegate("b_ubicar_click")) { return __ref.runUserSub(false, "c_cliente","b_ubicar_click", __ref);}
 BA.debugLineNum = 2891;BA.debugLine="Private Sub b_ubicar_Click";
Debug.ShouldStop(1024);
 BA.debugLineNum = 2892;BA.debugLine="StartActivity(MAPA_CLIENTE)";
Debug.ShouldStop(2048);
c_cliente.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((c_cliente._mapa_cliente.getObject())));
 BA.debugLineNum = 2893;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
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,1986);
if (RapidSub.canDelegate("b_venta_click")) { return __ref.runUserSub(false, "c_cliente","b_venta_click", __ref);}
 BA.debugLineNum = 1986;BA.debugLine="Sub b_venta_Click";
Debug.ShouldStop(2);
 BA.debugLineNum = 1987;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(4);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1988;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(8);
__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 = 1989;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(16);
__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 = 2017;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_venta_credito_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_venta_credito_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,656);
if (RapidSub.canDelegate("b_venta_credito_click")) { return __ref.runUserSub(false, "c_cliente","b_venta_credito_click", __ref);}
 BA.debugLineNum = 656;BA.debugLine="Private Sub b_venta_credito_Click";
Debug.ShouldStop(32768);
 BA.debugLineNum = 657;BA.debugLine="If la_cuenta.Text = \"0\" Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 658;BA.debugLine="B4XPages.MainPage.tipo_venta = \"ABORDO\"";
Debug.ShouldStop(131072);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_tipo_venta" /*RemoteObject*/ ,BA.ObjectToString("ABORDO"));
 }else 
{ BA.debugLineNum = 659;BA.debugLine="Else If la_cuenta.Text = \"1\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 660;BA.debugLine="B4XPages.MainPage.tipo_venta = \"RECARGA\"";
Debug.ShouldStop(524288);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_tipo_venta" /*RemoteObject*/ ,BA.ObjectToString("RECARGA"));
 }else {
 BA.debugLineNum = 662;BA.debugLine="B4XPages.MainPage.tipo_venta = \"PREVENTA_CREDITO";
Debug.ShouldStop(2097152);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_tipo_venta" /*RemoteObject*/ ,BA.ObjectToString("PREVENTA_CREDITO"));
 }}
;
 BA.debugLineNum = 664;BA.debugLine="B4XPages.ShowPage(\"productos\")";
Debug.ShouldStop(8388608);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("productos")));
 BA.debugLineNum = 665;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_ventaabordo_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_ventaabordo_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2688);
if (RapidSub.canDelegate("b_ventaabordo_click")) { return __ref.runUserSub(false, "c_cliente","b_ventaabordo_click", __ref);}
 BA.debugLineNum = 2688;BA.debugLine="Private Sub b_ventaabordo_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 2690;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select * Fro";
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,"ExecQuery2",(Object)(BA.ObjectToString("Select * From CAT_GUNAPROD2 where cat_gp_tipo <> ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("PROMOS")}))));
 BA.debugLineNum = 2691;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 = 2695;BA.debugLine="B4XPages.MainPage.tipo_venta = \"VENTA\"";
Debug.ShouldStop(64);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_tipo_venta" /*RemoteObject*/ ,BA.ObjectToString("VENTA"));
 BA.debugLineNum = 2730;BA.debugLine="B4XPages.ShowPage(\"productos\")";
Debug.ShouldStop(512);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("productos")));
 }else 
{ BA.debugLineNum = 2733;BA.debugLine="Else If c.RowCount = 0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2735;BA.debugLine="MsgboxAsync(\"No puedes hacer venta porque no tie";
Debug.ShouldStop(16384);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("No puedes hacer venta porque no tienes inventario abordo")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }}
;
 BA.debugLineNum = 2739;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,253);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_cliente","b4xpage_appear", __ref);}
RemoteObject _cabonos = RemoteObject.createImmutable("");
RemoteObject _factura = RemoteObject.createImmutable("");
RemoteObject _cor_al = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _geo = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _credi2 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _credi3 = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _total = RemoteObject.createImmutable("");
int _i = 0;
 BA.debugLineNum = 253;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 255;BA.debugLine="Guardar.Enabled = True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_guardar" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 256;BA.debugLine="gest.Enabled = True";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 257;BA.debugLine="b_cxc.Enabled = True";
Debug.ShouldStop(1);
__ref.getField(false,"_b_cxc" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 258;BA.debugLine="Tar.Enabled = True";
Debug.ShouldStop(2);
__ref.getField(false,"_tar" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 259;BA.debugLine="Tels.Enabled = True";
Debug.ShouldStop(4);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 260;BA.debugLine="b_ventaabordo.Enabled = True";
Debug.ShouldStop(8);
__ref.getField(false,"_b_ventaabordo" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 262;BA.debugLine="HIST.Enabled = True";
Debug.ShouldStop(32);
__ref.getField(false,"_hist" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 263;BA.debugLine="reqManager.Initialize(Me, Starter.DBReqServer)";
Debug.ShouldStop(64);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(c_cliente._starter._dbreqserver /*RemoteObject*/ ));
 BA.debugLineNum = 264;BA.debugLine="LA_GPS.TextColor = Colors.Red";
Debug.ShouldStop(128);
__ref.getField(false,"_la_gps" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 265;BA.debugLine="LA_GPS.Text = \"SIN UBICACION GPS\"";
Debug.ShouldStop(256);
__ref.getField(false,"_la_gps" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("SIN UBICACION GPS"));
 BA.debugLineNum = 266;BA.debugLine="cercavalor = 0";
Debug.ShouldStop(512);
__ref.setField ("_cercavalor" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 267;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
Debug.ShouldStop(1024);
if (c_cliente.__c.runMethod(true,"Not",(Object)(c_cliente._starter._gps /*RemoteObject*/ .runMethod(true,"getGPSEnabled"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 268;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
Debug.ShouldStop(2048);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Es necesario tener el GPS encendido")),(Object)(c_cliente.__c.getField(true,"True")));
 BA.debugLineNum = 269;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
Debug.ShouldStop(4096);
c_cliente.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((c_cliente._starter._gps /*RemoteObject*/ .runMethod(false,"getLocationSettingsIntent"))));
 };
 BA.debugLineNum = 272;BA.debugLine="cb_factura.Checked = False";
Debug.ShouldStop(32768);
__ref.getField(false,"_cb_factura" /*RemoteObject*/ ).runMethodAndSync(true,"setChecked",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 273;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 274;BA.debugLine="Subs.centraPanel(p_abono, Root.Width)";
Debug.ShouldStop(131072);
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 = 275;BA.debugLine="Subs.centraPanel(p_atiende, Root.Width)";
Debug.ShouldStop(262144);
c_cliente._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_atiende" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 276;BA.debugLine="Subs.centraPanel(p_giro, Root.Width)";
Debug.ShouldStop(524288);
c_cliente._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_giro" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 277;BA.debugLine="Subs.centraPanel(p_credito, Root.Width)";
Debug.ShouldStop(1048576);
c_cliente._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_credito" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 278;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
Debug.ShouldStop(2097152);
__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 = 279;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL";
Debug.ShouldStop(4194304);
__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, CAT_CL_GIRO  from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa) UNION ALL 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, CAT_CL_GIRO  from kmt_info2 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))));
 BA.debugLineNum = 280;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"Select SUM(PE";
Debug.ShouldStop(8388608);
__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 = 281;BA.debugLine="b = B4XPages.MainPage.skmt.ExecQuery(\"select COUN";
Debug.ShouldStop(16777216);
__ref.getField(false,"_b" /*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 CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 282;BA.debugLine="b.Position = 0";
Debug.ShouldStop(33554432);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 283;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")";
Debug.ShouldStop(67108864);
_cabonos = __ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTE")));Debug.locals.put("cabonos", _cabonos);Debug.locals.put("cabonos", _cabonos);
 BA.debugLineNum = 284;BA.debugLine="If cabonos = 0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_cabonos,BA.NumberToString(0))) { 
 BA.debugLineNum = 285;BA.debugLine="b_cxc.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_b_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 287;BA.debugLine="b_cxc.Visible = True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_b_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 };
 BA.debugLineNum = 290;BA.debugLine="s.Position=0";
Debug.ShouldStop(2);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 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="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 = 294;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 = 295;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & \"";
Debug.ShouldStop(64);
__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"))),RemoteObject.createImmutable(" "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOEXT"))))));
 BA.debugLineNum = 296;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 = 297;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 = 298;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
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_CALLE1")))));
 BA.debugLineNum = 299;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
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_CALLE2")))));
 BA.debugLineNum = 300;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 = 301;BA.debugLine="l_giro.Text = c.GetString(\"CAT_CL_GIRO\")";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_giro" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_GIRO")))));
 BA.debugLineNum = 302;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
Debug.ShouldStop(8192);
__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 = 303;BA.debugLine="TELEFONO  = c.GetString(\"CAT_CL_TELEFONO\")";
Debug.ShouldStop(16384);
__ref.setField ("_telefono" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_TELEFONO"))));
 BA.debugLineNum = 304;BA.debugLine="l_total.Text = s.GetString(\"TOTAL_CLIE\")";
Debug.ShouldStop(32768);
__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 = 305;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
Debug.ShouldStop(65536);
__ref.setField ("_total_cliente" /*RemoteObject*/ ,__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE"))));
 BA.debugLineNum = 306;BA.debugLine="Private factura As String = 0";
Debug.ShouldStop(131072);
_factura = BA.NumberToString(0);Debug.locals.put("factura", _factura);Debug.locals.put("factura", _factura);
 BA.debugLineNum = 307;BA.debugLine="If s.GetString(\"PC_FACTURA\") <> Null And IsNumbe";
Debug.ShouldStop(262144);
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 = 308;BA.debugLine="If factura = \"1\" Then cb_factura.Checked = True";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_factura,BA.ObjectToString("1"))) { 
__ref.getField(false,"_cb_factura" /*RemoteObject*/ ).runMethodAndSync(true,"setChecked",c_cliente.__c.getField(true,"True"));};
 BA.debugLineNum = 309;BA.debugLine="m_lat = \"0\"";
Debug.ShouldStop(1048576);
__ref.setField ("_m_lat" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 310;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then m_lat =c";
Debug.ShouldStop(2097152);
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 = 311;BA.debugLine="If m_lat.Length < 5 Then m_lat = \"0\"";
Debug.ShouldStop(4194304);
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 = 312;BA.debugLine="m_lon = \"0\"";
Debug.ShouldStop(8388608);
__ref.setField ("_m_lon" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 313;BA.debugLine="If c.GetString(\"CAT_CL_LONG\") <> \"\" Then m_lon =";
Debug.ShouldStop(16777216);
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 = 314;BA.debugLine="If m_lon.Length < 5 Then m_lon = \"0\"";
Debug.ShouldStop(33554432);
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 = 315;BA.debugLine="LA_RUTA = c.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(67108864);
__ref.setField ("_la_ruta" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))));
 BA.debugLineNum = 317;BA.debugLine="If c.GetString(\"CAT_CL_NUM_SERIEFISICO\") = \"0\"";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NUM_SERIEFISICO"))),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 318;BA.debugLine="L_QR.TEXT = \"SIN CODIGO\"";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("SIN CODIGO"));
 BA.debugLineNum = 319;BA.debugLine="L_QR.TextColor = Colors.Red";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 321;BA.debugLine="gest.VISIBLE = False";
Debug.ShouldStop(1);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 322;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 = 324;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 = 325;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 = 326;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 = 330;BA.debugLine="Dim cor_al As Cursor = Starter.skmt.ExecQuery(\"SE";
Debug.ShouldStop(512);
_cor_al = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cor_al = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_cliente._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT LAT, LONG FROM COORDS_ALMACEN"))));Debug.locals.put("cor_al", _cor_al);Debug.locals.put("cor_al", _cor_al);
 BA.debugLineNum = 331;BA.debugLine="If cor_al.RowCount > 0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",_cor_al.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 332;BA.debugLine="cor_al.Position = 0";
Debug.ShouldStop(2048);
_cor_al.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 333;BA.debugLine="m_lat_al = cor_al.GetString(\"LAT\")";
Debug.ShouldStop(4096);
__ref.setField ("_m_lat_al" /*RemoteObject*/ ,_cor_al.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("LAT"))));
 BA.debugLineNum = 334;BA.debugLine="m_lon_al = cor_al.GetString(\"LONG\")";
Debug.ShouldStop(8192);
__ref.setField ("_m_lon_al" /*RemoteObject*/ ,_cor_al.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("LONG"))));
 };
 BA.debugLineNum = 337;BA.debugLine="c.Close";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 338;BA.debugLine="s.Close";
Debug.ShouldStop(131072);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 339;BA.debugLine="S2=B4XPages.MainPage.skmt.ExecQuery(\"select count";
Debug.ShouldStop(262144);
__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 = 340;BA.debugLine="S2.Position =0";
Debug.ShouldStop(524288);
__ref.getField(false,"_s2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 341;BA.debugLine="CUANTOS = S2.GetString(\"CUANTOS\")";
Debug.ShouldStop(1048576);
__ref.setField ("_cuantos" /*RemoteObject*/ ,__ref.getField(false,"_s2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))));
 BA.debugLineNum = 342;BA.debugLine="S2.Close";
Debug.ShouldStop(2097152);
__ref.getField(false,"_s2" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 343;BA.debugLine="If CUANTOS > 0 Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(true,"_cuantos" /*RemoteObject*/ )),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 344;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery(\"select sum(";
Debug.ShouldStop(8388608);
__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 = 345;BA.debugLine="c2.Position =0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 346;BA.debugLine="MONTO_COMPRA = c2.GetString(\"TOTAL\")";
Debug.ShouldStop(33554432);
__ref.setField ("_monto_compra" /*RemoteObject*/ ,__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL"))));
 BA.debugLineNum = 347;BA.debugLine="c2.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 349;BA.debugLine="MONTO_COMPRA = \"0\"";
Debug.ShouldStop(268435456);
__ref.setField ("_monto_compra" /*RemoteObject*/ ,BA.ObjectToString("0"));
 };
 BA.debugLineNum = 352;BA.debugLine="la_saldotot.Text = MONTO_COMPRA";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_la_saldotot" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_monto_compra" /*RemoteObject*/ )));
 BA.debugLineNum = 353;BA.debugLine="If MONTO_COMPRA <> \"0\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_monto_compra" /*RemoteObject*/ ),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 354;BA.debugLine="META2 = 300 -  MONTO_COMPRA";
Debug.ShouldStop(2);
__ref.setField ("_meta2" /*RemoteObject*/ ,BA.NumberToString(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(300),BA.numberCast(double.class, __ref.getField(true,"_monto_compra" /*RemoteObject*/ ))}, "-",1, 0)));
 }else {
 BA.debugLineNum = 356;BA.debugLine="META2 = 300";
Debug.ShouldStop(8);
__ref.setField ("_meta2" /*RemoteObject*/ ,BA.NumberToString(300));
 };
 BA.debugLineNum = 358;BA.debugLine="If META2 < 1 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(true,"_meta2" /*RemoteObject*/ )),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 359;BA.debugLine="META2 = \"CUBIERTO\"";
Debug.ShouldStop(64);
__ref.setField ("_meta2" /*RemoteObject*/ ,BA.ObjectToString("CUBIERTO"));
 };
 BA.debugLineNum = 361;BA.debugLine="la_saldooper.Text = META2";
Debug.ShouldStop(256);
__ref.getField(false,"_la_saldooper" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_meta2" /*RemoteObject*/ )));
 BA.debugLineNum = 362;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select ID_ALM";
Debug.ShouldStop(512);
__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 = 363;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 = 364;BA.debugLine="C.Position=0";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 365;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
Debug.ShouldStop(4096);
__ref.setField ("_almacen" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))));
 };
 BA.debugLineNum = 367;BA.debugLine="c.Close";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 369;BA.debugLine="Dim geo As Cursor = Starter.skmt.ExecQuery(\"SELEC";
Debug.ShouldStop(65536);
_geo = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_geo = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_cliente._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT ACTIVA FROM GEOCERCA"))));Debug.locals.put("geo", _geo);Debug.locals.put("geo", _geo);
 BA.debugLineNum = 370;BA.debugLine="If geo.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",_geo.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 371;BA.debugLine="geo.Position = 0";
Debug.ShouldStop(262144);
_geo.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 372;BA.debugLine="If geo.GetInt(\"ACTIVA\") = 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_geo.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("ACTIVA"))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 373;BA.debugLine="Tels.Visible = True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 375;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 376;BA.debugLine="Else If geo.GetInt(\"ACTIVA\") = 1 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_geo.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("ACTIVA"))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 377;BA.debugLine="Tels.Visible = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 378;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }}
;
 };
 BA.debugLineNum = 388;BA.debugLine="If ALMACEN = \"4\"  Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
 BA.debugLineNum = 390;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU";
Debug.ShouldStop(32);
__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 = 391;BA.debugLine="DD.Position =0";
Debug.ShouldStop(64);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 392;BA.debugLine="If DD.GetString(\"CUANTOS\")  = 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 393;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU";
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,"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 = 394;BA.debugLine="c.Position =0";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 400;BA.debugLine="c.Close";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 };
 BA.debugLineNum = 404;BA.debugLine="DD.Close";
Debug.ShouldStop(524288);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 };
 BA.debugLineNum = 408;BA.debugLine="If ALMACEN = \"16\" Or ALMACEN = \"13\" Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("16")) || RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("13"))) { 
 BA.debugLineNum = 409;BA.debugLine="Tels.Visible = True";
Debug.ShouldStop(16777216);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 411;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 413;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
Debug.ShouldStop(268435456);
c_cliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_cliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("Track")));
 BA.debugLineNum = 414;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
Debug.ShouldStop(536870912);
c_cliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_cliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("StartFLPSmall")));
 BA.debugLineNum = 415;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL";
Debug.ShouldStop(1073741824);
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 = 416;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(-2147483648);
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 = 417;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(1);
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 = 419;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
Debug.ShouldStop(4);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_gps_locationchanged" /*RemoteObject*/ ,(Object)(c_cliente._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation")));
 };
 BA.debugLineNum = 436;BA.debugLine="If la_cuenta.Text = \"0\" Or la_cuenta.Text = \"1\" T";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0")) || RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 437;BA.debugLine="p_cbFactura.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_p_cbfactura" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 438;BA.debugLine="l_factura.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_factura" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 439;BA.debugLine="b_ventaabordo.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_b_ventaabordo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 440;BA.debugLine="gest.Visible = True";
Debug.ShouldStop(8388608);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 443;BA.debugLine="p_cbFactura.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_p_cbfactura" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 445;BA.debugLine="l_factura.Visible = False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_factura" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 446;BA.debugLine="b_ventaabordo.Visible = True";
Debug.ShouldStop(536870912);
__ref.getField(false,"_b_ventaabordo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 };
 BA.debugLineNum = 451;BA.debugLine="c = skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("MACIMP")}))));
 BA.debugLineNum = 452;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 453;BA.debugLine="c.Position = 0";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 454;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO";
Debug.ShouldStop(32);
c_cliente._starter._mac_impresora /*RemoteObject*/  = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR")));
 };
 BA.debugLineNum = 456;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",c_cliente._starter._mac_impresora /*RemoteObject*/ ,BA.ObjectToString(""))) { 
c_cliente._starter._mac_impresora /*RemoteObject*/  = BA.ObjectToString("0");};
 BA.debugLineNum = 458;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")";
Debug.ShouldStop(512);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(RemoteObject.createImmutable("Printer1")));
 BA.debugLineNum = 460;BA.debugLine="If Printer1.IsConnected = False Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_isconnected" /*RemoteObject*/ ),c_cliente.__c.getField(true,"False"))) { 
 }else {
 BA.debugLineNum = 464;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 465;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(65536);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 466;BA.debugLine="Log(\"2\")";
Debug.ShouldStop(131072);
c_cliente.__c.runVoidMethod ("LogImpl","54718805",RemoteObject.createImmutable("2"),0);
 };
 BA.debugLineNum = 469;BA.debugLine="pre_act = Subs.traeTotalClientepreventaparacredit";
Debug.ShouldStop(1048576);
__ref.setField ("_pre_act" /*RemoteObject*/ ,BA.numberCast(float.class, c_cliente._subs.runMethod(true,"_traetotalclientepreventaparacredito" /*RemoteObject*/ ,__ref.getField(false, "ba"))));
 BA.debugLineNum = 473;BA.debugLine="Private credi2 As Cursor = B4XPages.MainPage.skmt";
Debug.ShouldStop(16777216);
_credi2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_credi2 = 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 IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO, CAT_CL_CODIGO, Ifnull(SALDO_PENDIENTE,0) As SALDO_PENDIENTE, Ifnull(CAT_CL_LIMITECREDITO,0) As CAT_CL_LIMITECREDITO FROM KMT_INFO LEFT JOIN ABONOSP ON CAT_CL_CODIGO = CLIENTE WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) UNION SELECT CAT_CL_BCREDITO, CAT_CL_CODIGO, Ifnull(SALDO_PENDIENTE,0) As SALDO_PENDIENTE, Ifnull(CAT_CL_LIMITECREDITO,0) As CAT_CL_LIMITECREDITO FROM KMT_INFO2 LEFT JOIN ABONOSP ON CAT_CL_CODIGO = CLIENTE WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("credi2", _credi2);Debug.locals.put("credi2", _credi2);
 BA.debugLineNum = 474;BA.debugLine="Log(credi2.RowCount)";
Debug.ShouldStop(33554432);
c_cliente.__c.runVoidMethod ("LogImpl","54718813",BA.NumberToString(_credi2.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 475;BA.debugLine="If credi2.RowCount > 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",_credi2.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 476;BA.debugLine="credi2.Position = 0";
Debug.ShouldStop(134217728);
_credi2.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 477;BA.debugLine="credito_diponible = credi2.GetString (\"CAT_CL_LI";
Debug.ShouldStop(268435456);
__ref.setField ("_credito_diponible" /*RemoteObject*/ ,_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_LIMITECREDITO"))));
 BA.debugLineNum = 478;BA.debugLine="Log(credi2.GetString (\"CAT_CL_BCREDITO\"))";
Debug.ShouldStop(536870912);
c_cliente.__c.runVoidMethod ("LogImpl","54718817",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),0);
 BA.debugLineNum = 479;BA.debugLine="If credi2.GetString (\"CAT_CL_BCREDITO\") = \"1\" Th";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 480;BA.debugLine="Log(credi2.GetString(\"SALDO_PENDIENTE\"))";
Debug.ShouldStop(-2147483648);
c_cliente.__c.runVoidMethod ("LogImpl","54718819",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),0);
 BA.debugLineNum = 481;BA.debugLine="If credi2.GetString(\"SALDO_PENDIENTE\") > 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 483;BA.debugLine="Private credi3 As Cursor = B4XPages.MainPage.s";
Debug.ShouldStop(4);
_credi3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_credi3 = 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 a_abono, CAT_CL_CODIGO FROM KMT_INFO INNER JOIN ABONOS ON CAT_CL_CODIGO = a_cliente WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) UNION SELECT a_abono, CAT_CL_CODIGO FROM KMT_INFO2 INNER JOIN ABONOS ON CAT_CL_CODIGO = a_cliente WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("credi3", _credi3);Debug.locals.put("credi3", _credi3);
 BA.debugLineNum = 484;BA.debugLine="If credi3.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",_credi3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 485;BA.debugLine="credi3.Position = 0";
Debug.ShouldStop(16);
_credi3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 486;BA.debugLine="Dim total As String = 0";
Debug.ShouldStop(32);
_total = BA.NumberToString(0);Debug.locals.put("total", _total);Debug.locals.put("total", _total);
 BA.debugLineNum = 487;BA.debugLine="For i = 0 To credi2.RowCount - 1";
Debug.ShouldStop(64);
{
final int step177 = 1;
final int limit177 = RemoteObject.solve(new RemoteObject[] {_credi2.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step177 > 0 && _i <= limit177) || (step177 < 0 && _i >= limit177) ;_i = ((int)(0 + _i + step177))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 488;BA.debugLine="credi2.Position = i";
Debug.ShouldStop(128);
_credi2.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 489;BA.debugLine="Log(credi2.GetString(\"SALDO_PENDIENTE\"))";
Debug.ShouldStop(256);
c_cliente.__c.runVoidMethod ("LogImpl","54718828",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),0);
 BA.debugLineNum = 490;BA.debugLine="total = total + credi2.GetString(\"SALDO_PEND";
Debug.ShouldStop(512);
_total = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _total),BA.numberCast(double.class, _credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))))}, "+",1, 0));Debug.locals.put("total", _total);
 BA.debugLineNum = 491;BA.debugLine="Log(total)";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("LogImpl","54718830",_total,0);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 493;BA.debugLine="If NumberFormat2(total,1,2,2,False) <> Number";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("!",c_cliente.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _total)),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_cliente.__c.getField(true,"False"))),c_cliente.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _credi3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono"))))),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_cliente.__c.getField(true,"False"))))) { 
 BA.debugLineNum = 494;BA.debugLine="MsgboxAsync(\"La venta sera en efectivo porqu";
Debug.ShouldStop(8192);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("La venta sera en efectivo porque el pago del pagare es menor al total de la deuda.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 495;BA.debugLine="b_venta_credito.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_b_venta_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 496;BA.debugLine="Else If credi2.GetString (\"SALDO_PENDIENTE\")";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),_credi3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono"))))) { 
 BA.debugLineNum = 497;BA.debugLine="Log(\"AQUI ESTOY SI VISIBLE BOTON\")";
Debug.ShouldStop(65536);
c_cliente.__c.runVoidMethod ("LogImpl","54718836",RemoteObject.createImmutable("AQUI ESTOY SI VISIBLE BOTON"),0);
 BA.debugLineNum = 498;BA.debugLine="b_venta_credito.Visible = False ''' AQUI ACT";
Debug.ShouldStop(131072);
__ref.getField(false,"_b_venta_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }}
;
 }else {
 BA.debugLineNum = 501;BA.debugLine="MsgboxAsync(\"La venta sera en efectivo por qu";
Debug.ShouldStop(1048576);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("La venta sera en efectivo por que hay un pagare pendiente de pago")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 502;BA.debugLine="b_venta_credito.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_b_venta_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 504;BA.debugLine="credi3.Close";
Debug.ShouldStop(8388608);
_credi3.runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 505;BA.debugLine="Else If credi2.GetString(\"SALDO_PENDIENTE\") = 0";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),BA.NumberToString(0))) { 
 BA.debugLineNum = 506;BA.debugLine="b_venta_credito.Visible = False  '' AQUI ACTIV";
Debug.ShouldStop(33554432);
__ref.getField(false,"_b_venta_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }}
;
 }else {
 BA.debugLineNum = 510;BA.debugLine="Log(1)";
Debug.ShouldStop(536870912);
c_cliente.__c.runVoidMethod ("LogImpl","54718849",BA.NumberToString(1),0);
 BA.debugLineNum = 511;BA.debugLine="b_venta_credito.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_b_venta_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 512;BA.debugLine="If credi2.GetString(\"SALDO_PENDIENTE\") > 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 513;BA.debugLine="Private credi3 As Cursor = B4XPages.MainPage.s";
Debug.ShouldStop(1);
_credi3 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_credi3 = 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 a_abono, CAT_CL_CODIGO FROM KMT_INFO INNER JOIN ABONOS ON CAT_CL_CODIGO = a_cliente WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) UNION SELECT a_abono, CAT_CL_CODIGO FROM KMT_INFO2 INNER JOIN ABONOS ON CAT_CL_CODIGO = a_cliente WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("credi3", _credi3);Debug.locals.put("credi3", _credi3);
 BA.debugLineNum = 514;BA.debugLine="If credi3.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_credi3.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 515;BA.debugLine="credi3.Position = 0";
Debug.ShouldStop(4);
_credi3.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 517;BA.debugLine="Dim total As String = 0";
Debug.ShouldStop(16);
_total = BA.NumberToString(0);Debug.locals.put("total", _total);Debug.locals.put("total", _total);
 BA.debugLineNum = 518;BA.debugLine="For i = 0 To credi2.RowCount - 1";
Debug.ShouldStop(32);
{
final int step206 = 1;
final int limit206 = RemoteObject.solve(new RemoteObject[] {_credi2.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step206 > 0 && _i <= limit206) || (step206 < 0 && _i >= limit206) ;_i = ((int)(0 + _i + step206))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 519;BA.debugLine="credi2.Position = i";
Debug.ShouldStop(64);
_credi2.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 520;BA.debugLine="Log(credi2.GetString(\"SALDO_PENDIENTE\"))";
Debug.ShouldStop(128);
c_cliente.__c.runVoidMethod ("LogImpl","54718859",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),0);
 BA.debugLineNum = 521;BA.debugLine="total = total + credi2.GetString(\"SALDO_PEND";
Debug.ShouldStop(256);
_total = BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _total),BA.numberCast(double.class, _credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))))}, "+",1, 0));Debug.locals.put("total", _total);
 BA.debugLineNum = 522;BA.debugLine="Log(total)";
Debug.ShouldStop(512);
c_cliente.__c.runVoidMethod ("LogImpl","54718861",_total,0);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 524;BA.debugLine="If NumberFormat2(total,1,2,2,False) <> Number";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("!",c_cliente.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _total)),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_cliente.__c.getField(true,"False"))),c_cliente.__c.runMethod(true,"NumberFormat2",(Object)(BA.numberCast(double.class, _credi3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono"))))),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 2)),(Object)(c_cliente.__c.getField(true,"False"))))) { 
 BA.debugLineNum = 525;BA.debugLine="MsgboxAsync(\"La venta sera en efectivo porqu";
Debug.ShouldStop(4096);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("La venta sera en efectivo porque el pago del pagare es menor al total de la deuda.")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else 
{ BA.debugLineNum = 526;BA.debugLine="Else If credi2.GetString (\"SALDO_PENDIENTE\")";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),_credi3.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono"))))) { 
 }}
;
 }else {
 BA.debugLineNum = 529;BA.debugLine="MsgboxAsync(\"La venta sera en efectivo por qu";
Debug.ShouldStop(65536);
c_cliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("La venta sera en efectivo por que hay un pagare pendiente de pago")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 531;BA.debugLine="credi3.Close";
Debug.ShouldStop(262144);
_credi3.runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 532;BA.debugLine="Else If credi2.GetString(\"SALDO_PENDIENTE\") = 0";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_credi2.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE"))),BA.NumberToString(0))) { 
 }}
;
 };
 };
 BA.debugLineNum = 537;BA.debugLine="credi2.Close";
Debug.ShouldStop(16777216);
_credi2.runVoidMethod ("Close");
 BA.debugLineNum = 538;BA.debugLine="If la_cuenta.Text = \"0\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 539;BA.debugLine="gest.Text = \"Abordo\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Abordo"));
 BA.debugLineNum = 540;BA.debugLine="B4XPages.MainPage.recarga = \"0\"";
Debug.ShouldStop(134217728);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_recarga" /*RemoteObject*/ ,BA.ObjectToString("0"));
 }else 
{ BA.debugLineNum = 541;BA.debugLine="Else If la_cuenta.Text = \"1\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 542;BA.debugLine="gest.Text = \"Recarga\"";
Debug.ShouldStop(536870912);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Recarga"));
 BA.debugLineNum = 543;BA.debugLine="B4XPages.MainPage.recarga = \"1\"";
Debug.ShouldStop(1073741824);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_recarga" /*RemoteObject*/ ,BA.ObjectToString("1"));
 }else {
 BA.debugLineNum = 546;BA.debugLine="gest.Text = \"Preventa\"";
Debug.ShouldStop(2);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Preventa"));
 BA.debugLineNum = 547;BA.debugLine="B4XPages.MainPage.recarga = \"0\"";
Debug.ShouldStop(4);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_recarga" /*RemoteObject*/ ,BA.ObjectToString("0"));
 }}
;
 BA.debugLineNum = 549;BA.debugLine="LogColor(B4XPages.MainPage.recarga,Colors.Blue)";
Debug.ShouldStop(16);
c_cliente.__c.runVoidMethod ("LogImpl","54718888",c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_recarga" /*RemoteObject*/ ),c_cliente.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 553;BA.debugLine="End Sub";
Debug.ShouldStop(256);
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,671);
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(SHARK2.keymon.com.mx.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;
SHARK2.keymon.com.mx.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,671);
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 = 675;BA.debugLine="If Starter.pre_viejo = pre_act Then";
Debug.ShouldStop(4);
if (true) break;

case 1:
//if
this.state = 32;
if (RemoteObject.solveBoolean("=",parent._starter._pre_viejo /*RemoteObject*/ ,BA.numberCast(double.class, __ref.getField(true,"_pre_act" /*RemoteObject*/ )))) { 
this.state = 3;
}else {
this.state = 27;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 676;BA.debugLine="If (la_cuenta.Text <> \"0\" And la_cuenta.Text <>";
Debug.ShouldStop(8);
if (true) break;

case 4:
//if
this.state = 25;
if ((RemoteObject.solveBoolean("!",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0")) && RemoteObject.solveBoolean("!",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable("1")))) { 
this.state = 6;
}else {
this.state = 24;
}if (true) break;

case 6:
//C
this.state = 7;
 BA.debugLineNum = 677;BA.debugLine="If banderaimp = 1 Then";
Debug.ShouldStop(16);
if (true) break;

case 7:
//if
this.state = 22;
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_banderaimp" /*RemoteObject*/ ),BA.numberCast(double.class, 1))) { 
this.state = 9;
}else {
this.state = 11;
}if (true) break;

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

case 11:
//C
this.state = 12;
 BA.debugLineNum = 679;BA.debugLine="cuest.encuestaIniciada = False";
Debug.ShouldStop(64);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).setField ("_encuestainiciada" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 BA.debugLineNum = 680;BA.debugLine="cuest.ocultPanelPregunta";
Debug.ShouldStop(128);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_ocultpanelpregunta" /*RemoteObject*/ );
 BA.debugLineNum = 681;BA.debugLine="If IsNumber(l_total.text) And Not(Subs.pedidoG";
Debug.ShouldStop(256);
if (true) break;

case 12:
//if
this.state = 21;
if (RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"IsNumber",(Object)(__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")))) && RemoteObject.solveBoolean(".",parent.__c.runMethod(true,"Not",(Object)(parent._subs.runMethod(true,"_pedidoguardado" /*RemoteObject*/ ,__ref.getField(false, "ba")))))) { 
this.state = 14;
}if (true) break;

case 14:
//C
this.state = 15;
 BA.debugLineNum = 682;BA.debugLine="LogColor(\"Hay Venta\", Colors.Red)";
Debug.ShouldStop(512);
parent.__c.runVoidMethod ("LogImpl","55111819",BA.ObjectToString("Hay Venta"),parent.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 683;BA.debugLine="Private resultado1 As Int = Msgbox2($\"Va sali";
Debug.ShouldStop(1024);
_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 = 684;BA.debugLine="If resultado1 = DialogResponse.POSITIVE Then";
Debug.ShouldStop(2048);
if (true) break;

case 15:
//if
this.state = 20;
if (RemoteObject.solveBoolean("=",_resultado1,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 17;
}else 
{ BA.debugLineNum = 690;BA.debugLine="else if resultado1=DialogResponse.CANCEL Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_resultado1,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"CANCEL")))) { 
this.state = 19;
}}
if (true) break;

case 17:
//C
this.state = 20;
 BA.debugLineNum = 685;BA.debugLine="Log(\"Borrra venta\")";
Debug.ShouldStop(4096);
parent.__c.runVoidMethod ("LogImpl","55111822",RemoteObject.createImmutable("Borrra venta"),0);
 BA.debugLineNum = 686;BA.debugLine="Subs.borraPedidoClienteActual";
Debug.ShouldStop(8192);
parent._subs.runVoidMethod ("_borrapedidoclienteactual" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 687;BA.debugLine="ToastMessageShow(\"Venta Borrada\", False)";
Debug.ShouldStop(16384);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Venta Borrada")),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 689;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(65536);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 if (true) break;

case 19:
//C
this.state = 20;
 BA.debugLineNum = 691;BA.debugLine="Log(\"Pedido guardado\")";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("LogImpl","55111828",RemoteObject.createImmutable("Pedido guardado"),0);
 BA.debugLineNum = 692;BA.debugLine="Guardar_Click";
Debug.ShouldStop(524288);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardar_click" /*void*/ );
 BA.debugLineNum = 693;BA.debugLine="ToastMessageShow(\"Venta Guardada\", False)";
Debug.ShouldStop(1048576);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Venta Guardada")),(Object)(parent.__c.getField(true,"False")));
 if (true) break;

case 20:
//C
this.state = 21;
;
 if (true) break;

case 21:
//C
this.state = 22;
;
 BA.debugLineNum = 697;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
Debug.ShouldStop(16777216);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Clientes")));
 if (true) break;

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

case 24:
//C
this.state = 25;
 if (true) break;

case 25:
//C
this.state = 32;
;
 if (true) break;

case 27:
//C
this.state = 28;
 BA.debugLineNum = 706;BA.debugLine="If B4XPages.MainPage.recarga = \"1\" Then";
Debug.ShouldStop(2);
if (true) break;

case 28:
//if
this.state = 31;
if (RemoteObject.solveBoolean("=",parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_recarga" /*RemoteObject*/ ),BA.ObjectToString("1"))) { 
this.state = 30;
}if (true) break;

case 30:
//C
this.state = 31;
 BA.debugLineNum = 707;BA.debugLine="B4XPages.ShowPage(\"login\")";
Debug.ShouldStop(4);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("login")));
 if (true) break;

case 31:
//C
this.state = 32;
;
 if (true) break;

case 32:
//C
this.state = -1;
;
 BA.debugLineNum = 712;BA.debugLine="Return False";
Debug.ShouldStop(128);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 BA.debugLineNum = 713;BA.debugLine="End Sub";
Debug.ShouldStop(256);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _b4xpage_created(RemoteObject __ref,RemoteObject _root1) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Created (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,183);
if (RapidSub.canDelegate("b4xpage_created")) { __ref.runUserSub(false, "c_cliente","b4xpage_created", __ref, _root1); return;}
ResumableSub_B4XPage_Created rsub = new ResumableSub_B4XPage_Created(null,__ref,_root1);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_Created extends BA.ResumableSub {
public ResumableSub_B4XPage_Created(SHARK2.keymon.com.mx.c_cliente parent,RemoteObject __ref,RemoteObject _root1) {
this.parent = parent;
this.__ref = __ref;
this._root1 = _root1;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
SHARK2.keymon.com.mx.c_cliente parent;
RemoteObject _root1;
RemoteObject _cabonos = RemoteObject.createImmutable("");
RemoteObject _permission = RemoteObject.createImmutable("");
RemoteObject _resultc = RemoteObject.createImmutable(false);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Created (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,183);
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("Root1", _root1);
 BA.debugLineNum = 184;BA.debugLine="Root = Root1";
Debug.ShouldStop(8388608);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 187;BA.debugLine="Root.LoadLayout(\"cliente\")";
Debug.ShouldStop(67108864);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("cliente")),__ref.getField(false, "ba"));
 BA.debugLineNum = 188;BA.debugLine="cuest.Initialize(Me, \"cuest\", Root, Starter.skmt)";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(BA.ObjectToString("cuest")),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ )),(Object)(parent._starter._skmt /*RemoteObject*/ ));
 BA.debugLineNum = 189;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(268435456);
__ref.setField ("_ruta" /*RemoteObject*/ ,parent.__c.getField(false,"File").runMethod(true,"getDirInternal"));
 BA.debugLineNum = 190;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
Debug.ShouldStop(536870912);
if (true) break;

case 1:
//if
this.state = 4;
if (RemoteObject.solveBoolean("=",parent.__c.getField(false,"File").runMethod(true,"Exists",(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db"))),parent.__c.getField(true,"False"))) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 191;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
Debug.ShouldStop(1073741824);
parent.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("kmt.db")),(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db")));
 if (true) break;

case 4:
//C
this.state = 5;
;
 BA.debugLineNum = 193;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)";
Debug.ShouldStop(1);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(BA.ObjectToString("kmt.db")),(Object)(parent.__c.getField(true,"True")));
 BA.debugLineNum = 194;BA.debugLine="c = skmt.ExecQuery(\"select CAT_CL_CODIGO,CAT_CL_R";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.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_GIRO  from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))));
 BA.debugLineNum = 195;BA.debugLine="s = skmt.ExecQuery(\"select sum(pe_costo_tot) as T";
Debug.ShouldStop(4);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.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 = 196;BA.debugLine="b = skmt.ExecQuery(\"select COUNT(*) AS CLIENTE FR";
Debug.ShouldStop(8);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select COUNT(*) AS CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 197;BA.debugLine="b.Position = 0";
Debug.ShouldStop(16);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 198;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")";
Debug.ShouldStop(32);
_cabonos = __ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTE")));Debug.locals.put("cabonos", _cabonos);Debug.locals.put("cabonos", _cabonos);
 BA.debugLineNum = 199;BA.debugLine="If cabonos = 0 Then";
Debug.ShouldStop(64);
if (true) break;

case 5:
//if
this.state = 10;
if (RemoteObject.solveBoolean("=",_cabonos,BA.NumberToString(0))) { 
this.state = 7;
}else {
this.state = 9;
}if (true) break;

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

case 9:
//C
this.state = 10;
 BA.debugLineNum = 202;BA.debugLine="b_cxc.Visible = True";
Debug.ShouldStop(512);
__ref.getField(false,"_b_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"True"));
 if (true) break;

case 10:
//C
this.state = 11;
;
 BA.debugLineNum = 205;BA.debugLine="s.Position=0";
Debug.ShouldStop(4096);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 206;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(8192);
if (true) break;

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

case 13:
//C
this.state = 14;
 BA.debugLineNum = 207;BA.debugLine="c.Position=0";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 208;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 = 209;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 = 210;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 = 211;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 = 212;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 = 213;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 = 215;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")";
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_CALLE1")))));
 BA.debugLineNum = 216;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")";
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_CALLE2")))));
 BA.debugLineNum = 217;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 = 218;BA.debugLine="l_giro.Text = c.GetString(\"CAT_CL_GIRO\")";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_giro" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_GIRO")))));
 BA.debugLineNum = 219;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")";
Debug.ShouldStop(67108864);
__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 = 220;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\"";
Debug.ShouldStop(134217728);
__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 = 221;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")";
Debug.ShouldStop(268435456);
__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 = 222;BA.debugLine="l_total.Text = s.GetString(\"TOTAL_CLIE\")";
Debug.ShouldStop(536870912);
__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 = 223;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")";
Debug.ShouldStop(1073741824);
__ref.setField ("_total_cliente" /*RemoteObject*/ ,__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE"))));
 BA.debugLineNum = 224;BA.debugLine="MONTO_COMPRA = c.GetString(\"CAT_CL_MTOCOMPRA\")";
Debug.ShouldStop(-2147483648);
__ref.setField ("_monto_compra" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_MTOCOMPRA"))));
 if (true) break;

case 14:
//C
this.state = -1;
;
 BA.debugLineNum = 226;BA.debugLine="c.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 227;BA.debugLine="s.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 228;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 = 229;BA.debugLine="cmp20.Initialize(\"Printer\")";
Debug.ShouldStop(16);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(RemoteObject.createImmutable("Printer")));
 BA.debugLineNum = 230;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(32);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_CAMERA")));
 BA.debugLineNum = 231;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(64);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "b4xpage_created"), null);
this.state = 15;
return;
case 15:
//C
this.state = -1;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_resultc = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("resultC", _resultc);
;
 BA.debugLineNum = 232;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(128);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_WRITE_EXTERNAL_STORAGE")));
 BA.debugLineNum = 233;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(256);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "b4xpage_created"), null);
this.state = 16;
return;
case 16:
//C
this.state = -1;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_resultc = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("resultC", _resultc);
;
 BA.debugLineNum = 249;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _b4xpage_permissionresult(RemoteObject __ref,RemoteObject _permission,RemoteObject _resultc) throws Exception{
}
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,1086);
if (RapidSub.canDelegate("bt_qr_click")) { return __ref.runUserSub(false, "c_cliente","bt_qr_click", __ref);}
 BA.debugLineNum = 1086;BA.debugLine="Sub BT_QR_Click";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 1094;BA.debugLine="End Sub";
Debug.ShouldStop(32);
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,1129);
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 = 1129;BA.debugLine="Sub calc_ean_checksum(number As String) As String";
Debug.ShouldStop(256);
 BA.debugLineNum = 1130;BA.debugLine="Dim i As Int";
Debug.ShouldStop(512);
_i = RemoteObject.createImmutable(0);Debug.locals.put("i", _i);
 BA.debugLineNum = 1131;BA.debugLine="Dim cO As Char";
Debug.ShouldStop(1024);
_co = RemoteObject.createImmutable('\0');Debug.locals.put("cO", _co);
 BA.debugLineNum = 1132;BA.debugLine="Dim soma As Int";
Debug.ShouldStop(2048);
_soma = RemoteObject.createImmutable(0);Debug.locals.put("soma", _soma);
 BA.debugLineNum = 1133;BA.debugLine="Dim n As Int";
Debug.ShouldStop(4096);
_n = RemoteObject.createImmutable(0);Debug.locals.put("n", _n);
 BA.debugLineNum = 1134;BA.debugLine="Dim digit As Float";
Debug.ShouldStop(8192);
_digit = RemoteObject.createImmutable(0f);Debug.locals.put("digit", _digit);
 BA.debugLineNum = 1135;BA.debugLine="soma = 0";
Debug.ShouldStop(16384);
_soma = BA.numberCast(int.class, 0);Debug.locals.put("soma", _soma);
 BA.debugLineNum = 1136;BA.debugLine="For i=0 To number.Length - 1";
Debug.ShouldStop(32768);
{
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 = 1137;BA.debugLine="digit = number.SubString2(i,i+1)";
Debug.ShouldStop(65536);
_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 = 1138;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)";
Debug.ShouldStop(131072);
_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 = 1139;BA.debugLine="soma=soma+n";
Debug.ShouldStop(262144);
_soma = RemoteObject.solve(new RemoteObject[] {_soma,_n}, "+",1, 1);Debug.locals.put("soma", _soma);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1141;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10";
Debug.ShouldStop(1048576);
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 = 1142;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
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,2076);
if (RapidSub.canDelegate("cb_factura_checkedchange")) { return __ref.runUserSub(false, "c_cliente","cb_factura_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 2076;BA.debugLine="Private Sub cb_factura_CheckedChange(Checked As Bo";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 2078;BA.debugLine="If Checked Then p_cbFactura.Color = Colors.Green";
Debug.ShouldStop(536870912);
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 = 2079;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cb_giro_selectedindexchanged(RemoteObject __ref,RemoteObject _index) throws Exception{
try {
		Debug.PushSubsStack("cb_giro_SelectedIndexChanged (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,3018);
if (RapidSub.canDelegate("cb_giro_selectedindexchanged")) { return __ref.runUserSub(false, "c_cliente","cb_giro_selectedindexchanged", __ref, _index);}
Debug.locals.put("Index", _index);
 BA.debugLineNum = 3018;BA.debugLine="Private Sub cb_giro_SelectedIndexChanged (Index As";
Debug.ShouldStop(512);
 BA.debugLineNum = 3019;BA.debugLine="giros = cb_giro.SelectedItem";
Debug.ShouldStop(1024);
__ref.setField ("_giros" /*RemoteObject*/ ,__ref.getField(false,"_cb_giro" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.b4xcombobox.class, "_getselecteditem" /*RemoteObject*/ ));
 BA.debugLineNum = 3020;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
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 ("SHARK2.keymon.com.mx.dbrequestmanager");__ref.setField("_reqmanager",c_cliente._reqmanager);
 //BA.debugLineNum = 10;BA.debugLine="Dim cmd As DBCommand";
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.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 = 12;BA.debugLine="Dim credito_diponible As String";
c_cliente._credito_diponible = RemoteObject.createImmutable("");__ref.setField("_credito_diponible",c_cliente._credito_diponible);
 //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 m_lat_al, m_lon_al As String";
c_cliente._m_lat_al = RemoteObject.createImmutable("");__ref.setField("_m_lat_al",c_cliente._m_lat_al);
c_cliente._m_lon_al = RemoteObject.createImmutable("");__ref.setField("_m_lon_al",c_cliente._m_lon_al);
 //BA.debugLineNum = 22;BA.debugLine="Dim btAdmin As BluetoothAdmin";
c_cliente._btadmin = RemoteObject.createNew ("anywheresoftware.b4a.objects.Serial.BluetoothAdmin");__ref.setField("_btadmin",c_cliente._btadmin);
 //BA.debugLineNum = 23;BA.debugLine="Dim cmp20 As Serial";
c_cliente._cmp20 = RemoteObject.createNew ("anywheresoftware.b4a.objects.Serial");__ref.setField("_cmp20",c_cliente._cmp20);
 //BA.debugLineNum = 24;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 = 25;BA.debugLine="Dim PairedDevices As Map";
c_cliente._paireddevices = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_paireddevices",c_cliente._paireddevices);
 //BA.debugLineNum = 26;BA.debugLine="Dim L As List";
c_cliente._l = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_l",c_cliente._l);
 //BA.debugLineNum = 27;BA.debugLine="Dim TAMANO As Int";
c_cliente._tamano = RemoteObject.createImmutable(0);__ref.setField("_tamano",c_cliente._tamano);
 //BA.debugLineNum = 28;BA.debugLine="Dim ESPACIO As Int";
c_cliente._espacio = RemoteObject.createImmutable(0);__ref.setField("_espacio",c_cliente._espacio);
 //BA.debugLineNum = 29;BA.debugLine="Dim BLANCO As String";
c_cliente._blanco = RemoteObject.createImmutable("");__ref.setField("_blanco",c_cliente._blanco);
 //BA.debugLineNum = 30;BA.debugLine="Dim cuenta As String";
c_cliente._cuenta = RemoteObject.createImmutable("");__ref.setField("_cuenta",c_cliente._cuenta);
 //BA.debugLineNum = 31;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 = 32;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 Printer1 As EscPosPrinter";
c_cliente._printer1 = RemoteObject.createNew ("SHARK2.keymon.com.mx.escposprinter");__ref.setField("_printer1",c_cliente._printer1);
 //BA.debugLineNum = 34;BA.debugLine="Dim c As Cursor";
c_cliente._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_cliente._c);
 //BA.debugLineNum = 35;BA.debugLine="Dim s As Cursor";
c_cliente._s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s",c_cliente._s);
 //BA.debugLineNum = 36;BA.debugLine="Dim DD As Cursor";
c_cliente._dd = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_dd",c_cliente._dd);
 //BA.debugLineNum = 37;BA.debugLine="Dim c2 As Cursor";
c_cliente._c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c2",c_cliente._c2);
 //BA.debugLineNum = 38;BA.debugLine="Dim ListView1 As ListView";
c_cliente._listview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_listview1",c_cliente._listview1);
 //BA.debugLineNum = 39;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 = 40;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 = 41;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 = 42;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 = 43;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 = 44;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 = 45;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 = 46;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 = 47;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 = 48;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 = 49;BA.debugLine="Dim gest As Button";
c_cliente._gest = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_gest",c_cliente._gest);
 //BA.debugLineNum = 50;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 = 51;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 impresoraConectada As Boolean = False";
c_cliente._impresoraconectada = c_cliente.__c.getField(true,"False");__ref.setField("_impresoraconectada",c_cliente._impresoraconectada);
 //BA.debugLineNum = 53;BA.debugLine="Dim Tels As Button";
c_cliente._tels = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_tels",c_cliente._tels);
 //BA.debugLineNum = 54;BA.debugLine="Dim Label10 As Label";
c_cliente._label10 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label10",c_cliente._label10);
 //BA.debugLineNum = 55;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 btAdmin As BluetoothAdmin";
c_cliente._btadmin = RemoteObject.createNew ("anywheresoftware.b4a.objects.Serial.BluetoothAdmin");__ref.setField("_btadmin",c_cliente._btadmin);
 //BA.debugLineNum = 57;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 errorImpresora As Int = 0";
c_cliente._errorimpresora = BA.numberCast(int.class, 0);__ref.setField("_errorimpresora",c_cliente._errorimpresora);
 //BA.debugLineNum = 59;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 = 60;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 = 61;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 = 62;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 = 63;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 = 64;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 = 65;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 = 66;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 = 67;BA.debugLine="Dim DATOS As Button";
c_cliente._datos = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_datos",c_cliente._datos);
 //BA.debugLineNum = 68;BA.debugLine="Dim Guardar As Button";
c_cliente._guardar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_guardar",c_cliente._guardar);
 //BA.debugLineNum = 69;BA.debugLine="Dim NUEVO As Button";
c_cliente._nuevo = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_nuevo",c_cliente._nuevo);
 //BA.debugLineNum = 72;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 = 73;BA.debugLine="Dim c2 As Cursor";
c_cliente._c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c2",c_cliente._c2);
 //BA.debugLineNum = 74;BA.debugLine="Dim S2 As Cursor";
c_cliente._s2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s2",c_cliente._s2);
 //BA.debugLineNum = 75;BA.debugLine="Private s As Cursor";
c_cliente._s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s",c_cliente._s);
 //BA.debugLineNum = 76;BA.debugLine="Dim res As String";
c_cliente._res = RemoteObject.createImmutable("");__ref.setField("_res",c_cliente._res);
 //BA.debugLineNum = 77;BA.debugLine="Dim Credi As Cursor";
c_cliente._credi = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_credi",c_cliente._credi);
 //BA.debugLineNum = 78;BA.debugLine="Private HIST As Button";
c_cliente._hist = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_hist",c_cliente._hist);
 //BA.debugLineNum = 79;BA.debugLine="Private MONTO_COMPRA As String";
c_cliente._monto_compra = RemoteObject.createImmutable("");__ref.setField("_monto_compra",c_cliente._monto_compra);
 //BA.debugLineNum = 80;BA.debugLine="Private META As String";
c_cliente._meta = RemoteObject.createImmutable("");__ref.setField("_meta",c_cliente._meta);
 //BA.debugLineNum = 81;BA.debugLine="Private META2 As String";
c_cliente._meta2 = RemoteObject.createImmutable("");__ref.setField("_meta2",c_cliente._meta2);
 //BA.debugLineNum = 82;BA.debugLine="Private VERIFICA As String";
c_cliente._verifica = RemoteObject.createImmutable("");__ref.setField("_verifica",c_cliente._verifica);
 //BA.debugLineNum = 83;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 = 84;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 = 86;BA.debugLine="Dim CODIGO As String";
c_cliente._codigo = RemoteObject.createImmutable("");__ref.setField("_codigo",c_cliente._codigo);
 //BA.debugLineNum = 88;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 = 89;BA.debugLine="Dim CUANTOS As String";
c_cliente._cuantos = RemoteObject.createImmutable("");__ref.setField("_cuantos",c_cliente._cuantos);
 //BA.debugLineNum = 90;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 = 91;BA.debugLine="Dim Toggla As Toggle";
c_cliente._toggla = RemoteObject.createNew ("com.rootsoft.togglelibrary.ToggleLibrary");__ref.setField("_toggla",c_cliente._toggla);
 //BA.debugLineNum = 92;BA.debugLine="Dim tgl As Toggle";
c_cliente._tgl = RemoteObject.createNew ("com.rootsoft.togglelibrary.ToggleLibrary");__ref.setField("_tgl",c_cliente._tgl);
 //BA.debugLineNum = 93;BA.debugLine="Dim pre_act As Float";
c_cliente._pre_act = RemoteObject.createImmutable(0f);__ref.setField("_pre_act",c_cliente._pre_act);
 //BA.debugLineNum = 95;BA.debugLine="Private Panel1 As Panel";
c_cliente._panel1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel1",c_cliente._panel1);
 //BA.debugLineNum = 96;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 = 97;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 = 98;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 = 99;BA.debugLine="Dim ALMACEN As String";
c_cliente._almacen = RemoteObject.createImmutable("");__ref.setField("_almacen",c_cliente._almacen);
 //BA.debugLineNum = 100;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 = 101;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 = 102;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 = 103;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 = 104;BA.debugLine="Private Panel2 As Panel";
c_cliente._panel2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel2",c_cliente._panel2);
 //BA.debugLineNum = 105;BA.debugLine="Private CONTADOR_E As String";
c_cliente._contador_e = RemoteObject.createImmutable("");__ref.setField("_contador_e",c_cliente._contador_e);
 //BA.debugLineNum = 106;BA.debugLine="Private HR_RES1 As String";
c_cliente._hr_res1 = RemoteObject.createImmutable("");__ref.setField("_hr_res1",c_cliente._hr_res1);
 //BA.debugLineNum = 107;BA.debugLine="Private HR_RES2 As String";
c_cliente._hr_res2 = RemoteObject.createImmutable("");__ref.setField("_hr_res2",c_cliente._hr_res2);
 //BA.debugLineNum = 108;BA.debugLine="Private HR_RES3 As String";
c_cliente._hr_res3 = RemoteObject.createImmutable("");__ref.setField("_hr_res3",c_cliente._hr_res3);
 //BA.debugLineNum = 109;BA.debugLine="Private EXISTE As String";
c_cliente._existe = RemoteObject.createImmutable("");__ref.setField("_existe",c_cliente._existe);
 //BA.debugLineNum = 110;BA.debugLine="Private TELEFONO As String";
c_cliente._telefono = RemoteObject.createImmutable("");__ref.setField("_telefono",c_cliente._telefono);
 //BA.debugLineNum = 111;BA.debugLine="Dim t1 As Timer";
c_cliente._t1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.Timer");__ref.setField("_t1",c_cliente._t1);
 //BA.debugLineNum = 112;BA.debugLine="Private RB1 As RadioButton";
c_cliente._rb1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb1",c_cliente._rb1);
 //BA.debugLineNum = 113;BA.debugLine="Private RB2 As RadioButton";
c_cliente._rb2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb2",c_cliente._rb2);
 //BA.debugLineNum = 114;BA.debugLine="Private RB3 As RadioButton";
c_cliente._rb3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb3",c_cliente._rb3);
 //BA.debugLineNum = 115;BA.debugLine="Private RB4 As RadioButton";
c_cliente._rb4 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb4",c_cliente._rb4);
 //BA.debugLineNum = 116;BA.debugLine="Private RB5 As RadioButton";
c_cliente._rb5 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_rb5",c_cliente._rb5);
 //BA.debugLineNum = 118;BA.debugLine="Private stay_hh As String";
c_cliente._stay_hh = RemoteObject.createImmutable("");__ref.setField("_stay_hh",c_cliente._stay_hh);
 //BA.debugLineNum = 119;BA.debugLine="Private stay_mi As String";
c_cliente._stay_mi = RemoteObject.createImmutable("");__ref.setField("_stay_mi",c_cliente._stay_mi);
 //BA.debugLineNum = 120;BA.debugLine="Private stay_ss As String";
c_cliente._stay_ss = RemoteObject.createImmutable("");__ref.setField("_stay_ss",c_cliente._stay_ss);
 //BA.debugLineNum = 122;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 = 123;BA.debugLine="Dim result As Int";
c_cliente._result = RemoteObject.createImmutable(0);__ref.setField("_result",c_cliente._result);
 //BA.debugLineNum = 124;BA.debugLine="Private cercavalor As String";
c_cliente._cercavalor = RemoteObject.createImmutable("");__ref.setField("_cercavalor",c_cliente._cercavalor);
 //BA.debugLineNum = 125;BA.debugLine="Private LA_RUTA As String";
c_cliente._la_ruta = RemoteObject.createImmutable("");__ref.setField("_la_ruta",c_cliente._la_ruta);
 //BA.debugLineNum = 127;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 = 128;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 = 130;BA.debugLine="Dim CODIGO As String";
c_cliente._codigo = RemoteObject.createImmutable("");__ref.setField("_codigo",c_cliente._codigo);
 //BA.debugLineNum = 131;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 = 132;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 = 133;BA.debugLine="Dim venimosDeTicketsDia As Boolean = False";
c_cliente._venimosdeticketsdia = c_cliente.__c.getField(true,"False");__ref.setField("_venimosdeticketsdia",c_cliente._venimosdeticketsdia);
 //BA.debugLineNum = 134;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 = 135;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 = 136;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 = 137;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 = 138;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 = 139;BA.debugLine="Dim b As Cursor";
c_cliente._b = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_b",c_cliente._b);
 //BA.debugLineNum = 140;BA.debugLine="Private b_cxc As Button";
c_cliente._b_cxc = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_cxc",c_cliente._b_cxc);
 //BA.debugLineNum = 141;BA.debugLine="Private clv_abonos As CustomListView";
c_cliente._clv_abonos = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv_abonos",c_cliente._clv_abonos);
 //BA.debugLineNum = 142;BA.debugLine="Private l_folio As Label";
c_cliente._l_folio = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_folio",c_cliente._l_folio);
 //BA.debugLineNum = 143;BA.debugLine="Private l_saldo As Label";
c_cliente._l_saldo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_saldo",c_cliente._l_saldo);
 //BA.debugLineNum = 144;BA.debugLine="Dim d As Cursor";
c_cliente._d = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_d",c_cliente._d);
 //BA.debugLineNum = 145;BA.debugLine="Dim f As Cursor";
c_cliente._f = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_f",c_cliente._f);
 //BA.debugLineNum = 146;BA.debugLine="Private l_montoabonostotal As Label";
c_cliente._l_montoabonostotal = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_montoabonostotal",c_cliente._l_montoabonostotal);
 //BA.debugLineNum = 147;BA.debugLine="Dim j As Cursor";
c_cliente._j = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_j",c_cliente._j);
 //BA.debugLineNum = 148;BA.debugLine="Dim h As Cursor";
c_cliente._h = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_h",c_cliente._h);
 //BA.debugLineNum = 149;BA.debugLine="Dim distance As Long";
c_cliente._distance = RemoteObject.createImmutable(0L);__ref.setField("_distance",c_cliente._distance);
 //BA.debugLineNum = 150;BA.debugLine="Dim distance2 As Long";
c_cliente._distance2 = RemoteObject.createImmutable(0L);__ref.setField("_distance2",c_cliente._distance2);
 //BA.debugLineNum = 151;BA.debugLine="Dim cuest As C_Cuestionario";
c_cliente._cuest = RemoteObject.createNew ("SHARK2.keymon.com.mx.c_cuestionario");__ref.setField("_cuest",c_cliente._cuest);
 //BA.debugLineNum = 152;BA.debugLine="Private b_ventaabordo As Button";
c_cliente._b_ventaabordo = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_ventaabordo",c_cliente._b_ventaabordo);
 //BA.debugLineNum = 153;BA.debugLine="Private l_factura As Label";
c_cliente._l_factura = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_factura",c_cliente._l_factura);
 //BA.debugLineNum = 154;BA.debugLine="Private l_limite As Label";
c_cliente._l_limite = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_limite",c_cliente._l_limite);
 //BA.debugLineNum = 155;BA.debugLine="Private et_montoacredito As EditText";
c_cliente._et_montoacredito = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_montoacredito",c_cliente._et_montoacredito);
 //BA.debugLineNum = 156;BA.debugLine="Private b_cancred As Button";
c_cliente._b_cancred = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_cancred",c_cliente._b_cancred);
 //BA.debugLineNum = 157;BA.debugLine="Private b_acred As Button";
c_cliente._b_acred = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_acred",c_cliente._b_acred);
 //BA.debugLineNum = 158;BA.debugLine="Private p_credito As Panel";
c_cliente._p_credito = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_credito",c_cliente._p_credito);
 //BA.debugLineNum = 159;BA.debugLine="Dim banderaimp As Int = 0";
c_cliente._banderaimp = BA.numberCast(int.class, 0);__ref.setField("_banderaimp",c_cliente._banderaimp);
 //BA.debugLineNum = 161;BA.debugLine="Dim k1,k2,k3 As String";
c_cliente._k1 = RemoteObject.createImmutable("");__ref.setField("_k1",c_cliente._k1);
c_cliente._k2 = RemoteObject.createImmutable("");__ref.setField("_k2",c_cliente._k2);
c_cliente._k3 = RemoteObject.createImmutable("");__ref.setField("_k3",c_cliente._k3);
 //BA.debugLineNum = 162;BA.debugLine="Private b_ubicar As Button";
c_cliente._b_ubicar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_ubicar",c_cliente._b_ubicar);
 //BA.debugLineNum = 163;BA.debugLine="Private b_venta_credito As Button";
c_cliente._b_venta_credito = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_venta_credito",c_cliente._b_venta_credito);
 //BA.debugLineNum = 164;BA.debugLine="Private b_act_coords As Button";
c_cliente._b_act_coords = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_act_coords",c_cliente._b_act_coords);
 //BA.debugLineNum = 165;BA.debugLine="Private l_giro As Label";
c_cliente._l_giro = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_giro",c_cliente._l_giro);
 //BA.debugLineNum = 166;BA.debugLine="Private p_atiende As Panel";
c_cliente._p_atiende = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_atiende",c_cliente._p_atiende);
 //BA.debugLineNum = 167;BA.debugLine="Private et_atiende As EditText";
c_cliente._et_atiende = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_atiende",c_cliente._et_atiende);
 //BA.debugLineNum = 168;BA.debugLine="Private b_cancelatiende As Button";
c_cliente._b_cancelatiende = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_cancelatiende",c_cliente._b_cancelatiende);
 //BA.debugLineNum = 169;BA.debugLine="Private b_acepatiende As Button";
c_cliente._b_acepatiende = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_acepatiende",c_cliente._b_acepatiende);
 //BA.debugLineNum = 170;BA.debugLine="Private p_giro As Panel";
c_cliente._p_giro = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_giro",c_cliente._p_giro);
 //BA.debugLineNum = 171;BA.debugLine="Private cb_giro As B4XComboBox";
c_cliente._cb_giro = RemoteObject.createNew ("SHARK2.keymon.com.mx.b4xcombobox");__ref.setField("_cb_giro",c_cliente._cb_giro);
 //BA.debugLineNum = 172;BA.debugLine="Private b_cancelgiro As Button";
c_cliente._b_cancelgiro = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_cancelgiro",c_cliente._b_cancelgiro);
 //BA.debugLineNum = 173;BA.debugLine="Private b_acepgiro As Button";
c_cliente._b_acepgiro = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_acepgiro",c_cliente._b_acepgiro);
 //BA.debugLineNum = 174;BA.debugLine="Dim giros As String";
c_cliente._giros = RemoteObject.createImmutable("");__ref.setField("_giros",c_cliente._giros);
 //BA.debugLineNum = 175;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _createlistitem(RemoteObject __ref,RemoteObject _mostrar,RemoteObject _mostrar1) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2607);
if (RapidSub.canDelegate("createlistitem")) { return __ref.runUserSub(false, "c_cliente","createlistitem", __ref, _mostrar, _mostrar1);}
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
Debug.locals.put("mostrar", _mostrar);
Debug.locals.put("mostrar1", _mostrar1);
 BA.debugLineNum = 2607;BA.debugLine="Sub CreateListItem(mostrar As String, mostrar1 As";
Debug.ShouldStop(16384);
 BA.debugLineNum = 2608;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(32768);
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
 BA.debugLineNum = 2609;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 1, 10)";
Debug.ShouldStop(65536);
_p.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 10)));
 BA.debugLineNum = 2610;BA.debugLine="p.LoadLayout(\"folioabono\")";
Debug.ShouldStop(131072);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("folioabono")),__ref.getField(false, "ba"));
 BA.debugLineNum = 2611;BA.debugLine="p.Height= 32dip";
Debug.ShouldStop(262144);
_p.runMethod(true,"setHeight",c_cliente.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 32))));
 BA.debugLineNum = 2612;BA.debugLine="p.Width = 80dip";
Debug.ShouldStop(524288);
_p.runMethod(true,"setWidth",c_cliente.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 80))));
 BA.debugLineNum = 2614;BA.debugLine="l_folio.Text = mostrar";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_folio" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_mostrar));
 BA.debugLineNum = 2615;BA.debugLine="l_saldo.Text = mostrar1";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_saldo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_mostrar1));
 BA.debugLineNum = 2618;BA.debugLine="Return p";
Debug.ShouldStop(33554432);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 2619;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cuest_preguntacontestada(RemoteObject __ref,RemoteObject _m) throws Exception{
try {
		Debug.PushSubsStack("cuest_preguntaContestada (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2621);
if (RapidSub.canDelegate("cuest_preguntacontestada")) { return __ref.runUserSub(false, "c_cliente","cuest_preguntacontestada", __ref, _m);}
Debug.locals.put("m", _m);
 BA.debugLineNum = 2621;BA.debugLine="Sub cuest_preguntaContestada(m As Map)";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 2623;BA.debugLine="Log(m)";
Debug.ShouldStop(1073741824);
c_cliente.__c.runVoidMethod ("LogImpl","58192002",BA.ObjectToString(_m),0);
 BA.debugLineNum = 2626;BA.debugLine="m.Get(\"panel\").As(Panel).RemoveView 'Quitamos le";
Debug.ShouldStop(2);
(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("panel")))))).runVoidMethod ("RemoveView");
 BA.debugLineNum = 2627;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
Debug.ShouldStop(4);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("dd/MM/yyyy"));
 BA.debugLineNum = 2628;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(8);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 2629;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from CUESTIONA";
Debug.ShouldStop(16);
c_cliente._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("delete from CUESTIONARIO where Q_IDCLIENTE = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("' and Q_IDPREGUNTA = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("idPregunta")))))),RemoteObject.createImmutable("'")))));
 BA.debugLineNum = 2630;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into CUESTIONA";
Debug.ShouldStop(32);
c_cliente._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("insert into CUESTIONARIO (Q_RUTA, Q_ALMACEN, Q_IDCLIENTE, Q_IDPREGUNTA, Q_PREGUNTA, Q_IDRESPUESTA, Q_RESPUESTA, Q_FECHA) values ('"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_cliente._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))))),RemoteObject.createImmutable("', '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),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.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("idPregunta")))))),RemoteObject.createImmutable("', '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("pregunta")))))),RemoteObject.createImmutable("', '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("idRespuesta")))))),RemoteObject.createImmutable("', '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))))),RemoteObject.createImmutable("', '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow")))))),RemoteObject.createImmutable(" "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((c_cliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow")))))),RemoteObject.createImmutable("')")))));
 BA.debugLineNum = 2631;BA.debugLine="Select Case m.Get(\"idPregunta\")";
Debug.ShouldStop(64);
switch (BA.switchObjectToInt(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("idPregunta")))),RemoteObject.createImmutable(("1")),RemoteObject.createImmutable(("2")),RemoteObject.createImmutable(("3")),RemoteObject.createImmutable(("4")),RemoteObject.createImmutable(("5")),RemoteObject.createImmutable(("6")))) {
case 0: {
 BA.debugLineNum = 2633;BA.debugLine="If m.Get(\"respuesta\") = \"No, está enrejado o no";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable(("No, está enrejado o no se tiene acceso")))) { 
 BA.debugLineNum = 2634;BA.debugLine="Log(\"Tiendajon / Ventana / Kiosko\")";
Debug.ShouldStop(512);
c_cliente.__c.runVoidMethod ("LogImpl","58192013",RemoteObject.createImmutable("Tiendajon / Ventana / Kiosko"),0);
 BA.debugLineNum = 2635;BA.debugLine="ToastMessageShow(\"Tiendajon / Ventana / Kiosko";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Tiendajon / Ventana / Kiosko")),(Object)(c_cliente.__c.getField(true,"False")));
 BA.debugLineNum = 2636;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
Debug.ShouldStop(2048);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("6")),(Object)(BA.ObjectToString("¿Cuenta con caja de salida para cobro con sistema de computo?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("Si, tiene sistema de computo para cobro"),RemoteObject.createImmutable("No")})))));
 }else 
{ BA.debugLineNum = 2637;BA.debugLine="Else if m.Get(\"respuesta\") = \"Si se pude accede";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable(("Si se pude acceder")))) { 
 BA.debugLineNum = 2638;BA.debugLine="cuest.agregaPregunta(\"2\", \"¿Tiene al menos 2 p";
Debug.ShouldStop(8192);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("2")),(Object)(BA.ObjectToString("¿Tiene al menos 2 pasillos con acceso directo a la mercancía?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("Si tiene al menos 2 pasillos con acceso directo a la mercancía"),RemoteObject.createImmutable("No tiene pasillos o solo uno central")})))));
 }}
;
 break; }
case 1: {
 BA.debugLineNum = 2641;BA.debugLine="If m.Get(\"respuesta\") = \"Si tiene al menos 2 pa";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable(("Si tiene al menos 2 pasillos con acceso directo a la mercancía")))) { 
 BA.debugLineNum = 2642;BA.debugLine="Log(\"Mini-Super\")";
Debug.ShouldStop(131072);
c_cliente.__c.runVoidMethod ("LogImpl","58192021",RemoteObject.createImmutable("Mini-Super"),0);
 BA.debugLineNum = 2643;BA.debugLine="ToastMessageShow(\"Mini-Super\", False)";
Debug.ShouldStop(262144);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Mini-Super")),(Object)(c_cliente.__c.getField(true,"False")));
 BA.debugLineNum = 2644;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
Debug.ShouldStop(524288);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("6")),(Object)(BA.ObjectToString("¿Cuenta con caja de salida para cobro con sistema de computo?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("Si, tiene sistema de computo para cobro"),RemoteObject.createImmutable("No")})))));
 }else 
{ BA.debugLineNum = 2645;BA.debugLine="else If m.Get(\"respuesta\") = \"No tiene pasillos";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable(("No tiene pasillos o solo uno central")))) { 
 BA.debugLineNum = 2646;BA.debugLine="cuest.agregaPregunta(\"3\", \"¿Cuenta con enfriad";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("3")),(Object)(BA.ObjectToString("¿Cuenta con enfriador horizontal para venta de perecederos como queso, jamon, crema, etc.?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("Si"),RemoteObject.createImmutable("No tiene enfriador horizontal.")})))));
 }}
;
 break; }
case 2: {
 BA.debugLineNum = 2649;BA.debugLine="Log(\"|\"&m.Get(\"respuesta\")&\"|\")";
Debug.ShouldStop(16777216);
c_cliente.__c.runVoidMethod ("LogImpl","58192028",RemoteObject.concat(RemoteObject.createImmutable("|"),_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable("|")),0);
 BA.debugLineNum = 2650;BA.debugLine="If m.Get(\"respuesta\") = \"Si\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable(("Si")))) { 
 BA.debugLineNum = 2651;BA.debugLine="Log(\"Miscelanea\")";
Debug.ShouldStop(67108864);
c_cliente.__c.runVoidMethod ("LogImpl","58192030",RemoteObject.createImmutable("Miscelanea"),0);
 BA.debugLineNum = 2652;BA.debugLine="ToastMessageShow(\"Miscelanea\", False)";
Debug.ShouldStop(134217728);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Miscelanea")),(Object)(c_cliente.__c.getField(true,"False")));
 BA.debugLineNum = 2653;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("6")),(Object)(BA.ObjectToString("¿Cuenta con caja de salida para cobro con sistema de computo?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("Si, tiene sistema de computo para cobro"),RemoteObject.createImmutable("No")})))));
 }else 
{ BA.debugLineNum = 2654;BA.debugLine="else If m.Get(\"respuesta\") = \"No tiene enfriado";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable(("No tiene enfriador horizontal.")))) { 
 BA.debugLineNum = 2655;BA.debugLine="cuest.agregaPregunta(\"4\", \"¿El local esta enfo";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("4")),(Object)(BA.ObjectToString("¿El local esta enfocado a venta especializada?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("No"),RemoteObject.createImmutable("Si")})))));
 }}
;
 break; }
case 3: {
 BA.debugLineNum = 2658;BA.debugLine="If m.Get(\"respuesta\") = \"No\" Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable(("No")))) { 
 BA.debugLineNum = 2659;BA.debugLine="Log(\"Abarrotera\")";
Debug.ShouldStop(4);
c_cliente.__c.runVoidMethod ("LogImpl","58192038",RemoteObject.createImmutable("Abarrotera"),0);
 BA.debugLineNum = 2660;BA.debugLine="ToastMessageShow(\"Abarrotera\", False)";
Debug.ShouldStop(8);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Abarrotera")),(Object)(c_cliente.__c.getField(true,"False")));
 BA.debugLineNum = 2661;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
Debug.ShouldStop(16);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("6")),(Object)(BA.ObjectToString("¿Cuenta con caja de salida para cobro con sistema de computo?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("Si, tiene sistema de computo para cobro"),RemoteObject.createImmutable("No")})))));
 }else 
{ BA.debugLineNum = 2662;BA.debugLine="else If m.Get(\"respuesta\") = \"Si\" Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))),RemoteObject.createImmutable(("Si")))) { 
 BA.debugLineNum = 2663;BA.debugLine="cuest.agregaPregunta(\"5\", \"¿Cual venta especia";
Debug.ShouldStop(64);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("5")),(Object)(BA.ObjectToString("¿Cual venta especializada?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {7},new Object[] {BA.ObjectToString("Carnicería / Pollería"),BA.ObjectToString("Cremería"),BA.ObjectToString("Depósito / Vinateria"),BA.ObjectToString("Dulcería"),BA.ObjectToString("Farmacia"),BA.ObjectToString("Fonda / Restaurante / Cafetería"),RemoteObject.createImmutable("Verdulería")})))));
 }}
;
 break; }
case 4: {
 BA.debugLineNum = 2666;BA.debugLine="Log(m.Get(\"respuesta\"))";
Debug.ShouldStop(512);
c_cliente.__c.runVoidMethod ("LogImpl","58192045",BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta"))))),0);
 BA.debugLineNum = 2667;BA.debugLine="ToastMessageShow(m.Get(\"respuesta\"), False)";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))))),(Object)(c_cliente.__c.getField(true,"False")));
 BA.debugLineNum = 2672;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
Debug.ShouldStop(32768);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.c_cuestionario.class, "_agregapregunta" /*RemoteObject*/ ,(Object)(BA.ObjectToString("6")),(Object)(BA.ObjectToString("¿Cuenta con caja de salida para cobro con sistema de computo?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("Si, tiene sistema de computo para cobro"),RemoteObject.createImmutable("No")})))));
 break; }
case 5: {
 BA.debugLineNum = 2675;BA.debugLine="Log(m.Get(\"respuesta\"))";
Debug.ShouldStop(262144);
c_cliente.__c.runVoidMethod ("LogImpl","58192054",BA.ObjectToString(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta"))))),0);
 BA.debugLineNum = 2676;BA.debugLine="ToastMessageShow(m.Get(\"respuesta\"), False)";
Debug.ShouldStop(524288);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(_m.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("respuesta")))))),(Object)(c_cliente.__c.getField(true,"False")));
 BA.debugLineNum = 2677;BA.debugLine="Log(\">>>>>>>>>>  \" & cuest.encuestaIniciada)";
Debug.ShouldStop(1048576);
c_cliente.__c.runVoidMethod ("LogImpl","58192056",RemoteObject.concat(RemoteObject.createImmutable(">>>>>>>>>>  "),__ref.getField(false,"_cuest" /*RemoteObject*/ ).getField(true,"_encuestainiciada" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2678;BA.debugLine="cuest.encuestaIniciada = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cuest" /*RemoteObject*/ ).setField ("_encuestainiciada" /*RemoteObject*/ ,c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 2679;BA.debugLine="Log(\">>>>>>>>>>  \" & cuest.encuestaIniciada)";
Debug.ShouldStop(4194304);
c_cliente.__c.runVoidMethod ("LogImpl","58192058",RemoteObject.concat(RemoteObject.createImmutable(">>>>>>>>>>  "),__ref.getField(false,"_cuest" /*RemoteObject*/ ).getField(true,"_encuestainiciada" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2682;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(33554432);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_b4xpage_appear" /*RemoteObject*/ );
 break; }
}
;
 BA.debugLineNum = 2685;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _datos_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("DATOS_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,723);
if (RapidSub.canDelegate("datos_click")) { return __ref.runUserSub(false, "c_cliente","datos_click", __ref);}
 BA.debugLineNum = 723;BA.debugLine="Sub DATOS_Click";
Debug.ShouldStop(262144);
 BA.debugLineNum = 724;BA.debugLine="B4XPages.ShowPage(\"telefonos\")";
Debug.ShouldStop(524288);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("telefonos")));
 BA.debugLineNum = 725;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
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,615);
if (RapidSub.canDelegate("gest_click")) { return __ref.runUserSub(false, "c_cliente","gest_click", __ref);}
 BA.debugLineNum = 615;BA.debugLine="Sub gest_Click";
Debug.ShouldStop(64);
 BA.debugLineNum = 616;BA.debugLine="If la_cuenta.Text = \"0\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 617;BA.debugLine="B4XPages.MainPage.tipo_venta = \"ABORDO\"";
Debug.ShouldStop(256);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_tipo_venta" /*RemoteObject*/ ,BA.ObjectToString("ABORDO"));
 }else 
{ BA.debugLineNum = 618;BA.debugLine="Else If la_cuenta.Text = \"1\" Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 619;BA.debugLine="B4XPages.MainPage.tipo_venta = \"RECARGA\"";
Debug.ShouldStop(1024);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_tipo_venta" /*RemoteObject*/ ,BA.ObjectToString("RECARGA"));
 }else {
 BA.debugLineNum = 621;BA.debugLine="B4XPages.MainPage.tipo_venta = \"PREVENTA_CONTADO";
Debug.ShouldStop(4096);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_tipo_venta" /*RemoteObject*/ ,BA.ObjectToString("PREVENTA_CONTADO"));
 }}
;
 BA.debugLineNum = 653;BA.debugLine="B4XPages.ShowPage(\"productos\")";
Debug.ShouldStop(4096);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("productos")));
 BA.debugLineNum = 654;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
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,555);
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 _l3 = RemoteObject.declareNull("anywheresoftware.b4a.gps.LocationWrapper");
RemoteObject _geo = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 555;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(1024);
 BA.debugLineNum = 557;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized";
Debug.ShouldStop(4096);
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 = 558;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(8192);
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 = 559;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(16384);
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 = 563;BA.debugLine="Dim l1, l2,l3 As Location";
Debug.ShouldStop(262144);
_l1 = RemoteObject.createNew ("anywheresoftware.b4a.gps.LocationWrapper");Debug.locals.put("l1", _l1);
_l2 = RemoteObject.createNew ("anywheresoftware.b4a.gps.LocationWrapper");Debug.locals.put("l2", _l2);
_l3 = RemoteObject.createNew ("anywheresoftware.b4a.gps.LocationWrapper");Debug.locals.put("l3", _l3);
 BA.debugLineNum = 564;BA.debugLine="l1.Initialize2(B4XPages.MainPage.lat_gps, B4XPage";
Debug.ShouldStop(524288);
_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 = 566;BA.debugLine="l2.Initialize2(m_lat, m_lon)";
Debug.ShouldStop(2097152);
_l2.runVoidMethod ("Initialize2",(Object)(__ref.getField(true,"_m_lat" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_m_lon" /*RemoteObject*/ )));
 BA.debugLineNum = 567;BA.debugLine="l3.Initialize2(m_lat_al,m_lon_al)";
Debug.ShouldStop(4194304);
_l3.runVoidMethod ("Initialize2",(Object)(__ref.getField(true,"_m_lat_al" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_m_lon_al" /*RemoteObject*/ )));
 BA.debugLineNum = 568;BA.debugLine="BT_QR.Enabled = True";
Debug.ShouldStop(8388608);
__ref.getField(false,"_bt_qr" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 569;BA.debugLine="LA_GPS.TextColor = Colors.Blue";
Debug.ShouldStop(16777216);
__ref.getField(false,"_la_gps" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 570;BA.debugLine="LA_GPS.Text = \"CON UBICACION GPS\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_la_gps" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CON UBICACION GPS"));
 BA.debugLineNum = 573;BA.debugLine="distance =    l1.DistanceTo(l2)  'the result is i";
Debug.ShouldStop(268435456);
__ref.setField ("_distance" /*RemoteObject*/ ,BA.numberCast(long.class, _l1.runMethod(true,"DistanceTo",(Object)((_l2.getObject())))));
 BA.debugLineNum = 574;BA.debugLine="distance2 =    l1.DistanceTo(l3)  'the result is";
Debug.ShouldStop(536870912);
__ref.setField ("_distance2" /*RemoteObject*/ ,BA.numberCast(long.class, _l1.runMethod(true,"DistanceTo",(Object)((_l3.getObject())))));
 BA.debugLineNum = 577;BA.debugLine="Dim geo As Cursor = Starter.skmt.ExecQuery(\"SELEC";
Debug.ShouldStop(1);
_geo = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_geo = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_cliente._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT ACTIVA FROM GEOCERCA"))));Debug.locals.put("geo", _geo);Debug.locals.put("geo", _geo);
 BA.debugLineNum = 578;BA.debugLine="If geo.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_geo.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 579;BA.debugLine="geo.Position = 0";
Debug.ShouldStop(4);
_geo.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 580;BA.debugLine="If geo.GetInt(\"ACTIVA\") = 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",_geo.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("ACTIVA"))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 581;BA.debugLine="Tels.Visible = True";
Debug.ShouldStop(16);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 583;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }else 
{ BA.debugLineNum = 584;BA.debugLine="Else If geo.GetInt(\"ACTIVA\") = 1 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_geo.runMethod(true,"GetInt",(Object)(RemoteObject.createImmutable("ACTIVA"))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 585;BA.debugLine="If distance2 < 100 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_distance2" /*RemoteObject*/ ),BA.numberCast(long.class, 100))) { 
 BA.debugLineNum = 586;BA.debugLine="LA_GEO.TextColor = Colors.Blue";
Debug.ShouldStop(512);
__ref.getField(false,"_la_geo" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 587;BA.debugLine="Tels.Visible = True";
Debug.ShouldStop(1024);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 589;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(4096);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 591;BA.debugLine="If distance < 50 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_distance" /*RemoteObject*/ ),BA.numberCast(long.class, 50))) { 
 BA.debugLineNum = 592;BA.debugLine="LA_GEO.TextColor = Colors.Blue";
Debug.ShouldStop(32768);
__ref.getField(false,"_la_geo" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 593;BA.debugLine="Tels.Visible = True";
Debug.ShouldStop(65536);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 595;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(262144);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 597;BA.debugLine="LA_GEO.TextColor = Colors.Red";
Debug.ShouldStop(1048576);
__ref.getField(false,"_la_geo" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 598;BA.debugLine="Tels.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 599;BA.debugLine="gest.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"False"));
 };
 };
 }}
;
 };
 BA.debugLineNum = 605;BA.debugLine="LA_GEO.Text= $\"$1.2{distance/1000} kms\"$";
Debug.ShouldStop(268435456);
__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[] {__ref.getField(true,"_distance" /*RemoteObject*/ ),RemoteObject.createImmutable(1000)}, "/",0, 0)))),RemoteObject.createImmutable(" kms")))));
 BA.debugLineNum = 606;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(536870912);
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 = 607;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
Debug.ShouldStop(1073741824);
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 = 608;BA.debugLine="CallSubDelayed(Tracker, \"CreateLocationRequest\")";
Debug.ShouldStop(-2147483648);
c_cliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_cliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("CreateLocationRequest")));
 BA.debugLineNum = 609;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _guadaventa2(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("GUADAVENTA2 (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,945);
if (RapidSub.canDelegate("guadaventa2")) { return __ref.runUserSub(false, "c_cliente","guadaventa2", __ref);}
RemoteObject _cbfactura = RemoteObject.createImmutable(0);
 BA.debugLineNum = 945;BA.debugLine="Sub GUADAVENTA2";
Debug.ShouldStop(65536);
 BA.debugLineNum = 946;BA.debugLine="Log(B4XPages.MainPage.recarga)";
Debug.ShouldStop(131072);
c_cliente.__c.runVoidMethod ("LogImpl","55570561",c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_recarga" /*RemoteObject*/ ),0);
 BA.debugLineNum = 947;BA.debugLine="If B4XPages.MainPage.recarga = \"0\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_recarga" /*RemoteObject*/ ),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 948;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(524288);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 949;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(1048576);
__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 = 950;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(2097152);
__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 = 951;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT";
Debug.ShouldStop(4194304);
__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 = 952;BA.debugLine="c.Position=0";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 953;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(16777216);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 954;BA.debugLine="c.Close";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 955;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
Debug.ShouldStop(67108864);
__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 = 956;BA.debugLine="c.Position=0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 957;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(268435456);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 958;BA.debugLine="c.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 959;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p";
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 sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 960;BA.debugLine="c.Position=0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 962;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 963;BA.debugLine="Private cbFactura As Int = 0";
Debug.ShouldStop(4);
_cbfactura = BA.numberCast(int.class, 0);Debug.locals.put("cbFactura", _cbfactura);Debug.locals.put("cbFactura", _cbfactura);
 BA.debugLineNum = 964;BA.debugLine="If cb_factura.Checked Then cbFactura = 1";
Debug.ShouldStop(8);
if (__ref.getField(false,"_cb_factura" /*RemoteObject*/ ).runMethod(true,"getChecked").<Boolean>get().booleanValue()) { 
_cbfactura = BA.numberCast(int.class, 1);Debug.locals.put("cbFactura", _cbfactura);};
 BA.debugLineNum = 965;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(16);
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 = 966;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(32);
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 = 967;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
Debug.ShouldStop(64);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO, PC_LON, PC_LAT, PC_ENVIO_OK, PC_FACTURA) VALUES (?,?,?,?,?,?,?,?,?)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {9},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),RemoteObject.createImmutable((0)),(_cbfactura)})))));
 BA.debugLineNum = 968;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
Debug.ShouldStop(128);
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 = 969;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
Debug.ShouldStop(256);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("UPDATE kmt_info2 set gestion = 2  where CAT_CL_CODIGO In (select cuenta from cuentaa)")));
 };
 BA.debugLineNum = 971;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 972;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
Debug.ShouldStop(2048);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 973;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(4096);
__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 = 974;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
Debug.ShouldStop(8192);
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[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 976;BA.debugLine="Try";
Debug.ShouldStop(32768);
try { BA.debugLineNum = 977;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\" Select (su";
Debug.ShouldStop(65536);
__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.concat(RemoteObject.createImmutable(" Select (substr(HSS_OUT,1,2) - substr(HSS_IN,1,2)) - Case when  (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) < 0 Then 1 Else 0 end HORAS_TOTALES, "),RemoteObject.createImmutable("Case when  (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) < 0 Then (substr(HSS_OUT,3,2) + 60 - substr(HSS_IN,3,2)) "),RemoteObject.createImmutable("	Else (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) End - Case when  (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) < 0 Then 1 Else 0 end  MINUTOS_TOTALES, "),RemoteObject.createImmutable("Case when  (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) < 0 Then (substr(HSS_OUT,5,2) + 60 - substr(HSS_IN,5,2)) "),RemoteObject.createImmutable("	Else (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) end SEGUNDOS_TOTALES "),RemoteObject.createImmutable("	from HIST_STAY_STORE where HSS_CODIGO In (Select cuenta from cuentaa) ")))));
 BA.debugLineNum = 983;BA.debugLine="c.Position = 0";
Debug.ShouldStop(4194304);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 984;BA.debugLine="stay_hh = c.GetString(\"HORAS_TOTALES\") * 60 * 6";
Debug.ShouldStop(8388608);
__ref.setField ("_stay_hh" /*RemoteObject*/ ,BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HORAS_TOTALES")))),RemoteObject.createImmutable(60),RemoteObject.createImmutable(60)}, "**",0, 0)));
 BA.debugLineNum = 985;BA.debugLine="stay_mi = c.GetString(\"MINUTOS_TOTALES\") * 60";
Debug.ShouldStop(16777216);
__ref.setField ("_stay_mi" /*RemoteObject*/ ,BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MINUTOS_TOTALES")))),RemoteObject.createImmutable(60)}, "*",0, 0)));
 BA.debugLineNum = 986;BA.debugLine="stay_ss = c.GetString(\"SEGUNDOS_TOTALES\")";
Debug.ShouldStop(33554432);
__ref.setField ("_stay_ss" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SEGUNDOS_TOTALES"))));
 BA.debugLineNum = 987;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
Debug.ShouldStop(67108864);
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_TOT = ?  where HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(true,"_stay_hh" /*RemoteObject*/ )),BA.numberCast(double.class, __ref.getField(true,"_stay_mi" /*RemoteObject*/ )),BA.numberCast(double.class, __ref.getField(true,"_stay_ss" /*RemoteObject*/ ))}, "++",2, 0))})))));
 BA.debugLineNum = 988;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
Debug.ShouldStop(134217728);
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[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 989;BA.debugLine="c.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e39) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e39.toString()); BA.debugLineNum = 991;BA.debugLine="ToastMessageShow(\".\",True)";
Debug.ShouldStop(1073741824);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(".")),(Object)(c_cliente.__c.getField(true,"True")));
 };
 BA.debugLineNum = 994;BA.debugLine="skmt.ExecNonQuery2(\"update PEDIDO_INICIO_FINAL s";
Debug.ShouldStop(2);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update PEDIDO_INICIO_FINAL set PIF_HORA_FINAL = ? where PIF_CLIENTE = ? and PIF_HORA_FINAL = 0")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow")),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 996;BA.debugLine="Subs.actualizaTET(la_cuenta.text)";
Debug.ShouldStop(8);
c_cliente._subs.runVoidMethod ("_actualizatet" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 997;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(16);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 1000;BA.debugLine="mandapiezas";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_mandapiezas" /*RemoteObject*/ );
 BA.debugLineNum = 1001;BA.debugLine="B4XPages.MainPage.productos.reiniciarlistaProds";
Debug.ShouldStop(256);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_productos" /*RemoteObject*/ ).setField ("_reiniciarlistaprods" /*RemoteObject*/ ,c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1002;BA.debugLine="B4XPages.MainPage.productos.prodsMap.Initialize";
Debug.ShouldStop(512);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_productos" /*RemoteObject*/ ).getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1003;BA.debugLine="B4XPages.MainPage.promos.promosMap.Initialize";
Debug.ShouldStop(1024);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_promos" /*RemoteObject*/ ).getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1004;BA.debugLine="Guardar.Enabled = True";
Debug.ShouldStop(2048);
__ref.getField(false,"_guardar" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1005;BA.debugLine="gest.Enabled = True";
Debug.ShouldStop(4096);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1006;BA.debugLine="b_cxc.Enabled = True";
Debug.ShouldStop(8192);
__ref.getField(false,"_b_cxc" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1007;BA.debugLine="Tar.Enabled = True";
Debug.ShouldStop(16384);
__ref.getField(false,"_tar" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1008;BA.debugLine="Tels.Enabled = True";
Debug.ShouldStop(32768);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1009;BA.debugLine="b_ventaabordo.Enabled = True";
Debug.ShouldStop(65536);
__ref.getField(false,"_b_ventaabordo" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1011;BA.debugLine="HIST.Enabled = True";
Debug.ShouldStop(262144);
__ref.getField(false,"_hist" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1012;BA.debugLine="banderaimp = 0";
Debug.ShouldStop(524288);
__ref.setField ("_banderaimp" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1013;BA.debugLine="mandaPendientePagare";
Debug.ShouldStop(1048576);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_mandapendientepagare" /*RemoteObject*/ );
 BA.debugLineNum = 1014;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(2097152);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 }else 
{ BA.debugLineNum = 1015;BA.debugLine="Else If B4XPages.MainPage.recarga = \"1\" Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_recarga" /*RemoteObject*/ ),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 1016;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(8388608);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1017;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(16777216);
__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 = 1018;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(33554432);
__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 = 1019;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT";
Debug.ShouldStop(67108864);
__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 = 1020;BA.debugLine="c.Position=0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1021;BA.debugLine="clie_id = c.GetString(\"CUENTA\")";
Debug.ShouldStop(268435456);
__ref.setField ("_clie_id" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))));
 BA.debugLineNum = 1022;BA.debugLine="c.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1023;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR";
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 USUARIO from usuarioa"))));
 BA.debugLineNum = 1024;BA.debugLine="c.Position=0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1025;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(1);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1026;BA.debugLine="c.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1027;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p";
Debug.ShouldStop(4);
__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 sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))));
 BA.debugLineNum = 1028;BA.debugLine="c.Position=0";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1030;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1031;BA.debugLine="Private cbFactura As Int = 0";
Debug.ShouldStop(64);
_cbfactura = BA.numberCast(int.class, 0);Debug.locals.put("cbFactura", _cbfactura);Debug.locals.put("cbFactura", _cbfactura);
 BA.debugLineNum = 1032;BA.debugLine="If cb_factura.Checked Then cbFactura = 1";
Debug.ShouldStop(128);
if (__ref.getField(false,"_cb_factura" /*RemoteObject*/ ).runMethod(true,"getChecked").<Boolean>get().booleanValue()) { 
_cbfactura = BA.numberCast(int.class, 1);Debug.locals.put("cbFactura", _cbfactura);};
 BA.debugLineNum = 1033;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(256);
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 = 1034;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(512);
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 = 1035;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
Debug.ShouldStop(1024);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO, PC_LON, PC_LAT, PC_ENVIO_OK, PC_FACTURA) VALUES (?,?,?,?,?,?,?,?,?)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {9},new Object[] {(__ref.getField(true,"_clie_id" /*RemoteObject*/ )),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CANT_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_CLIE")))),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),RemoteObject.createImmutable((0)),(_cbfactura)})))));
 BA.debugLineNum = 1036;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
Debug.ShouldStop(2048);
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 = 1038;BA.debugLine="c.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1039;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
Debug.ShouldStop(16384);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 1040;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(32768);
__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 = 1041;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
Debug.ShouldStop(65536);
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[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 1061;BA.debugLine="skmt.ExecNonQuery2(\"update PEDIDO_INICIO_FINAL s";
Debug.ShouldStop(16);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update PEDIDO_INICIO_FINAL set PIF_HORA_FINAL = ? where PIF_CLIENTE = ? and PIF_HORA_FINAL = 0")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(c_cliente.__c.getField(false,"DateTime").runMethod(true,"getNow")),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 1063;BA.debugLine="Subs.actualizaTET(la_cuenta.text)";
Debug.ShouldStop(64);
c_cliente._subs.runVoidMethod ("_actualizatet" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 1064;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(128);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 1068;BA.debugLine="mandaPendientesrecarga";
Debug.ShouldStop(2048);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_mandapendientesrecarga" /*RemoteObject*/ );
 BA.debugLineNum = 1069;BA.debugLine="mandapiezasrecarga";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_mandapiezasrecarga" /*RemoteObject*/ );
 BA.debugLineNum = 1070;BA.debugLine="B4XPages.MainPage.productos.reiniciarlistaProds";
Debug.ShouldStop(8192);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_productos" /*RemoteObject*/ ).setField ("_reiniciarlistaprods" /*RemoteObject*/ ,c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 1071;BA.debugLine="B4XPages.MainPage.productos.prodsMap.Initialize";
Debug.ShouldStop(16384);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_productos" /*RemoteObject*/ ).getField(false,"_prodsmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1072;BA.debugLine="B4XPages.MainPage.promos.promosMap.Initialize";
Debug.ShouldStop(32768);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_promos" /*RemoteObject*/ ).getField(false,"_promosmap" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1073;BA.debugLine="B4XPages.ShowPage(\"login\")";
Debug.ShouldStop(65536);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("login")));
 BA.debugLineNum = 1074;BA.debugLine="B4XPages.MainPage.recarga = \"0\"";
Debug.ShouldStop(131072);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_recarga" /*RemoteObject*/ ,BA.ObjectToString("0"));
 }}
;
 BA.debugLineNum = 1076;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _guardar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Guardar_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,727);
if (RapidSub.canDelegate("guardar_click")) { __ref.runUserSub(false, "c_cliente","guardar_click", __ref); return;}
ResumableSub_Guardar_Click rsub = new ResumableSub_Guardar_Click(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_Guardar_Click extends BA.ResumableSub {
public ResumableSub_Guardar_Click(SHARK2.keymon.com.mx.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;
SHARK2.keymon.com.mx.c_cliente parent;
RemoteObject _fg = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _costo = RemoteObject.createImmutable("");
RemoteObject _resultado = RemoteObject.createImmutable(0);
RemoteObject _cpagares = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("Guardar_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,727);
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 = 728;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"Select COU";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("Select COUNT(Case WHEN PE_FOLIO = 'PREVENTA_CONTADO' THEN 1 END) AS CUANTOS_CONTADO,COUNT(Case WHEN PE_FOLIO = 'PREVENTA_CREDITO' THEN 1 END) AS CUANTOS_CREDITO FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta FROM CUENTAA) And (PE_FOLIO = ? OR PE_FOLIO = ?)")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("PREVENTA_CONTADO"),RemoteObject.createImmutable("PREVENTA_CREDITO")}))));
 BA.debugLineNum = 729;BA.debugLine="c.Position = 0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 731;BA.debugLine="Log(\"Esto es Contado<<<<<<<<<<<<<: \" & c.GetStri";
Debug.ShouldStop(67108864);
parent.__c.runVoidMethod ("LogImpl","55308420",RemoteObject.concat(RemoteObject.createImmutable("Esto es Contado<<<<<<<<<<<<<: "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_CONTADO")))),0);
 BA.debugLineNum = 732;BA.debugLine="Log(\"Esto es Credito<<<<<<<<<<<<<: \" & c.GetStri";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethod ("LogImpl","55308421",RemoteObject.concat(RemoteObject.createImmutable("Esto es Credito<<<<<<<<<<<<<: "),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_CREDITO")))),0);
 BA.debugLineNum = 735;BA.debugLine="If c.GetString(\"CUANTOS_CREDITO\") = 0 Then";
Debug.ShouldStop(1073741824);
if (true) break;

case 1:
//if
this.state = 22;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_CREDITO"))),BA.NumberToString(0))) { 
this.state = 3;
}else 
{ BA.debugLineNum = 737;BA.debugLine="Else If c.GetString(\"CUANTOS_CREDITO\") > 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_CREDITO")))),BA.numberCast(double.class, 0))) { 
this.state = 5;
}}
if (true) break;

case 3:
//C
this.state = 22;
 BA.debugLineNum = 736;BA.debugLine="GuardaVenta";
Debug.ShouldStop(-2147483648);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 if (true) break;

case 5:
//C
this.state = 6;
 BA.debugLineNum = 738;BA.debugLine="Dim fg As Cursor = Starter.skmt.ExecQuery(\"Sele";
Debug.ShouldStop(2);
_fg = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_fg = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), parent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select IFNULL(sum(PE_COSTO_TOT),0) AS COSTO, PE_FOLIO FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_FOLIO = 'PREVENTA_CREDITO'"))));Debug.locals.put("fg", _fg);Debug.locals.put("fg", _fg);
 BA.debugLineNum = 739;BA.debugLine="fg.Position = 0";
Debug.ShouldStop(4);
_fg.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 740;BA.debugLine="Dim costo As String = fg.GetString(\"COSTO\")";
Debug.ShouldStop(8);
_costo = _fg.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COSTO")));Debug.locals.put("costo", _costo);Debug.locals.put("costo", _costo);
 BA.debugLineNum = 742;BA.debugLine="If costo > 0 And costo < 1000 Then";
Debug.ShouldStop(32);
if (true) break;

case 6:
//if
this.state = 21;
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _costo),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("<",BA.numberCast(double.class, _costo),BA.numberCast(double.class, 1000))) { 
this.state = 8;
}else 
{ BA.debugLineNum = 750;BA.debugLine="Else If costo >= 1000 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("g",BA.numberCast(double.class, _costo),BA.numberCast(double.class, 1000))) { 
this.state = 14;
}}
if (true) break;

case 8:
//C
this.state = 9;
 BA.debugLineNum = 743;BA.debugLine="Msgbox2Async($\"¿Desea continuar?${CRLF}Si acep";
Debug.ShouldStop(64);
parent.__c.runVoidMethod ("Msgbox2Async",(Object)(BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("¿Desea continuar?"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Si acepta, el pedido a crédito se borrará (mínimo $1,000)."),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent.__c.getField(true,"CRLF")))),RemoteObject.createImmutable("Si cancela, podrá seguir agregando productos."))))),(Object)(BA.ObjectToCharSequence("Venta Minima de Credito")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png")))),__ref.getField(false, "ba"),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 744;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(128);
parent.__c.runVoidMethod ("WaitFor","msgbox_result", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "guardar_click"), null);
this.state = 23;
return;
case 23:
//C
this.state = 9;
_resultado = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("resultado", _resultado);
;
 BA.debugLineNum = 745;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(256);
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 = 746;BA.debugLine="Subs.borraPedidoCredito";
Debug.ShouldStop(512);
parent._subs.runVoidMethod ("_borrapedidocredito" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 747;BA.debugLine="GuardaVenta";
Debug.ShouldStop(1024);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 if (true) break;

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

case 14:
//C
this.state = 15;
 BA.debugLineNum = 751;BA.debugLine="Dim cPagares As Cursor = B4XPages.MainPage.skm";
Debug.ShouldStop(16384);
_cpagares = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cpagares = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) As REGISTRADO FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("cPagares", _cpagares);Debug.locals.put("cPagares", _cpagares);
 BA.debugLineNum = 752;BA.debugLine="cPagares.Position = 0";
Debug.ShouldStop(32768);
_cpagares.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 753;BA.debugLine="If cPagares.GetString(\"REGISTRADO\") = 0 Then";
Debug.ShouldStop(65536);
if (true) break;

case 15:
//if
this.state = 20;
if (RemoteObject.solveBoolean("=",_cpagares.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("REGISTRADO"))),BA.NumberToString(0))) { 
this.state = 17;
}else {
this.state = 19;
}if (true) break;

case 17:
//C
this.state = 20;
 BA.debugLineNum = 754;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
Debug.ShouldStop(131072);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA, PA_FECHA, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE) VALUES(?,?,?,?,?,?,?) ")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {7},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ )),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),(_costo),(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 755;BA.debugLine="Log(\"Aqui inserto: \" & \"Almacen: \" & ALMACEN &";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("LogImpl","55308444",RemoteObject.concat(RemoteObject.createImmutable("Aqui inserto: "),RemoteObject.createImmutable("Almacen: "),__ref.getField(true,"_almacen" /*RemoteObject*/ ),RemoteObject.createImmutable("Ruta "),__ref.getField(true,"_la_ruta" /*RemoteObject*/ ),RemoteObject.createImmutable("Fecha: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),RemoteObject.createImmutable("Captura: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),RemoteObject.createImmutable("Monto: "),_costo,RemoteObject.createImmutable("Usuario: "),__ref.getField(true,"_usuario" /*RemoteObject*/ ),RemoteObject.createImmutable("Cliente: "),__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable("<<<<<<<<<<<<<<<<<<<<<")),0);
 BA.debugLineNum = 756;BA.debugLine="GuardaVenta";
Debug.ShouldStop(524288);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 BA.debugLineNum = 757;BA.debugLine="p_credito.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_p_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 19:
//C
this.state = 20;
 BA.debugLineNum = 759;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE";
Debug.ShouldStop(4194304);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE PAGARES set PA_FECHA = ?, PA_CAPTURA = ?, PA_MONTO = ? where PA_CLIENTE In (select cuenta from cuentaa)")),(Object)(parent.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),(__ref.getField(false,"_et_montoacredito" /*RemoteObject*/ ).runMethod(true,"getText"))})))));
 BA.debugLineNum = 760;BA.debugLine="Log(\"Aqui actualizo: \" & \"Almacen: \" & ALMACEN";
Debug.ShouldStop(8388608);
parent.__c.runVoidMethod ("LogImpl","55308449",RemoteObject.concat(RemoteObject.createImmutable("Aqui actualizo: "),RemoteObject.createImmutable("Almacen: "),__ref.getField(true,"_almacen" /*RemoteObject*/ ),RemoteObject.createImmutable("Ruta "),__ref.getField(true,"_la_ruta" /*RemoteObject*/ ),RemoteObject.createImmutable("Fecha: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),RemoteObject.createImmutable("Captura: "),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ ))),RemoteObject.createImmutable("Monto: "),_costo,RemoteObject.createImmutable("Usuario: "),__ref.getField(true,"_usuario" /*RemoteObject*/ ),RemoteObject.createImmutable("Cliente: "),__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable("<<<<<<<<<<<<<<<<<<<<<")),0);
 BA.debugLineNum = 761;BA.debugLine="GuardaVenta";
Debug.ShouldStop(16777216);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 BA.debugLineNum = 762;BA.debugLine="p_credito.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 20:
//C
this.state = 21;
;
 BA.debugLineNum = 764;BA.debugLine="cPagares.Close";
Debug.ShouldStop(134217728);
_cpagares.runVoidMethod ("Close");
 BA.debugLineNum = 765;BA.debugLine="GuardaVenta";
Debug.ShouldStop(268435456);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guardaventa" /*RemoteObject*/ );
 if (true) break;

case 21:
//C
this.state = 22;
;
 BA.debugLineNum = 767;BA.debugLine="fg.Close";
Debug.ShouldStop(1073741824);
_fg.runVoidMethod ("Close");
 if (true) break;

case 22:
//C
this.state = -1;
;
 BA.debugLineNum = 770;BA.debugLine="c.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 859;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _guardaventa(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("GuardaVenta (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,925);
if (RapidSub.canDelegate("guardaventa")) { return __ref.runUserSub(false, "c_cliente","guardaventa", __ref);}
 BA.debugLineNum = 925;BA.debugLine="Sub GuardaVenta";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 926;BA.debugLine="If pre_act <> Starter.pre_viejo Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_pre_act" /*RemoteObject*/ ),BA.numberCast(double.class, c_cliente._starter._pre_viejo /*RemoteObject*/ ))) { 
 BA.debugLineNum = 927;BA.debugLine="B_IMP_Click";
Debug.ShouldStop(1073741824);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_b_imp_click" /*RemoteObject*/ );
 BA.debugLineNum = 928;BA.debugLine="Guardar.Enabled = False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_guardar" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 929;BA.debugLine="gest.Enabled = False";
Debug.ShouldStop(1);
__ref.getField(false,"_gest" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 930;BA.debugLine="b_cxc.Enabled = False";
Debug.ShouldStop(2);
__ref.getField(false,"_b_cxc" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 931;BA.debugLine="Tar.Enabled = False";
Debug.ShouldStop(4);
__ref.getField(false,"_tar" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 932;BA.debugLine="Tels.Enabled = False";
Debug.ShouldStop(8);
__ref.getField(false,"_tels" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 933;BA.debugLine="b_ventaabordo.Enabled = False";
Debug.ShouldStop(16);
__ref.getField(false,"_b_ventaabordo" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 934;BA.debugLine="HIST.Enabled = False";
Debug.ShouldStop(32);
__ref.getField(false,"_hist" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 935;BA.debugLine="banderaimp = 1";
Debug.ShouldStop(64);
__ref.setField ("_banderaimp" /*RemoteObject*/ ,BA.numberCast(int.class, 1));
 }else 
{ BA.debugLineNum = 936;BA.debugLine="Else If pre_act = Starter.pre_viejo Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_pre_act" /*RemoteObject*/ ),BA.numberCast(double.class, c_cliente._starter._pre_viejo /*RemoteObject*/ ))) { 
 BA.debugLineNum = 937;BA.debugLine="If banderaimp = 1 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_banderaimp" /*RemoteObject*/ ),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 938;BA.debugLine="B_IMP_Click";
Debug.ShouldStop(512);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_b_imp_click" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 940;BA.debugLine="GUADAVENTA2";
Debug.ShouldStop(2048);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guadaventa2" /*RemoteObject*/ );
 };
 }}
;
 BA.debugLineNum = 943;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
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,1082);
if (RapidSub.canDelegate("hist_click")) { return __ref.runUserSub(false, "c_cliente","hist_click", __ref);}
 BA.debugLineNum = 1082;BA.debugLine="Sub HIST_Click";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 1083;BA.debugLine="B4XPages.ShowPage(\"Historico\")";
Debug.ShouldStop(67108864);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Historico")));
 BA.debugLineNum = 1084;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _imprime_pagare(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("imprime_pagare (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2741);
if (RapidSub.canDelegate("imprime_pagare")) { __ref.runUserSub(false, "c_cliente","imprime_pagare", __ref); return;}
ResumableSub_imprime_pagare rsub = new ResumableSub_imprime_pagare(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_imprime_pagare extends BA.ResumableSub {
public ResumableSub_imprime_pagare(SHARK2.keymon.com.mx.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;
SHARK2.keymon.com.mx.c_cliente parent;
RemoteObject _elinefeed = RemoteObject.createImmutable("");
RemoteObject _cont = RemoteObject.createImmutable(0);
RemoteObject _notaabono = RemoteObject.createImmutable("");
RemoteObject _saldopendiente = RemoteObject.createImmutable("");
RemoteObject _fechatabulador = null;
RemoteObject _fechatabulador2 = null;
RemoteObject _fechatabulador3 = RemoteObject.createImmutable("");
RemoteObject _resultado = RemoteObject.createImmutable(0);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("imprime_pagare (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2741);
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 = 2744;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 2745;BA.debugLine="c.Position=0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2746;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(33554432);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 2747;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(67108864);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 2748;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(134217728);
parent.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 2749;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(268435456);
__ref.setField ("_sdate" /*RemoteObject*/ ,parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 2750;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(536870912);
__ref.setField ("_stime" /*RemoteObject*/ ,parent.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 2751;BA.debugLine="c.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2753;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
Debug.ShouldStop(1);
_elinefeed = RemoteObject.concat(RemoteObject.createImmutable(""),parent.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0d)))),parent.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0a)))));Debug.locals.put("eLINEFEED", _elinefeed);Debug.locals.put("eLINEFEED", _elinefeed);
 BA.debugLineNum = 2755;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
Debug.ShouldStop(4);
parent.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Imprimiendo, un momento ..."))));
 BA.debugLineNum = 2756;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 2757;BA.debugLine="If Not(Printer1.IsConnected) Then";
Debug.ShouldStop(16);
if (true) break;

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

case 3:
//C
this.state = 4;
 BA.debugLineNum = 2759;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(64);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 2760;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(128);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 2761;BA.debugLine="Do While Not(impresoraConectada)";
Debug.ShouldStop(256);
if (true) break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

case 38:
//C
this.state = 39;
;
 BA.debugLineNum = 2783;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(1073741824);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 2784;BA.debugLine="ESPACIO = 22";
Debug.ShouldStop(-2147483648);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 22));
 BA.debugLineNum = 2785;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(1);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 2787;BA.debugLine="Printer1.WriteString(\"SHARK2 Distribuciones\" &  e";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("SHARK2 Distribuciones"),_elinefeed)));
 BA.debugLineNum = 2789;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
Debug.ShouldStop(16);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 2790;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
Debug.ShouldStop(32);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_stime" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 2791;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario &  eL";
Debug.ShouldStop(64);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Vendedor:"),__ref.getField(true,"_usuario" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 2792;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
Debug.ShouldStop(128);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Tienda: "),__ref.getField(false,"_la_nombre" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 2793;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("ID.Cliente: "),__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 2794;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
Debug.ShouldStop(512);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Calle: "),__ref.getField(false,"_la_calle" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 2795;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
Debug.ShouldStop(1024);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Colonia: "),__ref.getField(false,"_la_col" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 2796;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(2048);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2797;BA.debugLine="Dim notaabono As String";
Debug.ShouldStop(4096);
_notaabono = RemoteObject.createImmutable("");Debug.locals.put("notaabono", _notaabono);
 BA.debugLineNum = 2798;BA.debugLine="Dim saldopendiente As String";
Debug.ShouldStop(8192);
_saldopendiente = RemoteObject.createImmutable("");Debug.locals.put("saldopendiente", _saldopendiente);
 BA.debugLineNum = 2799;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NOTA, DIA_VEN";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT NOTA, DIA_VENCIMIENTO, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
 BA.debugLineNum = 2800;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(32768);
if (true) break;

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

case 41:
//C
this.state = 42;
 BA.debugLineNum = 2801;BA.debugLine="c.Position = 0";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2803;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\"";
Debug.ShouldStop(262144);
_fechatabulador = parent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(" ")),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("DIA_VENCIMIENTO")))));Debug.locals.put("fechatabulador", _fechatabulador);Debug.locals.put("fechatabulador", _fechatabulador);
 BA.debugLineNum = 2804;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"";
Debug.ShouldStop(524288);
_fechatabulador2 = parent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("-")),(Object)(_fechatabulador.getArrayElement(true,BA.numberCast(int.class, 0))));Debug.locals.put("fechatabulador2", _fechatabulador2);Debug.locals.put("fechatabulador2", _fechatabulador2);
 BA.debugLineNum = 2805;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2";
Debug.ShouldStop(1048576);
_fechatabulador3 = RemoteObject.concat(_fechatabulador2.getArrayElement(true,BA.numberCast(int.class, 2)),RemoteObject.createImmutable("/"),_fechatabulador2.getArrayElement(true,BA.numberCast(int.class, 1)),RemoteObject.createImmutable("/"),_fechatabulador2.getArrayElement(true,BA.numberCast(int.class, 0)));Debug.locals.put("fechatabulador3", _fechatabulador3);Debug.locals.put("fechatabulador3", _fechatabulador3);
 BA.debugLineNum = 2807;BA.debugLine="notaabono = c.GetString(\"NOTA\")";
Debug.ShouldStop(4194304);
_notaabono = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NOTA")));Debug.locals.put("notaabono", _notaabono);
 BA.debugLineNum = 2808;BA.debugLine="saldopendiente = c.GetString(\"SALDO_PENDIENTE\")";
Debug.ShouldStop(8388608);
_saldopendiente = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("SALDO_PENDIENTE")));Debug.locals.put("saldopendiente", _saldopendiente);
 if (true) break;

case 42:
//C
this.state = 43;
;
 BA.debugLineNum = 2810;BA.debugLine="c.Close";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2817;BA.debugLine="Log(notaabono)";
Debug.ShouldStop(1);
parent.__c.runVoidMethod ("LogImpl","58323148",_notaabono,0);
 BA.debugLineNum = 2818;BA.debugLine="Log(et_abono.Text)";
Debug.ShouldStop(2);
parent.__c.runVoidMethod ("LogImpl","58323149",__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText"),0);
 BA.debugLineNum = 2819;BA.debugLine="Printer1.WriteString(\"Comprobante de pago del pa";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Comprobante de pago del pagare"),_elinefeed)));
 BA.debugLineNum = 2821;BA.debugLine="Printer1.WriteString(\"Folio:  \" & notaabono &  e";
Debug.ShouldStop(16);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Folio:  "),_notaabono,_elinefeed)));
 BA.debugLineNum = 2823;BA.debugLine="Printer1.WriteString(\"Monto deuda:  \" & (NumberF";
Debug.ShouldStop(64);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Monto deuda:  "),(parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, _saldopendiente)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)))),_elinefeed)));
 BA.debugLineNum = 2825;BA.debugLine="Printer1.WriteString(\"Monto abono:  \" & (NumberF";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Monto abono:  "),(parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText"))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)))),_elinefeed)));
 BA.debugLineNum = 2827;BA.debugLine="Printer1.WriteString(\"Restante: \" &(NumberFormat";
Debug.ShouldStop(1024);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Restante: "),(parent.__c.runMethod(true,"NumberFormat",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, _saldopendiente),BA.numberCast(double.class, __ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText"))}, "-",1, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)))),_elinefeed)));
 BA.debugLineNum = 2829;BA.debugLine="Printer1.WriteString(\"Fecha Abono: \" & sDate &";
Debug.ShouldStop(4096);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Fecha Abono: "),__ref.getField(true,"_sdate" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 2831;BA.debugLine="Printer1.WriteString(\"Fecha vencimiento: \" & fec";
Debug.ShouldStop(16384);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Fecha vencimiento: "),_fechatabulador3,_elinefeed)));
 BA.debugLineNum = 2833;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(65536);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2834;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(131072);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2835;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2836;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2837;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(1048576);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2838;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(2097152);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2839;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(4194304);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2841;BA.debugLine="Printer1.WriteString(\"--------------------------";
Debug.ShouldStop(16777216);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 2842;BA.debugLine="Printer1.WriteString(\"-------------FIRMA--------";
Debug.ShouldStop(33554432);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("-------------FIRMA------------"),_elinefeed)));
 BA.debugLineNum = 2844;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(134217728);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2845;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(268435456);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2846;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(536870912);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 2847;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(1073741824);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_pagare"),BA.numberCast(int.class, 1000));
this.state = 59;
return;
case 59:
//C
this.state = 43;
;
 BA.debugLineNum = 2848;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 2850;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(2);
parent.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 2853;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
Debug.ShouldStop(16);
parent.__c.runVoidMethod ("Msgbox2Async",(Object)(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?")),(Object)(BA.ObjectToCharSequence("ATENCION")),(Object)(BA.ObjectToString("SI")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("NO")),(Object)(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png")))),__ref.getField(false, "ba"),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 2854;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(32);
parent.__c.runVoidMethod ("WaitFor","msgbox_result", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_pagare"), null);
this.state = 60;
return;
case 60:
//C
this.state = 43;
_resultado = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("resultado", _resultado);
;
 BA.debugLineNum = 2855;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(64);
if (true) break;

case 43:
//if
this.state = 54;
if (RemoteObject.solveBoolean("=",_resultado,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 45;
}else {
this.state = 47;
}if (true) break;

case 45:
//C
this.state = 54;
 BA.debugLineNum = 2856;BA.debugLine="imprime_pagare";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_imprime_pagare" /*void*/ );
 if (true) break;

case 47:
//C
this.state = 48;
 BA.debugLineNum = 2858;BA.debugLine="h = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CUE";
Debug.ShouldStop(512);
__ref.getField(false,"_h" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT CUENTA from CUENTAA"))));
 BA.debugLineNum = 2859;BA.debugLine="h.Position = 0";
Debug.ShouldStop(1024);
__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2860;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
Debug.ShouldStop(2048);
parent.__c.runVoidMethod ("LogImpl","58323191",__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA"))),0);
 BA.debugLineNum = 2862;BA.debugLine="j = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT a_";
Debug.ShouldStop(8192);
__ref.getField(false,"_j" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT a_abono FROM ABONOS WHERE a_cliente = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_h" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUENTA")))}))));
 BA.debugLineNum = 2863;BA.debugLine="j.position = 0";
Debug.ShouldStop(16384);
__ref.getField(false,"_j" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2864;BA.debugLine="If j.RowCount = 0 Then";
Debug.ShouldStop(32768);
if (true) break;

case 48:
//if
this.state = 53;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_j" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 50;
}else {
this.state = 52;
}if (true) break;

case 50:
//C
this.state = 53;
 BA.debugLineNum = 2865;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 2867;BA.debugLine="skmt.ExecNonQuery($\"INSERT INTO ABONOS(a_usuari";
Debug.ShouldStop(262144);
__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"),(Object)(parent._subs.runMethod(true,"_traecliente" /*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 = 2868;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
Debug.ShouldStop(524288);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Abono guardado")),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 2869;BA.debugLine="et_abono.Text = \"\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 2870;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(2097152);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_b4xpage_appear" /*RemoteObject*/ );
 if (true) break;

case 52:
//C
this.state = 53;
 BA.debugLineNum = 2872;BA.debugLine="p_abono.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_p_abono" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 2875;BA.debugLine="skmt.ExecNonQuery($\"UPDATE ABONOS set a_abono =";
Debug.ShouldStop(67108864);
__ref.getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("UPDATE ABONOS set a_abono = '"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable("' where  a_usuario = '"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_traeusuariodebd" /*RemoteObject*/ ,__ref.getField(false, "ba"))))),RemoteObject.createImmutable("' and a_ruta = '"),parent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._subs.runMethod(true,"_traeruta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(parent._subs.runMethod(true,"_traecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"))))))),RemoteObject.createImmutable("' and  a_cliente In (select cuenta from cuentaa)")))));
 BA.debugLineNum = 2876;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Abono guardado")),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 2877;BA.debugLine="et_abono.Text = \"\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_et_abono" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 2878;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(536870912);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_b4xpage_appear" /*RemoteObject*/ );
 if (true) break;

case 53:
//C
this.state = 54;
;
 if (true) break;

case 54:
//C
this.state = -1;
;
 BA.debugLineNum = 2885;BA.debugLine="End Sub";
Debug.ShouldStop(16);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _imprime_preventa(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("imprime_preventa (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1212);
if (RapidSub.canDelegate("imprime_preventa")) { __ref.runUserSub(false, "c_cliente","imprime_preventa", __ref); return;}
ResumableSub_imprime_preventa rsub = new ResumableSub_imprime_preventa(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_imprime_preventa extends BA.ResumableSub {
public ResumableSub_imprime_preventa(SHARK2.keymon.com.mx.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;
SHARK2.keymon.com.mx.c_cliente parent;
RemoteObject _elinefeed = RemoteObject.createImmutable("");
RemoteObject _cont = RemoteObject.createImmutable(0);
RemoteObject _bmp = RemoteObject.declareNull("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");
RemoteObject _myimage = RemoteObject.declareNull("SHARK2.keymon.com.mx.escposprinter._animage");
RemoteObject _tipos_preventa = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _tipo = RemoteObject.createImmutable("");
RemoteObject _siesacredi = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _i = 0;
int _e = 0;
RemoteObject _subtotal = RemoteObject.createImmutable(0);
RemoteObject _subtot = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _descuento = RemoteObject.createImmutable(0);
RemoteObject _total = RemoteObject.createImmutable(0);
RemoteObject _monto = RemoteObject.createImmutable("");
RemoteObject _pamonto = RemoteObject.createImmutable(0);
RemoteObject _resultado = RemoteObject.createImmutable(0);
RemoteObject group63;
int index63;
int groupLen63;
int step72;
int limit72;
int step86;
int limit86;
int step102;
int limit102;
int step120;
int limit120;
int step129;
int limit129;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("imprime_preventa (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1212);
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 = 1213;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 1214;BA.debugLine="c.Position=0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1215;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(1073741824);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1216;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(-2147483648);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1217;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(1);
__ref.setField ("_sdate" /*RemoteObject*/ ,parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1218;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(2);
__ref.setField ("_stime" /*RemoteObject*/ ,parent.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1219;BA.debugLine="c.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1221;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
Debug.ShouldStop(16);
_elinefeed = RemoteObject.concat(RemoteObject.createImmutable(""),parent.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0d)))),parent.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0a)))));Debug.locals.put("eLINEFEED", _elinefeed);Debug.locals.put("eLINEFEED", _elinefeed);
 BA.debugLineNum = 1223;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
Debug.ShouldStop(64);
parent.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Imprimiendo, un momento ..."))));
 BA.debugLineNum = 1224;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(128);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 1225;BA.debugLine="If Not(Printer1.IsConnected) Then";
Debug.ShouldStop(256);
if (true) break;

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

case 3:
//C
this.state = 4;
 BA.debugLineNum = 1227;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(1024);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 1228;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(2048);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1229;BA.debugLine="Do While Not(impresoraConectada)";
Debug.ShouldStop(4096);
if (true) break;

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

case 6:
//C
this.state = 7;
 BA.debugLineNum = 1230;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(8192);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_preventa"),BA.numberCast(int.class, 1000));
this.state = 122;
return;
case 122:
//C
this.state = 7;
;
 BA.debugLineNum = 1231;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(16384);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1232;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de";
Debug.ShouldStop(32768);
if (true) break;

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

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

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

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

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

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

case 19:
//C
this.state = 38;
;
 BA.debugLineNum = 1235;BA.debugLine="Sleep(500)";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_preventa"),BA.numberCast(int.class, 500));
this.state = 123;
return;
case 123:
//C
this.state = 38;
;
 BA.debugLineNum = 1236;BA.debugLine="impresoraConectada = False";
Debug.ShouldStop(524288);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 21:
//C
this.state = 22;
 BA.debugLineNum = 1239;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(4194304);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 1240;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(8388608);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1241;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
Debug.ShouldStop(16777216);
if (true) break;

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

case 24:
//C
this.state = 25;
 BA.debugLineNum = 1242;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(33554432);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_preventa"),BA.numberCast(int.class, 1000));
this.state = 124;
return;
case 124:
//C
this.state = 25;
;
 BA.debugLineNum = 1243;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(67108864);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1244;BA.debugLine="If cont = 2 Then Printer1.Connect";
Debug.ShouldStop(134217728);
if (true) break;

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

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

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

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

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

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

case 37:
//C
this.state = 38;
;
 BA.debugLineNum = 1247;BA.debugLine="Sleep(500)";
Debug.ShouldStop(1073741824);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_preventa"),BA.numberCast(int.class, 500));
this.state = 125;
return;
case 125:
//C
this.state = 38;
;
 BA.debugLineNum = 1248;BA.debugLine="impresoraConectada = False";
Debug.ShouldStop(-2147483648);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 38:
//C
this.state = 39;
;
 BA.debugLineNum = 1251;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(4);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1252;BA.debugLine="ESPACIO = 22";
Debug.ShouldStop(8);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 22));
 BA.debugLineNum = 1253;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(16);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 1256;BA.debugLine="Dim bmp As Bitmap";
Debug.ShouldStop(128);
_bmp = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");Debug.locals.put("bmp", _bmp);
 BA.debugLineNum = 1257;BA.debugLine="Printer1.Justify = 1";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_setjustify",BA.numberCast(int.class, 1));
 BA.debugLineNum = 1258;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"amigos.jpg";
Debug.ShouldStop(512);
_bmp.runVoidMethod ("InitializeResize",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("amigos.jpg")),(Object)(BA.numberCast(int.class, 192)),(Object)(BA.numberCast(int.class, 252)),(Object)(parent.__c.getField(true,"True")));
 BA.debugLineNum = 1259;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage";
Debug.ShouldStop(1024);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_imagetobwimage" /*RemoteObject*/ ,(Object)(_bmp));Debug.locals.put("myimage", _myimage);Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 1261;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)";
Debug.ShouldStop(4096);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_ditherimage2d" /*RemoteObject*/ ,(Object)(_myimage),(Object)(BA.numberCast(int.class, 128)));Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 1263;BA.debugLine="myimage= Printer1.PackImage(myimage)";
Debug.ShouldStop(16384);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_packimage" /*RemoteObject*/ ,(Object)(_myimage));Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 1264;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer t";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(parent.__c.getField(true,"CRLF")));
 BA.debugLineNum = 1265;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)";
Debug.ShouldStop(65536);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).getField(true,"_reverse" /*RemoteObject*/ )));
 BA.debugLineNum = 1267;BA.debugLine="Printer1.PrintImage(myimage)";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_printimage" /*RemoteObject*/ ,(Object)(_myimage));
 BA.debugLineNum = 1268;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).getField(true,"_unreverse" /*RemoteObject*/ )));
 BA.debugLineNum = 1270;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1290;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
Debug.ShouldStop(512);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1291;BA.debugLine="Printer1.WriteString(\"CANDY SHARK2\" & eLINEFEED)";
Debug.ShouldStop(1024);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("CANDY SHARK2"),_elinefeed)));
 BA.debugLineNum = 1292;BA.debugLine="Printer1.WriteString(sDate & eLINEFEED)";
Debug.ShouldStop(2048);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1293;BA.debugLine="Printer1.WriteString(sTime & eLINEFEED)";
Debug.ShouldStop(4096);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_stime" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1294;BA.debugLine="Printer1.WriteString(\"Vendedor: \" & TraeVendedor";
Debug.ShouldStop(8192);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Vendedor: "),__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_traevendedor" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1295;BA.debugLine="Printer1.WriteString(\"Numero de Vendedor: \" & Tra";
Debug.ShouldStop(16384);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Numero de Vendedor: "),__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_traenumvendedor" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1296;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Tienda: "),__ref.getField(false,"_la_nombre" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 1297;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta.T";
Debug.ShouldStop(65536);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("ID.Cliente: "),__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 1298;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
Debug.ShouldStop(131072);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Calle: "),__ref.getField(false,"_la_calle" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 1299;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Colonia: "),__ref.getField(false,"_la_col" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 1300;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1302;BA.debugLine="Dim tipos_preventa As List";
Debug.ShouldStop(2097152);
_tipos_preventa = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("tipos_preventa", _tipos_preventa);
 BA.debugLineNum = 1303;BA.debugLine="tipos_preventa.Initialize";
Debug.ShouldStop(4194304);
_tipos_preventa.runVoidMethod ("Initialize");
 BA.debugLineNum = 1304;BA.debugLine="tipos_preventa.Add(\"PREVENTA_CREDITO\")";
Debug.ShouldStop(8388608);
_tipos_preventa.runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("PREVENTA_CREDITO"))));
 BA.debugLineNum = 1305;BA.debugLine="tipos_preventa.Add(\"PREVENTA_CONTADO\")";
Debug.ShouldStop(16777216);
_tipos_preventa.runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("PREVENTA_CONTADO"))));
 BA.debugLineNum = 1307;BA.debugLine="For Each tipo As String In tipos_preventa";
Debug.ShouldStop(67108864);
if (true) break;

case 39:
//for
this.state = 109;
group63 = _tipos_preventa;
index63 = 0;
groupLen63 = group63.runMethod(true,"getSize").<Integer>get();
Debug.locals.put("tipo", _tipo);
this.state = 126;
if (true) break;

case 126:
//C
this.state = 109;
if (index63 < groupLen63) {
this.state = 41;
_tipo = BA.ObjectToString(group63.runMethod(false,"Get",index63));Debug.locals.put("tipo", _tipo);}
if (true) break;

case 127:
//C
this.state = 126;
index63++;
Debug.locals.put("tipo", _tipo);
if (true) break;

case 41:
//C
this.state = 42;
 BA.debugLineNum = 1308;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE PE_FOLIO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_tipo}))));
 BA.debugLineNum = 1310;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (true) break;

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

case 44:
//C
this.state = 45;
 BA.debugLineNum = 1312;BA.debugLine="Dim siesacredi As Cursor = skmt.ExecQuery(\"SELE";
Debug.ShouldStop(-2147483648);
_siesacredi = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_siesacredi = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("siesacredi", _siesacredi);Debug.locals.put("siesacredi", _siesacredi);
 BA.debugLineNum = 1313;BA.debugLine="Printer1.WriteString(\"----------\" & \"PREVENTA\"";
Debug.ShouldStop(1);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("----------"),RemoteObject.createImmutable("PREVENTA"),RemoteObject.createImmutable("----------"),_elinefeed)));
 BA.debugLineNum = 1315;BA.debugLine="Printer1.WriteString(\"Cant.      Precio";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Cant.      Precio        Importe"),_elinefeed)));
 BA.debugLineNum = 1316;BA.debugLine="Printer1.WriteString(\"-------------------------";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 1319;BA.debugLine="s=skmt.ExecQuery2(\"select PE_BCAJAS,PE_PRONOMBR";
Debug.ShouldStop(64);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select PE_BCAJAS,PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU, PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND PE_CEDIS = ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {_tipo,parent._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))}))));
 BA.debugLineNum = 1321;BA.debugLine="If S.RowCount>0 Then";
Debug.ShouldStop(256);
if (true) break;

case 45:
//if
this.state = 72;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 47;
}if (true) break;

case 47:
//C
this.state = 48;
 BA.debugLineNum = 1322;BA.debugLine="For i=0 To S.RowCount -1";
Debug.ShouldStop(512);
if (true) break;

case 48:
//for
this.state = 71;
step72 = 1;
limit72 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
Debug.locals.put("i", _i);
this.state = 128;
if (true) break;

case 128:
//C
this.state = 71;
if ((step72 > 0 && _i <= limit72) || (step72 < 0 && _i >= limit72)) this.state = 50;
if (true) break;

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

case 50:
//C
this.state = 51;
 BA.debugLineNum = 1323;BA.debugLine="S.Position=i";
Debug.ShouldStop(1024);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1324;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_";
Debug.ShouldStop(2048);
if (true) break;

case 51:
//if
this.state = 70;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS"))),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))))) { 
this.state = 53;
}else {
this.state = 55;
}if (true) break;

case 53:
//C
this.state = 70;
 BA.debugLineNum = 1325;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
Debug.ShouldStop(4096);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 if (true) break;

case 55:
//C
this.state = 56;
 BA.debugLineNum = 1327;BA.debugLine="If s.GetString(\"PE_BCAJAS\") = 0 Then";
Debug.ShouldStop(16384);
if (true) break;

case 56:
//if
this.state = 69;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_BCAJAS"))),BA.NumberToString(0))) { 
this.state = 58;
}else {
this.state = 64;
}if (true) break;

case 58:
//C
this.state = 59;
 BA.debugLineNum = 1328;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOM";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 BA.debugLineNum = 1329;BA.debugLine="k1 = NumberFormat(s.GETSTRING(\"PE_COSTOU\"),";
Debug.ShouldStop(65536);
__ref.setField ("_k1" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1330;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT";
Debug.ShouldStop(131072);
__ref.setField ("_k2" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1332;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length +";
Debug.ShouldStop(524288);
__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,"_k1" /*RemoteObject*/ ).runMethod(true,"length"),__ref.getField(true,"_k2" /*RemoteObject*/ ).runMethod(true,"length")}, "++",2, 2)));
 BA.debugLineNum = 1333;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(1048576);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1334;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(2097152);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 1335;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
Debug.ShouldStop(4194304);
__ref.setField ("_espacio" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "-",1, 1));
 BA.debugLineNum = 1336;BA.debugLine="ESPACIO = ESPACIO / 2";
Debug.ShouldStop(8388608);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(2)}, "/",0, 0)));
 BA.debugLineNum = 1337;BA.debugLine="For E=0 To ESPACIO -1";
Debug.ShouldStop(16777216);
if (true) break;

case 59:
//for
this.state = 62;
step86 = 1;
limit86 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_e = 0 ;
Debug.locals.put("E", _e);
this.state = 130;
if (true) break;

case 130:
//C
this.state = 62;
if ((step86 > 0 && _e <= limit86) || (step86 < 0 && _e >= limit86)) this.state = 61;
if (true) break;

case 131:
//C
this.state = 130;
_e = ((int)(0 + _e + step86)) ;
Debug.locals.put("E", _e);
if (true) break;

case 61:
//C
this.state = 131;
 BA.debugLineNum = 1338;BA.debugLine="BLANCO = \" \" & BLANCO";
Debug.ShouldStop(33554432);
__ref.setField ("_blanco" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable(" "),__ref.getField(true,"_blanco" /*RemoteObject*/ )));
 if (true) break;
if (true) break;

case 62:
//C
this.state = 69;
Debug.locals.put("E", _e);
;
 BA.debugLineNum = 1341;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
Debug.ShouldStop(268435456);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k1" /*RemoteObject*/ ),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k2" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1342;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(536870912);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1343;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(1073741824);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1344;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(-2147483648);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 if (true) break;

case 64:
//C
this.state = 65;
 BA.debugLineNum = 1346;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOM";
Debug.ShouldStop(2);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 BA.debugLineNum = 1347;BA.debugLine="k1 = NumberFormat((s.GETSTRING(\"PE_COSTO_TO";
Debug.ShouldStop(4);
__ref.setField ("_k1" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT")))),BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))}, "/",0, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1348;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT";
Debug.ShouldStop(8);
__ref.setField ("_k2" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1350;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length +";
Debug.ShouldStop(32);
__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,"_k1" /*RemoteObject*/ ).runMethod(true,"length"),__ref.getField(true,"_k2" /*RemoteObject*/ ).runMethod(true,"length")}, "++",2, 2)));
 BA.debugLineNum = 1351;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(64);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1352;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(128);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 1353;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
Debug.ShouldStop(256);
__ref.setField ("_espacio" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "-",1, 1));
 BA.debugLineNum = 1354;BA.debugLine="ESPACIO = ESPACIO / 2";
Debug.ShouldStop(512);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(2)}, "/",0, 0)));
 BA.debugLineNum = 1355;BA.debugLine="For E=0 To ESPACIO -1";
Debug.ShouldStop(1024);
if (true) break;

case 65:
//for
this.state = 68;
step102 = 1;
limit102 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_e = 0 ;
Debug.locals.put("E", _e);
this.state = 132;
if (true) break;

case 132:
//C
this.state = 68;
if ((step102 > 0 && _e <= limit102) || (step102 < 0 && _e >= limit102)) this.state = 67;
if (true) break;

case 133:
//C
this.state = 132;
_e = ((int)(0 + _e + step102)) ;
Debug.locals.put("E", _e);
if (true) break;

case 67:
//C
this.state = 133;
 BA.debugLineNum = 1356;BA.debugLine="BLANCO = \" \" & BLANCO";
Debug.ShouldStop(2048);
__ref.setField ("_blanco" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable(" "),__ref.getField(true,"_blanco" /*RemoteObject*/ )));
 if (true) break;
if (true) break;

case 68:
//C
this.state = 69;
Debug.locals.put("E", _e);
;
 BA.debugLineNum = 1359;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
Debug.ShouldStop(16384);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k1" /*RemoteObject*/ ),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k2" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1360;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(32768);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1361;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(65536);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1362;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(131072);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 if (true) break;

case 69:
//C
this.state = 70;
;
 if (true) break;

case 70:
//C
this.state = 129;
;
 if (true) break;
if (true) break;

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

case 72:
//C
this.state = 73;
;
 BA.debugLineNum = 1367;BA.debugLine="s.Close";
Debug.ShouldStop(4194304);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1370;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
Debug.ShouldStop(33554432);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1371;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT";
Debug.ShouldStop(67108864);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select PE_PRONOMBRE, PE_CANT, PE_COSTOU, PE_CANT * PE_COSTOU AS PE_COSTO_TOT, PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND PE_CEDIS <> ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_COSTOU")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {_tipo,parent._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))}))));
 BA.debugLineNum = 1373;BA.debugLine="If s.RowCount>0 Then";
Debug.ShouldStop(268435456);
if (true) break;

case 73:
//if
this.state = 89;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 75;
}if (true) break;

case 75:
//C
this.state = 76;
 BA.debugLineNum = 1374;BA.debugLine="Printer1.WriteString(\"---PRODUCTOS EN PROMOCIO";
Debug.ShouldStop(536870912);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("---PRODUCTOS EN PROMOCION---"),_elinefeed)));
 BA.debugLineNum = 1375;BA.debugLine="Printer1.WriteString(\"Cant.      Precio";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Cant.      Precio        Importe"),_elinefeed)));
 BA.debugLineNum = 1376;BA.debugLine="Printer1.WriteString(\"------------------------";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 1378;BA.debugLine="For i=0 To S.RowCount -1";
Debug.ShouldStop(2);
if (true) break;

case 76:
//for
this.state = 88;
step120 = 1;
limit120 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
Debug.locals.put("i", _i);
this.state = 134;
if (true) break;

case 134:
//C
this.state = 88;
if ((step120 > 0 && _i <= limit120) || (step120 < 0 && _i >= limit120)) this.state = 78;
if (true) break;

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

case 78:
//C
this.state = 79;
 BA.debugLineNum = 1379;BA.debugLine="s.Position=i";
Debug.ShouldStop(4);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1380;BA.debugLine="k1 = NumberFormat(s.GETSTRING(\"PE_COSTOU\"),0,";
Debug.ShouldStop(8);
__ref.setField ("_k1" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1381;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT\")";
Debug.ShouldStop(16);
__ref.setField ("_k2" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1383;BA.debugLine="TAMANO = s.GetString(\"PE_CANT\").Length + k1.L";
Debug.ShouldStop(64);
__ref.setField ("_tamano" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))).runMethod(true,"length"),__ref.getField(true,"_k1" /*RemoteObject*/ ).runMethod(true,"length"),__ref.getField(true,"_k2" /*RemoteObject*/ ).runMethod(true,"length")}, "++",2, 1));
 BA.debugLineNum = 1384;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(128);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1385;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(256);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 1386;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
Debug.ShouldStop(512);
__ref.setField ("_espacio" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "-",1, 1));
 BA.debugLineNum = 1387;BA.debugLine="ESPACIO = ESPACIO / 2";
Debug.ShouldStop(1024);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(2)}, "/",0, 0)));
 BA.debugLineNum = 1388;BA.debugLine="For E=0 To ESPACIO -1";
Debug.ShouldStop(2048);
if (true) break;

case 79:
//for
this.state = 82;
step129 = 1;
limit129 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_e = 0 ;
Debug.locals.put("E", _e);
this.state = 136;
if (true) break;

case 136:
//C
this.state = 82;
if ((step129 > 0 && _e <= limit129) || (step129 < 0 && _e >= limit129)) this.state = 81;
if (true) break;

case 137:
//C
this.state = 136;
_e = ((int)(0 + _e + step129)) ;
Debug.locals.put("E", _e);
if (true) break;

case 81:
//C
this.state = 137;
 BA.debugLineNum = 1389;BA.debugLine="BLANCO = \" \" & BLANCO";
Debug.ShouldStop(4096);
__ref.setField ("_blanco" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable(" "),__ref.getField(true,"_blanco" /*RemoteObject*/ )));
 if (true) break;
if (true) break;
Debug.locals.put("E", _e);
;
 BA.debugLineNum = 1391;BA.debugLine="If s.GetString(\"PE_PROID\") = s.GetString(\"PE_";
Debug.ShouldStop(16384);

case 82:
//if
this.state = 87;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS"))))) { 
this.state = 84;
}else {
this.state = 86;
}if (true) break;

case 84:
//C
this.state = 87;
 BA.debugLineNum = 1392;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 BA.debugLineNum = 1393;BA.debugLine="Printer1.WriteString(\" \"& eLINEFEED)";
Debug.ShouldStop(65536);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 if (true) break;

case 86:
//C
this.state = 87;
 BA.debugLineNum = 1395;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 BA.debugLineNum = 1396;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k1" /*RemoteObject*/ ),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k2" /*RemoteObject*/ ),_elinefeed)));
 if (true) break;

case 87:
//C
this.state = 135;
;
 if (true) break;
if (true) break;

case 88:
//C
this.state = 89;
Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1400;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
Debug.ShouldStop(8388608);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 if (true) break;

case 89:
//C
this.state = 90;
;
 BA.debugLineNum = 1418;BA.debugLine="s.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1419;BA.debugLine="s = skmt.ExecQuery($\"SELECT SUM(CAT_GP_PRECIO *";
Debug.ShouldStop(1024);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("SELECT SUM(CAT_GP_PRECIO * PE_CANT) As SUBTOTAL FROM PEDIDO P INNER JOIN CAT_GUNAPROD C ON P.PE_PROID = C.CAT_GP_ID And P.PE_CEDIS = P.PE_PROID WHERE PE_CLIENTE IN (Select cuenta FROM CUENTAA) And PE_FOLIO = 'PREVENTA_CONTADO'")))));
 BA.debugLineNum = 1420;BA.debugLine="Dim subtotal As Double";
Debug.ShouldStop(2048);
_subtotal = RemoteObject.createImmutable(0);Debug.locals.put("subtotal", _subtotal);
 BA.debugLineNum = 1421;BA.debugLine="s.Position = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1422;BA.debugLine="subtotal = s.GetDouble(\"SUBTOTAL\")";
Debug.ShouldStop(8192);
_subtotal = __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("SUBTOTAL")));Debug.locals.put("subtotal", _subtotal);
 BA.debugLineNum = 1423;BA.debugLine="s.Close";
Debug.ShouldStop(16384);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1425;BA.debugLine="Dim subtot As Cursor = skmt.ExecQuery(\"SELECT S";
Debug.ShouldStop(65536);
_subtot = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_subtot = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT SUM(P.PE_COSTO_TOT) As TOTAL_SIN_PROMO FROM PEDIDO P INNER JOIN CAT_GUNAPROD C ON P.PE_PROID = C.CAT_GP_ID WHERE P.PE_CLIENTE IN (Select cuenta FROM CUENTAA) And P.PE_FOLIO = 'PREVENTA_CONTADO' And PE_CEDIS Not IN (Select DISTINCT PE_PROID FROM PEDIDO)"))));Debug.locals.put("subtot", _subtot);Debug.locals.put("subtot", _subtot);
 BA.debugLineNum = 1426;BA.debugLine="subtot.Position = 0";
Debug.ShouldStop(131072);
_subtot.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1427;BA.debugLine="subtotal = subtotal + subtot.GetDouble(\"TOTAL_S";
Debug.ShouldStop(262144);
_subtotal = RemoteObject.solve(new RemoteObject[] {_subtotal,_subtot.runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("TOTAL_SIN_PROMO")))}, "+",1, 0);Debug.locals.put("subtotal", _subtotal);
 BA.debugLineNum = 1428;BA.debugLine="subtot.Close";
Debug.ShouldStop(524288);
_subtot.runVoidMethod ("Close");
 BA.debugLineNum = 1430;BA.debugLine="subtotal = Round2(subtotal, 2)";
Debug.ShouldStop(2097152);
_subtotal = parent.__c.runMethod(true,"Round2",(Object)(_subtotal),(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("subtotal", _subtotal);
 BA.debugLineNum = 1431;BA.debugLine="Printer1.WriteString(\"Subtotal:   $\" & NumberFo";
Debug.ShouldStop(4194304);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Subtotal:   $"),parent.__c.runMethod(true,"NumberFormat",(Object)(_subtotal),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))),_elinefeed)));
 BA.debugLineNum = 1434;BA.debugLine="Dim descuento As Double";
Debug.ShouldStop(33554432);
_descuento = RemoteObject.createImmutable(0);Debug.locals.put("descuento", _descuento);
 BA.debugLineNum = 1435;BA.debugLine="s = skmt.ExecQuery2(\"SELECT SUM(PE_COSTO_TOT) A";
Debug.ShouldStop(67108864);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("PREVENTA_CONTADO")}))));
 BA.debugLineNum = 1436;BA.debugLine="s.Position = 0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1437;BA.debugLine="Dim total As Double = s.GetDouble(\"TOTAL\")";
Debug.ShouldStop(268435456);
_total = __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("TOTAL")));Debug.locals.put("total", _total);Debug.locals.put("total", _total);
 BA.debugLineNum = 1438;BA.debugLine="descuento = subtotal - total";
Debug.ShouldStop(536870912);
_descuento = RemoteObject.solve(new RemoteObject[] {_subtotal,_total}, "-",1, 0);Debug.locals.put("descuento", _descuento);
 BA.debugLineNum = 1439;BA.debugLine="descuento = Round2(descuento, 2) ' Redondear de";
Debug.ShouldStop(1073741824);
_descuento = parent.__c.runMethod(true,"Round2",(Object)(_descuento),(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("descuento", _descuento);
 BA.debugLineNum = 1440;BA.debugLine="s.Close";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1443;BA.debugLine="Printer1.WriteString(\"Total preventa:   $\" & Nu";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total preventa:   $"),parent.__c.runMethod(true,"NumberFormat",(Object)(_total),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))),_elinefeed)));
 BA.debugLineNum = 1444;BA.debugLine="Printer1.WriteString(\"Usted ahorro:   $\" & Numb";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Usted ahorro:   $"),parent.__c.runMethod(true,"NumberFormat",(Object)(_descuento),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))),_elinefeed)));
 BA.debugLineNum = 1448;BA.debugLine="Dim c As Cursor = skmt.ExecQuery2(\"SELECT SUM(P";
Debug.ShouldStop(128);
parent._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
parent._c = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT SUM(PE_CANT) AS PC_NOART FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP) AND PE_FOLIO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("PREVENTA_CONTADO")}))));__ref.setField("_c",parent._c);
 BA.debugLineNum = 1449;BA.debugLine="c.Position = 0";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1450;BA.debugLine="Printer1.WriteString(\"Total art. preventa: \" &";
Debug.ShouldStop(512);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total art. preventa: "),parent.__c.runMethod(true,"NumberFormat",(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetDouble",(Object)(RemoteObject.createImmutable("PC_NOART")))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0))),_elinefeed)));
 BA.debugLineNum = 1451;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1454;BA.debugLine="If tipo = \"PREVENTA_CREDITO\" Then";
Debug.ShouldStop(8192);
if (true) break;

case 90:
//if
this.state = 107;
if (RemoteObject.solveBoolean("=",_tipo,BA.ObjectToString("PREVENTA_CREDITO"))) { 
this.state = 92;
}if (true) break;

case 92:
//C
this.state = 93;
 BA.debugLineNum = 1455;BA.debugLine="Dim siesacredi As Cursor = skmt.ExecQuery(\"SEL";
Debug.ShouldStop(16384);
_siesacredi = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_siesacredi = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), __ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));Debug.locals.put("siesacredi", _siesacredi);Debug.locals.put("siesacredi", _siesacredi);
 BA.debugLineNum = 1456;BA.debugLine="If siesacredi.RowCount > 0 Then";
Debug.ShouldStop(32768);
if (true) break;

case 93:
//if
this.state = 106;
if (RemoteObject.solveBoolean(">",_siesacredi.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 95;
}if (true) break;

case 95:
//C
this.state = 96;
 BA.debugLineNum = 1457;BA.debugLine="siesacredi.Position = 0";
Debug.ShouldStop(65536);
_siesacredi.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1458;BA.debugLine="Dim monto As String = siesacredi.GetString(\"P";
Debug.ShouldStop(131072);
_monto = _siesacredi.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_MONTO")));Debug.locals.put("monto", _monto);Debug.locals.put("monto", _monto);
 BA.debugLineNum = 1459;BA.debugLine="If monto = Null Or monto = \"\" Then monto = \"0";
Debug.ShouldStop(262144);
if (true) break;

case 96:
//if
this.state = 101;
if (RemoteObject.solveBoolean("n",_monto) || RemoteObject.solveBoolean("=",_monto,BA.ObjectToString(""))) { 
this.state = 98;
;}if (true) break;

case 98:
//C
this.state = 101;
_monto = BA.ObjectToString("0");Debug.locals.put("monto", _monto);
if (true) break;

case 101:
//C
this.state = 102;
;
 BA.debugLineNum = 1460;BA.debugLine="Printer1.WriteString(\"Total a credito:   $\" &";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total a credito:   $"),parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, _monto)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))),_elinefeed)));
 BA.debugLineNum = 1462;BA.debugLine="s=skmt.ExecQuery2(\"select SUM(PE_COSTO_TOT) A";
Debug.ShouldStop(2097152);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {_tipo}))));
 BA.debugLineNum = 1463;BA.debugLine="s.Position =0";
Debug.ShouldStop(4194304);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1464;BA.debugLine="Dim total As Double = IIf(s.GetString(\"TOTAL\"";
Debug.ShouldStop(8388608);
_total = BA.numberCast(double.class, ((RemoteObject.solveBoolean("n",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL")))) || RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL"))),BA.ObjectToString(""))) ? (RemoteObject.createImmutable((0))) : ((__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL")))))));Debug.locals.put("total", _total);Debug.locals.put("total", _total);
 BA.debugLineNum = 1465;BA.debugLine="Dim paMonto As Double = IIf(siesacredi.GetStr";
Debug.ShouldStop(16777216);
_pamonto = BA.numberCast(double.class, ((RemoteObject.solveBoolean("n",_siesacredi.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_MONTO")))) || RemoteObject.solveBoolean("=",_siesacredi.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_MONTO"))),BA.ObjectToString(""))) ? (RemoteObject.createImmutable((0))) : ((_siesacredi.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_MONTO")))))));Debug.locals.put("paMonto", _pamonto);Debug.locals.put("paMonto", _pamonto);
 BA.debugLineNum = 1467;BA.debugLine="If total > paMonto Then";
Debug.ShouldStop(67108864);
if (true) break;

case 102:
//if
this.state = 105;
if (RemoteObject.solveBoolean(">",_total,_pamonto)) { 
this.state = 104;
}if (true) break;

case 104:
//C
this.state = 105;
 BA.debugLineNum = 1468;BA.debugLine="Printer1.WriteString(\"Total a contado:   $\"";
Debug.ShouldStop(134217728);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total a contado:   $"),parent.__c.runMethod(true,"NumberFormat",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL")))),BA.numberCast(double.class, _siesacredi.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PA_MONTO"))))}, "-",1, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))),_elinefeed)));
 if (true) break;

case 105:
//C
this.state = 106;
;
 BA.debugLineNum = 1470;BA.debugLine="s.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 106:
//C
this.state = 107;
;
 if (true) break;

case 107:
//C
this.state = 108;
;
 BA.debugLineNum = 1474;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
Debug.ShouldStop(2);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 if (true) break;

case 108:
//C
this.state = 127;
;
 if (true) break;
if (true) break;

case 109:
//C
this.state = 110;
Debug.locals.put("tipo", _tipo);
;
 BA.debugLineNum = 1478;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(32);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 1479;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
Debug.ShouldStop(64);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("----ESTE TICKET NO ES UN -----"),_elinefeed)));
 BA.debugLineNum = 1480;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE DE PAGO NI FI";
Debug.ShouldStop(128);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("--COMPROBANTE DE PAGO NI FISCAL-"),_elinefeed)));
 BA.debugLineNum = 1481;BA.debugLine="Printer1.WriteString(\"--ES UN TICKET INFORMATIVO-";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("--ES UN TICKET INFORMATIVO----"),_elinefeed)));
 BA.debugLineNum = 1482;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(512);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 1483;BA.debugLine="If ALMACEN = \"2\" Then";
Debug.ShouldStop(1024);
if (true) break;

case 110:
//if
this.state = 115;
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("2"))) { 
this.state = 112;
}else 
{ BA.debugLineNum = 1485;BA.debugLine="Else If ALMACEN = \"3\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_almacen" /*RemoteObject*/ ),BA.ObjectToString("3"))) { 
this.state = 114;
}}
if (true) break;

case 112:
//C
this.state = 115;
 BA.debugLineNum = 1484;BA.debugLine="Printer1.WriteString(\"TEL.: 5591972829\" & eLINEF";
Debug.ShouldStop(2048);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("TEL.: 5591972829"),_elinefeed)));
 if (true) break;

case 114:
//C
this.state = 115;
 BA.debugLineNum = 1486;BA.debugLine="Printer1.WriteString(\"TEL.: 5579797285\" & eLINEF";
Debug.ShouldStop(8192);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("TEL.: 5579797285"),_elinefeed)));
 if (true) break;

case 115:
//C
this.state = 116;
;
 BA.debugLineNum = 1488;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1489;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
Debug.ShouldStop(65536);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1490;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)";
Debug.ShouldStop(131072);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1491;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_preventa"),BA.numberCast(int.class, 1000));
this.state = 138;
return;
case 138:
//C
this.state = 116;
;
 BA.debugLineNum = 1492;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 1494;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(2097152);
parent.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 1496;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket?";
Debug.ShouldStop(8388608);
parent.__c.runVoidMethod ("Msgbox2Async",(Object)(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?")),(Object)(BA.ObjectToCharSequence("ATENCION")),(Object)(BA.ObjectToString("SI")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("NO")),(Object)(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png")))),__ref.getField(false, "ba"),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 1497;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(16777216);
parent.__c.runVoidMethod ("WaitFor","msgbox_result", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_preventa"), null);
this.state = 139;
return;
case 139:
//C
this.state = 116;
_resultado = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("resultado", _resultado);
;
 BA.debugLineNum = 1498;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(33554432);
if (true) break;

case 116:
//if
this.state = 121;
if (RemoteObject.solveBoolean("=",_resultado,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 118;
}else {
this.state = 120;
}if (true) break;

case 118:
//C
this.state = 121;
 BA.debugLineNum = 1499;BA.debugLine="B_IMP_Click";
Debug.ShouldStop(67108864);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_b_imp_click" /*RemoteObject*/ );
 if (true) break;

case 120:
//C
this.state = 121;
 BA.debugLineNum = 1501;BA.debugLine="GUADAVENTA2";
Debug.ShouldStop(268435456);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guadaventa2" /*RemoteObject*/ );
 if (true) break;

case 121:
//C
this.state = -1;
;
 BA.debugLineNum = 1503;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _imprime_venta(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("imprime_venta (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1505);
if (RapidSub.canDelegate("imprime_venta")) { __ref.runUserSub(false, "c_cliente","imprime_venta", __ref); return;}
ResumableSub_imprime_venta rsub = new ResumableSub_imprime_venta(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_imprime_venta extends BA.ResumableSub {
public ResumableSub_imprime_venta(SHARK2.keymon.com.mx.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;
SHARK2.keymon.com.mx.c_cliente parent;
RemoteObject _elinefeed = RemoteObject.createImmutable("");
RemoteObject _cont = RemoteObject.createImmutable(0);
RemoteObject _bmp = RemoteObject.declareNull("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");
RemoteObject _myimage = RemoteObject.declareNull("SHARK2.keymon.com.mx.escposprinter._animage");
int _i = 0;
int _e = 0;
RemoteObject _resultado = RemoteObject.createImmutable(0);
int step65;
int limit65;
int step79;
int limit79;
int step95;
int limit95;
int step113;
int limit113;
int step127;
int limit127;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("imprime_venta (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1505);
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 = 1506;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO from usuarioa"))));
 BA.debugLineNum = 1507;BA.debugLine="c.Position=0";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1508;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(8);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1509;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(16);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 1510;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(32);
__ref.setField ("_sdate" /*RemoteObject*/ ,parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1511;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(64);
__ref.setField ("_stime" /*RemoteObject*/ ,parent.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 1512;BA.debugLine="c.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1518;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)";
Debug.ShouldStop(8192);
_elinefeed = RemoteObject.concat(RemoteObject.createImmutable(""),parent.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0d)))),parent.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0a)))));Debug.locals.put("eLINEFEED", _elinefeed);Debug.locals.put("eLINEFEED", _elinefeed);
 BA.debugLineNum = 1520;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
Debug.ShouldStop(32768);
parent.__c.runVoidMethod ("ProgressDialogShow",__ref.getField(false, "ba"),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Imprimiendo, un momento ..."))));
 BA.debugLineNum = 1521;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(65536);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 1522;BA.debugLine="If Not(Printer1.IsConnected) Then";
Debug.ShouldStop(131072);
if (true) break;

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

case 3:
//C
this.state = 4;
 BA.debugLineNum = 1524;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 1525;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(1048576);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1526;BA.debugLine="Do While Not(impresoraConectada)";
Debug.ShouldStop(2097152);
if (true) break;

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

case 6:
//C
this.state = 7;
 BA.debugLineNum = 1527;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(4194304);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_venta"),BA.numberCast(int.class, 1000));
this.state = 99;
return;
case 99:
//C
this.state = 7;
;
 BA.debugLineNum = 1528;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(8388608);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1529;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de";
Debug.ShouldStop(16777216);
if (true) break;

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

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

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

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

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

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

case 19:
//C
this.state = 38;
;
 BA.debugLineNum = 1532;BA.debugLine="Sleep(500)";
Debug.ShouldStop(134217728);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_venta"),BA.numberCast(int.class, 500));
this.state = 100;
return;
case 100:
//C
this.state = 38;
;
 BA.debugLineNum = 1533;BA.debugLine="impresoraConectada = False";
Debug.ShouldStop(268435456);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,parent.__c.getField(true,"False"));
 if (true) break;

case 21:
//C
this.state = 22;
 BA.debugLineNum = 1536;BA.debugLine="Printer1.Connect";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_connect" /*RemoteObject*/ );
 BA.debugLineNum = 1537;BA.debugLine="Private cont As Int = 0";
Debug.ShouldStop(1);
_cont = BA.numberCast(int.class, 0);Debug.locals.put("cont", _cont);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1538;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1";
Debug.ShouldStop(2);
if (true) break;

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

case 24:
//C
this.state = 25;
 BA.debugLineNum = 1539;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(4);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_venta"),BA.numberCast(int.class, 1000));
this.state = 101;
return;
case 101:
//C
this.state = 25;
;
 BA.debugLineNum = 1540;BA.debugLine="cont = cont + 1";
Debug.ShouldStop(8);
_cont = RemoteObject.solve(new RemoteObject[] {_cont,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("cont", _cont);
 BA.debugLineNum = 1541;BA.debugLine="If cont = 2 Then Printer1.Connect";
Debug.ShouldStop(16);
if (true) break;

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

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

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

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

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

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

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

case 38:
//C
this.state = 39;
;
 BA.debugLineNum = 1548;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(2048);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1549;BA.debugLine="ESPACIO = 22";
Debug.ShouldStop(4096);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 22));
 BA.debugLineNum = 1550;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(8192);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 1568;BA.debugLine="Dim bmp As Bitmap";
Debug.ShouldStop(-2147483648);
_bmp = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");Debug.locals.put("bmp", _bmp);
 BA.debugLineNum = 1569;BA.debugLine="Printer1.Justify = 1";
Debug.ShouldStop(1);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_setjustify",BA.numberCast(int.class, 1));
 BA.debugLineNum = 1570;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"amigos.jpg\"";
Debug.ShouldStop(2);
_bmp.runVoidMethod ("InitializeResize",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("amigos.jpg")),(Object)(BA.numberCast(int.class, 192)),(Object)(BA.numberCast(int.class, 252)),(Object)(parent.__c.getField(true,"True")));
 BA.debugLineNum = 1571;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage(";
Debug.ShouldStop(4);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_imagetobwimage" /*RemoteObject*/ ,(Object)(_bmp));Debug.locals.put("myimage", _myimage);Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 1573;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)";
Debug.ShouldStop(16);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_ditherimage2d" /*RemoteObject*/ ,(Object)(_myimage),(Object)(BA.numberCast(int.class, 128)));Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 1575;BA.debugLine="myimage= Printer1.PackImage(myimage)";
Debug.ShouldStop(64);
_myimage = __ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_packimage" /*RemoteObject*/ ,(Object)(_myimage));Debug.locals.put("myimage", _myimage);
 BA.debugLineNum = 1576;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to";
Debug.ShouldStop(128);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(parent.__c.getField(true,"CRLF")));
 BA.debugLineNum = 1577;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).getField(true,"_reverse" /*RemoteObject*/ )));
 BA.debugLineNum = 1579;BA.debugLine="Printer1.PrintImage(myimage)";
Debug.ShouldStop(1024);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_printimage" /*RemoteObject*/ ,(Object)(_myimage));
 BA.debugLineNum = 1580;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)";
Debug.ShouldStop(2048);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_printer1" /*RemoteObject*/ ).getField(true,"_unreverse" /*RemoteObject*/ )));
 BA.debugLineNum = 1582;BA.debugLine="Printer1.Justify = 0";
Debug.ShouldStop(8192);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_setjustify",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1584;BA.debugLine="Printer1.WriteString(\"CANDY SHARK2\" &  eLINEFEED)";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("CANDY SHARK2"),_elinefeed)));
 BA.debugLineNum = 1586;BA.debugLine="Printer1.WriteString(sDate &  eLINEFEED)";
Debug.ShouldStop(131072);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1587;BA.debugLine="Printer1.WriteString(sTime &  eLINEFEED)";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_stime" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1588;BA.debugLine="Printer1.WriteString(\"Vendedor: \" & TraeVendedor";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Vendedor: "),__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_traevendedor" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1589;BA.debugLine="Printer1.WriteString(\"Numero de Vendedor: \" & Tra";
Debug.ShouldStop(1048576);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Numero de Vendedor: "),__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_traenumvendedor" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1590;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text";
Debug.ShouldStop(2097152);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Tienda: "),__ref.getField(false,"_la_nombre" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 1591;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" &  la_cuenta.";
Debug.ShouldStop(4194304);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("ID.Cliente: "),__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 1592;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &";
Debug.ShouldStop(8388608);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Calle: "),__ref.getField(false,"_la_calle" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 1593;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &";
Debug.ShouldStop(16777216);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Colonia: "),__ref.getField(false,"_la_col" /*RemoteObject*/ ).runMethod(true,"getText"),_elinefeed)));
 BA.debugLineNum = 1597;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(268435456);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1598;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE P";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE PE_FOLIO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("VENTA")}))));
 BA.debugLineNum = 1599;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(1073741824);
if (true) break;

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

case 41:
//C
this.state = 42;
 BA.debugLineNum = 1600;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("-----------VENTA-----------"),_elinefeed)));
 BA.debugLineNum = 1603;BA.debugLine="Printer1.WriteString(\"Cant.      Precio        I";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Cant.      Precio        Importe"),_elinefeed)));
 BA.debugLineNum = 1605;BA.debugLine="Printer1.WriteString(\"--------------------------";
Debug.ShouldStop(16);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 1607;BA.debugLine="s=skmt.ExecQuery2(\"select PE_BCAJAS, PE_PRONOMBR";
Debug.ShouldStop(64);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select PE_BCAJAS, PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU, PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS  FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa)  order by  PE_PROID")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("VENTA")}))));
 BA.debugLineNum = 1608;BA.debugLine="If S.RowCount>0 Then";
Debug.ShouldStop(128);
if (true) break;

case 42:
//if
this.state = 69;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 44;
}if (true) break;

case 44:
//C
this.state = 45;
 BA.debugLineNum = 1609;BA.debugLine="For i=0 To S.RowCount -1";
Debug.ShouldStop(256);
if (true) break;

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

case 103:
//C
this.state = 68;
if ((step65 > 0 && _i <= limit65) || (step65 < 0 && _i >= limit65)) this.state = 47;
if (true) break;

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

case 47:
//C
this.state = 48;
 BA.debugLineNum = 1610;BA.debugLine="S.Position=i";
Debug.ShouldStop(512);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1611;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_P";
Debug.ShouldStop(1024);
if (true) break;

case 48:
//if
this.state = 67;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS"))),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))))) { 
this.state = 50;
}else {
this.state = 52;
}if (true) break;

case 50:
//C
this.state = 67;
 BA.debugLineNum = 1612;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBR";
Debug.ShouldStop(2048);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 if (true) break;

case 52:
//C
this.state = 53;
 BA.debugLineNum = 1616;BA.debugLine="If s.GetString(\"PE_BCAJAS\") = 0 Then";
Debug.ShouldStop(32768);
if (true) break;

case 53:
//if
this.state = 66;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_BCAJAS"))),BA.NumberToString(0))) { 
this.state = 55;
}else {
this.state = 61;
}if (true) break;

case 55:
//C
this.state = 56;
 BA.debugLineNum = 1619;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 BA.debugLineNum = 1657;BA.debugLine="k1 = NumberFormat(s.GETSTRING(\"PE_COSTOU\"),0";
Debug.ShouldStop(16777216);
__ref.setField ("_k1" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1658;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT\"";
Debug.ShouldStop(33554432);
__ref.setField ("_k2" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1660;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length + k";
Debug.ShouldStop(134217728);
__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,"_k1" /*RemoteObject*/ ).runMethod(true,"length"),__ref.getField(true,"_k2" /*RemoteObject*/ ).runMethod(true,"length")}, "++",2, 2)));
 BA.debugLineNum = 1661;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(268435456);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1662;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(536870912);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 1663;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
Debug.ShouldStop(1073741824);
__ref.setField ("_espacio" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "-",1, 1));
 BA.debugLineNum = 1664;BA.debugLine="ESPACIO = ESPACIO / 2";
Debug.ShouldStop(-2147483648);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(2)}, "/",0, 0)));
 BA.debugLineNum = 1665;BA.debugLine="For E=0 To ESPACIO -1";
Debug.ShouldStop(1);
if (true) break;

case 56:
//for
this.state = 59;
step79 = 1;
limit79 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_e = 0 ;
Debug.locals.put("E", _e);
this.state = 105;
if (true) break;

case 105:
//C
this.state = 59;
if ((step79 > 0 && _e <= limit79) || (step79 < 0 && _e >= limit79)) this.state = 58;
if (true) break;

case 106:
//C
this.state = 105;
_e = ((int)(0 + _e + step79)) ;
Debug.locals.put("E", _e);
if (true) break;

case 58:
//C
this.state = 106;
 BA.debugLineNum = 1666;BA.debugLine="BLANCO = \" \" & BLANCO";
Debug.ShouldStop(2);
__ref.setField ("_blanco" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable(" "),__ref.getField(true,"_blanco" /*RemoteObject*/ )));
 if (true) break;
if (true) break;

case 59:
//C
this.state = 66;
Debug.locals.put("E", _e);
;
 BA.debugLineNum = 1669;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
Debug.ShouldStop(16);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k1" /*RemoteObject*/ ),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k2" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1671;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(64);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1672;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(128);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1673;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(256);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 if (true) break;

case 61:
//C
this.state = 62;
 BA.debugLineNum = 1676;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMB";
Debug.ShouldStop(2048);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 BA.debugLineNum = 1720;BA.debugLine="k1 = NumberFormat((s.GETSTRING(\"PE_COSTO_TOT";
Debug.ShouldStop(8388608);
__ref.setField ("_k1" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT")))),BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))))}, "/",0, 0))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1721;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT\"";
Debug.ShouldStop(16777216);
__ref.setField ("_k2" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1723;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length + k";
Debug.ShouldStop(67108864);
__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,"_k1" /*RemoteObject*/ ).runMethod(true,"length"),__ref.getField(true,"_k2" /*RemoteObject*/ ).runMethod(true,"length")}, "++",2, 2)));
 BA.debugLineNum = 1724;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(134217728);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1725;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(268435456);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 1726;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
Debug.ShouldStop(536870912);
__ref.setField ("_espacio" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "-",1, 1));
 BA.debugLineNum = 1727;BA.debugLine="ESPACIO = ESPACIO / 2";
Debug.ShouldStop(1073741824);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(2)}, "/",0, 0)));
 BA.debugLineNum = 1728;BA.debugLine="For E=0 To ESPACIO -1";
Debug.ShouldStop(-2147483648);
if (true) break;

case 62:
//for
this.state = 65;
step95 = 1;
limit95 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_e = 0 ;
Debug.locals.put("E", _e);
this.state = 107;
if (true) break;

case 107:
//C
this.state = 65;
if ((step95 > 0 && _e <= limit95) || (step95 < 0 && _e >= limit95)) this.state = 64;
if (true) break;

case 108:
//C
this.state = 107;
_e = ((int)(0 + _e + step95)) ;
Debug.locals.put("E", _e);
if (true) break;

case 64:
//C
this.state = 108;
 BA.debugLineNum = 1729;BA.debugLine="BLANCO = \" \" & BLANCO";
Debug.ShouldStop(1);
__ref.setField ("_blanco" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable(" "),__ref.getField(true,"_blanco" /*RemoteObject*/ )));
 if (true) break;
if (true) break;

case 65:
//C
this.state = 66;
Debug.locals.put("E", _e);
;
 BA.debugLineNum = 1732;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k1" /*RemoteObject*/ ),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k2" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1734;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(32);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1735;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(64);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1736;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(128);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 if (true) break;

case 66:
//C
this.state = 67;
;
 if (true) break;

case 67:
//C
this.state = 104;
;
 if (true) break;
if (true) break;

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

case 69:
//C
this.state = 70;
;
 BA.debugLineNum = 1743;BA.debugLine="s.Close";
Debug.ShouldStop(16384);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1744;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(32768);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1745;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,";
Debug.ShouldStop(65536);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS  PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS  FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) > 3 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by  PE_CEDIS, PE_COSTOU")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("VENTA")}))));
 BA.debugLineNum = 1746;BA.debugLine="If S.RowCount>0 Then";
Debug.ShouldStop(131072);
if (true) break;

case 70:
//if
this.state = 87;
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 72;
}if (true) break;

case 72:
//C
this.state = 73;
 BA.debugLineNum = 1747;BA.debugLine="Printer1.WriteString(\"-------PROMOS VENTA------";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("-------PROMOS VENTA--------"),_elinefeed)));
 BA.debugLineNum = 1748;BA.debugLine="Printer1.WriteString(\"Cant.      Precio";
Debug.ShouldStop(524288);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Cant.      Precio        Importe"),_elinefeed)));
 BA.debugLineNum = 1749;BA.debugLine="Printer1.WriteString(\"-------------------------";
Debug.ShouldStop(1048576);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 1750;BA.debugLine="For i=0 To S.RowCount -1";
Debug.ShouldStop(2097152);
if (true) break;

case 73:
//for
this.state = 86;
step113 = 1;
limit113 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
Debug.locals.put("i", _i);
this.state = 109;
if (true) break;

case 109:
//C
this.state = 86;
if ((step113 > 0 && _i <= limit113) || (step113 < 0 && _i >= limit113)) this.state = 75;
if (true) break;

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

case 75:
//C
this.state = 76;
 BA.debugLineNum = 1751;BA.debugLine="s.Position=i";
Debug.ShouldStop(4194304);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1752;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_P";
Debug.ShouldStop(8388608);
if (true) break;

case 76:
//if
this.state = 85;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS"))),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))))) { 
this.state = 78;
}else {
this.state = 80;
}if (true) break;

case 78:
//C
this.state = 85;
 BA.debugLineNum = 1753;BA.debugLine="Printer1.WriteString(\"* \"& s.GetString(\"PE_PR";
Debug.ShouldStop(16777216);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("* "),__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 BA.debugLineNum = 1754;BA.debugLine="Log(\"promo\")";
Debug.ShouldStop(33554432);
parent.__c.runVoidMethod ("LogImpl","56488313",RemoteObject.createImmutable("promo"),0);
 if (true) break;

case 80:
//C
this.state = 81;
 BA.debugLineNum = 1757;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBR";
Debug.ShouldStop(268435456);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))),_elinefeed)));
 BA.debugLineNum = 1799;BA.debugLine="k1 = NumberFormat(s.GETSTRING(\"PE_COSTOU\"),0,";
Debug.ShouldStop(64);
__ref.setField ("_k1" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1800;BA.debugLine="k2 = NumberFormat(s.GETSTRING(\"PE_COSTO_TOT\")";
Debug.ShouldStop(128);
__ref.setField ("_k2" /*RemoteObject*/ ,parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))));
 BA.debugLineNum = 1802;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + k1.Length + k2";
Debug.ShouldStop(512);
__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,"_k1" /*RemoteObject*/ ).runMethod(true,"length"),__ref.getField(true,"_k2" /*RemoteObject*/ ).runMethod(true,"length")}, "++",2, 2)));
 BA.debugLineNum = 1803;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(1024);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1804;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(2048);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 BA.debugLineNum = 1805;BA.debugLine="ESPACIO = ESPACIO - TAMANO";
Debug.ShouldStop(4096);
__ref.setField ("_espacio" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),__ref.getField(true,"_tamano" /*RemoteObject*/ )}, "-",1, 1));
 BA.debugLineNum = 1806;BA.debugLine="ESPACIO = ESPACIO / 2";
Debug.ShouldStop(8192);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(2)}, "/",0, 0)));
 BA.debugLineNum = 1807;BA.debugLine="For E=0 To ESPACIO -1";
Debug.ShouldStop(16384);
if (true) break;

case 81:
//for
this.state = 84;
step127 = 1;
limit127 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_espacio" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_e = 0 ;
Debug.locals.put("E", _e);
this.state = 111;
if (true) break;

case 111:
//C
this.state = 84;
if ((step127 > 0 && _e <= limit127) || (step127 < 0 && _e >= limit127)) this.state = 83;
if (true) break;

case 112:
//C
this.state = 111;
_e = ((int)(0 + _e + step127)) ;
Debug.locals.put("E", _e);
if (true) break;

case 83:
//C
this.state = 112;
 BA.debugLineNum = 1808;BA.debugLine="BLANCO = \" \" & BLANCO";
Debug.ShouldStop(32768);
__ref.setField ("_blanco" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable(" "),__ref.getField(true,"_blanco" /*RemoteObject*/ )));
 if (true) break;
if (true) break;

case 84:
//C
this.state = 85;
Debug.locals.put("E", _e);
;
 BA.debugLineNum = 1811;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\") &";
Debug.ShouldStop(262144);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT"))),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k1" /*RemoteObject*/ ),__ref.getField(true,"_blanco" /*RemoteObject*/ ),__ref.getField(true,"_k2" /*RemoteObject*/ ),_elinefeed)));
 BA.debugLineNum = 1813;BA.debugLine="TAMANO = 0";
Debug.ShouldStop(1048576);
__ref.setField ("_tamano" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 1814;BA.debugLine="ESPACIO = 30";
Debug.ShouldStop(2097152);
__ref.setField ("_espacio" /*RemoteObject*/ ,BA.numberCast(int.class, 30));
 BA.debugLineNum = 1815;BA.debugLine="BLANCO = \" \"";
Debug.ShouldStop(4194304);
__ref.setField ("_blanco" /*RemoteObject*/ ,BA.ObjectToString(" "));
 if (true) break;

case 85:
//C
this.state = 110;
;
 if (true) break;
if (true) break;

case 86:
//C
this.state = 87;
Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1819;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(67108864);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 if (true) break;

case 87:
//C
this.state = 88;
;
 BA.debugLineNum = 1821;BA.debugLine="s.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1823;BA.debugLine="s=skmt.ExecQuery2(\"select SUM(PE_COSTO_TOT) AS T";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FOLIO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("VENTA")}))));
 BA.debugLineNum = 1824;BA.debugLine="s.Position =0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1828;BA.debugLine="Printer1.WriteString(\"Total venta:   $\" & Number";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total venta:   $"),parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2))),_elinefeed)));
 BA.debugLineNum = 1830;BA.debugLine="s.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1831;BA.debugLine="c= skmt.ExecQuery2(\"select sum(PE_CANT) as PC_NO";
Debug.ShouldStop(64);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select sum(PE_CANT) as PC_NOART from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_FOLIO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("VENTA")}))));
 BA.debugLineNum = 1832;BA.debugLine="C.Position=0";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1833;BA.debugLine="Printer1.WriteString(\"Total art. venta: \" &Numbe";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("Total art. venta: "),parent.__c.runMethod(true,"NumberFormat",(Object)(BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART"))))),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0))),_elinefeed)));
 BA.debugLineNum = 1834;BA.debugLine="c.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 88:
//C
this.state = 89;
;
 BA.debugLineNum = 1855;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1856;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 1859;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --";
Debug.ShouldStop(4);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("----ESTE TICKET NO ES UN -----"),_elinefeed)));
 BA.debugLineNum = 1860;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO";
Debug.ShouldStop(8);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("--COMPROBANTE FISCAL, SOLO ES-"),_elinefeed)));
 BA.debugLineNum = 1861;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------";
Debug.ShouldStop(16);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("--------INFORMATIVO-----------"),_elinefeed)));
 BA.debugLineNum = 1862;BA.debugLine="Printer1.WriteString(\"---------------------------";
Debug.ShouldStop(32);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable("------------------------------"),_elinefeed)));
 BA.debugLineNum = 1863;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(64);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1864;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(128);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1865;BA.debugLine="Printer1.WriteString(\" \" &  eLINEFEED)";
Debug.ShouldStop(256);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(RemoteObject.createImmutable(" "),_elinefeed)));
 BA.debugLineNum = 1866;BA.debugLine="Sleep(1000)";
Debug.ShouldStop(512);
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_venta"),BA.numberCast(int.class, 1000));
this.state = 113;
return;
case 113:
//C
this.state = 89;
;
 BA.debugLineNum = 1867;BA.debugLine="Printer1.DisConnect";
Debug.ShouldStop(1024);
__ref.getField(false,"_printer1" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 1869;BA.debugLine="ProgressDialogHide";
Debug.ShouldStop(4096);
parent.__c.runVoidMethod ("ProgressDialogHide");
 BA.debugLineNum = 1871;BA.debugLine="s = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE (";
Debug.ShouldStop(16384);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE (PE_FOLIO = ? OR PE_FOLIO = ?) AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("PREVENTA_CREDITO"),RemoteObject.createImmutable("PREVENTA_CONTADO")}))));
 BA.debugLineNum = 1872;BA.debugLine="If s.RowCount = 0 Then";
Debug.ShouldStop(32768);
if (true) break;

case 89:
//if
this.state = 98;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
this.state = 91;
}if (true) break;

case 91:
//C
this.state = 92;
 BA.debugLineNum = 1873;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("Msgbox2Async",(Object)(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?")),(Object)(BA.ObjectToCharSequence("ATENCION")),(Object)(BA.ObjectToString("SI")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("NO")),(Object)(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png")))),__ref.getField(false, "ba"),(Object)(parent.__c.getField(true,"False")));
 BA.debugLineNum = 1874;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(131072);
parent.__c.runVoidMethod ("WaitFor","msgbox_result", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_cliente", "imprime_venta"), null);
this.state = 114;
return;
case 114:
//C
this.state = 92;
_resultado = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("resultado", _resultado);
;
 BA.debugLineNum = 1875;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(262144);
if (true) break;

case 92:
//if
this.state = 97;
if (RemoteObject.solveBoolean("=",_resultado,BA.numberCast(double.class, parent.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
this.state = 94;
}else {
this.state = 96;
}if (true) break;

case 94:
//C
this.state = 97;
 BA.debugLineNum = 1876;BA.debugLine="B_IMP_Click";
Debug.ShouldStop(524288);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_b_imp_click" /*RemoteObject*/ );
 if (true) break;

case 96:
//C
this.state = 97;
 BA.debugLineNum = 1878;BA.debugLine="GUADAVENTA2";
Debug.ShouldStop(2097152);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_guadaventa2" /*RemoteObject*/ );
 if (true) break;

case 97:
//C
this.state = 98;
;
 if (true) break;

case 98:
//C
this.state = -1;
;
 BA.debugLineNum = 1884;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
if (true) break;

            }
        }
    }
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,178);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_cliente","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 178;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(131072);
 BA.debugLineNum = 179;BA.debugLine="Return Me";
Debug.ShouldStop(262144);
if (true) return __ref;
 BA.debugLineNum = 180;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
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,2287);
if (RapidSub.canDelegate("jobdone")) { return __ref.runUserSub(false, "c_cliente","jobdone", __ref, _job);}
RemoteObject _resultado = RemoteObject.declareNull("SHARK2.keymon.com.mx.dbrequestmanager._dbresult");
RemoteObject _cliente = RemoteObject.createImmutable("");
RemoteObject _records = null;
RemoteObject _pars = null;
RemoteObject _piezasexiste = RemoteObject.createImmutable(0);
RemoteObject _pcnoarts = RemoteObject.createImmutable("");
RemoteObject _pcmonto = RemoteObject.createImmutable("");
RemoteObject _k = RemoteObject.createImmutable("");
RemoteObject _idpreg = RemoteObject.createImmutable("");
RemoteObject _idresp = RemoteObject.createImmutable("");
Debug.locals.put("Job", _job);
 BA.debugLineNum = 2287;BA.debugLine="Sub JobDone(Job As HttpJob)";
Debug.ShouldStop(16384);
 BA.debugLineNum = 2289;BA.debugLine="If Job.Success = False Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_success" /*RemoteObject*/ ),c_cliente.__c.getField(true,"False"))) { 
 }else {
 BA.debugLineNum = 2292;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
Debug.ShouldStop(524288);
c_cliente.__c.runVoidMethod ("LogImpl","57733253",RemoteObject.concat(RemoteObject.createImmutable("JobDone: '"),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable("' - Registros: "),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")),c_cliente.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 2293;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2294;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(2097152);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 2295;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_pedido";
Debug.ShouldStop(4194304);
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 = 2296;BA.debugLine="Subs.logJobDoneResultados(resultado)";
Debug.ShouldStop(8388608);
c_cliente._subs.runVoidMethod ("_logjobdoneresultados" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_resultado));
 BA.debugLineNum = 2297;BA.debugLine="Private cliente As String= resultado.Tag";
Debug.ShouldStop(16777216);
_cliente = BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 2298;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
Debug.ShouldStop(33554432);
_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 = 2300;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(134217728);
{
final RemoteObject group10 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen10 = group10.runMethod(true,"getSize").<Integer>get()
;int index10 = 0;
;
for (; index10 < groupLen10;index10++){
_records = (group10.runMethod(false,"Get",index10));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2301;BA.debugLine="If records(resultado.Columns.Get(\"AffectedRow";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",(BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("AffectedRows")))))))),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2303;BA.debugLine="Private pars() As String = Regex.Split(\"_\",";
Debug.ShouldStop(1073741824);
_pars = c_cliente.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("_")),(Object)(BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ))));Debug.locals.put("pars", _pars);Debug.locals.put("pars", _pars);
 BA.debugLineNum = 2304;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
Debug.ShouldStop(-2147483648);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("update PEDIDO_CLIENTE set PC_ENVIO_OK = 1 where PC_CLIENTE = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pars.getArrayElement(true,BA.numberCast(int.class, 3))))),RemoteObject.createImmutable("'")))));
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2314;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2315;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(1024);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 2316;BA.debugLine="If resultado.Tag = \"piezas\" Then 'query tag";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("piezas")))) { 
 BA.debugLineNum = 2318;BA.debugLine="Dim piezasexiste As Int";
Debug.ShouldStop(8192);
_piezasexiste = RemoteObject.createImmutable(0);Debug.locals.put("piezasexiste", _piezasexiste);
 BA.debugLineNum = 2320;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(32768);
{
final RemoteObject group22 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen22 = group22.runMethod(true,"getSize").<Integer>get()
;int index22 = 0;
;
for (; index22 < groupLen22;index22++){
_records = (group22.runMethod(false,"Get",index22));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2322;BA.debugLine="piezasexiste = records(resultado.Columns.Get(";
Debug.ShouldStop(131072);
_piezasexiste = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("COUNT(*)")))))));Debug.locals.put("piezasexiste", _piezasexiste);
 BA.debugLineNum = 2323;BA.debugLine="Log(piezasexiste)";
Debug.ShouldStop(262144);
c_cliente.__c.runVoidMethod ("LogImpl","57733284",BA.NumberToString(_piezasexiste),0);
 BA.debugLineNum = 2324;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(524288);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 2325;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(1048576);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 2326;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 = 2327;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 = 2328;BA.debugLine="If piezasexiste =  0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_piezasexiste,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2330;BA.debugLine="Dim PCNoArts As String";
Debug.ShouldStop(33554432);
_pcnoarts = RemoteObject.createImmutable("");Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2331;BA.debugLine="Dim PCMonto As String";
Debug.ShouldStop(67108864);
_pcmonto = RemoteObject.createImmutable("");Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2332;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CL";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")}))));
 BA.debugLineNum = 2335;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2336;BA.debugLine="c.Position = 0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2337;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(1);
_pcnoarts = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")));Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2338;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(2);
_pcmonto = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")));Debug.locals.put("PCMonto", _pcmonto);
 };
 BA.debugLineNum = 2341;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(16);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2342;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2343;BA.debugLine="cmd.Name = \"insert_HVC_SHARK2\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_HVC_SHARK2"));
 BA.debugLineNum = 2344;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {6},new Object[] {((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(_pcnoarts),(_pcmonto),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2345;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insert_hvc\"";
Debug.ShouldStop(256);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("insert_hvc"))));
 }else 
{ BA.debugLineNum = 2348;BA.debugLine="Else If piezasexiste = 1 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_piezasexiste,BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2349;BA.debugLine="Dim PCNoArts As String";
Debug.ShouldStop(4096);
_pcnoarts = RemoteObject.createImmutable("");Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2350;BA.debugLine="Dim PCMonto As String";
Debug.ShouldStop(8192);
_pcmonto = RemoteObject.createImmutable("");Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2351;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CL";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")}))));
 BA.debugLineNum = 2353;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2354;BA.debugLine="c.Position = 0";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2355;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(262144);
_pcnoarts = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")));Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2356;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(524288);
_pcmonto = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")));Debug.locals.put("PCMonto", _pcmonto);
 };
 BA.debugLineNum = 2358;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2359;BA.debugLine="cmd.Name = \"update_HVC_SHARK2\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("update_HVC_SHARK2"));
 BA.debugLineNum = 2360;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {9},new Object[] {((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(_pcnoarts),(_pcmonto),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ )),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2361;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvc\")";
Debug.ShouldStop(16777216);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("update_hvc"))));
 }}
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2370;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2371;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(4);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 2372;BA.debugLine="If resultado.Tag = \"piezasrecarga\" Then 'query";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("piezasrecarga")))) { 
 BA.debugLineNum = 2374;BA.debugLine="Dim piezasexiste As Int";
Debug.ShouldStop(32);
_piezasexiste = RemoteObject.createImmutable(0);Debug.locals.put("piezasexiste", _piezasexiste);
 BA.debugLineNum = 2375;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(64);
{
final RemoteObject group64 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen64 = group64.runMethod(true,"getSize").<Integer>get()
;int index64 = 0;
;
for (; index64 < groupLen64;index64++){
_records = (group64.runMethod(false,"Get",index64));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2376;BA.debugLine="piezasexiste = records(resultado.Columns.Get(";
Debug.ShouldStop(128);
_piezasexiste = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("COUNT(*)")))))));Debug.locals.put("piezasexiste", _piezasexiste);
 BA.debugLineNum = 2377;BA.debugLine="Log(piezasexiste)";
Debug.ShouldStop(256);
c_cliente.__c.runVoidMethod ("LogImpl","57733338",BA.NumberToString(_piezasexiste),0);
 BA.debugLineNum = 2378;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(512);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 2379;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(1024);
c_cliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 2380;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(2048);
__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 = 2381;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(4096);
__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 = 2382;BA.debugLine="If piezasexiste =  0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_piezasexiste,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2383;BA.debugLine="Dim PCNoArts As String";
Debug.ShouldStop(16384);
_pcnoarts = RemoteObject.createImmutable("");Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2384;BA.debugLine="Dim PCMonto As String";
Debug.ShouldStop(32768);
_pcmonto = RemoteObject.createImmutable("");Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2385;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CL";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("1")}))));
 BA.debugLineNum = 2386;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2387;BA.debugLine="c.Position = 0";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2388;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(524288);
_pcnoarts = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")));Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2389;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(1048576);
_pcmonto = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")));Debug.locals.put("PCMonto", _pcmonto);
 };
 BA.debugLineNum = 2391;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(4194304);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2392;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2393;BA.debugLine="cmd.Name = \"insert_HVC_SHARK2\"";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_HVC_SHARK2"));
 BA.debugLineNum = 2394;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {6},new Object[] {((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),RemoteObject.createImmutable(("0")),(_pcnoarts),(_pcmonto),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2395;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insert_hvc\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("insert_hvc"))));
 }else 
{ BA.debugLineNum = 2397;BA.debugLine="Else If piezasexiste = 1 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_piezasexiste,BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 2398;BA.debugLine="Dim PCNoArts As String";
Debug.ShouldStop(536870912);
_pcnoarts = RemoteObject.createImmutable("");Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2399;BA.debugLine="Dim PCMonto As String";
Debug.ShouldStop(1073741824);
_pcmonto = RemoteObject.createImmutable("");Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2400;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CL";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("1")}))));
 BA.debugLineNum = 2401;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2402;BA.debugLine="c.Position = 0";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2403;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(4);
_pcnoarts = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")));Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2404;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(8);
_pcmonto = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")));Debug.locals.put("PCMonto", _pcmonto);
 };
 BA.debugLineNum = 2406;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2407;BA.debugLine="cmd.Name = \"update_HVC_SHARK2\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("update_HVC_SHARK2"));
 BA.debugLineNum = 2408;BA.debugLine="cmd.Parameters = Array As Object((sDate & \"";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {9},new Object[] {((RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime" /*RemoteObject*/ )))),RemoteObject.createImmutable(("0")),(_pcnoarts),(_pcmonto),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ )),(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2409;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvc\")";
Debug.ShouldStop(256);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("update_hvc"))));
 }}
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 2435;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2436;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(8);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 2437;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_abonos";
Debug.ShouldStop(16);
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 = 2438;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 = 2439;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(18)}, "+",1, 1)));Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 2440;BA.debugLine="Log($\"Cliente2:${cliente}\"$)";
Debug.ShouldStop(128);
c_cliente.__c.runVoidMethod ("LogImpl","57733401",(RemoteObject.concat(RemoteObject.createImmutable("Cliente2:"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2441;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(256);
{
final RemoteObject group108 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen108 = group108.runMethod(true,"getSize").<Integer>get()
;int index108 = 0;
;
for (; index108 < groupLen108;index108++){
_records = (group108.runMethod(false,"Get",index108));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2442;BA.debugLine="For Each k As String In resultado.Columns.Key";
Debug.ShouldStop(512);
{
final RemoteObject group109 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen109 = group109.runMethod(true,"getSize").<Integer>get()
;int index109 = 0;
;
for (; index109 < groupLen109;index109++){
_k = BA.ObjectToString(group109.runMethod(false,"Get",index109));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 2443;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("LogImpl","57733404",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 = 2446;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE A";
Debug.ShouldStop(8192);
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 = 2451;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2452;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(524288);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 2453;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"insert_cli";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",(BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ))).runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("insert_cliente_"))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 2454;BA.debugLine="Private cliente As String= resultado.Tag";
Debug.ShouldStop(2097152);
_cliente = BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 2455;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
Debug.ShouldStop(4194304);
_cliente = _cliente.runMethod(true,"substring",(Object)(RemoteObject.solve(new RemoteObject[] {_cliente.runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("_"))),RemoteObject.createImmutable(9)}, "+",1, 1)));Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 2456;BA.debugLine="Log($\"Cliente2:${cliente}\"$)";
Debug.ShouldStop(8388608);
c_cliente.__c.runVoidMethod ("LogImpl","57733417",(RemoteObject.concat(RemoteObject.createImmutable("Cliente2:"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2457;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(16777216);
{
final RemoteObject group122 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen122 = group122.runMethod(true,"getSize").<Integer>get()
;int index122 = 0;
;
for (; index122 < groupLen122;index122++){
_records = (group122.runMethod(false,"Get",index122));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2458;BA.debugLine="For Each k As String In resultado.Columns.Key";
Debug.ShouldStop(33554432);
{
final RemoteObject group123 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen123 = group123.runMethod(true,"getSize").<Integer>get()
;int index123 = 0;
;
for (; index123 < groupLen123;index123++){
_k = BA.ObjectToString(group123.runMethod(false,"Get",index123));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 2459;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
Debug.ShouldStop(67108864);
c_cliente.__c.runVoidMethod ("LogImpl","57733420",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 = 2462;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE C";
Debug.ShouldStop(536870912);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("UPDATE CLIENTE_NUEVO set CN_enviado = 1  where CN_ID_CLIENTE = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable("'")))));
 };
 };
 BA.debugLineNum = 2467;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 2468;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(8);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 2469;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"insert_cue";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",(BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ))).runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("insert_cuestionario_"))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 2470;BA.debugLine="Private pars() As String = Regex.Split(\"_\", re";
Debug.ShouldStop(32);
_pars = c_cliente.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("_")),(Object)((BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ )))));Debug.locals.put("pars", _pars);Debug.locals.put("pars", _pars);
 BA.debugLineNum = 2471;BA.debugLine="Log($\"${resultado.tag}|${pars(0)}\"$)";
Debug.ShouldStop(64);
c_cliente.__c.runVoidMethod ("LogImpl","57733432",(RemoteObject.concat(RemoteObject.createImmutable(""),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)(_resultado.getField(false,"Tag" /*RemoteObject*/ ))),RemoteObject.createImmutable("|"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pars.getArrayElement(true,BA.numberCast(int.class, 0))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2472;BA.debugLine="Log($\"${pars(1)}\"$)";
Debug.ShouldStop(128);
c_cliente.__c.runVoidMethod ("LogImpl","57733433",(RemoteObject.concat(RemoteObject.createImmutable(""),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pars.getArrayElement(true,BA.numberCast(int.class, 1))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2473;BA.debugLine="Log($\"${pars(2)}\"$)";
Debug.ShouldStop(256);
c_cliente.__c.runVoidMethod ("LogImpl","57733434",(RemoteObject.concat(RemoteObject.createImmutable(""),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pars.getArrayElement(true,BA.numberCast(int.class, 2))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2474;BA.debugLine="Log($\"${pars(3)}\"$)";
Debug.ShouldStop(512);
c_cliente.__c.runVoidMethod ("LogImpl","57733435",(RemoteObject.concat(RemoteObject.createImmutable(""),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pars.getArrayElement(true,BA.numberCast(int.class, 3))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2475;BA.debugLine="Log($\"${pars(4)}\"$)";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("LogImpl","57733436",(RemoteObject.concat(RemoteObject.createImmutable(""),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pars.getArrayElement(true,BA.numberCast(int.class, 4))))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2476;BA.debugLine="Private cliente As String = pars(2)";
Debug.ShouldStop(2048);
_cliente = _pars.getArrayElement(true,BA.numberCast(int.class, 2));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 2477;BA.debugLine="Private idPreg As String = pars(3)";
Debug.ShouldStop(4096);
_idpreg = _pars.getArrayElement(true,BA.numberCast(int.class, 3));Debug.locals.put("idPreg", _idpreg);Debug.locals.put("idPreg", _idpreg);
 BA.debugLineNum = 2478;BA.debugLine="Private idResp As String = pars(4)";
Debug.ShouldStop(8192);
_idresp = _pars.getArrayElement(true,BA.numberCast(int.class, 4));Debug.locals.put("idResp", _idresp);Debug.locals.put("idResp", _idresp);
 BA.debugLineNum = 2479;BA.debugLine="Log($\"Cliente2:${cliente}, preg:${idPreg}, res";
Debug.ShouldStop(16384);
c_cliente.__c.runVoidMethod ("LogImpl","57733440",(RemoteObject.concat(RemoteObject.createImmutable("Cliente2:"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable(", preg:"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idpreg))),RemoteObject.createImmutable(", res:"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idresp))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2480;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(32768);
{
final RemoteObject group143 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen143 = group143.runMethod(true,"getSize").<Integer>get()
;int index143 = 0;
;
for (; index143 < groupLen143;index143++){
_records = (group143.runMethod(false,"Get",index143));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 2481;BA.debugLine="For Each k As String In resultado.Columns.Key";
Debug.ShouldStop(65536);
{
final RemoteObject group144 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen144 = group144.runMethod(true,"getSize").<Integer>get()
;int index144 = 0;
;
for (; index144 < groupLen144;index144++){
_k = BA.ObjectToString(group144.runMethod(false,"Get",index144));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 2482;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
Debug.ShouldStop(131072);
c_cliente.__c.runVoidMethod ("LogImpl","57733443",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 = 2485;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE C";
Debug.ShouldStop(1048576);
c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("UPDATE CUESTIONARIO set Q_ENVIO_OK = 1  where Q_IDCLIENTE = '"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable("' and Q_IDPREGUNTA='"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idpreg))),RemoteObject.createImmutable("' and Q_IDRESPUESTA='"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_idresp))),RemoteObject.createImmutable("'")))));
 };
 };
 BA.debugLineNum = 2489;BA.debugLine="Job.Release";
Debug.ShouldStop(16777216);
_job.runClassMethod (SHARK2.keymon.com.mx.httpjob.class, "_release" /*RemoteObject*/ );
 };
 BA.debugLineNum = 2492;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_atiende_longclick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_atiende_LongClick (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2922);
if (RapidSub.canDelegate("l_atiende_longclick")) { return __ref.runUserSub(false, "c_cliente","l_atiende_longclick", __ref);}
 BA.debugLineNum = 2922;BA.debugLine="Private Sub l_atiende_LongClick";
Debug.ShouldStop(512);
 BA.debugLineNum = 2923;BA.debugLine="p_atiende.Height = Root.Height";
Debug.ShouldStop(1024);
__ref.getField(false,"_p_atiende" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 2924;BA.debugLine="p_atiende.Width = Root.Width";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_atiende" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 2925;BA.debugLine="p_atiende.Visible = True";
Debug.ShouldStop(4096);
__ref.getField(false,"_p_atiende" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 2926;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _l_giro_longclick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("l_giro_LongClick (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2969);
if (RapidSub.canDelegate("l_giro_longclick")) { return __ref.runUserSub(false, "c_cliente","l_giro_longclick", __ref);}
RemoteObject _items = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
int _i = 0;
 BA.debugLineNum = 2969;BA.debugLine="Private Sub l_giro_LongClick";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 2970;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT GIRO FROM CAT_";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_cliente._starter._skmt /*RemoteObject*/ .runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT GIRO FROM CAT_GIRO order by 1"))));
 BA.debugLineNum = 2971;BA.debugLine="Dim Items As List";
Debug.ShouldStop(67108864);
_items = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("Items", _items);
 BA.debugLineNum = 2972;BA.debugLine="Items.Initialize";
Debug.ShouldStop(134217728);
_items.runVoidMethod ("Initialize");
 BA.debugLineNum = 2973;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCIÓN\")";
Debug.ShouldStop(268435456);
_items.runVoidMethod ("Add",(Object)((RemoteObject.createImmutable("SELECCIONA UNA OPCIÓN"))));
 BA.debugLineNum = 2974;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2975;BA.debugLine="For i = 0 To c.RowCount-1";
Debug.ShouldStop(1073741824);
{
final int step6 = 1;
final int limit6 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step6 > 0 && _i <= limit6) || (step6 < 0 && _i >= limit6) ;_i = ((int)(0 + _i + step6))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2976;BA.debugLine="c.Position = i";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2977;BA.debugLine="Items.Add(c.GetString(\"GIRO\"))";
Debug.ShouldStop(1);
_items.runVoidMethod ("Add",(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("GIRO"))))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 2979;BA.debugLine="cb_giro.SetItems(Items)";
Debug.ShouldStop(4);
__ref.getField(false,"_cb_giro" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.b4xcombobox.class, "_setitems" /*RemoteObject*/ ,(Object)(_items));
 };
 BA.debugLineNum = 2981;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
Debug.ShouldStop(16);
__ref.setField ("_giros" /*RemoteObject*/ ,BA.ObjectToString("SELECCIONA UNA OPCIÓN"));
 BA.debugLineNum = 2982;BA.debugLine="c.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2983;BA.debugLine="p_giro.Height = Root.Height";
Debug.ShouldStop(64);
__ref.getField(false,"_p_giro" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 2984;BA.debugLine="p_giro.Width = Root.Width";
Debug.ShouldStop(128);
__ref.getField(false,"_p_giro" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 2985;BA.debugLine="p_giro.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_p_giro" /*RemoteObject*/ ).runMethod(true,"setVisible",c_cliente.__c.getField(true,"True"));
 BA.debugLineNum = 2986;BA.debugLine="End Sub";
Debug.ShouldStop(512);
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,611);
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 = 611;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
Debug.ShouldStop(4);
 BA.debugLineNum = 613;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mandapendientepagare(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("mandaPendientePagare (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2191);
if (RapidSub.canDelegate("mandapendientepagare")) { return __ref.runUserSub(false, "c_cliente","mandapendientepagare", __ref);}
int _i = 0;
 BA.debugLineNum = 2191;BA.debugLine="Sub mandaPendientePagare";
Debug.ShouldStop(16384);
 BA.debugLineNum = 2192;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FR";
Debug.ShouldStop(32768);
__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 * FROM ABONOS where ifnull(a_enviado, 0) <> 1"))));
 BA.debugLineNum = 2193;BA.debugLine="Log($\"ABONO PENDIENTE: ${c.RowCount}\"$)";
Debug.ShouldStop(65536);
c_cliente.__c.runVoidMethod ("LogImpl","57471106",(RemoteObject.concat(RemoteObject.createImmutable("ABONO PENDIENTE: "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2194;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2195;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(262144);
{
final int step4 = 1;
final int limit4 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step4 > 0 && _i <= limit4) || (step4 < 0 && _i >= limit4) ;_i = ((int)(0 + _i + step4))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2196;BA.debugLine="c.Position=i";
Debug.ShouldStop(524288);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2197;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(1048576);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2198;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2199;BA.debugLine="cmd.Name = \"insert_abono_SHARK2\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_abono_SHARK2"));
 BA.debugLineNum = 2200;BA.debugLine="cmd.Parameters = Array As Object( c.GetString(\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {6},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_usuario")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_ruta")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_fecha")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2201;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen";
Debug.ShouldStop(16777216);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.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)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable(""))))));
 BA.debugLineNum = 2202;BA.debugLine="Log($\"ins_abonosPendientes_${c.GetString(\"a_cli";
Debug.ShouldStop(33554432);
c_cliente.__c.runVoidMethod ("LogImpl","57471115",(RemoteObject.concat(RemoteObject.createImmutable("ins_abonosPendientes_"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))))),RemoteObject.createImmutable(""))),0);
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 2205;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
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,2081);
if (RapidSub.canDelegate("mandapendientes")) { return __ref.runUserSub(false, "c_cliente","mandapendientes", __ref);}
RemoteObject _pcnoarts = RemoteObject.createImmutable("");
RemoteObject _pcmonto = RemoteObject.createImmutable("");
int _i = 0;
RemoteObject _ab = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _bb = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _cb = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
 BA.debugLineNum = 2081;BA.debugLine="Sub mandaPendientes";
Debug.ShouldStop(1);
 BA.debugLineNum = 2083;BA.debugLine="Log(\">>>>>>>  MANDA PENDIENTES\")";
Debug.ShouldStop(4);
c_cliente.__c.runVoidMethod ("LogImpl","57405570",RemoteObject.createImmutable(">>>>>>>  MANDA PENDIENTES"),0);
 BA.debugLineNum = 2084;BA.debugLine="Dim PCNoArts As String";
Debug.ShouldStop(8);
_pcnoarts = RemoteObject.createImmutable("");Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2085;BA.debugLine="Dim PCMonto As String";
Debug.ShouldStop(16);
_pcmonto = RemoteObject.createImmutable("");Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2086;BA.debugLine="If usuario <> \"KMTS1\"  Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_usuario" /*RemoteObject*/ ),BA.ObjectToString("KMTS1"))) { 
 BA.debugLineNum = 2105;BA.debugLine="c = skmt.ExecQuery($\"SELECT PE_ENVIO_OK, PE_CEDI";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("SELECT PE_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, PE_CANTC, PE_BCAJAS FROM PEDIDO where PE_ENVIO_OK <> 1")))));
 BA.debugLineNum = 2106;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
Debug.ShouldStop(33554432);
c_cliente.__c.runVoidMethod ("LogImpl","57405593",(RemoteObject.concat(RemoteObject.createImmutable("Pedido PENDIENTE: "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2107;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2108;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(134217728);
{
final int step8 = 1;
final int limit8 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step8 > 0 && _i <= limit8) || (step8 < 0 && _i >= limit8) ;_i = ((int)(0 + _i + step8))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2109;BA.debugLine="c.Position=i";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2110;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(536870912);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2111;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2112;BA.debugLine="cmd.Name = \"insert_pedido2_SHARK2P3\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_pedido2_SHARK2P3"));
 BA.debugLineNum = 2113;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {16},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")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANTC")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_BCAJAS"))))}));
 BA.debugLineNum = 2114;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";
Debug.ShouldStop(2);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.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("_"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable(""))))));
 BA.debugLineNum = 2115;BA.debugLine="Log($\">>>>  INS_PEDIDO= ${C.GetString(\"PE_CEDI";
Debug.ShouldStop(4);
c_cliente.__c.runVoidMethod ("LogImpl","57405602",(RemoteObject.concat(RemoteObject.createImmutable(">>>>  INS_PEDIDO= "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")))))),RemoteObject.createImmutable(","),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_almacen" /*RemoteObject*/ )))),RemoteObject.createImmutable(","),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT")))))),RemoteObject.createImmutable(","),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU")))))),RemoteObject.createImmutable(","),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable(", "),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(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FECHA")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_USUARIO")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_RUTA")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_SIN")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_DESC")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pcnoarts))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pcmonto))),RemoteObject.createImmutable(""))),0);
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 2122;BA.debugLine="Dim ab As Cursor = B4XPages.MainPage.skmt.ExecQu";
Debug.ShouldStop(512);
_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 = 2123;BA.debugLine="Log(ab.RowCount)";
Debug.ShouldStop(1024);
c_cliente.__c.runVoidMethod ("LogImpl","57405610",BA.NumberToString(_ab.runMethod(true,"getRowCount")),0);
 BA.debugLineNum = 2124;BA.debugLine="If ab.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",_ab.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2125;BA.debugLine="For i=0 To ab.RowCount -1";
Debug.ShouldStop(4096);
{
final int step21 = 1;
final int limit21 = RemoteObject.solve(new RemoteObject[] {_ab.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step21 > 0 && _i <= limit21) || (step21 < 0 && _i >= limit21) ;_i = ((int)(0 + _i + step21))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2126;BA.debugLine="ab.Position = i";
Debug.ShouldStop(8192);
_ab.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2127;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(16384);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2128;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32768);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2129;BA.debugLine="cmd.Name = \"insert_abono_SHARK2\"";
Debug.ShouldStop(65536);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_abono_SHARK2"));
 BA.debugLineNum = 2130;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {6},new Object[] {(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_usuario")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_ruta")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_cliente")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_abono")))),(_ab.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("a_fecha")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2131;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPe";
Debug.ShouldStop(262144);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.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 = 2132;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_c";
Debug.ShouldStop(524288);
c_cliente.__c.runVoidMethod ("LogImpl","57405619",(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 = 2135;BA.debugLine="ab.Close";
Debug.ShouldStop(4194304);
_ab.runVoidMethod ("Close");
 BA.debugLineNum = 2138;BA.debugLine="Dim bb As Cursor = B4XPages.MainPage.skmt.ExecQu";
Debug.ShouldStop(33554432);
_bb = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_bb = 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 CLIENTE_NUEVO where CN_enviado is null")))));Debug.locals.put("bb", _bb);Debug.locals.put("bb", _bb);
 BA.debugLineNum = 2139;BA.debugLine="Dim cb As Cursor = B4XPages.MainPage.skmt.ExecQu";
Debug.ShouldStop(67108864);
_cb = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cb = 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 ID_ALMACEN from CAT_ALMACEN"))));Debug.locals.put("cb", _cb);Debug.locals.put("cb", _cb);
 BA.debugLineNum = 2140;BA.debugLine="cb.Position = 0";
Debug.ShouldStop(134217728);
_cb.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2141;BA.debugLine="If bb.RowCount > 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",_bb.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2142;BA.debugLine="For i=0 To bb.RowCount -1";
Debug.ShouldStop(536870912);
{
final int step36 = 1;
final int limit36 = RemoteObject.solve(new RemoteObject[] {_bb.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step36 > 0 && _i <= limit36) || (step36 < 0 && _i >= limit36) ;_i = ((int)(0 + _i + step36))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2143;BA.debugLine="bb.Position = i";
Debug.ShouldStop(1073741824);
_bb.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2144;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(-2147483648);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2145;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2146;BA.debugLine="cmd.Name = \"insert_cliente_SHARK2\"";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_cliente_SHARK2"));
 BA.debugLineNum = 2147;BA.debugLine="cmd.Parameters = Array As Object( bb.GetString";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(_bb.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_ID_CLIENTE")))),(_bb.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_NOMBRE")))),(c_cliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_principal" /*RemoteObject*/ ).getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(_cb.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))))}));
 BA.debugLineNum = 2148;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"insert_clien";
Debug.ShouldStop(8);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("insert_cliente_"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_bb.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_ID_CLIENTE")))))),RemoteObject.createImmutable(""))))));
 BA.debugLineNum = 2149;BA.debugLine="Log($\"insert_cliente_${bb.GetString(\"CN_ID_CLI";
Debug.ShouldStop(16);
c_cliente.__c.runVoidMethod ("LogImpl","57405636",(RemoteObject.concat(RemoteObject.createImmutable("insert_cliente_"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_bb.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_ID_CLIENTE")))))),RemoteObject.createImmutable(""))),0);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 2151;BA.debugLine="Log(\"si lo hice\")";
Debug.ShouldStop(64);
c_cliente.__c.runVoidMethod ("LogImpl","57405638",RemoteObject.createImmutable("si lo hice"),0);
 };
 BA.debugLineNum = 2153;BA.debugLine="bb.Close";
Debug.ShouldStop(256);
_bb.runVoidMethod ("Close");
 BA.debugLineNum = 2154;BA.debugLine="cb.Close";
Debug.ShouldStop(512);
_cb.runVoidMethod ("Close");
 };
 BA.debugLineNum = 2189;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mandapendientesrecarga(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("mandaPendientesrecarga (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2207);
if (RapidSub.canDelegate("mandapendientesrecarga")) { return __ref.runUserSub(false, "c_cliente","mandapendientesrecarga", __ref);}
RemoteObject _pcnoarts = RemoteObject.createImmutable("");
RemoteObject _pcmonto = RemoteObject.createImmutable("");
int _i = 0;
 BA.debugLineNum = 2207;BA.debugLine="Sub mandaPendientesrecarga";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 2209;BA.debugLine="Log(\">>>>>>>  MANDA PENDIENTES\")";
Debug.ShouldStop(1);
c_cliente.__c.runVoidMethod ("LogImpl","57536642",RemoteObject.createImmutable(">>>>>>>  MANDA PENDIENTES"),0);
 BA.debugLineNum = 2210;BA.debugLine="Dim PCNoArts As String";
Debug.ShouldStop(2);
_pcnoarts = RemoteObject.createImmutable("");Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2211;BA.debugLine="Dim PCMonto As String";
Debug.ShouldStop(4);
_pcmonto = RemoteObject.createImmutable("");Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2212;BA.debugLine="If usuario <> \"KMTS1\"  Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_usuario" /*RemoteObject*/ ),BA.ObjectToString("KMTS1"))) { 
 BA.debugLineNum = 2213;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C";
Debug.ShouldStop(16);
__ref.getField(false,"_f" /*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"))));
 BA.debugLineNum = 2214;BA.debugLine="f.Position=0";
Debug.ShouldStop(32);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2215;BA.debugLine="d = skmt.ExecQuery(\"SELECT * FROM PEDIDO_CLIENTE";
Debug.ShouldStop(64);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM PEDIDO_CLIENTE where PC_ENVIO_OK = 0 AND PC_CLIENTE = 1"))));
 BA.debugLineNum = 2216;BA.debugLine="c = skmt.ExecQuery(\"SELECT * FROM PEDIDO_CLIENTE";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT * FROM PEDIDO_CLIENTE where PC_ENVIO_OK = 0 AND PC_CLIENTE = 1"))));
 BA.debugLineNum = 2217;BA.debugLine="Log($\"Pedido_Cliente PENDIENTE: ${c.RowCount}\"$)";
Debug.ShouldStop(256);
c_cliente.__c.runVoidMethod ("LogImpl","57536650",(RemoteObject.concat(RemoteObject.createImmutable("Pedido_Cliente PENDIENTE: "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2218;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2219;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(1024);
{
final int step11 = 1;
final int limit11 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step11 > 0 && _i <= limit11) || (step11 < 0 && _i >= limit11) ;_i = ((int)(0 + _i + step11))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2220;BA.debugLine="c.Position = i";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2221;BA.debugLine="Log($\"${c.GetString(\"PC_CLIENTE\")}|${c.GetStri";
Debug.ShouldStop(4096);
c_cliente.__c.runVoidMethod ("LogImpl","57536654",(RemoteObject.concat(RemoteObject.createImmutable(""),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("|"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FECHA")))))),RemoteObject.createImmutable("|"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_ENVIO_OK")))))),RemoteObject.createImmutable("|"))),0);
 BA.debugLineNum = 2222;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(8192);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2223;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2224;BA.debugLine="cmd.Name = \"insert_pedidos_SHARK2\"";
Debug.ShouldStop(32768);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_pedidos_SHARK2"));
 BA.debugLineNum = 2225;BA.debugLine="cmd.Parameters = Array As Object(\"0\", c.GetStr";
Debug.ShouldStop(65536);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {11},new Object[] {RemoteObject.createImmutable(("0")),(__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")))),(c_cliente._subs.runMethod(true,"_traealmacen" /*RemoteObject*/ ,__ref.getField(false, "ba"))),(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")))),(__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 = 2226;BA.debugLine="PCNoArts = c.GetString(\"PC_NOART\")";
Debug.ShouldStop(131072);
_pcnoarts = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")));Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2227;BA.debugLine="PCMonto = c.GetString(\"PC_MONTO\")";
Debug.ShouldStop(262144);
_pcmonto = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")));Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2229;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";
Debug.ShouldStop(1048576);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.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 = 2232;BA.debugLine="f.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2234;BA.debugLine="c = skmt.ExecQuery($\"SELECT PE_ENVIO_OK, PE_CEDI";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("SELECT PE_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, PE_CANTC, PE_BCAJAS FROM PEDIDO where PE_ENVIO_OK <> 1 AND PE_FOLIO = 'RECARGA'")))));
 BA.debugLineNum = 2235;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
Debug.ShouldStop(67108864);
c_cliente.__c.runVoidMethod ("LogImpl","57536668",(RemoteObject.concat(RemoteObject.createImmutable("Pedido PENDIENTE: "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount")))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 2236;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2237;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(268435456);
{
final int step27 = 1;
final int limit27 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),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 = 2238;BA.debugLine="c.Position=i";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2239;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(1073741824);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2240;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2241;BA.debugLine="cmd.Name = \"insert_pedido3_SHARK2\"";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_pedido3_SHARK2"));
 BA.debugLineNum = 2242;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {17},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")))),RemoteObject.createImmutable(("0")),(__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")))),RemoteObject.createImmutable(("ABORDO")),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANTC")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_BCAJAS")))),(RemoteObject.createImmutable("RECARGA"))}));
 BA.debugLineNum = 2243;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";
Debug.ShouldStop(4);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.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("_"),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable(""))))));
 BA.debugLineNum = 2244;BA.debugLine="Log($\">>>>  INS_PEDIDO= ${C.GetString(\"PE_CEDI";
Debug.ShouldStop(8);
c_cliente.__c.runVoidMethod ("LogImpl","57536677",(RemoteObject.concat(RemoteObject.createImmutable(">>>>  INS_PEDIDO= "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")))))),RemoteObject.createImmutable(","),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_almacen" /*RemoteObject*/ )))),RemoteObject.createImmutable(","),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT")))))),RemoteObject.createImmutable(","),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU")))))),RemoteObject.createImmutable(","),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))))),RemoteObject.createImmutable(", "),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(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FECHA")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_USUARIO")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_RUTA")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_SIN")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_DESC")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO")))))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pcnoarts))),RemoteObject.createImmutable(", "),c_cliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_pcmonto))),RemoteObject.createImmutable(""))),0);
 }
}Debug.locals.put("i", _i);
;
 };
 };
 BA.debugLineNum = 2250;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mandapiezas(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("mandapiezas (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2269);
if (RapidSub.canDelegate("mandapiezas")) { return __ref.runUserSub(false, "c_cliente","mandapiezas", __ref);}
RemoteObject _pcnoarts = RemoteObject.createImmutable("");
RemoteObject _pcmonto = RemoteObject.createImmutable("");
 BA.debugLineNum = 2269;BA.debugLine="Sub mandapiezas";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 2270;BA.debugLine="If l_total.Text <>  Null Or l_total.Text <> \"null";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("N",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("!",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null"))) { 
 BA.debugLineNum = 2271;BA.debugLine="Dim PCNoArts As String";
Debug.ShouldStop(1073741824);
_pcnoarts = RemoteObject.createImmutable("");Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2272;BA.debugLine="Dim PCMonto As String";
Debug.ShouldStop(-2147483648);
_pcmonto = RemoteObject.createImmutable("");Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2273;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CLIENT";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")}))));
 BA.debugLineNum = 2274;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2275;BA.debugLine="c.Position = 0";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2276;BA.debugLine="Log(la_cuenta.Text&\", \"& ALMACEN&\", \"& LA_RUTA)";
Debug.ShouldStop(8);
c_cliente.__c.runVoidMethod ("LogImpl","57667719",RemoteObject.concat(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable(", "),__ref.getField(true,"_almacen" /*RemoteObject*/ ),RemoteObject.createImmutable(", "),__ref.getField(true,"_la_ruta" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2277;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(16);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2278;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2279;BA.debugLine="cmd.Name = \"select_piezas_SHARK2\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_piezas_SHARK2"));
 BA.debugLineNum = 2280;BA.debugLine="cmd.Parameters = Array As Object(la_cuenta.Text";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2281;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"piezas\")";
Debug.ShouldStop(256);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("piezas"))));
 };
 };
 BA.debugLineNum = 2285;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mandapiezasrecarga(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("mandapiezasrecarga (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2252);
if (RapidSub.canDelegate("mandapiezasrecarga")) { return __ref.runUserSub(false, "c_cliente","mandapiezasrecarga", __ref);}
RemoteObject _pcnoarts = RemoteObject.createImmutable("");
RemoteObject _pcmonto = RemoteObject.createImmutable("");
 BA.debugLineNum = 2252;BA.debugLine="Sub mandapiezasrecarga";
Debug.ShouldStop(2048);
 BA.debugLineNum = 2253;BA.debugLine="If l_total.Text <>  Null Or l_total.Text <> \"null";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("N",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText")) || RemoteObject.solveBoolean("!",__ref.getField(false,"_l_total" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null"))) { 
 BA.debugLineNum = 2254;BA.debugLine="Dim PCNoArts As String";
Debug.ShouldStop(8192);
_pcnoarts = RemoteObject.createImmutable("");Debug.locals.put("PCNoArts", _pcnoarts);
 BA.debugLineNum = 2255;BA.debugLine="Dim PCMonto As String";
Debug.ShouldStop(16384);
_pcmonto = RemoteObject.createImmutable("");Debug.locals.put("PCMonto", _pcmonto);
 BA.debugLineNum = 2256;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO_CLIENT";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO_CLIENTE WHERE PC_CLIENTE = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("1")}))));
 BA.debugLineNum = 2257;BA.debugLine="If c.RowCount > 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2258;BA.debugLine="c.Position = 0";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2259;BA.debugLine="Log(la_cuenta.Text&\", \"& ALMACEN&\", \"& LA_RUTA)";
Debug.ShouldStop(262144);
c_cliente.__c.runVoidMethod ("LogImpl","57602183",RemoteObject.concat(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable(", "),__ref.getField(true,"_almacen" /*RemoteObject*/ ),RemoteObject.createImmutable(", "),__ref.getField(true,"_la_ruta" /*RemoteObject*/ )),0);
 BA.debugLineNum = 2260;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(524288);
c_cliente._cmd = RemoteObject.createNew ("SHARK2.keymon.com.mx.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_cliente._cmd);
 BA.debugLineNum = 2261;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1048576);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 2262;BA.debugLine="cmd.Name = \"select_piezas_SHARK2\"";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_piezas_SHARK2"));
 BA.debugLineNum = 2263;BA.debugLine="cmd.Parameters = Array As Object(la_cuenta.Text";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(__ref.getField(false,"_la_cuenta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(true,"_la_ruta" /*RemoteObject*/ ))}));
 BA.debugLineNum = 2264;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"piezasrecarga";
Debug.ShouldStop(8388608);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (SHARK2.keymon.com.mx.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("piezasrecarga"))));
 };
 };
 BA.debugLineNum = 2267;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,1078);
if (RapidSub.canDelegate("nuevo_click")) { return __ref.runUserSub(false, "c_cliente","nuevo_click", __ref);}
 BA.debugLineNum = 1078;BA.debugLine="Sub NUEVO_Click";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 1079;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
Debug.ShouldStop(4194304);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("NuevoCliente")));
 BA.debugLineNum = 1080;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
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,2494);
if (RapidSub.canDelegate("p_abono_click")) { return __ref.runUserSub(false, "c_cliente","p_abono_click", __ref);}
 BA.debugLineNum = 2494;BA.debugLine="Private Sub p_abono_Click";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 2496;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_atiende_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_atiende_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,2963);
if (RapidSub.canDelegate("p_atiende_click")) { return __ref.runUserSub(false, "c_cliente","p_atiende_click", __ref);}
 BA.debugLineNum = 2963;BA.debugLine="Private Sub p_atiende_Click";
Debug.ShouldStop(262144);
 BA.debugLineNum = 2965;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
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,2072);
if (RapidSub.canDelegate("p_cliente_click")) { return __ref.runUserSub(false, "c_cliente","p_cliente_click", __ref);}
 BA.debugLineNum = 2072;BA.debugLine="Private Sub p_cliente_Click";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 2074;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_giro_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_giro_Click (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,3022);
if (RapidSub.canDelegate("p_giro_click")) { return __ref.runUserSub(false, "c_cliente","p_giro_click", __ref);}
 BA.debugLineNum = 3022;BA.debugLine="Private Sub p_giro_Click";
Debug.ShouldStop(8192);
 BA.debugLineNum = 3024;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
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,1911);
if (RapidSub.canDelegate("printer_connected")) { return __ref.runUserSub(false, "c_cliente","printer_connected", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 1911;BA.debugLine="Sub Printer_Connected (Success As Boolean)";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 1912;BA.debugLine="If Success Then";
Debug.ShouldStop(8388608);
if (_success.<Boolean>get().booleanValue()) { 
 }else {
 BA.debugLineNum = 1917;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel";
Debug.ShouldStop(268435456);
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 = 1918;BA.debugLine="StartPrinter";
Debug.ShouldStop(536870912);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_startprinter" /*RemoteObject*/ );
 };
 };
 BA.debugLineNum = 1921;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printer1_connected(RemoteObject __ref,RemoteObject _success) throws Exception{
try {
		Debug.PushSubsStack("Printer1_Connected (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1886);
if (RapidSub.canDelegate("printer1_connected")) { return __ref.runUserSub(false, "c_cliente","printer1_connected", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 1886;BA.debugLine="Sub Printer1_Connected (Success As Boolean)";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 1888;BA.debugLine="If Success Then";
Debug.ShouldStop(-2147483648);
if (_success.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1889;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)";
Debug.ShouldStop(1);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Impresora conectada")),(Object)(c_cliente.__c.getField(true,"False")));
 BA.debugLineNum = 1890;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARI";
Debug.ShouldStop(2);
c_cliente._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("MACIMP"))})))));
 BA.debugLineNum = 1891;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARI";
Debug.ShouldStop(4);
c_cliente._starter._skmt /*RemoteObject*/ .runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(c_cliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("MACIMP")),(c_cliente._starter._mac_impresora /*RemoteObject*/ )})))));
 BA.debugLineNum = 1894;BA.debugLine="impresoraConectada = True";
Debug.ShouldStop(32);
__ref.setField ("_impresoraconectada" /*RemoteObject*/ ,c_cliente.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 1898;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
Debug.ShouldStop(512);
c_cliente.__c.runVoidMethod ("LogImpl","56553612",BA.ObjectToString("Error conectando la impresora"),c_cliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 1899;BA.debugLine="errorImpresora = errorImpresora + 1";
Debug.ShouldStop(1024);
__ref.setField ("_errorimpresora" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_errorimpresora" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "+",1, 1));
 BA.debugLineNum = 1900;BA.debugLine="If errorImpresora > 1 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",__ref.getField(true,"_errorimpresora" /*RemoteObject*/ ),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 1901;BA.debugLine="Starter.MAC_IMPRESORA = \"0\"";
Debug.ShouldStop(4096);
c_cliente._starter._mac_impresora /*RemoteObject*/  = BA.ObjectToString("0");
 BA.debugLineNum = 1902;BA.debugLine="errorImpresora = 0";
Debug.ShouldStop(8192);
__ref.setField ("_errorimpresora" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 };
 };
 BA.debugLineNum = 1905;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printer1_error(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Printer1_Error (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1907);
if (RapidSub.canDelegate("printer1_error")) { return __ref.runUserSub(false, "c_cliente","printer1_error", __ref);}
 BA.debugLineNum = 1907;BA.debugLine="Sub Printer1_Error";
Debug.ShouldStop(262144);
 BA.debugLineNum = 1908;BA.debugLine="Log(\"error printer\")";
Debug.ShouldStop(524288);
c_cliente.__c.runVoidMethod ("LogImpl","56619137",RemoteObject.createImmutable("error printer"),0);
 BA.debugLineNum = 1909;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
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,2029);
if (RapidSub.canDelegate("rb1_checkedchange")) { return __ref.runUserSub(false, "c_cliente","rb1_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 2029;BA.debugLine="Sub RB1_CheckedChange(Checked As Boolean)";
Debug.ShouldStop(4096);
 BA.debugLineNum = 2030;BA.debugLine="If RB1.Checked = True Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rb1" /*RemoteObject*/ ).runMethod(true,"getChecked"),c_cliente.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2031;BA.debugLine="E_RES_E.Text = \"CENTRAL DE ABASTOS\"";
Debug.ShouldStop(16384);
__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("CENTRAL DE ABASTOS"));
 };
 BA.debugLineNum = 2033;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
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,2035);
if (RapidSub.canDelegate("rb2_checkedchange")) { return __ref.runUserSub(false, "c_cliente","rb2_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 2035;BA.debugLine="Sub RB2_CheckedChange(Checked As Boolean)";
Debug.ShouldStop(262144);
 BA.debugLineNum = 2036;BA.debugLine="If RB2.Checked = True Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rb2" /*RemoteObject*/ ).runMethod(true,"getChecked"),c_cliente.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2037;BA.debugLine="E_RES_E.Text = \"AUTOSERVICIO\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("AUTOSERVICIO"));
 };
 BA.debugLineNum = 2039;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
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,2041);
if (RapidSub.canDelegate("rb3_checkedchange")) { return __ref.runUserSub(false, "c_cliente","rb3_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 2041;BA.debugLine="Sub RB3_CheckedChange(Checked As Boolean)";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 2042;BA.debugLine="If RB3.Checked = True Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rb3" /*RemoteObject*/ ).runMethod(true,"getChecked"),c_cliente.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2043;BA.debugLine="E_RES_E.Text = \"CLUB DE PRECIO\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("CLUB DE PRECIO"));
 };
 BA.debugLineNum = 2045;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
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,2047);
if (RapidSub.canDelegate("rb4_checkedchange")) { return __ref.runUserSub(false, "c_cliente","rb4_checkedchange", __ref, _checked);}
Debug.locals.put("Checked", _checked);
 BA.debugLineNum = 2047;BA.debugLine="Sub RB4_CheckedChange(Checked As Boolean)";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 2048;BA.debugLine="If RB4.Checked = True Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rb4" /*RemoteObject*/ ).runMethod(true,"getChecked"),c_cliente.__c.getField(true,"True"))) { 
 BA.debugLineNum = 2049;BA.debugLine="E_RES_E.Text = \"DIRECTO PEDEGREE\"";
Debug.ShouldStop(1);
__ref.getField(false,"_e_res_e" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence("DIRECTO PEDEGREE"));
 };
 BA.debugLineNum = 2051;BA.debugLine="End Sub";
Debug.ShouldStop(4);
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,1096);
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(SHARK2.keymon.com.mx.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;
SHARK2.keymon.com.mx.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,1096);
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 = 1099;BA.debugLine="CODIGO = Values";
Debug.ShouldStop(1024);
__ref.setField ("_codigo" /*RemoteObject*/ ,_values);
 BA.debugLineNum = 1100;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN";
Debug.ShouldStop(2048);
__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 = 1101;BA.debugLine="DD.Position =0";
Debug.ShouldStop(4096);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1102;BA.debugLine="If DD.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(8192);
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 = 1103;BA.debugLine="MsgboxAsync(\"Código ya asignado\", \"AVISO\")";
Debug.ShouldStop(16384);
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 = 1105;BA.debugLine="If CODIGO.Length = 7 Then";
Debug.ShouldStop(65536);
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 = 1106;BA.debugLine="Msgbox2Async(\"El código \"& CODIGO & \" es correc";
Debug.ShouldStop(131072);
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 = 1107;BA.debugLine="Wait For Msgbox_Result (resultado As Int)";
Debug.ShouldStop(262144);
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 = 1108;BA.debugLine="If resultado = DialogResponse.POSITIVE Then";
Debug.ShouldStop(524288);
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 = 1109;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE k";
Debug.ShouldStop(1048576);
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 = 1110;BA.debugLine="L_QR.TEXT =CODIGO";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_codigo" /*RemoteObject*/ )));
 BA.debugLineNum = 1111;BA.debugLine="L_QR.TextColor = Colors.Blue";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_qr" /*RemoteObject*/ ).runMethod(true,"setTextColor",parent.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 1112;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert i";
Debug.ShouldStop(8388608);
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 = 1115;BA.debugLine="MsgboxAsync(\"Código No Valido\", \"AVISO\")";
Debug.ShouldStop(67108864);
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 = 1118;BA.debugLine="DD.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1119;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
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,1121);
if (RapidSub.canDelegate("sc_timedout")) { return __ref.runUserSub(false, "c_cliente","sc_timedout", __ref, _timedout);}
Debug.locals.put("timedOut", _timedout);
 BA.debugLineNum = 1121;BA.debugLine="Sub sc_timedout(timedOut As Boolean)";
Debug.ShouldStop(1);
 BA.debugLineNum = 1122;BA.debugLine="Log(\"timedOut \" & timedOut)";
Debug.ShouldStop(2);
c_cliente.__c.runVoidMethod ("LogImpl","55898241",RemoteObject.concat(RemoteObject.createImmutable("timedOut "),_timedout),0);
 BA.debugLineNum = 1123;BA.debugLine="End Sub";
Debug.ShouldStop(4);
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,1125);
if (RapidSub.canDelegate("sc_usercancelled")) { return __ref.runUserSub(false, "c_cliente","sc_usercancelled", __ref, _usercancelled);}
Debug.locals.put("userCancelled", _usercancelled);
 BA.debugLineNum = 1125;BA.debugLine="Sub sc_usercancelled(userCancelled As Boolean)";
Debug.ShouldStop(16);
 BA.debugLineNum = 1126;BA.debugLine="Log(\"userCancelled \" & userCancelled)";
Debug.ShouldStop(32);
c_cliente.__c.runVoidMethod ("LogImpl","55963777",RemoteObject.concat(RemoteObject.createImmutable("userCancelled "),_usercancelled),0);
 BA.debugLineNum = 1127;BA.debugLine="End Sub";
Debug.ShouldStop(64);
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,1923);
if (RapidSub.canDelegate("startprinter")) { return __ref.runUserSub(false, "c_cliente","startprinter", __ref);}
RemoteObject _l1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
RemoteObject _resimp = RemoteObject.createImmutable(0);
int _i = 0;
 BA.debugLineNum = 1923;BA.debugLine="Sub StartPrinter";
Debug.ShouldStop(4);
 BA.debugLineNum = 1924;BA.debugLine="Dim PairedDevices As Map";
Debug.ShouldStop(8);
c_cliente._paireddevices = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");__ref.setField("_paireddevices",c_cliente._paireddevices);
 BA.debugLineNum = 1925;BA.debugLine="Dim L1 As List";
Debug.ShouldStop(16);
_l1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("L1", _l1);
 BA.debugLineNum = 1926;BA.debugLine="Dim resimp As Int";
Debug.ShouldStop(32);
_resimp = RemoteObject.createImmutable(0);Debug.locals.put("resimp", _resimp);
 BA.debugLineNum = 1927;BA.debugLine="ToastMessageShow(\"Printing.....\",True)";
Debug.ShouldStop(64);
c_cliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Printing.....")),(Object)(c_cliente.__c.getField(true,"True")));
 BA.debugLineNum = 1928;BA.debugLine="PairedDevices.Initialize";
Debug.ShouldStop(128);
__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1929;BA.debugLine="Try";
Debug.ShouldStop(256);
try { BA.debugLineNum = 1930;BA.debugLine="PairedDevices = cmp20.GetPairedDevices";
Debug.ShouldStop(512);
__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 = 1932;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")";
Debug.ShouldStop(2048);
c_cliente.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Getting Paired Devices")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Printer Error"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 1933;BA.debugLine="printer.Close";
Debug.ShouldStop(4096);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1934;BA.debugLine="cmp20.Disconnect";
Debug.ShouldStop(8192);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Disconnect");
 };
 BA.debugLineNum = 1937;BA.debugLine="If PairedDevices.Size = 0 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1938;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No";
Debug.ShouldStop(131072);
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 = 1939;BA.debugLine="Return";
Debug.ShouldStop(262144);
if (true) return RemoteObject.createImmutable("");
 };
 BA.debugLineNum = 1942;BA.debugLine="If PairedDevices.Size = 1 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 1943;BA.debugLine="Try";
Debug.ShouldStop(4194304);
try { BA.debugLineNum = 1944;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G";
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,"_paireddevices" /*RemoteObject*/ ).runMethod(false,"GetKeyAt",(Object)(BA.numberCast(int.class, 0))))))));
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e21) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e21.toString()); BA.debugLineNum = 1946;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore";
Debug.ShouldStop(33554432);
c_cliente.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Connecting")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Printer Error"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 1947;BA.debugLine="printer.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_printer" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1948;BA.debugLine="cmp20.Disconnect";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Disconnect");
 };
 }else {
 BA.debugLineNum = 1951;BA.debugLine="L1.Initialize";
Debug.ShouldStop(1073741824);
_l1.runVoidMethod ("Initialize");
 BA.debugLineNum = 1952;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
Debug.ShouldStop(-2147483648);
{
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 = 1953;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))";
Debug.ShouldStop(1);
_l1.runVoidMethod ("Add",(Object)(__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(false,"GetKeyAt",(Object)(BA.numberCast(int.class, _i)))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 1955;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign";
Debug.ShouldStop(4);
_resimp = c_cliente.__c.runMethodAndSync(true,"InputList",(Object)(_l1),(Object)(BA.ObjectToCharSequence("Choose device")),(Object)(BA.numberCast(int.class, -(double) (0 + 1))),__ref.getField(false, "ba"));Debug.locals.put("resimp", _resimp);
 BA.debugLineNum = 1956;BA.debugLine="If resimp <> DialogResponse.CANCEL Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("!",_resimp,BA.numberCast(double.class, c_cliente.__c.getField(false,"DialogResponse").getField(true,"CANCEL")))) { 
 BA.debugLineNum = 1957;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))";
Debug.ShouldStop(16);
__ref.getField(false,"_cmp20" /*RemoteObject*/ ).runVoidMethod ("Connect",__ref.getField(false, "ba"),(Object)(BA.ObjectToString(__ref.getField(false,"_paireddevices" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(_l1.runMethod(false,"Get",(Object)(_resimp)))))));
 };
 };
 BA.debugLineNum = 1960;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _t1_tick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("T1_Tick (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1173);
if (RapidSub.canDelegate("t1_tick")) { return __ref.runUserSub(false, "c_cliente","t1_tick", __ref);}
 BA.debugLineNum = 1173;BA.debugLine="Sub T1_Tick";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 1176;BA.debugLine="s = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE (";
Debug.ShouldStop(8388608);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (__ref.getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT * FROM PEDIDO WHERE (PE_FOLIO = ? OR PE_FOLIO = ?) AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("PREVENTA_CONTADO"),RemoteObject.createImmutable("PREVENTA_CREDITO")}))));
 BA.debugLineNum = 1178;BA.debugLine="If s.RowCount > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1179;BA.debugLine="imprime_preventa";
Debug.ShouldStop(67108864);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_cliente.class, "_imprime_preventa" /*void*/ );
 };
 BA.debugLineNum = 1183;BA.debugLine="t1.Enabled = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_t1" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_cliente.__c.getField(true,"False"));
 BA.debugLineNum = 1184;BA.debugLine="If s <> Null Then s.Close";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("N",__ref.getField(false,"_s" /*RemoteObject*/ ))) { 
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");};
 BA.debugLineNum = 1185;BA.debugLine="End Sub";
Debug.ShouldStop(1);
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,715);
if (RapidSub.canDelegate("tar_click")) { return __ref.runUserSub(false, "c_cliente","tar_click", __ref);}
 BA.debugLineNum = 715;BA.debugLine="Sub Tar_Click";
Debug.ShouldStop(1024);
 BA.debugLineNum = 716;BA.debugLine="B4XPages.ShowPage(\"Nota\")";
Debug.ShouldStop(2048);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Nota")));
 BA.debugLineNum = 717;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
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,667);
if (RapidSub.canDelegate("tels_click")) { return __ref.runUserSub(false, "c_cliente","tels_click", __ref);}
 BA.debugLineNum = 667;BA.debugLine="Sub Tels_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 668;BA.debugLine="B4XPages.ShowPage(\"NoVenta\")";
Debug.ShouldStop(134217728);
c_cliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("NoVenta")));
 BA.debugLineNum = 669;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traenumvendedor(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("TraeNumVendedor (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1200);
if (RapidSub.canDelegate("traenumvendedor")) { return __ref.runUserSub(false, "c_cliente","traenumvendedor", __ref);}
RemoteObject _np = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _tel_preventa = RemoteObject.createImmutable("");
 BA.debugLineNum = 1200;BA.debugLine="Sub TraeNumVendedor As String";
Debug.ShouldStop(32768);
 BA.debugLineNum = 1201;BA.debugLine="Private np As Cursor";
Debug.ShouldStop(65536);
_np = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("np", _np);
 BA.debugLineNum = 1202;BA.debugLine="Private Tel_Preventa As String = \"\"";
Debug.ShouldStop(131072);
_tel_preventa = BA.ObjectToString("");Debug.locals.put("Tel_Preventa", _tel_preventa);Debug.locals.put("Tel_Preventa", _tel_preventa);
 BA.debugLineNum = 1203;BA.debugLine="np = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT";
Debug.ShouldStop(262144);
_np = 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 CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = 'TELEFONO'"))));Debug.locals.put("np", _np);
 BA.debugLineNum = 1204;BA.debugLine="If np.RowCount > 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",_np.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1205;BA.debugLine="np.Position = 0";
Debug.ShouldStop(1048576);
_np.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1206;BA.debugLine="Tel_Preventa = np.GetString(\"CAT_VA_VALOR\")";
Debug.ShouldStop(2097152);
_tel_preventa = _np.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR")));Debug.locals.put("Tel_Preventa", _tel_preventa);
 };
 BA.debugLineNum = 1208;BA.debugLine="np.Close";
Debug.ShouldStop(8388608);
_np.runVoidMethod ("Close");
 BA.debugLineNum = 1209;BA.debugLine="Return Tel_Preventa";
Debug.ShouldStop(16777216);
if (true) return _tel_preventa;
 BA.debugLineNum = 1210;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _traevendedor(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("TraeVendedor (c_cliente) ","c_cliente",4,__ref.getField(false, "ba"),__ref,1187);
if (RapidSub.canDelegate("traevendedor")) { return __ref.runUserSub(false, "c_cliente","traevendedor", __ref);}
RemoteObject _pv = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
RemoteObject _preventa = RemoteObject.createImmutable("");
 BA.debugLineNum = 1187;BA.debugLine="Sub TraeVendedor As String";
Debug.ShouldStop(4);
 BA.debugLineNum = 1189;BA.debugLine="Private pv As Cursor";
Debug.ShouldStop(16);
_pv = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");Debug.locals.put("pv", _pv);
 BA.debugLineNum = 1190;BA.debugLine="Private Preventa As String = \"\"";
Debug.ShouldStop(32);
_preventa = BA.ObjectToString("");Debug.locals.put("Preventa", _preventa);Debug.locals.put("Preventa", _preventa);
 BA.debugLineNum = 1191;BA.debugLine="pv = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT";
Debug.ShouldStop(64);
_pv = 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 CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = 'nom_usuario'"))));Debug.locals.put("pv", _pv);
 BA.debugLineNum = 1192;BA.debugLine="If pv.RowCount > 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_pv.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1193;BA.debugLine="pv.Position = 0";
Debug.ShouldStop(256);
_pv.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1194;BA.debugLine="Preventa = pv.GetString(\"CAT_VA_VALOR\")";
Debug.ShouldStop(512);
_preventa = _pv.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR")));Debug.locals.put("Preventa", _preventa);
 };
 BA.debugLineNum = 1196;BA.debugLine="pv.Close";
Debug.ShouldStop(2048);
_pv.runVoidMethod ("Close");
 BA.debugLineNum = 1197;BA.debugLine="Return Preventa";
Debug.ShouldStop(4096);
if (true) return _preventa;
 BA.debugLineNum = 1198;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}