package keymon.lat.medicomed;

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

public class c_nuevocliente_subs_0 {


public static RemoteObject  _b_foto_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_FOTO_Click (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,400);
if (RapidSub.canDelegate("b_foto_click")) { return __ref.runUserSub(false, "c_nuevocliente","b_foto_click", __ref);}
 BA.debugLineNum = 400;BA.debugLine="Private Sub B_FOTO_Click";
Debug.ShouldStop(32768);
 BA.debugLineNum = 401;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
Debug.ShouldStop(65536);
c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("ddMMyyyyHHmmss"));
 BA.debugLineNum = 402;BA.debugLine="InitializeCamera2";
Debug.ShouldStop(131072);
__ref.runClassMethod (keymon.lat.medicomed.c_nuevocliente.class, "_initializecamera2" /*void*/ );
 BA.debugLineNum = 403;BA.debugLine="Subs.panelVisible(p_camara, 0, 0)";
Debug.ShouldStop(262144);
c_nuevocliente._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_camara" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 404;BA.debugLine="fototomada = DateTime.Now & \"_cliente.jpg\"";
Debug.ShouldStop(524288);
__ref.setField ("_fototomada" /*RemoteObject*/ ,RemoteObject.concat(c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"getNow"),RemoteObject.createImmutable("_cliente.jpg")));
 BA.debugLineNum = 405;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_foto_inci_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_foto_inci_Click (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,312);
if (RapidSub.canDelegate("b_foto_inci_click")) { return __ref.runUserSub(false, "c_nuevocliente","b_foto_inci_click", __ref);}
 BA.debugLineNum = 312;BA.debugLine="Private Sub b_foto_inci_Click";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 313;BA.debugLine="camEx2.TakePicture";
Debug.ShouldStop(16777216);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_takepicture" /*RemoteObject*/ );
 BA.debugLineNum = 314;BA.debugLine="p_camara.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p_camara" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 BA.debugLineNum = 316;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
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_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,67);
if (RapidSub.canDelegate("b4xpage_appear")) { return __ref.runUserSub(false, "c_nuevocliente","b4xpage_appear", __ref);}
 BA.debugLineNum = 67;BA.debugLine="Sub B4XPage_Appear";
Debug.ShouldStop(4);
 BA.debugLineNum = 68;BA.debugLine="E_NOMBRE.Text =  \"\"";
Debug.ShouldStop(8);
__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 69;BA.debugLine="et_colonia.Text = \"\"";
Debug.ShouldStop(16);
__ref.getField(false,"_et_colonia" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 70;BA.debugLine="et_cp.Text = \"\"";
Debug.ShouldStop(32);
__ref.getField(false,"_et_cp" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 71;BA.debugLine="et_direccion.Text = \"\"";
Debug.ShouldStop(64);
__ref.getField(false,"_et_direccion" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 72;BA.debugLine="lv_colonia.Visible = False";
Debug.ShouldStop(128);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 BA.debugLineNum = 73;BA.debugLine="lv_colonia.Clear";
Debug.ShouldStop(256);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 74;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
Debug.ShouldStop(512);
if (c_nuevocliente.__c.runMethod(true,"Not",(Object)(c_nuevocliente._starter._gps /*RemoteObject*/ .runMethod(true,"getGPSEnabled"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 75;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
Debug.ShouldStop(1024);
c_nuevocliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Es necesario tener el GPS encendido")),(Object)(c_nuevocliente.__c.getField(true,"True")));
 BA.debugLineNum = 76;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
Debug.ShouldStop(2048);
c_nuevocliente.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((c_nuevocliente._starter._gps /*RemoteObject*/ .runMethod(false,"getLocationSettingsIntent"))));
 };
 BA.debugLineNum = 78;BA.debugLine="GUARDA.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_guarda" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 BA.debugLineNum = 79;BA.debugLine="Subs.panelVisible(p_nuevoCliente, 0, 0)";
Debug.ShouldStop(16384);
c_nuevocliente._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_nuevocliente" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 80;BA.debugLine="p_nuevoCliente.Height = Root.Height";
Debug.ShouldStop(32768);
__ref.getField(false,"_p_nuevocliente" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 81;BA.debugLine="p_nuevoCliente.Width = Root.Width";
Debug.ShouldStop(65536);
__ref.getField(false,"_p_nuevocliente" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 82;BA.debugLine="Subs.centraEtiqueta(Label1, Root.Width)";
Debug.ShouldStop(131072);
c_nuevocliente._subs.runVoidMethod ("_centraetiqueta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_label1" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 83;BA.debugLine="Subs.centraEtiqueta(Label2, Root.Width)";
Debug.ShouldStop(262144);
c_nuevocliente._subs.runVoidMethod ("_centraetiqueta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_label2" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 84;BA.debugLine="Subs.centraEtiqueta(Label3, Root.Width)";
Debug.ShouldStop(524288);
c_nuevocliente._subs.runVoidMethod ("_centraetiqueta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_label3" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 85;BA.debugLine="Subs.centraEtiqueta(Label4, Root.Width)";
Debug.ShouldStop(1048576);
c_nuevocliente._subs.runVoidMethod ("_centraetiqueta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_label4" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 86;BA.debugLine="Subs.centraEtiqueta(l_sinUbicacion, Root.Width)";
Debug.ShouldStop(2097152);
c_nuevocliente._subs.runVoidMethod ("_centraetiqueta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_l_sinubicacion" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 87;BA.debugLine="Subs.centraEtiqueta(b_ubicacion, Root.Width)";
Debug.ShouldStop(4194304);
c_nuevocliente._subs.runVoidMethod ("_centraetiqueta" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_b_ubicacion" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 88;BA.debugLine="Subs.centraPanel(p_botones, Root.Width)";
Debug.ShouldStop(8388608);
c_nuevocliente._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_botones" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 89;BA.debugLine="E_NOMBRE.Left = Round(Root.Width/2)-(E_NOMBRE.Wid";
Debug.ShouldStop(16777216);
__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {c_nuevocliente.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 90;BA.debugLine="et_direccion.Left = Round(Root.Width/2)-(E_NOMBRE";
Debug.ShouldStop(33554432);
__ref.getField(false,"_et_direccion" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {c_nuevocliente.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 91;BA.debugLine="et_colonia.Left = Round(Root.Width/2)-(E_NOMBRE.W";
Debug.ShouldStop(67108864);
__ref.getField(false,"_et_colonia" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {c_nuevocliente.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 92;BA.debugLine="et_cp.Left = Round(Root.Width/2)-(E_NOMBRE.Width/";
Debug.ShouldStop(134217728);
__ref.getField(false,"_et_cp" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {c_nuevocliente.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 93;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("!",c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ),BA.ObjectToString("0.0"))) { 
 BA.debugLineNum = 94;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostra";
Debug.ShouldStop(536870912);
__ref.getField(false,"_guarda" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"True"));
 BA.debugLineNum = 95;BA.debugLine="l_sinUbicacion.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_sinubicacion" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 98;BA.debugLine="If Not(Starter.GPS.GPSEnabled) Then";
Debug.ShouldStop(2);
if (c_nuevocliente.__c.runMethod(true,"Not",(Object)(c_nuevocliente._starter._gps /*RemoteObject*/ .runMethod(true,"getGPSEnabled"))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 99;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo";
Debug.ShouldStop(4);
c_nuevocliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Debe Activar el GPS del Equipo.")),(Object)(c_nuevocliente.__c.getField(true,"True")));
 BA.debugLineNum = 100;BA.debugLine="StartActivity(Starter.GPS.LocationSettingsIntent";
Debug.ShouldStop(8);
c_nuevocliente.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((c_nuevocliente._starter._gps /*RemoteObject*/ .runMethod(false,"getLocationSettingsIntent"))));
 }else {
 BA.debugLineNum = 102;BA.debugLine="Starter.GPS.Start(0, 0)";
Debug.ShouldStop(32);
c_nuevocliente._starter._gps /*RemoteObject*/ .runVoidMethodAndSync ("Start",__ref.getField(false, "ba"),(Object)(BA.numberCast(long.class, 0)),(Object)(BA.numberCast(float.class, 0)));
 };
 BA.debugLineNum = 105;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
Debug.ShouldStop(256);
c_nuevocliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_nuevocliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("StartFLPSmall")));
 BA.debugLineNum = 106;BA.debugLine="desdeBD = False";
Debug.ShouldStop(512);
__ref.setField ("_desdebd" /*RemoteObject*/ ,c_nuevocliente.__c.getField(true,"False"));
 BA.debugLineNum = 107;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
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_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,51);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_nuevocliente","b4xpage_created", __ref, _root1);}
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 51;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(262144);
 BA.debugLineNum = 52;BA.debugLine="Root = Root1";
Debug.ShouldStop(524288);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 54;BA.debugLine="Root.LoadLayout(\"nuevocliente\")";
Debug.ShouldStop(2097152);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("nuevocliente")),__ref.getField(false, "ba"));
 BA.debugLineNum = 55;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(4194304);
__ref.setField ("_ruta" /*RemoteObject*/ ,c_nuevocliente.__c.getField(false,"File").runMethod(true,"getDirInternal"));
 BA.debugLineNum = 56;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",c_nuevocliente.__c.getField(false,"File").runMethod(true,"Exists",(Object)(__ref.getField(true,"_ruta" /*RemoteObject*/ )),(Object)(RemoteObject.createImmutable("kmt.db"))),c_nuevocliente.__c.getField(true,"False"))) { 
 BA.debugLineNum = 57;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
Debug.ShouldStop(16777216);
c_nuevocliente.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_nuevocliente.__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 = 62;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
Debug.ShouldStop(536870912);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_server" /*RemoteObject*/ )));
 BA.debugLineNum = 63;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _camera1_picturetaken(RemoteObject __ref,RemoteObject _data) throws Exception{
try {
		Debug.PushSubsStack("Camera1_PictureTaken (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,359);
if (RapidSub.canDelegate("camera1_picturetaken")) { return __ref.runUserSub(false, "c_nuevocliente","camera1_picturetaken", __ref, _data);}
RemoteObject _filename = RemoteObject.createImmutable("");
RemoteObject _dirp = RemoteObject.createImmutable("");
RemoteObject _dir = RemoteObject.createImmutable("");
RemoteObject _dir2 = RemoteObject.createImmutable("");
Debug.locals.put("Data", _data);
 BA.debugLineNum = 359;BA.debugLine="Sub Camera1_PictureTaken (Data()As Byte)";
Debug.ShouldStop(64);
 BA.debugLineNum = 360;BA.debugLine="Log(\"tome foto\")";
Debug.ShouldStop(128);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322151169",RemoteObject.createImmutable("tome foto"),0);
 BA.debugLineNum = 361;BA.debugLine="Dim filename As String = fototomada";
Debug.ShouldStop(256);
_filename = __ref.getField(true,"_fototomada" /*RemoteObject*/ );Debug.locals.put("filename", _filename);Debug.locals.put("filename", _filename);
 BA.debugLineNum = 362;BA.debugLine="Dim Dirp As String = File.DirInternal";
Debug.ShouldStop(512);
_dirp = c_nuevocliente.__c.getField(false,"File").runMethod(true,"getDirInternal");Debug.locals.put("Dirp", _dirp);Debug.locals.put("Dirp", _dirp);
 BA.debugLineNum = 363;BA.debugLine="Dim Dir As String";
Debug.ShouldStop(1024);
_dir = RemoteObject.createImmutable("");Debug.locals.put("Dir", _dir);
 BA.debugLineNum = 364;BA.debugLine="Dim Dir2 As String";
Debug.ShouldStop(2048);
_dir2 = RemoteObject.createImmutable("");Debug.locals.put("Dir2", _dir2);
 BA.debugLineNum = 365;BA.debugLine="Try";
Debug.ShouldStop(4096);
try { BA.debugLineNum = 366;BA.debugLine="File.MakeDir(Dirp,\"/promotoriakmts\")";
Debug.ShouldStop(8192);
c_nuevocliente.__c.getField(false,"File").runVoidMethod ("MakeDir",(Object)(_dirp),(Object)(RemoteObject.createImmutable("/promotoriakmts")));
 BA.debugLineNum = 367;BA.debugLine="Dir = \"/promotoriakmts\"";
Debug.ShouldStop(16384);
_dir = BA.ObjectToString("/promotoriakmts");Debug.locals.put("Dir", _dir);
 BA.debugLineNum = 368;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)";
Debug.ShouldStop(32768);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322151177",RemoteObject.concat(RemoteObject.createImmutable("creado en promotoria "),_dirp,_dir),0);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e11) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e11.toString()); BA.debugLineNum = 370;BA.debugLine="Dir = \"\"";
Debug.ShouldStop(131072);
_dir = BA.ObjectToString("");Debug.locals.put("Dir", _dir);
 BA.debugLineNum = 371;BA.debugLine="Log(\"creado en raiz\")";
Debug.ShouldStop(262144);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322151180",RemoteObject.createImmutable("creado en raiz"),0);
 };
 BA.debugLineNum = 374;BA.debugLine="Try";
Debug.ShouldStop(2097152);
try { BA.debugLineNum = 375;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")";
Debug.ShouldStop(4194304);
c_nuevocliente.__c.getField(false,"File").runVoidMethod ("MakeDir",(Object)(RemoteObject.concat(_dirp,_dir)),(Object)(RemoteObject.createImmutable("/reduccion")));
 BA.debugLineNum = 376;BA.debugLine="Dir2 = \"/reduccion\"";
Debug.ShouldStop(8388608);
_dir2 = BA.ObjectToString("/reduccion");Debug.locals.put("Dir2", _dir2);
 BA.debugLineNum = 377;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)";
Debug.ShouldStop(16777216);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322151186",RemoteObject.concat(RemoteObject.createImmutable("creado en promotoria "),_dirp,_dir,_dir2),0);
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e19) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e19.toString()); BA.debugLineNum = 379;BA.debugLine="Dir = \"\"";
Debug.ShouldStop(67108864);
_dir = BA.ObjectToString("");Debug.locals.put("Dir", _dir);
 BA.debugLineNum = 380;BA.debugLine="Log(\"creado en raiz\")";
Debug.ShouldStop(134217728);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322151189",RemoteObject.createImmutable("creado en raiz"),0);
 };
 BA.debugLineNum = 383;BA.debugLine="camEx2.SavePictureToFile(Data, Dirp&Dir, filename";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_savepicturetofile" /*RemoteObject*/ ,(Object)(_data),(Object)(RemoteObject.concat(_dirp,_dir)),(Object)(_filename));
 BA.debugLineNum = 384;BA.debugLine="camEx2.StartPreview 'restart preview";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_startpreview" /*RemoteObject*/ );
 BA.debugLineNum = 385;BA.debugLine="ToastMessageShow(\"Picture saved.\" & CRLF  & \"File";
Debug.ShouldStop(1);
c_nuevocliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Picture saved."),c_nuevocliente.__c.getField(true,"CRLF"),RemoteObject.createImmutable("File size: "),c_nuevocliente.__c.getField(false,"File").runMethod(true,"Size",(Object)(_dir),(Object)(_filename)),_dir,RemoteObject.createImmutable(","),_filename))),(Object)(c_nuevocliente.__c.getField(true,"True")));
 BA.debugLineNum = 386;BA.debugLine="Log(\"Picture saved.\" & CRLF  & \"File size: \" & Fi";
Debug.ShouldStop(2);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322151195",RemoteObject.concat(RemoteObject.createImmutable("Picture saved."),c_nuevocliente.__c.getField(true,"CRLF"),RemoteObject.createImmutable("File size: "),c_nuevocliente.__c.getField(false,"File").runMethod(true,"Size",(Object)(_dir),(Object)(_filename)),_dir,RemoteObject.createImmutable(","),_filename),0);
 BA.debugLineNum = 387;BA.debugLine="p_camara.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_p_camara" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 BA.debugLineNum = 388;BA.debugLine="StopCamera2";
Debug.ShouldStop(8);
__ref.runClassMethod (keymon.lat.medicomed.c_nuevocliente.class, "_stopcamera2" /*RemoteObject*/ );
 BA.debugLineNum = 390;BA.debugLine="End Sub";
Debug.ShouldStop(32);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _camera1_ready(RemoteObject __ref,RemoteObject _success) throws Exception{
try {
		Debug.PushSubsStack("Camera1_Ready (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,345);
if (RapidSub.canDelegate("camera1_ready")) { return __ref.runUserSub(false, "c_nuevocliente","camera1_ready", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 345;BA.debugLine="Sub Camera1_Ready (Success As Boolean)";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 346;BA.debugLine="Log(\"Camara ready\")";
Debug.ShouldStop(33554432);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322085633",RemoteObject.createImmutable("Camara ready"),0);
 BA.debugLineNum = 347;BA.debugLine="If Success Then";
Debug.ShouldStop(67108864);
if (_success.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 348;BA.debugLine="camEx2.SetJpegQuality(90)";
Debug.ShouldStop(134217728);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_setjpegquality" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, 90)));
 BA.debugLineNum = 349;BA.debugLine="camEx2.SetContinuousAutoFocus";
Debug.ShouldStop(268435456);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_setcontinuousautofocus" /*RemoteObject*/ );
 BA.debugLineNum = 350;BA.debugLine="camEx2.CommitParameters";
Debug.ShouldStop(536870912);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_commitparameters" /*RemoteObject*/ );
 BA.debugLineNum = 351;BA.debugLine="camEx2.StartPreview";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_startpreview" /*RemoteObject*/ );
 BA.debugLineNum = 352;BA.debugLine="Log(camEx2.GetPreviewSize)";
Debug.ShouldStop(-2147483648);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322085639",BA.ObjectToString(__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_getpreviewsize" /*RemoteObject*/ )),0);
 }else {
 BA.debugLineNum = 354;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)";
Debug.ShouldStop(2);
c_nuevocliente.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Cannot open camera.")),(Object)(c_nuevocliente.__c.getField(true,"True")));
 BA.debugLineNum = 355;BA.debugLine="Log(\"Cannot open camera\")";
Debug.ShouldStop(4);
c_nuevocliente.__c.runVoidMethod ("LogImpl","322085642",RemoteObject.createImmutable("Cannot open camera"),0);
 };
 BA.debugLineNum = 357;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cancela_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("CANCELA_Click (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,127);
if (RapidSub.canDelegate("cancela_click")) { return __ref.runUserSub(false, "c_nuevocliente","cancela_click", __ref);}
 BA.debugLineNum = 127;BA.debugLine="Sub CANCELA_Click";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 128;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
Debug.ShouldStop(-2147483648);
c_nuevocliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Principal")));
 BA.debugLineNum = 129;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
Debug.ShouldStop(1);
c_nuevocliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_nuevocliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("StartFLP")));
 BA.debugLineNum = 130;BA.debugLine="lv_colonia.Clear";
Debug.ShouldStop(2);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 131;BA.debugLine="End Sub";
Debug.ShouldStop(4);
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_nuevocliente._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_nuevocliente._root);
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
c_nuevocliente._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_nuevocliente._xui);
 //BA.debugLineNum = 5;BA.debugLine="Dim g As GPS";
c_nuevocliente._g = RemoteObject.createNew ("anywheresoftware.b4a.gps.GPS");__ref.setField("_g",c_nuevocliente._g);
 //BA.debugLineNum = 6;BA.debugLine="Dim ruta As String";
c_nuevocliente._ruta = RemoteObject.createImmutable("");__ref.setField("_ruta",c_nuevocliente._ruta);
 //BA.debugLineNum = 7;BA.debugLine="Dim c As Cursor";
c_nuevocliente._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_nuevocliente._c);
 //BA.debugLineNum = 8;BA.debugLine="Dim reqManager As DBRequestManager";
c_nuevocliente._reqmanager = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager");__ref.setField("_reqmanager",c_nuevocliente._reqmanager);
 //BA.debugLineNum = 9;BA.debugLine="Dim CANCELA As Button";
c_nuevocliente._cancela = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_cancela",c_nuevocliente._cancela);
 //BA.debugLineNum = 10;BA.debugLine="Dim GUARDA As Button";
c_nuevocliente._guarda = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_guarda",c_nuevocliente._guarda);
 //BA.debugLineNum = 11;BA.debugLine="Dim cuenta As String";
c_nuevocliente._cuenta = RemoteObject.createImmutable("");__ref.setField("_cuenta",c_nuevocliente._cuenta);
 //BA.debugLineNum = 12;BA.debugLine="Dim usuario As String";
c_nuevocliente._usuario = RemoteObject.createImmutable("");__ref.setField("_usuario",c_nuevocliente._usuario);
 //BA.debugLineNum = 13;BA.debugLine="Dim sDate,sTime As String";
c_nuevocliente._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_nuevocliente._sdate);
c_nuevocliente._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_nuevocliente._stime);
 //BA.debugLineNum = 14;BA.debugLine="Dim sDate2,sTime2 As String";
c_nuevocliente._sdate2 = RemoteObject.createImmutable("");__ref.setField("_sdate2",c_nuevocliente._sdate2);
c_nuevocliente._stime2 = RemoteObject.createImmutable("");__ref.setField("_stime2",c_nuevocliente._stime2);
 //BA.debugLineNum = 15;BA.debugLine="Dim no_cliente As String";
c_nuevocliente._no_cliente = RemoteObject.createImmutable("");__ref.setField("_no_cliente",c_nuevocliente._no_cliente);
 //BA.debugLineNum = 16;BA.debugLine="Dim no_ruta As String";
c_nuevocliente._no_ruta = RemoteObject.createImmutable("");__ref.setField("_no_ruta",c_nuevocliente._no_ruta);
 //BA.debugLineNum = 17;BA.debugLine="Dim desdeBD As Boolean";
c_nuevocliente._desdebd = RemoteObject.createImmutable(false);__ref.setField("_desdebd",c_nuevocliente._desdebd);
 //BA.debugLineNum = 18;BA.debugLine="Dim r_4 As RadioButton";
c_nuevocliente._r_4 = RemoteObject.createNew ("anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper");__ref.setField("_r_4",c_nuevocliente._r_4);
 //BA.debugLineNum = 19;BA.debugLine="Dim E_NOMBRE As EditText";
c_nuevocliente._e_nombre = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_e_nombre",c_nuevocliente._e_nombre);
 //BA.debugLineNum = 20;BA.debugLine="Dim tgl As Toggle";
c_nuevocliente._tgl = RemoteObject.createNew ("com.rootsoft.togglelibrary.ToggleLibrary");__ref.setField("_tgl",c_nuevocliente._tgl);
 //BA.debugLineNum = 21;BA.debugLine="Private l_sinUbicacion As Label";
c_nuevocliente._l_sinubicacion = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_sinubicacion",c_nuevocliente._l_sinubicacion);
 //BA.debugLineNum = 22;BA.debugLine="Private p_nuevoCliente As Panel";
c_nuevocliente._p_nuevocliente = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_nuevocliente",c_nuevocliente._p_nuevocliente);
 //BA.debugLineNum = 23;BA.debugLine="Private Label1 As Label";
c_nuevocliente._label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label1",c_nuevocliente._label1);
 //BA.debugLineNum = 24;BA.debugLine="Private p_botones As Panel";
c_nuevocliente._p_botones = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_botones",c_nuevocliente._p_botones);
 //BA.debugLineNum = 25;BA.debugLine="Private p_cam As Panel";
c_nuevocliente._p_cam = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_cam",c_nuevocliente._p_cam);
 //BA.debugLineNum = 26;BA.debugLine="Private p_camara As Panel";
c_nuevocliente._p_camara = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_camara",c_nuevocliente._p_camara);
 //BA.debugLineNum = 27;BA.debugLine="Private b_foto_inci As Button";
c_nuevocliente._b_foto_inci = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_foto_inci",c_nuevocliente._b_foto_inci);
 //BA.debugLineNum = 28;BA.debugLine="Private camEx2 As CameraExClass2";
c_nuevocliente._camex2 = RemoteObject.createNew ("keymon.lat.medicomed.cameraexclass2");__ref.setField("_camex2",c_nuevocliente._camex2);
 //BA.debugLineNum = 29;BA.debugLine="Dim frontCamera As Boolean = False";
c_nuevocliente._frontcamera = c_nuevocliente.__c.getField(true,"False");__ref.setField("_frontcamera",c_nuevocliente._frontcamera);
 //BA.debugLineNum = 30;BA.debugLine="Dim fototomada As String = \"0\"";
c_nuevocliente._fototomada = BA.ObjectToString("0");__ref.setField("_fototomada",c_nuevocliente._fototomada);
 //BA.debugLineNum = 31;BA.debugLine="Dim ALMACEN As String";
c_nuevocliente._almacen = RemoteObject.createImmutable("");__ref.setField("_almacen",c_nuevocliente._almacen);
 //BA.debugLineNum = 32;BA.debugLine="Private et_direccion As EditText";
c_nuevocliente._et_direccion = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_direccion",c_nuevocliente._et_direccion);
 //BA.debugLineNum = 33;BA.debugLine="Private Label2 As Label";
c_nuevocliente._label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label2",c_nuevocliente._label2);
 //BA.debugLineNum = 34;BA.debugLine="Dim lat As Double = 0";
c_nuevocliente._lat = BA.numberCast(double.class, 0);__ref.setField("_lat",c_nuevocliente._lat);
 //BA.debugLineNum = 35;BA.debugLine="Dim lon As Double = 0";
c_nuevocliente._lon = BA.numberCast(double.class, 0);__ref.setField("_lon",c_nuevocliente._lon);
 //BA.debugLineNum = 36;BA.debugLine="Private b_ubicacion As Label";
c_nuevocliente._b_ubicacion = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_b_ubicacion",c_nuevocliente._b_ubicacion);
 //BA.debugLineNum = 37;BA.debugLine="Private Label3 As Label";
c_nuevocliente._label3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label3",c_nuevocliente._label3);
 //BA.debugLineNum = 38;BA.debugLine="Private et_colonia As EditText";
c_nuevocliente._et_colonia = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_colonia",c_nuevocliente._et_colonia);
 //BA.debugLineNum = 39;BA.debugLine="Private Label4 As Label";
c_nuevocliente._label4 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label4",c_nuevocliente._label4);
 //BA.debugLineNum = 40;BA.debugLine="Private et_cp As EditText";
c_nuevocliente._et_cp = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_et_cp",c_nuevocliente._et_cp);
 //BA.debugLineNum = 41;BA.debugLine="Private lv_colonia As ListView";
c_nuevocliente._lv_colonia = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv_colonia",c_nuevocliente._lv_colonia);
 //BA.debugLineNum = 42;BA.debugLine="Dim banderasepo As Int";
c_nuevocliente._banderasepo = RemoteObject.createImmutable(0);__ref.setField("_banderasepo",c_nuevocliente._banderasepo);
 //BA.debugLineNum = 43;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _et_colonia_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("et_colonia_Click (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,137);
if (RapidSub.canDelegate("et_colonia_click")) { return __ref.runUserSub(false, "c_nuevocliente","et_colonia_click", __ref);}
 BA.debugLineNum = 137;BA.debugLine="Private Sub et_colonia_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 138;BA.debugLine="Sender.As(EditText).InputType = 524288";
Debug.ShouldStop(512);
(RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.EditTextWrapper"), c_nuevocliente.__c.runMethod(false,"Sender",__ref.getField(false, "ba")))).runMethod(true,"setInputType",BA.numberCast(int.class, 524288));
 BA.debugLineNum = 139;BA.debugLine="If lv_colonia.Visible = False Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(true,"getVisible"),c_nuevocliente.__c.getField(true,"False"))) { 
 BA.debugLineNum = 140;BA.debugLine="lv_colonia.Visible = True";
Debug.ShouldStop(2048);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"True"));
 }else {
 BA.debugLineNum = 142;BA.debugLine="lv_colonia.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 };
 BA.debugLineNum = 144;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_colonia_focuschanged(RemoteObject __ref,RemoteObject _hasfocus) throws Exception{
try {
		Debug.PushSubsStack("et_colonia_FocusChanged (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,162);
if (RapidSub.canDelegate("et_colonia_focuschanged")) { return __ref.runUserSub(false, "c_nuevocliente","et_colonia_focuschanged", __ref, _hasfocus);}
RemoteObject _cc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _i = 0;
Debug.locals.put("HasFocus", _hasfocus);
 BA.debugLineNum = 162;BA.debugLine="Private Sub et_colonia_FocusChanged (HasFocus As B";
Debug.ShouldStop(2);
 BA.debugLineNum = 163;BA.debugLine="If HasFocus Then";
Debug.ShouldStop(4);
if (_hasfocus.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 164;BA.debugLine="Private cc As Cursor = B4XPages.MainPage.skmt.Ex";
Debug.ShouldStop(8);
_cc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select colonia from sepomex where codigo = '"),c_nuevocliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_et_cp" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable("'"))))));Debug.locals.put("cc", _cc);Debug.locals.put("cc", _cc);
 BA.debugLineNum = 165;BA.debugLine="lv_colonia.Clear";
Debug.ShouldStop(16);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 166;BA.debugLine="lv_colonia.BringToFront";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 167;BA.debugLine="Private Label1 As Label";
Debug.ShouldStop(64);
c_nuevocliente._label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_label1",c_nuevocliente._label1);
 BA.debugLineNum = 168;BA.debugLine="Label1 = lv_colonia.SingleLineLayout.Label";
Debug.ShouldStop(128);
__ref.setField ("_label1" /*RemoteObject*/ ,__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(false,"getSingleLineLayout").getField(false,"Label"));
 BA.debugLineNum = 169;BA.debugLine="Label1.TextColor = Colors.White";
Debug.ShouldStop(256);
__ref.getField(false,"_label1" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_nuevocliente.__c.getField(false,"Colors").getField(true,"White"));
 BA.debugLineNum = 170;BA.debugLine="Label1.TextSize = 14";
Debug.ShouldStop(512);
__ref.getField(false,"_label1" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 14));
 BA.debugLineNum = 172;BA.debugLine="If cc.RowCount > 0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",_cc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 173;BA.debugLine="For i = 0 To cc.RowCount - 1";
Debug.ShouldStop(4096);
{
final int step10 = 1;
final int limit10 = RemoteObject.solve(new RemoteObject[] {_cc.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step10 > 0 && _i <= limit10) || (step10 < 0 && _i >= limit10) ;_i = ((int)(0 + _i + step10))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 174;BA.debugLine="cc.Position = i";
Debug.ShouldStop(8192);
_cc.runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 175;BA.debugLine="lv_colonia.AddSingleLine(cc.GetString(\"COLONIA";
Debug.ShouldStop(16384);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(_cc.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COLONIA"))))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 178;BA.debugLine="lv_colonia.AddSingleLine(\"Ingrese colonia manua";
Debug.ShouldStop(131072);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Ingrese colonia manualmente."))));
 }else {
 BA.debugLineNum = 180;BA.debugLine="lv_colonia.AddSingleLine(\"Código no encontrado.";
Debug.ShouldStop(524288);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Código no encontrado."))));
 BA.debugLineNum = 181;BA.debugLine="lv_colonia.AddSingleLine(\"Ingrese colonia manua";
Debug.ShouldStop(1048576);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runVoidMethod ("AddSingleLine",(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Ingrese colonia manualmente."))));
 };
 BA.debugLineNum = 183;BA.debugLine="lv_colonia.Visible = True";
Debug.ShouldStop(4194304);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"True"));
 };
 BA.debugLineNum = 185;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_cp_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("et_cp_click (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,133);
if (RapidSub.canDelegate("et_cp_click")) { return __ref.runUserSub(false, "c_nuevocliente","et_cp_click", __ref);}
 BA.debugLineNum = 133;BA.debugLine="Sub et_cp_click";
Debug.ShouldStop(16);
 BA.debugLineNum = 134;BA.debugLine="lv_colonia.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 BA.debugLineNum = 135;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _et_cp_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("et_cp_TextChanged (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,146);
if (RapidSub.canDelegate("et_cp_textchanged")) { return __ref.runUserSub(false, "c_nuevocliente","et_cp_textchanged", __ref, _old, _new);}
RemoteObject _cc = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
int _x = 0;
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 146;BA.debugLine="Private Sub et_cp_TextChanged (Old As String, New";
Debug.ShouldStop(131072);
 BA.debugLineNum = 147;BA.debugLine="If Not(desdeBD) And New.Length = 5 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(".",c_nuevocliente.__c.runMethod(true,"Not",(Object)(__ref.getField(true,"_desdebd" /*RemoteObject*/ )))) && RemoteObject.solveBoolean("=",_new.runMethod(true,"length"),BA.numberCast(double.class, 5))) { 
 BA.debugLineNum = 148;BA.debugLine="Private cc As Cursor = B4XPages.MainPage.skmt.Ex";
Debug.ShouldStop(524288);
_cc = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_cc = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.concat(RemoteObject.createImmutable("select estado, municipio, colonia from sepomex where codigo = '"),c_nuevocliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_et_cp" /*RemoteObject*/ ).runMethod(true,"getText")))),RemoteObject.createImmutable("'"))))));Debug.locals.put("cc", _cc);Debug.locals.put("cc", _cc);
 BA.debugLineNum = 150;BA.debugLine="If cc.RowCount > 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",_cc.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 151;BA.debugLine="For x = 0 To cc.RowCount - 1";
Debug.ShouldStop(4194304);
{
final int step4 = 1;
final int limit4 = RemoteObject.solve(new RemoteObject[] {_cc.runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step4 > 0 && _x <= limit4) || (step4 < 0 && _x >= limit4) ;_x = ((int)(0 + _x + step4))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 152;BA.debugLine="cc.Position = x";
Debug.ShouldStop(8388608);
_cc.runMethod(true,"setPosition",BA.numberCast(int.class, _x));
 }
}Debug.locals.put("x", _x);
;
 };
 }else 
{ BA.debugLineNum = 155;BA.debugLine="else if New.Length < 5 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("<",_new.runMethod(true,"length"),BA.numberCast(double.class, 5))) { 
 BA.debugLineNum = 156;BA.debugLine="lv_colonia.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 }}
;
 BA.debugLineNum = 158;BA.debugLine="desdeBD = False";
Debug.ShouldStop(536870912);
__ref.setField ("_desdebd" /*RemoteObject*/ ,c_nuevocliente.__c.getField(true,"False"));
 BA.debugLineNum = 159;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _gps_locationchanged(RemoteObject __ref,RemoteObject _location1) throws Exception{
try {
		Debug.PushSubsStack("GPS_LocationChanged (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,109);
if (RapidSub.canDelegate("gps_locationchanged")) { return __ref.runUserSub(false, "c_nuevocliente","gps_locationchanged", __ref, _location1);}
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 109;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(4096);
 BA.debugLineNum = 110;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("!",c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ),BA.ObjectToString("0.0"))) { 
 BA.debugLineNum = 111;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostra";
Debug.ShouldStop(16384);
__ref.getField(false,"_guarda" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"True"));
 BA.debugLineNum = 112;BA.debugLine="l_sinUbicacion.Visible = True";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_sinubicacion" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"True"));
 BA.debugLineNum = 113;BA.debugLine="lat = Location1.Latitude";
Debug.ShouldStop(65536);
__ref.setField ("_lat" /*RemoteObject*/ ,_location1.runMethod(true,"getLatitude"));
 BA.debugLineNum = 114;BA.debugLine="lon = Location1.Longitude";
Debug.ShouldStop(131072);
__ref.setField ("_lon" /*RemoteObject*/ ,_location1.runMethod(true,"getLongitude"));
 BA.debugLineNum = 115;BA.debugLine="l_sinUbicacion.Text = (\"Latitud: \" & lat & \", Lo";
Debug.ShouldStop(262144);
__ref.getField(false,"_l_sinubicacion" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Latitud: "),__ref.getField(true,"_lat" /*RemoteObject*/ ),RemoteObject.createImmutable(", Longotud: "),__ref.getField(true,"_lon" /*RemoteObject*/ )))));
 };
 BA.debugLineNum = 118;BA.debugLine="b_ubicacion.TextSize = 13";
Debug.ShouldStop(2097152);
__ref.getField(false,"_b_ubicacion" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 119;BA.debugLine="b_ubicacion.Text = $\"Precisión GPS $1.0{Location1";
Debug.ShouldStop(4194304);
__ref.getField(false,"_b_ubicacion" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Precisión GPS "),c_nuevocliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((_location1.runMethod(true,"getAccuracy")))),RemoteObject.createImmutable(" m")))));
 BA.debugLineNum = 120;BA.debugLine="If Location1.Accuracy > 200 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",_location1.runMethod(true,"getAccuracy"),BA.numberCast(double.class, 200))) { 
 BA.debugLineNum = 121;BA.debugLine="b_ubicacion.TextColor = Colors.Red";
Debug.ShouldStop(16777216);
__ref.getField(false,"_b_ubicacion" /*RemoteObject*/ ).runMethod(true,"setTextColor",c_nuevocliente.__c.getField(false,"Colors").getField(true,"Red"));
 BA.debugLineNum = 122;BA.debugLine="b_ubicacion.TextSize = 16";
Debug.ShouldStop(33554432);
__ref.getField(false,"_b_ubicacion" /*RemoteObject*/ ).runMethod(true,"setTextSize",BA.numberCast(float.class, 16));
 BA.debugLineNum = 123;BA.debugLine="b_ubicacion.Text = $\"Mala señal $1.0{Location1.A";
Debug.ShouldStop(67108864);
__ref.getField(false,"_b_ubicacion" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence((RemoteObject.concat(RemoteObject.createImmutable("Mala señal "),c_nuevocliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("1.0")),(Object)((_location1.runMethod(true,"getAccuracy")))),RemoteObject.createImmutable(" m")))));
 };
 BA.debugLineNum = 125;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _guarda_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("GUARDA_Click (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,197);
if (RapidSub.canDelegate("guarda_click")) { return __ref.runUserSub(false, "c_nuevocliente","guarda_click", __ref);}
RemoteObject _hora = RemoteObject.createImmutable("");
RemoteObject _mins = RemoteObject.createImmutable("");
RemoteObject _segs = RemoteObject.createImmutable("");
 BA.debugLineNum = 197;BA.debugLine="Sub GUARDA_Click";
Debug.ShouldStop(16);
 BA.debugLineNum = 198;BA.debugLine="If E_NOMBRE.Text =  \"\" Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 199;BA.debugLine="MsgboxAsync(\"Por favor captura el nombre de la T";
Debug.ShouldStop(64);
c_nuevocliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor captura el nombre de la Tienda")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 201;BA.debugLine="If et_direccion.Text.Length > 3 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_et_direccion" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 202;BA.debugLine="If lat <> 0 Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_lat" /*RemoteObject*/ ),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 203;BA.debugLine="If et_colonia.Text.Length > 3 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_et_colonia" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 204;BA.debugLine="If et_cp.Text.Length > 3 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_et_cp" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"length"),BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 206;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(8192);
c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 207;BA.debugLine="DateTime.Timeformat = \"HHmmss\"";
Debug.ShouldStop(16384);
c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 208;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(32768);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 209;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(65536);
__ref.setField ("_stime" /*RemoteObject*/ ,c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 210;BA.debugLine="Log($\" ////////////   Date: ${sDate} - Time:";
Debug.ShouldStop(131072);
c_nuevocliente.__c.runVoidMethod ("LogImpl","321692429",(RemoteObject.concat(RemoteObject.createImmutable(" ////////////   Date: "),c_nuevocliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_sdate" /*RemoteObject*/ )))),RemoteObject.createImmutable(" - Time: "),c_nuevocliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(true,"_stime" /*RemoteObject*/ )))),RemoteObject.createImmutable(" ////////////////"))),0);
 BA.debugLineNum = 212;BA.debugLine="Private hora As String = sTime.SubString2(0,";
Debug.ShouldStop(524288);
_hora = __ref.getField(true,"_stime" /*RemoteObject*/ ).runMethod(true,"substring",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("hora", _hora);Debug.locals.put("hora", _hora);
 BA.debugLineNum = 213;BA.debugLine="Private mins As String = sTime.SubString2(2,";
Debug.ShouldStop(1048576);
_mins = __ref.getField(true,"_stime" /*RemoteObject*/ ).runMethod(true,"substring",(Object)(BA.numberCast(int.class, 2)),(Object)(BA.numberCast(int.class, 4)));Debug.locals.put("mins", _mins);Debug.locals.put("mins", _mins);
 BA.debugLineNum = 214;BA.debugLine="Private segs As String = sTime.SubString(4)";
Debug.ShouldStop(2097152);
_segs = __ref.getField(true,"_stime" /*RemoteObject*/ ).runMethod(true,"substring",(Object)(BA.numberCast(int.class, 4)));Debug.locals.put("segs", _segs);Debug.locals.put("segs", _segs);
 BA.debugLineNum = 215;BA.debugLine="sTime = hora&\":\"&mins&\":\"&segs";
Debug.ShouldStop(4194304);
__ref.setField ("_stime" /*RemoteObject*/ ,RemoteObject.concat(_hora,RemoteObject.createImmutable(":"),_mins,RemoteObject.createImmutable(":"),_segs));
 BA.debugLineNum = 216;BA.debugLine="Log(\"////////////// sTime: \"&sTime&\" ///////";
Debug.ShouldStop(8388608);
c_nuevocliente.__c.runVoidMethod ("LogImpl","321692435",RemoteObject.concat(RemoteObject.createImmutable("////////////// sTime: "),__ref.getField(true,"_stime" /*RemoteObject*/ ),RemoteObject.createImmutable(" ////////////////")),0);
 BA.debugLineNum = 217;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select C";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select CAT_CL_RUTA FROM kmt_info"))));
 BA.debugLineNum = 218;BA.debugLine="c.Position=0";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 219;BA.debugLine="no_ruta= c.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(67108864);
__ref.setField ("_no_ruta" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA"))));
 BA.debugLineNum = 220;BA.debugLine="no_cliente= \"N\" & sTime & no_ruta";
Debug.ShouldStop(134217728);
__ref.setField ("_no_cliente" /*RemoteObject*/ ,RemoteObject.concat(RemoteObject.createImmutable("N"),__ref.getField(true,"_stime" /*RemoteObject*/ ),__ref.getField(true,"_no_ruta" /*RemoteObject*/ )));
 BA.debugLineNum = 221;BA.debugLine="Log(\"++ ++ no_cliente = \"&no_cliente)";
Debug.ShouldStop(268435456);
c_nuevocliente.__c.runVoidMethod ("LogImpl","321692440",RemoteObject.concat(RemoteObject.createImmutable("++ ++ no_cliente = "),__ref.getField(true,"_no_cliente" /*RemoteObject*/ )),0);
 BA.debugLineNum = 222;BA.debugLine="c.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 223;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(1073741824);
c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0) ")),(Object)(c_nuevocliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {18},new Object[] {(__ref.getField(true,"_no_cliente" /*RemoteObject*/ )),(__ref.getField(true,"_no_ruta" /*RemoteObject*/ )),(__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethod(true,"getText")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),RemoteObject.createImmutable(("null")),(c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 224;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(-2147483648);
c_nuevocliente._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_nuevocliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_no_cliente" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 225;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete";
Debug.ShouldStop(1);
c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CUENTAA")));
 BA.debugLineNum = 226;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(2);
c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CUENTAA VALUES (?)")),(Object)(c_nuevocliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_no_cliente" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 227;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select I";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select ID_ALMACEN from CAT_ALMACEN"))));
 BA.debugLineNum = 228;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 229;BA.debugLine="C.Position=0";
Debug.ShouldStop(16);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 230;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
Debug.ShouldStop(32);
__ref.setField ("_almacen" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))));
 };
 BA.debugLineNum = 232;BA.debugLine="c.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 233;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select u";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 234;BA.debugLine="c.Position = 0";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 235;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(1024);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 236;BA.debugLine="c.Close";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 239;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
Debug.ShouldStop(16384);
c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("dd/MM/yyyy"));
 BA.debugLineNum = 240;BA.debugLine="DateTime.Timeformat = \"HH:mm:ss\"";
Debug.ShouldStop(32768);
c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 241;BA.debugLine="sDate2=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(65536);
__ref.setField ("_sdate2" /*RemoteObject*/ ,c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 242;BA.debugLine="sTime2=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(131072);
__ref.setField ("_stime2" /*RemoteObject*/ ,c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_nuevocliente.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 244;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(524288);
c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CLIENTES_NUEVOS(CN_ID, CN_FECHA, CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, COLONIA, CP, CN_ALMACEN, CN_RUTA, CN_ENVIO,CN_BANDERA) VALUES (?,?,?,?,?,?,?,?,?,?,?,0,?)")),(Object)(c_nuevocliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {12},new Object[] {__ref.getField(true,"_no_cliente" /*RemoteObject*/ ),RemoteObject.concat(__ref.getField(true,"_sdate2" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),__ref.getField(true,"_stime2" /*RemoteObject*/ )),__ref.getField(true,"_usuario" /*RemoteObject*/ ),BA.NumberToString(__ref.getField(true,"_lat" /*RemoteObject*/ )),BA.NumberToString(__ref.getField(true,"_lon" /*RemoteObject*/ )),__ref.getField(false,"_e_nombre" /*RemoteObject*/ ).runMethod(true,"getText"),__ref.getField(false,"_et_direccion" /*RemoteObject*/ ).runMethod(true,"getText"),__ref.getField(false,"_et_colonia" /*RemoteObject*/ ).runMethod(true,"getText"),__ref.getField(false,"_et_cp" /*RemoteObject*/ ).runMethod(true,"getText"),__ref.getField(true,"_almacen" /*RemoteObject*/ ),__ref.getField(true,"_no_ruta" /*RemoteObject*/ ),BA.NumberToString(__ref.getField(true,"_banderasepo" /*RemoteObject*/ ))})))));
 BA.debugLineNum = 245;BA.debugLine="fototomada = \"0\"";
Debug.ShouldStop(1048576);
__ref.setField ("_fototomada" /*RemoteObject*/ ,BA.ObjectToString("0"));
 BA.debugLineNum = 246;BA.debugLine="B4XPages.ShowPage(\"cliente\")";
Debug.ShouldStop(2097152);
c_nuevocliente._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("cliente")));
 BA.debugLineNum = 247;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
Debug.ShouldStop(4194304);
c_nuevocliente.__c.runVoidMethod ("CallSubDelayed",__ref.getField(false, "ba"),(Object)((c_nuevocliente._tracker.getObject())),(Object)(RemoteObject.createImmutable("StartFLP")));
 BA.debugLineNum = 249;BA.debugLine="mandaPendientesclientesnuevos";
Debug.ShouldStop(16777216);
__ref.runClassMethod (keymon.lat.medicomed.c_nuevocliente.class, "_mandapendientesclientesnuevos" /*RemoteObject*/ );
 }else {
 BA.debugLineNum = 251;BA.debugLine="MsgboxAsync(\"Por favor captura el C.P. del c";
Debug.ShouldStop(67108864);
c_nuevocliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor captura el C.P. del cliente")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 }else {
 BA.debugLineNum = 254;BA.debugLine="MsgboxAsync(\"Por favor captura la colonia del";
Debug.ShouldStop(536870912);
c_nuevocliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor captura la colonia del cliente")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 }else {
 BA.debugLineNum = 257;BA.debugLine="MsgboxAsync(\"Por favor revisa que tengas señal";
Debug.ShouldStop(1);
c_nuevocliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor revisa que tengas señal GPS")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 }else {
 BA.debugLineNum = 260;BA.debugLine="MsgboxAsync(\"Por favor captura la dirección del";
Debug.ShouldStop(8);
c_nuevocliente.__c.runVoidMethod ("MsgboxAsync",(Object)(BA.ObjectToCharSequence("Por favor captura la dirección del cliente")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 };
 };
 BA.debugLineNum = 263;BA.debugLine="End Sub";
Debug.ShouldStop(64);
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_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,46);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_nuevocliente","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 46;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(8192);
 BA.debugLineNum = 47;BA.debugLine="Return Me";
Debug.ShouldStop(16384);
if (true) return __ref;
 BA.debugLineNum = 48;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _initializecamera2(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("InitializeCamera2 (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,318);
if (RapidSub.canDelegate("initializecamera2")) { __ref.runUserSub(false, "c_nuevocliente","initializecamera2", __ref); return;}
ResumableSub_InitializeCamera2 rsub = new ResumableSub_InitializeCamera2(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_InitializeCamera2 extends BA.ResumableSub {
public ResumableSub_InitializeCamera2(keymon.lat.medicomed.c_nuevocliente parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_nuevocliente parent;
RemoteObject _permission = RemoteObject.createImmutable("");
RemoteObject _result = RemoteObject.createImmutable(false);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("InitializeCamera2 (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,318);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

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

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 319;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(1073741824);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_CAMERA")));
 BA.debugLineNum = 320;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(-2147483648);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_nuevocliente", "initializecamera2"), null);
this.state = 19;
return;
case 19:
//C
this.state = 1;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 321;BA.debugLine="If Result Then";
Debug.ShouldStop(1);
if (true) break;

case 1:
//if
this.state = 6;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
 BA.debugLineNum = 322;BA.debugLine="camEx2.Initialize(p_cam, frontCamera, Me, \"Camer";
Debug.ShouldStop(2);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_cam" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_frontcamera" /*RemoteObject*/ )),(Object)(__ref),(Object)(RemoteObject.createImmutable("Camera1")));
 BA.debugLineNum = 323;BA.debugLine="frontCamera = camEx2.Front";
Debug.ShouldStop(4);
__ref.setField ("_frontcamera" /*RemoteObject*/ ,__ref.getField(false,"_camex2" /*RemoteObject*/ ).getField(true,"_front" /*RemoteObject*/ ));
 BA.debugLineNum = 324;BA.debugLine="Log(\"inicializamos Camara\")";
Debug.ShouldStop(8);
parent.__c.runVoidMethod ("LogImpl","322020102",RemoteObject.createImmutable("inicializamos Camara"),0);
 if (true) break;

case 5:
//C
this.state = 6;
 BA.debugLineNum = 326;BA.debugLine="ToastMessageShow(\"No permission!!!\", True)";
Debug.ShouldStop(32);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("No permission!!!")),(Object)(parent.__c.getField(true,"True")));
 if (true) break;

case 6:
//C
this.state = 7;
;
 BA.debugLineNum = 328;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(128);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_WRITE_EXTERNAL_STORAGE")));
 BA.debugLineNum = 329;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(256);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_nuevocliente", "initializecamera2"), null);
this.state = 20;
return;
case 20:
//C
this.state = 7;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 330;BA.debugLine="If Result Then";
Debug.ShouldStop(512);
if (true) break;

case 7:
//if
this.state = 12;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 9;
}else {
this.state = 11;
}if (true) break;

case 9:
//C
this.state = 12;
 BA.debugLineNum = 331;BA.debugLine="Log(\"conpermisos para escritura\")";
Debug.ShouldStop(1024);
parent.__c.runVoidMethod ("LogImpl","322020109",RemoteObject.createImmutable("conpermisos para escritura"),0);
 if (true) break;

case 11:
//C
this.state = 12;
 BA.debugLineNum = 333;BA.debugLine="ToastMessageShow(\"No permission!!!\", True)";
Debug.ShouldStop(4096);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("No permission!!!")),(Object)(parent.__c.getField(true,"True")));
 if (true) break;

case 12:
//C
this.state = 13;
;
 BA.debugLineNum = 336;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(32768);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_READ_EXTERNAL_STORAGE")));
 BA.debugLineNum = 337;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(65536);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_nuevocliente", "initializecamera2"), null);
this.state = 21;
return;
case 21:
//C
this.state = 13;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 338;BA.debugLine="If Result Then";
Debug.ShouldStop(131072);
if (true) break;

case 13:
//if
this.state = 18;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 15;
}else {
this.state = 17;
}if (true) break;

case 15:
//C
this.state = 18;
 BA.debugLineNum = 339;BA.debugLine="Log(\"conpermisos para escritura\")";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("LogImpl","322020117",RemoteObject.createImmutable("conpermisos para escritura"),0);
 if (true) break;

case 17:
//C
this.state = 18;
 BA.debugLineNum = 341;BA.debugLine="ToastMessageShow(\"No permission!!!\", True)";
Debug.ShouldStop(1048576);
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("No permission!!!")),(Object)(parent.__c.getField(true,"True")));
 if (true) break;

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

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _b4xpage_permissionresult(RemoteObject __ref,RemoteObject _permission,RemoteObject _result) throws Exception{
}
public static RemoteObject  _jobdone(RemoteObject __ref,RemoteObject _job) throws Exception{
try {
		Debug.PushSubsStack("JobDone (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,283);
if (RapidSub.canDelegate("jobdone")) { return __ref.runUserSub(false, "c_nuevocliente","jobdone", __ref, _job);}
RemoteObject _resultado = RemoteObject.declareNull("keymon.lat.medicomed.dbrequestmanager._dbresult");
RemoteObject _cliente = RemoteObject.createImmutable("");
RemoteObject _records = null;
RemoteObject _k = RemoteObject.createImmutable("");
Debug.locals.put("Job", _job);
 BA.debugLineNum = 283;BA.debugLine="Sub JobDone(Job As HttpJob)";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 284;BA.debugLine="Log(Job.Success)";
Debug.ShouldStop(134217728);
c_nuevocliente.__c.runVoidMethod ("LogImpl","321823489",BA.ObjectToString(_job.getField(true,"_success" /*RemoteObject*/ )),0);
 BA.debugLineNum = 285;BA.debugLine="If Job.Success = False Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_success" /*RemoteObject*/ ),c_nuevocliente.__c.getField(true,"False"))) { 
 }else {
 BA.debugLineNum = 288;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
Debug.ShouldStop(-2147483648);
c_nuevocliente.__c.runVoidMethod ("LogImpl","321823493",RemoteObject.concat(RemoteObject.createImmutable("JobDone: '"),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable("' - Registros: "),__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")),c_nuevocliente.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 289;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 290;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
Debug.ShouldStop(2);
_resultado = __ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("resultado", _resultado);Debug.locals.put("resultado", _resultado);
 BA.debugLineNum = 291;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_CNUEVO";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",(BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ))).runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("ins_CNUEVOSPendientes_head_"))),BA.numberCast(double.class, -(double) (0 + 1)))) { 
 BA.debugLineNum = 292;BA.debugLine="Private cliente As String= resultado.Tag";
Debug.ShouldStop(8);
_cliente = BA.ObjectToString(_resultado.getField(false,"Tag" /*RemoteObject*/ ));Debug.locals.put("cliente", _cliente);Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 293;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
Debug.ShouldStop(16);
_cliente = _cliente.runMethod(true,"substring",(Object)(RemoteObject.solve(new RemoteObject[] {_cliente.runMethod(true,"indexOf",(Object)(RemoteObject.createImmutable("_"))),RemoteObject.createImmutable(24)}, "+",1, 1)));Debug.locals.put("cliente", _cliente);
 BA.debugLineNum = 294;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
Debug.ShouldStop(32);
c_nuevocliente.__c.runVoidMethod ("LogImpl","321823499",(RemoteObject.concat(RemoteObject.createImmutable("Cliente1:"),c_nuevocliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((_cliente))),RemoteObject.createImmutable(""))),0);
 BA.debugLineNum = 295;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"update C";
Debug.ShouldStop(64);
c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update CLIENTES_NUEVOS SET CN_ENVIO = ? WHERE CN_ID = ? AND CN_ENVIO <> 1")),(Object)(c_nuevocliente.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {BA.ObjectToString("1"),_cliente})))));
 BA.debugLineNum = 296;BA.debugLine="For Each records() As Object In resultado.Rows";
Debug.ShouldStop(128);
{
final RemoteObject group12 = _resultado.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen12 = group12.runMethod(true,"getSize").<Integer>get()
;int index12 = 0;
;
for (; index12 < groupLen12;index12++){
_records = (group12.runMethod(false,"Get",index12));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 297;BA.debugLine="For Each k As String In resultado.Columns.Key";
Debug.ShouldStop(256);
{
final RemoteObject group13 = _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen13 = group13.runMethod(true,"getSize").<Integer>get()
;int index13 = 0;
;
for (; index13 < groupLen13;index13++){
_k = BA.ObjectToString(group13.runMethod(false,"Get",index13));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 298;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
Debug.ShouldStop(512);
c_nuevocliente.__c.runVoidMethod ("LogImpl","321823503",RemoteObject.concat(_resultado.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(": "),_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _resultado.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 303;BA.debugLine="Job.Release";
Debug.ShouldStop(16384);
_job.runClassMethod (keymon.lat.medicomed.httpjob.class, "_release" /*RemoteObject*/ );
 };
 BA.debugLineNum = 305;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _lv_colonia_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
try {
		Debug.PushSubsStack("lv_colonia_ItemClick (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,187);
if (RapidSub.canDelegate("lv_colonia_itemclick")) { return __ref.runUserSub(false, "c_nuevocliente","lv_colonia_itemclick", __ref, _position, _value);}
Debug.locals.put("Position", _position);
Debug.locals.put("Value", _value);
 BA.debugLineNum = 187;BA.debugLine="Private Sub lv_colonia_ItemClick (Position As Int,";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 188;BA.debugLine="lv_colonia.Visible = False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_lv_colonia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_nuevocliente.__c.getField(true,"False"));
 BA.debugLineNum = 189;BA.debugLine="If Value <> \"Código no encontrado.\" And Value <>";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("!",_value,RemoteObject.createImmutable(("Código no encontrado."))) && RemoteObject.solveBoolean("!",_value,RemoteObject.createImmutable(("Ingrese colonia manualmente.")))) { 
 BA.debugLineNum = 190;BA.debugLine="et_colonia.Text = Value";
Debug.ShouldStop(536870912);
__ref.getField(false,"_et_colonia" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_value));
 BA.debugLineNum = 191;BA.debugLine="banderasepo = 0";
Debug.ShouldStop(1073741824);
__ref.setField ("_banderasepo" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 }else {
 BA.debugLineNum = 193;BA.debugLine="banderasepo = 1";
Debug.ShouldStop(1);
__ref.setField ("_banderasepo" /*RemoteObject*/ ,BA.numberCast(int.class, 1));
 };
 BA.debugLineNum = 195;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _mandapendientesclientesnuevos(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("mandaPendientesclientesnuevos (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,266);
if (RapidSub.canDelegate("mandapendientesclientesnuevos")) { return __ref.runUserSub(false, "c_nuevocliente","mandapendientesclientesnuevos", __ref);}
int _i = 0;
RemoteObject _cmd = RemoteObject.declareNull("keymon.lat.medicomed.dbrequestmanager._dbcommand");
 BA.debugLineNum = 266;BA.debugLine="Sub mandaPendientesclientesnuevos";
Debug.ShouldStop(512);
 BA.debugLineNum = 267;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  CN_ID";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_nuevocliente._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT  CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, COLONIA, CP, CN_ALMACEN, CN_RUTA, CN_BANDERA FROM CLIENTES_NUEVOS where CN_ENVIO <> 1"))));
 BA.debugLineNum = 268;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 269;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(4096);
{
final int step3 = 1;
final int limit3 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step3 > 0 && _i <= limit3) || (step3 < 0 && _i >= limit3) ;_i = ((int)(0 + _i + step3))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 270;BA.debugLine="c.Position = i";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 272;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(32768);
_cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");Debug.locals.put("cmd", _cmd);
 BA.debugLineNum = 273;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(65536);
_cmd.runVoidMethod ("Initialize");
 BA.debugLineNum = 274;BA.debugLine="cmd.Name = \"insert_clientesnuevos2_MEDI\"";
Debug.ShouldStop(131072);
_cmd.setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_clientesnuevos2_MEDI"));
 BA.debugLineNum = 275;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C";
Debug.ShouldStop(262144);
_cmd.setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {12},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_ID")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_USER")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_LAT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_LON")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_NOMBRE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_DIRECCION")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COLONIA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CP")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_ALMACEN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_RUTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_BANDERA"))))}));
 BA.debugLineNum = 276;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_CNUEVOSPe";
Debug.ShouldStop(524288);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(_cmd),(Object)(((RemoteObject.concat(RemoteObject.createImmutable("ins_CNUEVOSPendientes_head_"),c_nuevocliente.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_ID")))))),RemoteObject.createImmutable(""))))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 279;BA.debugLine="c.Close";
Debug.ShouldStop(4194304);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 280;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_nuevocliente_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_nuevoCliente_Click (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,308);
if (RapidSub.canDelegate("p_nuevocliente_click")) { return __ref.runUserSub(false, "c_nuevocliente","p_nuevocliente_click", __ref);}
 BA.debugLineNum = 308;BA.debugLine="Private Sub p_nuevoCliente_Click";
Debug.ShouldStop(524288);
 BA.debugLineNum = 310;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _stopcamera2(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("StopCamera2 (c_nuevocliente) ","c_nuevocliente",15,__ref.getField(false, "ba"),__ref,392);
if (RapidSub.canDelegate("stopcamera2")) { return __ref.runUserSub(false, "c_nuevocliente","stopcamera2", __ref);}
 BA.debugLineNum = 392;BA.debugLine="Private Sub StopCamera2";
Debug.ShouldStop(128);
 BA.debugLineNum = 394;BA.debugLine="If camEx2.IsInitialized Then";
Debug.ShouldStop(512);
if (__ref.getField(false,"_camex2" /*RemoteObject*/ ).runMethod(true,"IsInitialized" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 395;BA.debugLine="camEx2.Release";
Debug.ShouldStop(1024);
__ref.getField(false,"_camex2" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.cameraexclass2.class, "_release" /*RemoteObject*/ );
 };
 BA.debugLineNum = 397;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}