package SHARK2.keymon.com.mx;

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

public class c_clientes_subs_0 {


public static RemoteObject  _b_buscar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_buscar_Click (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,467);
if (RapidSub.canDelegate("b_buscar_click")) { return __ref.runUserSub(false, "c_clientes","b_buscar_click", __ref);}
int _i = 0;
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
 BA.debugLineNum = 467;BA.debugLine="Private Sub b_buscar_Click";
Debug.ShouldStop(262144);
 BA.debugLineNum = 468;BA.debugLine="Log(CHECK)";
Debug.ShouldStop(524288);
c_clientes.__c.runVoidMethod ("LogImpl","510223617",BA.NumberToString(__ref.getField(true,"_check" /*RemoteObject*/ )),0);
 BA.debugLineNum = 469;BA.debugLine="If CHECK = 0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_check" /*RemoteObject*/ ),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 470;BA.debugLine="l_baseodia.Text = \"Clientes de base de datos\"";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_baseodia" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Clientes de base de datos"));
 BA.debugLineNum = 471;BA.debugLine="CHECK = 1";
Debug.ShouldStop(4194304);
__ref.setField ("_check" /*RemoteObject*/ ,BA.numberCast(int.class, 1));
 BA.debugLineNum = 472;BA.debugLine="busca.Text = \"\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 473;BA.debugLine="entro =\"2\"";
Debug.ShouldStop(16777216);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("2"));
 BA.debugLineNum = 474;BA.debugLine="colonia = 0";
Debug.ShouldStop(33554432);
__ref.setField ("_colonia" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 475;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select  CAT";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info2 where  gestion = 0 AND CAT_CL_CODIGO <> "),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.createImmutable("0")))),RemoteObject.createImmutable(" AND CAT_CL_CODIGO <> "),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.createImmutable("1")))),RemoteObject.createImmutable(" ORDER BY CAT_CL_CODIGO"))))));
 BA.debugLineNum = 476;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(134217728);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 477;BA.debugLine="lfila.Text = \"NOMBRE\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("NOMBRE"));
 BA.debugLineNum = 478;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(536870912);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 479;BA.debugLine="CustomListView1.Clear";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 480;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(-2147483648);
{
final int step13 = 1;
final int limit13 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step13 > 0 && _i <= limit13) || (step13 < 0 && _i >= limit13) ;_i = ((int)(0 + _i + step13))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 481;BA.debugLine="c.Position = i";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 482;BA.debugLine="CustomListView1.Add(CreateListItem(c.GetString(";
Debug.ShouldStop(2);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.c_clientes.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 BA.debugLineNum = 483;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select C";
Debug.ShouldStop(4);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CLIENTE FROM ABONOSP WHERE CLIENTE = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 484;BA.debugLine="If d.RowCount = 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 485;BA.debugLine="cxc.Visible = False";
Debug.ShouldStop(16);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 487;BA.debugLine="cxc.Visible = True";
Debug.ShouldStop(64);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 };
 BA.debugLineNum = 490;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select I";
Debug.ShouldStop(512);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO FROM kmt_info2 WHERE CAT_CL_CODIGO = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 492;BA.debugLine="If d.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 493;BA.debugLine="d.Position = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 494;BA.debugLine="LogColor(d.GetString(\"CAT_CL_BCREDITO\"),Colors";
Debug.ShouldStop(8192);
c_clientes.__c.runVoidMethod ("LogImpl","510223643",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),c_clientes.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 495;BA.debugLine="If d.GetString(\"CAT_CL_BCREDITO\") = \"1\" Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 496;BA.debugLine="CREDITO.Visible = True";
Debug.ShouldStop(32768);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 499;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(262144);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 BA.debugLineNum = 501;BA.debugLine="d.Close";
Debug.ShouldStop(1048576);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 503;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 506;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 507;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(67108864);
{
final int step37 = 1;
final int limit37 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step37 > 0 && _i <= limit37) || (step37 < 0 && _i >= limit37) ;_i = ((int)(0 + _i + step37))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 508;BA.debugLine="c.Position=i";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 509;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(268435456);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 510;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(536870912);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 511;BA.debugLine="label1.TextSize = 13";
Debug.ShouldStop(1073741824);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 512;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(-2147483648);
_label1.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 513;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(1);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 514;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(2);
_label2 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 515;BA.debugLine="label2.TextSize = 13";
Debug.ShouldStop(4);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 516;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(8);
_label2.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 517;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_CODI";
Debug.ShouldStop(16);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE"))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 520;BA.debugLine="c.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 521;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(256);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 }else 
{ BA.debugLineNum = 523;BA.debugLine="Else If CHECK = 1 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_check" /*RemoteObject*/ ),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 524;BA.debugLine="l_baseodia.Text = \"Clientes del día de visita\"";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_baseodia" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Clientes del día de visita"));
 BA.debugLineNum = 525;BA.debugLine="CHECK = 0";
Debug.ShouldStop(4096);
__ref.setField ("_check" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 526;BA.debugLine="busca.Text = \"\"";
Debug.ShouldStop(8192);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 527;BA.debugLine="entro =\"2\"";
Debug.ShouldStop(16384);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("2"));
 BA.debugLineNum = 528;BA.debugLine="colonia = 0";
Debug.ShouldStop(32768);
__ref.setField ("_colonia" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 529;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select  CAT";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where  gestion = 0 AND CAT_CL_CODIGO <> "),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.createImmutable("0")))),RemoteObject.createImmutable(" AND CAT_CL_CODIGO <> "),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.createImmutable("1")))),RemoteObject.createImmutable(" ORDER BY CAT_CL_CODIGO"))))));
 BA.debugLineNum = 530;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(131072);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 531;BA.debugLine="lfila.Text = \"NOMBRE\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("NOMBRE"));
 BA.debugLineNum = 532;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(524288);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 533;BA.debugLine="CustomListView1.Clear";
Debug.ShouldStop(1048576);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 534;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(2097152);
{
final int step63 = 1;
final int limit63 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step63 > 0 && _i <= limit63) || (step63 < 0 && _i >= limit63) ;_i = ((int)(0 + _i + step63))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 535;BA.debugLine="c.Position = i";
Debug.ShouldStop(4194304);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 536;BA.debugLine="CustomListView1.Add(CreateListItem(c.GetString(";
Debug.ShouldStop(8388608);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.c_clientes.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 BA.debugLineNum = 537;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select C";
Debug.ShouldStop(16777216);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CLIENTE FROM ABONOSP WHERE CLIENTE = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 538;BA.debugLine="If d.RowCount = 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 539;BA.debugLine="cxc.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 541;BA.debugLine="cxc.Visible = True";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 };
 BA.debugLineNum = 544;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select I";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO FROM kmt_info WHERE CAT_CL_CODIGO = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 546;BA.debugLine="If d.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 547;BA.debugLine="d.Position = 0";
Debug.ShouldStop(4);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 548;BA.debugLine="LogColor(d.GetString(\"CAT_CL_BCREDITO\"),Colors";
Debug.ShouldStop(8);
c_clientes.__c.runVoidMethod ("LogImpl","510223697",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),c_clientes.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 549;BA.debugLine="If d.GetString(\"CAT_CL_BCREDITO\") = \"1\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 550;BA.debugLine="CREDITO.Visible = True";
Debug.ShouldStop(32);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 552;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(128);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 BA.debugLineNum = 554;BA.debugLine="d.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 556;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(2048);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 559;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 560;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(32768);
{
final int step87 = 1;
final int limit87 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step87 > 0 && _i <= limit87) || (step87 < 0 && _i >= limit87) ;_i = ((int)(0 + _i + step87))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 561;BA.debugLine="c.Position=i";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 562;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(131072);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 563;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(262144);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 564;BA.debugLine="label1.TextSize = 13";
Debug.ShouldStop(524288);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 565;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(1048576);
_label1.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 566;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(2097152);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 567;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(4194304);
_label2 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 568;BA.debugLine="label2.TextSize = 13";
Debug.ShouldStop(8388608);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 569;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(16777216);
_label2.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 570;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_CODI";
Debug.ShouldStop(33554432);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE"))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 573;BA.debugLine="c.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 574;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(536870912);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 }}
;
 BA.debugLineNum = 577;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_qr_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_qr_Click (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,367);
if (RapidSub.canDelegate("b_qr_click")) { return __ref.runUserSub(false, "c_clientes","b_qr_click", __ref);}
RemoteObject _scan_width = RemoteObject.createImmutable(0);
RemoteObject _scan_height = RemoteObject.createImmutable(0);
 BA.debugLineNum = 367;BA.debugLine="Sub b_qr_Click";
Debug.ShouldStop(16384);
 BA.debugLineNum = 368;BA.debugLine="Dim scan_width As Int";
Debug.ShouldStop(32768);
_scan_width = RemoteObject.createImmutable(0);Debug.locals.put("scan_width", _scan_width);
 BA.debugLineNum = 369;BA.debugLine="Dim scan_height As Int";
Debug.ShouldStop(65536);
_scan_height = RemoteObject.createImmutable(0);Debug.locals.put("scan_height", _scan_height);
 BA.debugLineNum = 370;BA.debugLine="scan_width = 400";
Debug.ShouldStop(131072);
_scan_width = BA.numberCast(int.class, 400);Debug.locals.put("scan_width", _scan_width);
 BA.debugLineNum = 371;BA.debugLine="scan_height = 400";
Debug.ShouldStop(262144);
_scan_height = BA.numberCast(int.class, 400);Debug.locals.put("scan_height", _scan_height);
 BA.debugLineNum = 372;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
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_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,66);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_clientes","b4xpage_appear", __ref);}
int _i = 0;
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
 BA.debugLineNum = 66;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(2);
 BA.debugLineNum = 67;BA.debugLine="l_baseodia.Text = \"Clientes del día de visita\"";
Debug.ShouldStop(4);
__ref.getField(false,"_l_baseodia" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Clientes del día de visita"));
 BA.debugLineNum = 68;BA.debugLine="CHECK = 0";
Debug.ShouldStop(8);
__ref.setField ("_check" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 69;BA.debugLine="busca.Text = \"\"";
Debug.ShouldStop(16);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 70;BA.debugLine="entro =\"2\"";
Debug.ShouldStop(32);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("2"));
 BA.debugLineNum = 71;BA.debugLine="colonia = 0";
Debug.ShouldStop(64);
__ref.setField ("_colonia" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 72;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select  CAT_";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where  gestion = 0 AND CAT_CL_CODIGO <> "),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.createImmutable("0")))),RemoteObject.createImmutable(" AND CAT_CL_CODIGO <> "),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.createImmutable("1")))),RemoteObject.createImmutable(" ORDER BY CAST(CAT_CL_NUM_SERIEFISICO AS INTEGER) ASC"))))));
 BA.debugLineNum = 73;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(256);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 74;BA.debugLine="lfila.Text = \"NOMBRE\"";
Debug.ShouldStop(512);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("NOMBRE"));
 BA.debugLineNum = 76;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
Debug.ShouldStop(2048);
c_clientes.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_clientes._tracker.getObject())),(Object)(RemoteObject.createImmutable("Track")));
 BA.debugLineNum = 77;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
Debug.ShouldStop(4096);
c_clientes.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_clientes._tracker.getObject())),(Object)(RemoteObject.createImmutable("StartFLPSmall")));
 BA.debugLineNum = 78;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(".",c_clientes._tracker._flp /*RemoteObject*/ .runMethod(true,"IsInitialized")) && RemoteObject.solveBoolean(".",c_clientes._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"IsInitialized"))) { 
 BA.debugLineNum = 79;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(16384);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_lat_gps" /*RemoteObject*/ ,BA.NumberToString(c_clientes._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLatitude")));
 BA.debugLineNum = 80;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(32768);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_lon_gps" /*RemoteObject*/ ,BA.NumberToString(c_clientes._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLongitude")));
 BA.debugLineNum = 82;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
Debug.ShouldStop(131072);
__ref.runClassMethod (SHARK2.keymon.com.mx.c_clientes.class, "_gps_locationchanged" /*RemoteObject*/ ,(Object)(c_clientes._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation")));
 };
 BA.debugLineNum = 85;BA.debugLine="CustomListView1.Clear";
Debug.ShouldStop(1048576);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 86;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(2097152);
{
final int step17 = 1;
final int limit17 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step17 > 0 && _i <= limit17) || (step17 < 0 && _i >= limit17) ;_i = ((int)(0 + _i + step17))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 87;BA.debugLine="c.Position = i";
Debug.ShouldStop(4194304);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 88;BA.debugLine="CustomListView1.Add(CreateListItem(c.GetString(\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.c_clientes.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE")))),(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 BA.debugLineNum = 89;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select CL";
Debug.ShouldStop(16777216);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CLIENTE FROM ABONOSP WHERE CLIENTE = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 90;BA.debugLine="If d.RowCount = 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 91;BA.debugLine="cxc.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 93;BA.debugLine="cxc.Visible = True";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 };
 BA.debugLineNum = 96;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select IF";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO FROM kmt_info WHERE CAT_CL_CODIGO = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 98;BA.debugLine="If d.RowCount > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 99;BA.debugLine="d.Position = 0";
Debug.ShouldStop(4);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 100;BA.debugLine="If d.GetString(\"CAT_CL_BCREDITO\") = \"1\" Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 101;BA.debugLine="CREDITO.Visible = True";
Debug.ShouldStop(16);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 103;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 BA.debugLineNum = 105;BA.debugLine="d.Close";
Debug.ShouldStop(256);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 107;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 110;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 111;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(16384);
{
final int step40 = 1;
final int limit40 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step40 > 0 && _i <= limit40) || (step40 < 0 && _i >= limit40) ;_i = ((int)(0 + _i + step40))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 112;BA.debugLine="c.Position=i";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 113;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(65536);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 114;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(131072);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 115;BA.debugLine="label1.TextSize = 13";
Debug.ShouldStop(262144);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 116;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(524288);
_label1.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 117;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(1048576);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 118;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(2097152);
_label2 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 119;BA.debugLine="label2.TextSize = 13";
Debug.ShouldStop(4194304);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 120;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(8388608);
_label2.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 121;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_CODIG";
Debug.ShouldStop(16777216);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE"))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 124;BA.debugLine="c.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 125;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(268435456);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 BA.debugLineNum = 139;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
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_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,256);
if (RapidSub.canDelegate("b4xpage_closerequest")) { return __ref.runUserSub(false, "c_clientes","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_clientes 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_clientes parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,256);
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 = 263;BA.debugLine="Return True";
Debug.ShouldStop(64);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"True")));return;};
 BA.debugLineNum = 264;BA.debugLine="End Sub";
Debug.ShouldStop(128);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _b4xpage_created(RemoteObject __ref,RemoteObject _root1) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Created (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,43);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_clientes","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 43;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(1024);
 BA.debugLineNum = 44;BA.debugLine="Root = Root1";
Debug.ShouldStop(2048);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 46;BA.debugLine="Root.LoadLayout(\"clientes\")";
Debug.ShouldStop(8192);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("clientes")),__ref.getField(false, "ba"));
 BA.debugLineNum = 48;BA.debugLine="entro =\"2\"";
Debug.ShouldStop(32768);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("2"));
 BA.debugLineNum = 53;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(1048576);
__ref.setField ("_ruta" /*RemoteObject*/ ,c_clientes.__c.getField(false,"File").runMethod(true,"getDirInternal"));
 BA.debugLineNum = 60;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",c_clientes.__c.getField(false,"File").runMethod(true,"Exists",(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db"))),c_clientes.__c.getField(true,"False"))) { 
 BA.debugLineNum = 61;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
Debug.ShouldStop(268435456);
c_clientes.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_clientes.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("kmt.db")),(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db")));
 };
 BA.debugLineNum = 63;BA.debugLine="qr.initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_qr" /*RemoteObject*/ ).runVoidMethod ("initialize");
 BA.debugLineNum = 64;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _busca_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("BUSCA_TextChanged (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,266);
if (RapidSub.canDelegate("busca_textchanged")) { return __ref.runUserSub(false, "c_clientes","busca_textchanged", __ref, _old, _new);}
int _i = 0;
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 266;BA.debugLine="Sub BUSCA_TextChanged (Old As String, New As Strin";
Debug.ShouldStop(512);
 BA.debugLineNum = 267;BA.debugLine="If CHECK = 0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_check" /*RemoteObject*/ ),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 268;BA.debugLine="q_buscar = \"%\" & busca.Text & \"%\"";
Debug.ShouldStop(2048);
__ref.setField ("_q_buscar" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable("%"),__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable("%")));
 BA.debugLineNum = 269;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select  C";
Debug.ShouldStop(4096);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where (CAT_CL_NOMBRE like ? OR CAT_CL_CODIGO LIKE ? OR CAT_CL_CALLE LIKE ?)and gestion = 0 AND CAT_CL_CODIGO <> "),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.createImmutable("0")))),RemoteObject.createImmutable(" AND CAT_CL_CODIGO <> "),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((RemoteObject.createImmutable("1")))),RemoteObject.createImmutable(" order by CAT_CL_CODIGO ")))),(Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {__ref.getField(true,"_q_buscar" /*RemoteObject*/ ),__ref.getField(true,"_q_buscar" /*RemoteObject*/ ),__ref.getField(true,"_q_buscar" /*RemoteObject*/ )}))));
 BA.debugLineNum = 270;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(8192);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 271;BA.debugLine="lfila.text = \"Nombre y Calle\"";
Debug.ShouldStop(16384);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Nombre y Calle"));
 BA.debugLineNum = 273;BA.debugLine="CustomListView1.Clear";
Debug.ShouldStop(65536);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 274;BA.debugLine="For i = 0 To c2.RowCount - 1";
Debug.ShouldStop(131072);
{
final int step7 = 1;
final int limit7 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step7 > 0 && _i <= limit7) || (step7 < 0 && _i >= limit7) ;_i = ((int)(0 + _i + step7))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 275;BA.debugLine="c2.Position = i";
Debug.ShouldStop(262144);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 276;BA.debugLine="CustomListView1.Add(CreateListItem(c2.GetString";
Debug.ShouldStop(524288);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.c_clientes.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE")))),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 BA.debugLineNum = 277;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select C";
Debug.ShouldStop(1048576);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CLIENTE FROM ABONOSP WHERE CLIENTE = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 278;BA.debugLine="If d.RowCount = 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 279;BA.debugLine="cxc.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 281;BA.debugLine="cxc.Visible = True";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 };
 BA.debugLineNum = 284;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select I";
Debug.ShouldStop(134217728);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO FROM kmt_info WHERE CAT_CL_CODIGO = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 286;BA.debugLine="If d.RowCount > 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 287;BA.debugLine="d.Position = 0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 289;BA.debugLine="If d.GetString(\"CAT_CL_BCREDITO\") = \"1\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 290;BA.debugLine="CREDITO.Visible = True";
Debug.ShouldStop(2);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 292;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(8);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 BA.debugLineNum = 294;BA.debugLine="d.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 296;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(128);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 300;BA.debugLine="If c2.RowCount>0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 301;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(4096);
{
final int step30 = 1;
final int limit30 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step30 > 0 && _i <= limit30) || (step30 < 0 && _i >= limit30) ;_i = ((int)(0 + _i + step30))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 302;BA.debugLine="c2.Position=i";
Debug.ShouldStop(8192);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 303;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(16384);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 304;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(32768);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 305;BA.debugLine="label1.TextSize = 9";
Debug.ShouldStop(65536);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 9));
 BA.debugLineNum = 306;BA.debugLine="label1.TextColor = Colors.White";
Debug.ShouldStop(131072);
_label1.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 307;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(262144);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 308;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(524288);
_label2 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 309;BA.debugLine="label2.TextSize = 17";
Debug.ShouldStop(1048576);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 17));
 BA.debugLineNum = 310;BA.debugLine="label2.TextColor = Colors.White";
Debug.ShouldStop(2097152);
_label2.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 311;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_COD";
Debug.ShouldStop(4194304);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))),(Object)(BA.ObjectToCharSequence(RemoteObject.concat(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE"))),RemoteObject.createImmutable(" CALLE:  "),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE")))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 314;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(33554432);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 BA.debugLineNum = 315;BA.debugLine="c2.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else 
{ BA.debugLineNum = 316;BA.debugLine="Else If CHECK = 1 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_check" /*RemoteObject*/ ),BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 317;BA.debugLine="q_buscar = \"%\" & busca.Text & \"%\"";
Debug.ShouldStop(268435456);
__ref.setField ("_q_buscar" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable("%"),__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable("%")));
 BA.debugLineNum = 318;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select  CA";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info2 where (CAT_CL_NOMBRE like ? OR CAT_CL_CODIGO LIKE ? OR CAT_CL_CALLE LIKE ?)and gestion = 0 order by CAT_CL_CODIGO ")),(Object)(RemoteObject.createNewArray("String",new int[] {3},new Object[] {__ref.getField(true,"_q_buscar" /*RemoteObject*/ ),__ref.getField(true,"_q_buscar" /*RemoteObject*/ ),__ref.getField(true,"_q_buscar" /*RemoteObject*/ )}))));
 BA.debugLineNum = 319;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 320;BA.debugLine="lfila.text = \"Nombre y Calle\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Nombre y Calle"));
 BA.debugLineNum = 322;BA.debugLine="CustomListView1.Clear";
Debug.ShouldStop(2);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 323;BA.debugLine="For i = 0 To c2.RowCount - 1";
Debug.ShouldStop(4);
{
final int step51 = 1;
final int limit51 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step51 > 0 && _i <= limit51) || (step51 < 0 && _i >= limit51) ;_i = ((int)(0 + _i + step51))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 324;BA.debugLine="c2.Position = i";
Debug.ShouldStop(8);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 325;BA.debugLine="CustomListView1.Add(CreateListItem(c2.GetString";
Debug.ShouldStop(16);
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_add",RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.runClassMethod (SHARK2.keymon.com.mx.c_clientes.class, "_createlistitem" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE")))),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE")))),(Object)(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))).getObject()),(Object)(RemoteObject.createImmutable((_i))));
 BA.debugLineNum = 326;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select C";
Debug.ShouldStop(32);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select CLIENTE FROM ABONOSP WHERE CLIENTE = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 327;BA.debugLine="If d.RowCount = 0 Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 328;BA.debugLine="cxc.Visible = False";
Debug.ShouldStop(128);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 }else {
 BA.debugLineNum = 330;BA.debugLine="cxc.Visible = True";
Debug.ShouldStop(512);
__ref.getField(false,"_cxc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 };
 BA.debugLineNum = 332;BA.debugLine="d = B4XPages.MainPage.skmt.ExecQuery($\"select I";
Debug.ShouldStop(2048);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO FROM kmt_info2 WHERE CAT_CL_CODIGO = '"),c_clientes.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO")))))),RemoteObject.createImmutable("'"))))));
 BA.debugLineNum = 334;BA.debugLine="If d.RowCount > 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 335;BA.debugLine="d.Position = 0";
Debug.ShouldStop(16384);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 336;BA.debugLine="LogColor(d.GetString(\"CAT_CL_BCREDITO\"),Colors";
Debug.ShouldStop(32768);
c_clientes.__c.runVoidMethod ("LogImpl","59764934",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),c_clientes.__c.getField(false,"Colors").getField(true,"Blue"));
 BA.debugLineNum = 337;BA.debugLine="If d.GetString(\"CAT_CL_BCREDITO\") = \"1\" Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_BCREDITO"))),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 338;BA.debugLine="CREDITO.Visible = True";
Debug.ShouldStop(131072);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 340;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 BA.debugLineNum = 342;BA.debugLine="d.Close";
Debug.ShouldStop(2097152);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 344;BA.debugLine="CREDITO.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_credito" /*RemoteObject*/ ).runMethod(true,"setVisible",c_clientes.__c.getField(true,"False"));
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 348;BA.debugLine="If c2.RowCount>0 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 349;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(268435456);
{
final int step75 = 1;
final int limit75 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step75 > 0 && _i <= limit75) || (step75 < 0 && _i >= limit75) ;_i = ((int)(0 + _i + step75))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 350;BA.debugLine="c2.Position=i";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 351;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(1073741824);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 352;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
Debug.ShouldStop(-2147483648);
_label1 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 353;BA.debugLine="label1.TextSize = 9";
Debug.ShouldStop(1);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 9));
 BA.debugLineNum = 354;BA.debugLine="label1.TextColor = Colors.White";
Debug.ShouldStop(2);
_label1.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 355;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(4);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 356;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(8);
_label2 = __ref.getField(false,"_listview1" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 357;BA.debugLine="label2.TextSize = 17";
Debug.ShouldStop(16);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 17));
 BA.debugLineNum = 358;BA.debugLine="label2.TextColor = Colors.White";
Debug.ShouldStop(32);
_label2.runMethod(true,"setTextColor",c_clientes.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 359;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_COD";
Debug.ShouldStop(64);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))),(Object)(BA.ObjectToCharSequence(RemoteObject.concat(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE"))),RemoteObject.createImmutable(" CALLE:  "),__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE")))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 362;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(512);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 BA.debugLineNum = 363;BA.debugLine="c2.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runVoidMethod ("Close");
 }}
;
 BA.debugLineNum = 365;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
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_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,395);
if (RapidSub.canDelegate("calc_ean_checksum")) { return __ref.runUserSub(false, "c_clientes","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 = 395;BA.debugLine="Sub calc_ean_checksum(number As String) As String";
Debug.ShouldStop(1024);
 BA.debugLineNum = 396;BA.debugLine="Dim i As Int";
Debug.ShouldStop(2048);
_i = RemoteObject.createImmutable(0);Debug.locals.put("i", _i);
 BA.debugLineNum = 397;BA.debugLine="Dim cO As Char";
Debug.ShouldStop(4096);
_co = RemoteObject.createImmutable('\0');Debug.locals.put("cO", _co);
 BA.debugLineNum = 398;BA.debugLine="Dim soma As Int";
Debug.ShouldStop(8192);
_soma = RemoteObject.createImmutable(0);Debug.locals.put("soma", _soma);
 BA.debugLineNum = 399;BA.debugLine="Dim n As Int";
Debug.ShouldStop(16384);
_n = RemoteObject.createImmutable(0);Debug.locals.put("n", _n);
 BA.debugLineNum = 400;BA.debugLine="Dim digit As Float";
Debug.ShouldStop(32768);
_digit = RemoteObject.createImmutable(0f);Debug.locals.put("digit", _digit);
 BA.debugLineNum = 401;BA.debugLine="soma = 0";
Debug.ShouldStop(65536);
_soma = BA.numberCast(int.class, 0);Debug.locals.put("soma", _soma);
 BA.debugLineNum = 402;BA.debugLine="For i=0 To number.Length - 1";
Debug.ShouldStop(131072);
{
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 = 403;BA.debugLine="digit = number.SubString2(i,i+1)";
Debug.ShouldStop(262144);
_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 = 404;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)";
Debug.ShouldStop(524288);
_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 = 405;BA.debugLine="soma=soma+n";
Debug.ShouldStop(1048576);
_soma = RemoteObject.solve(new RemoteObject[] {_soma,_n}, "+",1, 1);Debug.locals.put("soma", _soma);
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 407;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10";
Debug.ShouldStop(4194304);
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 = 408;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
c_clientes._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_clientes._root);
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
c_clientes._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_clientes._xui);
 //BA.debugLineNum = 5;BA.debugLine="Dim c As Cursor";
c_clientes._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_clientes._c);
 //BA.debugLineNum = 6;BA.debugLine="Dim c2 As Cursor";
c_clientes._c2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c2",c_clientes._c2);
 //BA.debugLineNum = 7;BA.debugLine="Dim d As Cursor";
c_clientes._d = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_d",c_clientes._d);
 //BA.debugLineNum = 8;BA.debugLine="Dim s As Cursor";
c_clientes._s = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_s",c_clientes._s);
 //BA.debugLineNum = 9;BA.debugLine="Dim ListView1 As ListView";
c_clientes._listview1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_listview1",c_clientes._listview1);
 //BA.debugLineNum = 10;BA.debugLine="Dim entro As String";
c_clientes._entro = RemoteObject.createImmutable("");__ref.setField("_entro",c_clientes._entro);
 //BA.debugLineNum = 11;BA.debugLine="Dim gest As Button";
c_clientes._gest = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_gest",c_clientes._gest);
 //BA.debugLineNum = 12;BA.debugLine="Dim lfila As Label";
c_clientes._lfila = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_lfila",c_clientes._lfila);
 //BA.debugLineNum = 13;BA.debugLine="Dim busca As EditText";
c_clientes._busca = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_busca",c_clientes._busca);
 //BA.debugLineNum = 14;BA.debugLine="Dim colonia As String";
c_clientes._colonia = RemoteObject.createImmutable("");__ref.setField("_colonia",c_clientes._colonia);
 //BA.debugLineNum = 15;BA.debugLine="Private b_qr As Button";
c_clientes._b_qr = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_qr",c_clientes._b_qr);
 //BA.debugLineNum = 16;BA.debugLine="Private qr As QRCode";
c_clientes._qr = RemoteObject.createNew ("com.inforpires.baQRCode.baQRCode");__ref.setField("_qr",c_clientes._qr);
 //BA.debugLineNum = 18;BA.debugLine="Dim CODIGO As String";
c_clientes._codigo = RemoteObject.createImmutable("");__ref.setField("_codigo",c_clientes._codigo);
 //BA.debugLineNum = 19;BA.debugLine="Dim STIME As String";
c_clientes._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_clientes._stime);
 //BA.debugLineNum = 20;BA.debugLine="Dim ruta As String";
c_clientes._ruta = RemoteObject.createImmutable("");__ref.setField("_ruta",c_clientes._ruta);
 //BA.debugLineNum = 21;BA.debugLine="Dim q_buscar As String";
c_clientes._q_buscar = RemoteObject.createImmutable("");__ref.setField("_q_buscar",c_clientes._q_buscar);
 //BA.debugLineNum = 22;BA.debugLine="Private p_clientes As Panel";
c_clientes._p_clientes = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_clientes",c_clientes._p_clientes);
 //BA.debugLineNum = 23;BA.debugLine="Private CustomListView1 As CustomListView";
c_clientes._customlistview1 = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_customlistview1",c_clientes._customlistview1);
 //BA.debugLineNum = 24;BA.debugLine="Private numerocliente As Label";
c_clientes._numerocliente = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_numerocliente",c_clientes._numerocliente);
 //BA.debugLineNum = 25;BA.debugLine="Private nombrecliente As Label";
c_clientes._nombrecliente = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_nombrecliente",c_clientes._nombrecliente);
 //BA.debugLineNum = 26;BA.debugLine="Private direccion As Label";
c_clientes._direccion = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_direccion",c_clientes._direccion);
 //BA.debugLineNum = 27;BA.debugLine="Private cxc As Label";
c_clientes._cxc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_cxc",c_clientes._cxc);
 //BA.debugLineNum = 28;BA.debugLine="Private p_datosclie As Panel";
c_clientes._p_datosclie = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_datosclie",c_clientes._p_datosclie);
 //BA.debugLineNum = 29;BA.debugLine="Private b_buscar As Button";
c_clientes._b_buscar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_buscar",c_clientes._b_buscar);
 //BA.debugLineNum = 30;BA.debugLine="Private CHECK As Int";
c_clientes._check = RemoteObject.createImmutable(0);__ref.setField("_check",c_clientes._check);
 //BA.debugLineNum = 31;BA.debugLine="Private l_baseodia As Label";
c_clientes._l_baseodia = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_baseodia",c_clientes._l_baseodia);
 //BA.debugLineNum = 32;BA.debugLine="Dim lista_punta As List";
c_clientes._lista_punta = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_lista_punta",c_clientes._lista_punta);
 //BA.debugLineNum = 33;BA.debugLine="Private CREDITO As Label";
c_clientes._credito = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_credito",c_clientes._credito);
 //BA.debugLineNum = 35;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _createlistitem(RemoteObject __ref,RemoteObject _mostrar,RemoteObject _mostrar1,RemoteObject _mostrar2) throws Exception{
try {
		Debug.PushSubsStack("CreateListItem (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,155);
if (RapidSub.canDelegate("createlistitem")) { return __ref.runUserSub(false, "c_clientes","createlistitem", __ref, _mostrar, _mostrar1, _mostrar2);}
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
Debug.locals.put("mostrar", _mostrar);
Debug.locals.put("mostrar1", _mostrar1);
Debug.locals.put("mostrar2", _mostrar2);
 BA.debugLineNum = 155;BA.debugLine="Sub CreateListItem(mostrar As String, mostrar1 As";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 156;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(134217728);
_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 = 157;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 1, 220)";
Debug.ShouldStop(268435456);
_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, 220)));
 BA.debugLineNum = 158;BA.debugLine="p.LoadLayout(\"datoscliente\")";
Debug.ShouldStop(536870912);
_p.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("datoscliente")),__ref.getField(false, "ba"));
 BA.debugLineNum = 159;BA.debugLine="p.Height= 60dip";
Debug.ShouldStop(1073741824);
_p.runMethod(true,"setHeight",c_clientes.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 60))));
 BA.debugLineNum = 161;BA.debugLine="nombrecliente.Text = mostrar";
Debug.ShouldStop(1);
__ref.getField(false,"_nombrecliente" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_mostrar));
 BA.debugLineNum = 162;BA.debugLine="direccion.Text = mostrar1";
Debug.ShouldStop(2);
__ref.getField(false,"_direccion" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_mostrar1));
 BA.debugLineNum = 163;BA.debugLine="numerocliente.Text = mostrar2";
Debug.ShouldStop(4);
__ref.getField(false,"_numerocliente" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_mostrar2));
 BA.debugLineNum = 164;BA.debugLine="p_datosclie.Tag = mostrar2";
Debug.ShouldStop(8);
__ref.getField(false,"_p_datosclie" /*RemoteObject*/ ).runMethod(false,"setTag",(_mostrar2));
 BA.debugLineNum = 167;BA.debugLine="Return p";
Debug.ShouldStop(64);
if (true) return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), _p.getObject());
 BA.debugLineNum = 168;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable(null);
}
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_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,143);
if (RapidSub.canDelegate("gps_locationchanged")) { return __ref.runUserSub(false, "c_clientes","gps_locationchanged", __ref, _location1);}
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 143;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(16384);
 BA.debugLineNum = 145;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(".",c_clientes._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"IsInitialized")) && RemoteObject.solveBoolean("!",c_clientes._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLatitude"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 146;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(131072);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_lat_gps" /*RemoteObject*/ ,BA.NumberToString(c_clientes._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLatitude")));
 BA.debugLineNum = 147;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
Debug.ShouldStop(262144);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_lon_gps" /*RemoteObject*/ ,BA.NumberToString(c_clientes._tracker._flp /*RemoteObject*/ .runMethod(false,"GetLastKnownLocation").runMethod(true,"getLongitude")));
 };
 BA.debugLineNum = 152;BA.debugLine="CallSubDelayed(Tracker, \"CreateLocationRequest\")";
Debug.ShouldStop(8388608);
c_clientes.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_clientes._tracker.getObject())),(Object)(RemoteObject.createImmutable("CreateLocationRequest")));
 BA.debugLineNum = 153;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("Initialize (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,38);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_clientes","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 38;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(32);
 BA.debugLineNum = 39;BA.debugLine="Return Me";
Debug.ShouldStop(64);
if (true) return __ref;
 BA.debugLineNum = 40;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _listview1_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("ListView1_ItemClick (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,197);
if (RapidSub.canDelegate("listview1_itemclick")) { return __ref.runUserSub(false, "c_clientes","listview1_itemclick", __ref, _position, _value);}
int _i = 0;
RemoteObject _mpoint = RemoteObject.declareNull("anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper");
Debug.locals.put("Position", _position);
Debug.locals.put("value", _value);
 BA.debugLineNum = 197;BA.debugLine="Sub ListView1_ItemClick (Position As Int, value As";
Debug.ShouldStop(16);
 BA.debugLineNum = 198;BA.debugLine="If colonia = 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_colonia" /*RemoteObject*/ ),BA.NumberToString(0))) { 
 BA.debugLineNum = 199;BA.debugLine="colonia = value";
Debug.ShouldStop(64);
__ref.setField ("_colonia" /*RemoteObject*/ ,BA.ObjectToString(_value));
 };
 BA.debugLineNum = 201;BA.debugLine="If entro = \"2\" Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("2"))) { 
 BA.debugLineNum = 202;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select CAT";
Debug.ShouldStop(512);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_CL_CALLE, CAT_CL_COLONIA, count(*) as cuantos from kmt_info where gestion = 0 and CAT_CL_COLONIA = ? GROUP BY CAT_CL_CALLE, CAT_CL_COLONIA order by CAT_CL_CALLE ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString(_value)}))));
 BA.debugLineNum = 203;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(1024);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 204;BA.debugLine="lfila.text = \"Calle\"";
Debug.ShouldStop(2048);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Calle"));
 BA.debugLineNum = 205;BA.debugLine="If c2.RowCount>0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 206;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(8192);
{
final int step9 = 1;
final int limit9 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step9 > 0 && _i <= limit9) || (step9 < 0 && _i >= limit9) ;_i = ((int)(0 + _i + step9))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 207;BA.debugLine="c2.Position=i";
Debug.ShouldStop(16384);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 208;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_CAL";
Debug.ShouldStop(32768);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE"))))),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("cuantos"))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 211;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(262144);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 }else 
{ BA.debugLineNum = 212;BA.debugLine="Else If entro = \"3\" Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("3"))) { 
 BA.debugLineNum = 213;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select  CA";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where  gestion = 0 and  CAT_CL_CALLE = ? AND CAT_CL_COLONIA = ? order by CAT_CL_NOMBRE ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString(_value),__ref.getField(true,"_colonia" /*RemoteObject*/ )}))));
 BA.debugLineNum = 214;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(2097152);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 215;BA.debugLine="lfila.text = \"Nombre\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Nombre"));
 BA.debugLineNum = 216;BA.debugLine="If c2.RowCount>0 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 217;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(16777216);
{
final int step20 = 1;
final int limit20 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step20 > 0 && _i <= limit20) || (step20 < 0 && _i >= limit20) ;_i = ((int)(0 + _i + step20))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 218;BA.debugLine="c2.Position=i";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 219;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_COD";
Debug.ShouldStop(67108864);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE"))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 222;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(536870912);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 }else 
{ BA.debugLineNum = 223;BA.debugLine="Else If entro = \"4\" Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
 BA.debugLineNum = 224;BA.debugLine="Dim mPoint As LatLng";
Debug.ShouldStop(-2147483648);
_mpoint = RemoteObject.createNew ("anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper");Debug.locals.put("mPoint", _mpoint);
 BA.debugLineNum = 225;BA.debugLine="mPoint.Initialize(B4XPages.MainPage.lat_gps, B4X";
Debug.ShouldStop(1);
_mpoint.runVoidMethod ("Initialize",(Object)(BA.numberCast(double.class, c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))),(Object)(BA.numberCast(double.class, c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ ))));
 BA.debugLineNum = 234;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(512);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CUENTAA")));
 BA.debugLineNum = 235;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(1024);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CUENTAA VALUES (?)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_value})))));
 BA.debugLineNum = 236;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
Debug.ShouldStop(2048);
c_clientes.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 237;BA.debugLine="STIME=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(4096);
__ref.setField ("_stime" /*RemoteObject*/ ,c_clientes.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_clientes.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 238;BA.debugLine="Starter.pre_viejo = Subs.traeTotalClienteprevent";
Debug.ShouldStop(8192);
c_clientes._starter._pre_viejo /*RemoteObject*/  = BA.numberCast(float.class, c_clientes._subs.runMethod(true,"_traetotalclientepreventaparacredito" /*RemoteObject*/ ,__ref.getField(false, "ba")));
 BA.debugLineNum = 239;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN";
Debug.ShouldStop(16384);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (c_clientes._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_STAY_STORE WHERE HSS_IN = ? AND HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("0")}))));
 BA.debugLineNum = 240;BA.debugLine="s.Position = 0";
Debug.ShouldStop(32768);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 241;BA.debugLine="If s.GetString(\"CUANTOS\") = 1 Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 242;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
Debug.ShouldStop(131072);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_STORE set HSS_IN = ?  where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 }else {
 BA.debugLineNum = 244;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
Debug.ShouldStop(524288);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_value})))));
 BA.debugLineNum = 245;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
Debug.ShouldStop(1048576);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_STORE set HSS_IN = ?  where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 };
 BA.debugLineNum = 247;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
Debug.ShouldStop(4194304);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_OUT set HSO_INI = ?  where HSO_INI = 0 ")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 248;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(8388608);
c_clientes.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 250;BA.debugLine="Subs.guardaClienteHoraInicio(value)";
Debug.ShouldStop(33554432);
c_clientes._subs.runVoidMethod ("_guardaclientehorainicio" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_value)));
 BA.debugLineNum = 252;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(134217728);
c_clientes._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }}}
;
 BA.debugLineNum = 254;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_clientes_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_clientes_Click (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,412);
if (RapidSub.canDelegate("p_clientes_click")) { return __ref.runUserSub(false, "c_clientes","p_clientes_click", __ref);}
 BA.debugLineNum = 412;BA.debugLine="Private Sub p_clientes_Click";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 414;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_datosclie_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_datosclie_Click (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,416);
if (RapidSub.canDelegate("p_datosclie_click")) { return __ref.runUserSub(false, "c_clientes","p_datosclie_click", __ref);}
int _i = 0;
 BA.debugLineNum = 416;BA.debugLine="Private Sub p_datosclie_Click";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 417;BA.debugLine="If colonia = 0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_colonia" /*RemoteObject*/ ),BA.NumberToString(0))) { 
 BA.debugLineNum = 418;BA.debugLine="colonia = Sender.As(Panel).tag";
Debug.ShouldStop(2);
__ref.setField ("_colonia" /*RemoteObject*/ ,BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), c_clientes.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")));
 };
 BA.debugLineNum = 420;BA.debugLine="If entro = \"2\" Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("2"))) { 
 BA.debugLineNum = 421;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select CAT";
Debug.ShouldStop(16);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_CL_CALLE, CAT_CL_COLONIA, count(*) as cuantos from kmt_info where gestion = 0 and CAT_CL_COLONIA = ? GROUP BY CAT_CL_CALLE, CAT_CL_COLONIA order by CAT_CL_CALLE ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), c_clientes.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag"))}))));
 BA.debugLineNum = 422;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(32);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 423;BA.debugLine="lfila.text = \"Calle\"";
Debug.ShouldStop(64);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Calle"));
 BA.debugLineNum = 424;BA.debugLine="If c2.RowCount>0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 425;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(256);
{
final int step9 = 1;
final int limit9 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step9 > 0 && _i <= limit9) || (step9 < 0 && _i >= limit9) ;_i = ((int)(0 + _i + step9))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 426;BA.debugLine="c2.Position=i";
Debug.ShouldStop(512);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 427;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_CAL";
Debug.ShouldStop(1024);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CALLE"))))),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("cuantos"))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 430;BA.debugLine="entro = \"3\"";
Debug.ShouldStop(8192);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("3"));
 }else 
{ BA.debugLineNum = 431;BA.debugLine="Else If entro = \"3\" Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("3"))) { 
 BA.debugLineNum = 432;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select  CA";
Debug.ShouldStop(32768);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where  gestion = 0 and  CAT_CL_CALLE = ? AND CAT_CL_COLONIA = ? order by CAT_CL_NOMBRE ")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), c_clientes.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")),__ref.getField(true,"_colonia" /*RemoteObject*/ )}))));
 BA.debugLineNum = 433;BA.debugLine="ListView1.Clear";
Debug.ShouldStop(65536);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 434;BA.debugLine="lfila.text = \"Nombre\"";
Debug.ShouldStop(131072);
__ref.getField(false,"_lfila" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Nombre"));
 BA.debugLineNum = 435;BA.debugLine="If c2.RowCount>0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 436;BA.debugLine="For i=0 To c2.RowCount -1";
Debug.ShouldStop(524288);
{
final int step20 = 1;
final int limit20 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step20 > 0 && _i <= limit20) || (step20 < 0 && _i >= limit20) ;_i = ((int)(0 + _i + step20))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 437;BA.debugLine="c2.Position=i";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 438;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_COD";
Debug.ShouldStop(2097152);
__ref.getField(false,"_listview1" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))),(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_NOMBRE"))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 441;BA.debugLine="entro = \"4\"";
Debug.ShouldStop(16777216);
__ref.setField ("_entro" /*RemoteObject*/ ,BA.ObjectToString("4"));
 }else 
{ BA.debugLineNum = 442;BA.debugLine="Else If entro = \"4\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_entro" /*RemoteObject*/ ),BA.ObjectToString("4"))) { 
 BA.debugLineNum = 443;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(67108864);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CUENTAA")));
 BA.debugLineNum = 444;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(134217728);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CUENTAA VALUES (?)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), c_clientes.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")})))));
 BA.debugLineNum = 445;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
Debug.ShouldStop(268435456);
c_clientes.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 446;BA.debugLine="STIME=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(536870912);
__ref.setField ("_stime" /*RemoteObject*/ ,c_clientes.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_clientes.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 448;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (c_clientes._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_STAY_STORE WHERE HSS_IN = ? AND HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("0")}))));
 BA.debugLineNum = 449;BA.debugLine="s.Position = 0";
Debug.ShouldStop(1);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 450;BA.debugLine="If s.GetString(\"CUANTOS\") = 1 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(1))) { 
 BA.debugLineNum = 451;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
Debug.ShouldStop(4);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_STORE set HSS_IN = ?  where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 }else {
 BA.debugLineNum = 453;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
Debug.ShouldStop(16);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), c_clientes.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag")})))));
 BA.debugLineNum = 454;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
Debug.ShouldStop(32);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_STORE set HSS_IN = ?  where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 };
 BA.debugLineNum = 456;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
Debug.ShouldStop(128);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("UPDATE HIST_STAY_OUT set HSO_INI = ?  where HSO_INI = 0 ")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_stime" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 457;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(256);
c_clientes.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 459;BA.debugLine="Subs.guardaClienteHoraInicio(Sender.As(Panel).ta";
Debug.ShouldStop(1024);
c_clientes._subs.runVoidMethod ("_guardaclientehorainicio" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString((RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.PanelWrapper"), c_clientes.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(false,"getTag"))));
 BA.debugLineNum = 461;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
Debug.ShouldStop(4096);
c_clientes._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Cliente")));
 }}}
;
 BA.debugLineNum = 465;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _pointinpolygon(RemoteObject __ref,RemoteObject _point,RemoteObject _polygon) throws Exception{
try {
		Debug.PushSubsStack("PointInPolygon (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,170);
if (RapidSub.canDelegate("pointinpolygon")) { return __ref.runUserSub(false, "c_clientes","pointinpolygon", __ref, _point, _polygon);}
RemoteObject _x = RemoteObject.createImmutable(0);
RemoteObject _y = RemoteObject.createImmutable(0);
RemoteObject _inside = RemoteObject.createImmutable(false);
int _i = 0;
RemoteObject _j = RemoteObject.createImmutable(0);
RemoteObject _p1_1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper");
RemoteObject _p2_1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper");
RemoteObject _xi = RemoteObject.createImmutable(0);
RemoteObject _yi = RemoteObject.createImmutable(0);
RemoteObject _xj = RemoteObject.createImmutable(0);
RemoteObject _yj = RemoteObject.createImmutable(0);
RemoteObject _intersect = RemoteObject.createImmutable(false);
Debug.locals.put("point", _point);
Debug.locals.put("polygon", _polygon);
 BA.debugLineNum = 170;BA.debugLine="Sub PointInPolygon(point As LatLng, polygon As Lis";
Debug.ShouldStop(512);
 BA.debugLineNum = 171;BA.debugLine="Dim x As Double = point.Longitude";
Debug.ShouldStop(1024);
_x = _point.runMethod(true,"getLongitude");Debug.locals.put("x", _x);Debug.locals.put("x", _x);
 BA.debugLineNum = 172;BA.debugLine="Dim y As Double = point.Latitude";
Debug.ShouldStop(2048);
_y = _point.runMethod(true,"getLatitude");Debug.locals.put("y", _y);Debug.locals.put("y", _y);
 BA.debugLineNum = 174;BA.debugLine="Dim inside As Boolean = False";
Debug.ShouldStop(8192);
_inside = c_clientes.__c.getField(true,"False");Debug.locals.put("inside", _inside);Debug.locals.put("inside", _inside);
 BA.debugLineNum = 175;BA.debugLine="For i = 0 To polygon.Size - 1";
Debug.ShouldStop(16384);
{
final int step4 = 1;
final int limit4 = RemoteObject.solve(new RemoteObject[] {_polygon.runMethod(true,"getSize"),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 = 176;BA.debugLine="Dim j As Int = (i + 1) Mod polygon.Size";
Debug.ShouldStop(32768);
_j = RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_i),RemoteObject.createImmutable(1)}, "+",1, 1)),_polygon.runMethod(true,"getSize")}, "%",0, 1);Debug.locals.put("j", _j);Debug.locals.put("j", _j);
 BA.debugLineNum = 177;BA.debugLine="Dim p1_1 As LatLng = polygon.Get(i)";
Debug.ShouldStop(65536);
_p1_1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper");
_p1_1 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper"), _polygon.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i))));Debug.locals.put("p1_1", _p1_1);Debug.locals.put("p1_1", _p1_1);
 BA.debugLineNum = 178;BA.debugLine="Dim p2_1 As LatLng = polygon.Get(j)";
Debug.ShouldStop(131072);
_p2_1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper");
_p2_1 = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper"), _polygon.runMethod(false,"Get",(Object)(_j)));Debug.locals.put("p2_1", _p2_1);Debug.locals.put("p2_1", _p2_1);
 BA.debugLineNum = 180;BA.debugLine="Dim xi As Double = p1_1.Longitude";
Debug.ShouldStop(524288);
_xi = _p1_1.runMethod(true,"getLongitude");Debug.locals.put("xi", _xi);Debug.locals.put("xi", _xi);
 BA.debugLineNum = 181;BA.debugLine="Dim yi As Double = p1_1.Latitude";
Debug.ShouldStop(1048576);
_yi = _p1_1.runMethod(true,"getLatitude");Debug.locals.put("yi", _yi);Debug.locals.put("yi", _yi);
 BA.debugLineNum = 182;BA.debugLine="Dim xj As Double = p2_1.Longitude";
Debug.ShouldStop(2097152);
_xj = _p2_1.runMethod(true,"getLongitude");Debug.locals.put("xj", _xj);Debug.locals.put("xj", _xj);
 BA.debugLineNum = 183;BA.debugLine="Dim yj As Double = p2_1.Latitude";
Debug.ShouldStop(4194304);
_yj = _p2_1.runMethod(true,"getLatitude");Debug.locals.put("yj", _yj);Debug.locals.put("yj", _yj);
 BA.debugLineNum = 185;BA.debugLine="Dim intersect As Boolean = ((yi > y) <> (yj > y)";
Debug.ShouldStop(16777216);
_intersect = BA.ObjectToBoolean(RemoteObject.solveBoolean(".",BA.ObjectToBoolean((RemoteObject.solveBoolean("!",RemoteObject.createImmutable((RemoteObject.solveBoolean(">",_yi,_y))),BA.ObjectToBoolean((RemoteObject.solveBoolean(">",_yj,_y))))))) && RemoteObject.solveBoolean(".",BA.ObjectToBoolean((RemoteObject.solveBoolean("<",_x,RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {_xj,_xi}, "-",1, 0)),(RemoteObject.solve(new RemoteObject[] {_y,_yi}, "-",1, 0)),(RemoteObject.solve(new RemoteObject[] {_yj,_yi}, "-",1, 0)),_xi}, "*/+",1, 0))))));Debug.locals.put("intersect", _intersect);Debug.locals.put("intersect", _intersect);
 BA.debugLineNum = 186;BA.debugLine="If intersect Then";
Debug.ShouldStop(33554432);
if (_intersect.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 187;BA.debugLine="inside = Not(inside)";
Debug.ShouldStop(67108864);
_inside = c_clientes.__c.runMethod(true,"Not",(Object)(_inside));Debug.locals.put("inside", _inside);
 };
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 191;BA.debugLine="Return inside";
Debug.ShouldStop(1073741824);
if (true) return _inside;
 BA.debugLineNum = 194;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _sc_noscan(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("sc_noScan (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,391);
if (RapidSub.canDelegate("sc_noscan")) { return __ref.runUserSub(false, "c_clientes","sc_noscan", __ref);}
 BA.debugLineNum = 391;BA.debugLine="Sub sc_noScan";
Debug.ShouldStop(64);
 BA.debugLineNum = 392;BA.debugLine="Log(\"nothing returned from the scan !!!!!\")";
Debug.ShouldStop(128);
c_clientes.__c.runVoidMethod ("LogImpl","59961473",RemoteObject.createImmutable("nothing returned from the scan !!!!!"),0);
 BA.debugLineNum = 393;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _sc_result(RemoteObject __ref,RemoteObject _atype,RemoteObject _values) throws Exception{
try {
		Debug.PushSubsStack("sc_result (c_clientes) ","c_clientes",5,__ref.getField(false, "ba"),__ref,374);
if (RapidSub.canDelegate("sc_result")) { return __ref.runUserSub(false, "c_clientes","sc_result", __ref, _atype, _values);}
Debug.locals.put("atype", _atype);
Debug.locals.put("Values", _values);
 BA.debugLineNum = 374;BA.debugLine="Sub sc_result(atype As String,Values As String)";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 375;BA.debugLine="CODIGO = Values";
Debug.ShouldStop(4194304);
__ref.setField ("_codigo" /*RemoteObject*/ ,_values);
 BA.debugLineNum = 376;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select   CO";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c2" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select   COUNT(*) AS ENCONTRADO from kmt_info where CAT_CL_NUM_SERIEFISICO = ?  order by CAT_CL_NOMBRE ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(true,"_codigo" /*RemoteObject*/ )}))));
 BA.debugLineNum = 377;BA.debugLine="c2.Position =0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 378;BA.debugLine="If c2.GetString(\"ENCONTRADO\") > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ENCONTRADO")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 379;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"select   CA";
Debug.ShouldStop(67108864);
__ref.getField(false,"_s" /*RemoteObject*/ ).setObject (c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select   CAT_CL_CODIGO from kmt_info where CAT_CL_NUM_SERIEFISICO = ?  order by CAT_CL_NOMBRE ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(true,"_codigo" /*RemoteObject*/ )}))));
 BA.debugLineNum = 380;BA.debugLine="s.Position =0";
Debug.ShouldStop(134217728);
__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 381;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(268435456);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CUENTAA")));
 BA.debugLineNum = 382;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(536870912);
c_clientes._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CUENTAA VALUES (?)")),(Object)(c_clientes.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(false,"_s" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_CODIGO"))))})))));
 BA.debugLineNum = 383;BA.debugLine="s.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_s" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 385;BA.debugLine="B4XPages.ShowPage(\"clientes\")";
Debug.ShouldStop(1);
c_clientes._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("clientes")));
 }else {
 BA.debugLineNum = 387;BA.debugLine="Msgbox(\"CODIGO \" & CODIGO & \" NO ENCONTRADO\",\"AV";
Debug.ShouldStop(4);
c_clientes.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("CODIGO "),__ref.getField(true,"_codigo" /*RemoteObject*/ ),RemoteObject.createImmutable(" NO ENCONTRADO")))),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 };
 BA.debugLineNum = 389;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}