package gunav2.keymon.com.mx;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;

public class c_nuevocliente extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "gunav2.keymon.com.mx.c_nuevocliente");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_nuevocliente.class).invoke(this, new Object[] {null});
        else
            ba.raiseEvent2(null, true, "class_globals", false);
    }

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public anywheresoftware.b4a.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public anywheresoftware.b4a.gps.GPS _g = null;
public String _ruta = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public anywheresoftware.b4a.objects.ButtonWrapper _cancela = null;
public anywheresoftware.b4a.objects.ButtonWrapper _guarda = null;
public String _cuenta = "";
public String _usuario = "";
public String _sdate = "";
public String _stime = "";
public String _sdate2 = "";
public String _stime2 = "";
public String _no_cliente = "";
public String _no_ruta = "";
public anywheresoftware.b4a.objects.collections.List _lista_punta = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_4 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _e_nombre = null;
public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_sinubicacion = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_nuevocliente = null;
public anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_botones = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_cam = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_camara = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_foto_inci = null;
public boolean _frontcamera = false;
public String _fototomada = "";
public String _almacen = "";
public anywheresoftware.b4a.objects.EditTextWrapper _et_direccion = null;
public anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
public double _lat = 0;
public double _lon = 0;
public anywheresoftware.b4a.objects.LabelWrapper _b_ubicacion = null;
public anywheresoftware.b4a.objects.LabelWrapper _label3 = null;
public gunav2.keymon.com.mx.b4xcombobox _cb_giro = null;
public String _giros = "";
public anywheresoftware.b4a.objects.LabelWrapper _l_atiende = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_atiende = null;
public anywheresoftware.b4a.objects.LabelWrapper _label5 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_colonia = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_telefono = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_cp = null;
public anywheresoftware.b4a.objects.LabelWrapper _label6 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_calle1 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_calle2 = null;
public anywheresoftware.b4a.objects.ScrollViewWrapper _scv_nuevocliente = null;
public anywheresoftware.b4a.objects.LabelWrapper _label9 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_numeroint = null;
public anywheresoftware.b4a.objects.LabelWrapper _label10 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_numeroext = null;
public anywheresoftware.b4a.objects.LabelWrapper _label11 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_referencia = null;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
public gunav2.keymon.com.mx.subs _subs = null;
public gunav2.keymon.com.mx.appupdater _appupdater = null;
public gunav2.keymon.com.mx.tracker _tracker = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public gunav2.keymon.com.mx.newinst2 _newinst2 = null;
public gunav2.keymon.com.mx.b4xpages _b4xpages = null;
public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null;
public gunav2.keymon.com.mx.httputils2service _httputils2service = null;
public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(gunav2.keymon.com.mx.c_nuevocliente __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=77332480;
 //BA.debugLineNum = 77332480;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=77332481;
 //BA.debugLineNum = 77332481;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=77332482;
 //BA.debugLineNum = 77332482;BA.debugLine="End Sub";
return null;
}
public String  _gps_locationchanged(gunav2.keymon.com.mx.c_nuevocliente __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=77529088;
 //BA.debugLineNum = 77529088;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=77529089;
 //BA.debugLineNum = 77529089;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0.0") == false) { 
RDebugUtils.currentLine=77529090;
 //BA.debugLineNum = 77529090;BA.debugLine="If GUARDA.IsInitialized Then";
if (__ref._guarda /*anywheresoftware.b4a.objects.ButtonWrapper*/ .IsInitialized()) { 
RDebugUtils.currentLine=77529091;
 //BA.debugLineNum = 77529091;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostr";
__ref._guarda /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=77529092;
 //BA.debugLineNum = 77529092;BA.debugLine="l_sinUbicacion.Visible = True";
__ref._l_sinubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=77529094;
 //BA.debugLineNum = 77529094;BA.debugLine="lat = Location1.Latitude";
__ref._lat /*double*/  = _location1.getLatitude();
RDebugUtils.currentLine=77529095;
 //BA.debugLineNum = 77529095;BA.debugLine="lon = Location1.Longitude";
__ref._lon /*double*/  = _location1.getLongitude();
RDebugUtils.currentLine=77529096;
 //BA.debugLineNum = 77529096;BA.debugLine="l_sinUbicacion.Text = (\"Latitud: \" & lat & \", L";
__ref._l_sinubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Latitud: "+BA.NumberToString(__ref._lat /*double*/ )+", Longotud: "+BA.NumberToString(__ref._lon /*double*/ ))));
 };
 };
RDebugUtils.currentLine=77529100;
 //BA.debugLineNum = 77529100;BA.debugLine="If b_ubicacion.IsInitialized Then";
if (__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .IsInitialized()) { 
RDebugUtils.currentLine=77529101;
 //BA.debugLineNum = 77529101;BA.debugLine="b_ubicacion.TextSize = 13";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (13));
RDebugUtils.currentLine=77529102;
 //BA.debugLineNum = 77529102;BA.debugLine="b_ubicacion.Text = $\"Precisión GPS $1.0{Location";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Precisión GPS "+__c.SmartStringFormatter("1.0",(Object)(_location1.getAccuracy()))+" m")));
RDebugUtils.currentLine=77529103;
 //BA.debugLineNum = 77529103;BA.debugLine="If Location1.Accuracy > 200 Then";
if (_location1.getAccuracy()>200) { 
RDebugUtils.currentLine=77529104;
 //BA.debugLineNum = 77529104;BA.debugLine="b_ubicacion.TextColor = Colors.Red";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Red);
RDebugUtils.currentLine=77529105;
 //BA.debugLineNum = 77529105;BA.debugLine="b_ubicacion.TextSize = 16";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (16));
RDebugUtils.currentLine=77529106;
 //BA.debugLineNum = 77529106;BA.debugLine="b_ubicacion.Text = $\"Mala señal $1.0{Location1.";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Mala señal "+__c.SmartStringFormatter("1.0",(Object)(_location1.getAccuracy()))+" m")));
 };
 };
RDebugUtils.currentLine=77529110;
 //BA.debugLineNum = 77529110;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(gunav2.keymon.com.mx.c_nuevocliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_appear", null));}
anywheresoftware.b4a.objects.collections.List _items = null;
int _i = 0;
RDebugUtils.currentLine=77463552;
 //BA.debugLineNum = 77463552;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=77463554;
 //BA.debugLineNum = 77463554;BA.debugLine="scv_nuevocliente.Panel.RemoveAllViews";
__ref._scv_nuevocliente /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().RemoveAllViews();
RDebugUtils.currentLine=77463555;
 //BA.debugLineNum = 77463555;BA.debugLine="scv_nuevocliente.Panel.LoadLayout(\"Panel_Nuevocli";
__ref._scv_nuevocliente /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().LoadLayout("Panel_Nuevocliente",ba);
RDebugUtils.currentLine=77463556;
 //BA.debugLineNum = 77463556;BA.debugLine="scv_nuevocliente.Panel.Height = 1100dip";
__ref._scv_nuevocliente /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().setHeight(__c.DipToCurrent((int) (1100)));
RDebugUtils.currentLine=77463558;
 //BA.debugLineNum = 77463558;BA.debugLine="Panel1.Visible = False";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=77463559;
 //BA.debugLineNum = 77463559;BA.debugLine="p_nuevoCliente.Visible = False";
__ref._p_nuevocliente /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=77463560;
 //BA.debugLineNum = 77463560;BA.debugLine="p_nuevoCliente.Visible = True";
__ref._p_nuevocliente /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=77463561;
 //BA.debugLineNum = 77463561;BA.debugLine="Panel1.Visible = True";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=77463562;
 //BA.debugLineNum = 77463562;BA.debugLine="et_direccion.Text = \"\"";
__ref._et_direccion /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=77463563;
 //BA.debugLineNum = 77463563;BA.debugLine="E_NOMBRE.Text =  \"\"";
__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=77463564;
 //BA.debugLineNum = 77463564;BA.debugLine="ET_Atiende.Text = \"\"";
__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=77463565;
 //BA.debugLineNum = 77463565;BA.debugLine="et_colonia.Text = \"\"";
__ref._et_colonia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=77463566;
 //BA.debugLineNum = 77463566;BA.debugLine="et_telefono.Text = \"\"";
__ref._et_telefono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=77463567;
 //BA.debugLineNum = 77463567;BA.debugLine="et_cp.Text = \"\"";
__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=77463568;
 //BA.debugLineNum = 77463568;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
RDebugUtils.currentLine=77463569;
 //BA.debugLineNum = 77463569;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True);
RDebugUtils.currentLine=77463570;
 //BA.debugLineNum = 77463570;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 };
RDebugUtils.currentLine=77463572;
 //BA.debugLineNum = 77463572;BA.debugLine="GUARDA.Visible = False";
__ref._guarda /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=77463573;
 //BA.debugLineNum = 77463573;BA.debugLine="Subs.panelVisible(p_nuevoCliente, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._p_nuevocliente /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=77463574;
 //BA.debugLineNum = 77463574;BA.debugLine="Subs.panelVisible(Panel1, 0, 0)";
_subs._panelvisible /*String*/ (ba,__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0));
RDebugUtils.currentLine=77463576;
 //BA.debugLineNum = 77463576;BA.debugLine="p_nuevoCliente.Width = Root.Width";
__ref._p_nuevocliente /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463577;
 //BA.debugLineNum = 77463577;BA.debugLine="Panel1.Width = Root.Width";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463578;
 //BA.debugLineNum = 77463578;BA.debugLine="Panel1.Height = p_nuevoCliente.Height";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._p_nuevocliente /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight());
RDebugUtils.currentLine=77463579;
 //BA.debugLineNum = 77463579;BA.debugLine="Subs.centraEtiqueta(Label1, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,__ref._label1 /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463580;
 //BA.debugLineNum = 77463580;BA.debugLine="Subs.centraEtiqueta(Label5, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,__ref._label5 /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463581;
 //BA.debugLineNum = 77463581;BA.debugLine="Subs.centraEtiqueta(Label6, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,__ref._label6 /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463582;
 //BA.debugLineNum = 77463582;BA.debugLine="Subs.centraEtiqueta(Label2, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463583;
 //BA.debugLineNum = 77463583;BA.debugLine="Subs.centraEtiqueta(Label3, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,__ref._label3 /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463584;
 //BA.debugLineNum = 77463584;BA.debugLine="Subs.centraEtiqueta(l_sinUbicacion, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,__ref._l_sinubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463585;
 //BA.debugLineNum = 77463585;BA.debugLine="Subs.centraEtiqueta(b_ubicacion, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463586;
 //BA.debugLineNum = 77463586;BA.debugLine="Subs.centraPanel(p_botones, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_botones /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77463587;
 //BA.debugLineNum = 77463587;BA.debugLine="E_NOMBRE.Left = Round(Root.Width/2)-(E_NOMBRE.Wid";
__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setLeft((int) (__c.Round(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=77463588;
 //BA.debugLineNum = 77463588;BA.debugLine="et_cp.Left = Round(Root.Width/2)-(E_NOMBRE.Width/";
__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setLeft((int) (__c.Round(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=77463589;
 //BA.debugLineNum = 77463589;BA.debugLine="et_colonia.Left = Round(Root.Width/2)-(et_colonia";
__ref._et_colonia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setLeft((int) (__c.Round(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._et_colonia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=77463590;
 //BA.debugLineNum = 77463590;BA.debugLine="et_direccion.Left = Round(Root.Width/2)-(et_direc";
__ref._et_direccion /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setLeft((int) (__c.Round(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._et_direccion /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=77463591;
 //BA.debugLineNum = 77463591;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0.0") == false) { 
RDebugUtils.currentLine=77463592;
 //BA.debugLineNum = 77463592;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostra";
__ref._guarda /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=77463593;
 //BA.debugLineNum = 77463593;BA.debugLine="l_sinUbicacion.Visible = True";
__ref._l_sinubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=77463596;
 //BA.debugLineNum = 77463596;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"Track");
RDebugUtils.currentLine=77463597;
 //BA.debugLineNum = 77463597;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall");
RDebugUtils.currentLine=77463598;
 //BA.debugLineNum = 77463598;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL";
if (_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized() && _tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { 
RDebugUtils.currentLine=77463599;
 //BA.debugLineNum = 77463599;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/  = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude());
RDebugUtils.currentLine=77463600;
 //BA.debugLineNum = 77463600;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/  = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude());
RDebugUtils.currentLine=77463602;
 //BA.debugLineNum = 77463602;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
__ref._gps_locationchanged /*String*/ (null,_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation());
 };
RDebugUtils.currentLine=77463617;
 //BA.debugLineNum = 77463617;BA.debugLine="If Not(Starter.GPS.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
RDebugUtils.currentLine=77463618;
 //BA.debugLineNum = 77463618;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo";
__c.ToastMessageShow(BA.ObjectToCharSequence("Debe Activar el GPS del Equipo."),__c.True);
RDebugUtils.currentLine=77463619;
 //BA.debugLineNum = 77463619;BA.debugLine="StartActivity(Starter.GPS.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 }else {
RDebugUtils.currentLine=77463621;
 //BA.debugLineNum = 77463621;BA.debugLine="Starter.GPS.Start(0, 0)";
_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .Start(ba,(long) (0),(float) (0));
 };
RDebugUtils.currentLine=77463624;
 //BA.debugLineNum = 77463624;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall");
RDebugUtils.currentLine=77463626;
 //BA.debugLineNum = 77463626;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT GIRO FROM CAT_";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT GIRO FROM CAT_GIRO order by 1")));
RDebugUtils.currentLine=77463627;
 //BA.debugLineNum = 77463627;BA.debugLine="Dim Items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=77463628;
 //BA.debugLineNum = 77463628;BA.debugLine="Items.Initialize";
_items.Initialize();
RDebugUtils.currentLine=77463629;
 //BA.debugLineNum = 77463629;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCIÓN\")";
_items.Add((Object)("SELECCIONA UNA OPCIÓN"));
RDebugUtils.currentLine=77463630;
 //BA.debugLineNum = 77463630;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=77463631;
 //BA.debugLineNum = 77463631;BA.debugLine="For i = 0 To c.RowCount-1";
{
final int step59 = 1;
final int limit59 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit59 ;_i = _i + step59 ) {
RDebugUtils.currentLine=77463632;
 //BA.debugLineNum = 77463632;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=77463633;
 //BA.debugLineNum = 77463633;BA.debugLine="Items.Add(c.GetString(\"GIRO\"))";
_items.Add((Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("GIRO")));
 }
};
RDebugUtils.currentLine=77463635;
 //BA.debugLineNum = 77463635;BA.debugLine="cb_giro.SetItems(Items)";
__ref._cb_giro /*gunav2.keymon.com.mx.b4xcombobox*/ ._setitems /*String*/ (null,_items);
 };
RDebugUtils.currentLine=77463637;
 //BA.debugLineNum = 77463637;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
__ref._giros /*String*/  = "SELECCIONA UNA OPCIÓN";
RDebugUtils.currentLine=77463638;
 //BA.debugLineNum = 77463638;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=77463639;
 //BA.debugLineNum = 77463639;BA.debugLine="End Sub";
return "";
}
public void  _b4xpage_created(gunav2.keymon.com.mx.c_nuevocliente __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}); return;}
ResumableSub_B4XPage_Created rsub = new ResumableSub_B4XPage_Created(this,__ref,_root1);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Created extends BA.ResumableSub {
public ResumableSub_B4XPage_Created(gunav2.keymon.com.mx.c_nuevocliente parent,gunav2.keymon.com.mx.c_nuevocliente __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) {
this.parent = parent;
this.__ref = __ref;
this._root1 = _root1;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_nuevocliente __ref;
gunav2.keymon.com.mx.c_nuevocliente parent;
anywheresoftware.b4a.objects.B4XViewWrapper _root1;
String _permission = "";
boolean _result = false;

@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="c_nuevocliente";

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

case 0:
//C
this.state = 1;
RDebugUtils.currentLine=77398018;
 //BA.debugLineNum = 77398018;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=77398020;
 //BA.debugLineNum = 77398020;BA.debugLine="Root.LoadLayout(\"nuevocliente\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("nuevocliente",ba);
RDebugUtils.currentLine=77398021;
 //BA.debugLineNum = 77398021;BA.debugLine="scv_nuevocliente.Height = Root.Height";
__ref._scv_nuevocliente /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=77398022;
 //BA.debugLineNum = 77398022;BA.debugLine="scv_nuevocliente.Width = Root.Width";
__ref._scv_nuevocliente /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=77398024;
 //BA.debugLineNum = 77398024;BA.debugLine="ruta = File.DirInternal";
__ref._ruta /*String*/  = parent.__c.File.getDirInternal();
RDebugUtils.currentLine=77398025;
 //BA.debugLineNum = 77398025;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (true) break;

case 1:
//if
this.state = 4;
if (parent.__c.File.Exists(__ref._ruta /*String*/ ,"kmt.db")==parent.__c.False) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
RDebugUtils.currentLine=77398026;
 //BA.debugLineNum = 77398026;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
parent.__c.File.Copy(parent.__c.File.getDirAssets(),"kmt.db",__ref._ruta /*String*/ ,"kmt.db");
 if (true) break;

case 4:
//C
this.state = 5;
;
RDebugUtils.currentLine=77398040;
 //BA.debugLineNum = 77398040;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_WRITE_EXTERNAL_STORAGE);
RDebugUtils.currentLine=77398041;
 //BA.debugLineNum = 77398041;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_nuevocliente", "b4xpage_created"), null);
this.state = 17;
return;
case 17:
//C
this.state = 5;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=77398042;
 //BA.debugLineNum = 77398042;BA.debugLine="If Result Then";
if (true) break;

case 5:
//if
this.state = 10;
if (_result) { 
this.state = 7;
}else {
this.state = 9;
}if (true) break;

case 7:
//C
this.state = 10;
RDebugUtils.currentLine=77398043;
 //BA.debugLineNum = 77398043;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("077398043","Con permisos para escritura",0);
 if (true) break;

case 9:
//C
this.state = 10;
RDebugUtils.currentLine=77398045;
 //BA.debugLineNum = 77398045;BA.debugLine="ToastMessageShow(\"Sin permisos de escritura!!!\",";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos de escritura!!!"),parent.__c.True);
 if (true) break;

case 10:
//C
this.state = 11;
;
RDebugUtils.currentLine=77398048;
 //BA.debugLineNum = 77398048;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_READ_EXTERNAL_STORAGE);
RDebugUtils.currentLine=77398049;
 //BA.debugLineNum = 77398049;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_nuevocliente", "b4xpage_created"), null);
this.state = 18;
return;
case 18:
//C
this.state = 11;
_permission = (String) result[1];
_result = (Boolean) result[2];
;
RDebugUtils.currentLine=77398050;
 //BA.debugLineNum = 77398050;BA.debugLine="If Result Then";
if (true) break;

case 11:
//if
this.state = 16;
if (_result) { 
this.state = 13;
}else {
this.state = 15;
}if (true) break;

case 13:
//C
this.state = 16;
RDebugUtils.currentLine=77398051;
 //BA.debugLineNum = 77398051;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("077398051","Con permisos para escritura",0);
 if (true) break;

case 15:
//C
this.state = 16;
RDebugUtils.currentLine=77398053;
 //BA.debugLineNum = 77398053;BA.debugLine="ToastMessageShow(\"Sin permisos de lectura!!!\", T";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos de lectura!!!"),parent.__c.True);
 if (true) break;

case 16:
//C
this.state = -1;
;
RDebugUtils.currentLine=77398055;
 //BA.debugLineNum = 77398055;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _cancela_click(gunav2.keymon.com.mx.c_nuevocliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "cancela_click", false))
	 {return ((String) Debug.delegate(ba, "cancela_click", null));}
RDebugUtils.currentLine=77594624;
 //BA.debugLineNum = 77594624;BA.debugLine="Sub CANCELA_Click";
RDebugUtils.currentLine=77594625;
 //BA.debugLineNum = 77594625;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
RDebugUtils.currentLine=77594626;
 //BA.debugLineNum = 77594626;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLP");
RDebugUtils.currentLine=77594627;
 //BA.debugLineNum = 77594627;BA.debugLine="End Sub";
return "";
}
public String  _cb_giro_selectedindexchanged(gunav2.keymon.com.mx.c_nuevocliente __ref,int _index) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "cb_giro_selectedindexchanged", false))
	 {return ((String) Debug.delegate(ba, "cb_giro_selectedindexchanged", new Object[] {_index}));}
RDebugUtils.currentLine=77856768;
 //BA.debugLineNum = 77856768;BA.debugLine="Private Sub cb_giro_SelectedIndexChanged (Index As";
RDebugUtils.currentLine=77856769;
 //BA.debugLineNum = 77856769;BA.debugLine="giros = cb_giro.SelectedItem";
__ref._giros /*String*/  = __ref._cb_giro /*gunav2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null);
RDebugUtils.currentLine=77856770;
 //BA.debugLineNum = 77856770;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.c_nuevocliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
RDebugUtils.currentLine=77266944;
 //BA.debugLineNum = 77266944;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=77266945;
 //BA.debugLineNum = 77266945;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=77266946;
 //BA.debugLineNum = 77266946;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=77266948;
 //BA.debugLineNum = 77266948;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=77266949;
 //BA.debugLineNum = 77266949;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=77266950;
 //BA.debugLineNum = 77266950;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=77266952;
 //BA.debugLineNum = 77266952;BA.debugLine="Dim CANCELA As Button";
_cancela = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=77266953;
 //BA.debugLineNum = 77266953;BA.debugLine="Dim GUARDA As Button";
_guarda = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=77266954;
 //BA.debugLineNum = 77266954;BA.debugLine="Dim cuenta As String";
_cuenta = "";
RDebugUtils.currentLine=77266955;
 //BA.debugLineNum = 77266955;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=77266956;
 //BA.debugLineNum = 77266956;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=77266957;
 //BA.debugLineNum = 77266957;BA.debugLine="Dim sDate2,sTime2 As String";
_sdate2 = "";
_stime2 = "";
RDebugUtils.currentLine=77266958;
 //BA.debugLineNum = 77266958;BA.debugLine="Dim no_cliente As String";
_no_cliente = "";
RDebugUtils.currentLine=77266959;
 //BA.debugLineNum = 77266959;BA.debugLine="Dim no_ruta As String";
_no_ruta = "";
RDebugUtils.currentLine=77266960;
 //BA.debugLineNum = 77266960;BA.debugLine="Dim lista_punta As List";
_lista_punta = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=77266961;
 //BA.debugLineNum = 77266961;BA.debugLine="Dim r_4 As RadioButton";
_r_4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=77266962;
 //BA.debugLineNum = 77266962;BA.debugLine="Dim E_NOMBRE As EditText";
_e_nombre = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266963;
 //BA.debugLineNum = 77266963;BA.debugLine="Dim tgl As Toggle";
_tgl = new com.rootsoft.togglelibrary.ToggleLibrary();
RDebugUtils.currentLine=77266964;
 //BA.debugLineNum = 77266964;BA.debugLine="Private l_sinUbicacion As Label";
_l_sinubicacion = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266965;
 //BA.debugLineNum = 77266965;BA.debugLine="Private p_nuevoCliente As Panel";
_p_nuevocliente = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=77266966;
 //BA.debugLineNum = 77266966;BA.debugLine="Private Label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266967;
 //BA.debugLineNum = 77266967;BA.debugLine="Private p_botones As Panel";
_p_botones = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=77266968;
 //BA.debugLineNum = 77266968;BA.debugLine="Private p_cam As Panel";
_p_cam = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=77266969;
 //BA.debugLineNum = 77266969;BA.debugLine="Private p_camara As Panel";
_p_camara = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=77266970;
 //BA.debugLineNum = 77266970;BA.debugLine="Private b_foto_inci As Button";
_b_foto_inci = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=77266972;
 //BA.debugLineNum = 77266972;BA.debugLine="Dim frontCamera As Boolean = False";
_frontcamera = __c.False;
RDebugUtils.currentLine=77266973;
 //BA.debugLineNum = 77266973;BA.debugLine="Dim fototomada As String = \"0\"";
_fototomada = "0";
RDebugUtils.currentLine=77266974;
 //BA.debugLineNum = 77266974;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=77266975;
 //BA.debugLineNum = 77266975;BA.debugLine="Private et_direccion As EditText";
_et_direccion = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266976;
 //BA.debugLineNum = 77266976;BA.debugLine="Private Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266977;
 //BA.debugLineNum = 77266977;BA.debugLine="Dim lat As Double = 0";
_lat = 0;
RDebugUtils.currentLine=77266978;
 //BA.debugLineNum = 77266978;BA.debugLine="Dim lon As Double = 0";
_lon = 0;
RDebugUtils.currentLine=77266979;
 //BA.debugLineNum = 77266979;BA.debugLine="Private b_ubicacion As Label";
_b_ubicacion = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266980;
 //BA.debugLineNum = 77266980;BA.debugLine="Private Label3 As Label";
_label3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266981;
 //BA.debugLineNum = 77266981;BA.debugLine="Private cb_giro As B4XComboBox";
_cb_giro = new gunav2.keymon.com.mx.b4xcombobox();
RDebugUtils.currentLine=77266982;
 //BA.debugLineNum = 77266982;BA.debugLine="Dim giros As String";
_giros = "";
RDebugUtils.currentLine=77266983;
 //BA.debugLineNum = 77266983;BA.debugLine="Private L_Atiende As Label";
_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266984;
 //BA.debugLineNum = 77266984;BA.debugLine="Private ET_Atiende As EditText";
_et_atiende = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266985;
 //BA.debugLineNum = 77266985;BA.debugLine="Private Label5 As Label";
_label5 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266986;
 //BA.debugLineNum = 77266986;BA.debugLine="Private et_colonia As EditText";
_et_colonia = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266987;
 //BA.debugLineNum = 77266987;BA.debugLine="Private et_telefono As EditText";
_et_telefono = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266988;
 //BA.debugLineNum = 77266988;BA.debugLine="Private et_cp As EditText";
_et_cp = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266989;
 //BA.debugLineNum = 77266989;BA.debugLine="Private Label6 As Label";
_label6 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266990;
 //BA.debugLineNum = 77266990;BA.debugLine="Private Panel1 As Panel";
_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=77266991;
 //BA.debugLineNum = 77266991;BA.debugLine="Private et_calle1 As EditText";
_et_calle1 = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266992;
 //BA.debugLineNum = 77266992;BA.debugLine="Private et_calle2 As EditText";
_et_calle2 = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266993;
 //BA.debugLineNum = 77266993;BA.debugLine="Private scv_nuevocliente As ScrollView";
_scv_nuevocliente = new anywheresoftware.b4a.objects.ScrollViewWrapper();
RDebugUtils.currentLine=77266994;
 //BA.debugLineNum = 77266994;BA.debugLine="Private Label9 As Label";
_label9 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266995;
 //BA.debugLineNum = 77266995;BA.debugLine="Private et_numeroint As EditText";
_et_numeroint = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266996;
 //BA.debugLineNum = 77266996;BA.debugLine="Private Label10 As Label";
_label10 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266997;
 //BA.debugLineNum = 77266997;BA.debugLine="Private et_numeroext As EditText";
_et_numeroext = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77266998;
 //BA.debugLineNum = 77266998;BA.debugLine="Private Label11 As Label";
_label11 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=77266999;
 //BA.debugLineNum = 77266999;BA.debugLine="Private et_referencia As EditText";
_et_referencia = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=77267000;
 //BA.debugLineNum = 77267000;BA.debugLine="End Sub";
return "";
}
public String  _et_cp_textchanged(gunav2.keymon.com.mx.c_nuevocliente __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "et_cp_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_cp_textchanged", new Object[] {_old,_new}));}
RDebugUtils.currentLine=77922304;
 //BA.debugLineNum = 77922304;BA.debugLine="Private Sub et_cp_TextChanged (Old As String, New";
RDebugUtils.currentLine=77922305;
 //BA.debugLineNum = 77922305;BA.debugLine="If New.Length > 5 Then";
if (_new.length()>5) { 
RDebugUtils.currentLine=77922306;
 //BA.debugLineNum = 77922306;BA.debugLine="et_cp.Text = Old";
__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_old));
 }else 
{RDebugUtils.currentLine=77922307;
 //BA.debugLineNum = 77922307;BA.debugLine="Else If New.Length > 1 And New.Length <= 5 Then";
if (_new.length()>1 && _new.length()<=5) { 
RDebugUtils.currentLine=77922308;
 //BA.debugLineNum = 77922308;BA.debugLine="If New.Contains(Chr(10)) Or New.Contains(Chr(13)";
if (_new.contains(BA.ObjectToString(__c.Chr((int) (10)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (13)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (34))))) { 
RDebugUtils.currentLine=77922309;
 //BA.debugLineNum = 77922309;BA.debugLine="et_cp.Text = Old";
__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_old));
 };
 }}
;
RDebugUtils.currentLine=77922313;
 //BA.debugLineNum = 77922313;BA.debugLine="End Sub";
return "";
}
public String  _et_telefono_textchanged(gunav2.keymon.com.mx.c_nuevocliente __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "et_telefono_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_telefono_textchanged", new Object[] {_old,_new}));}
RDebugUtils.currentLine=77987840;
 //BA.debugLineNum = 77987840;BA.debugLine="Private Sub et_telefono_TextChanged (Old As String";
RDebugUtils.currentLine=77987841;
 //BA.debugLineNum = 77987841;BA.debugLine="If New.Length > 10 Then";
if (_new.length()>10) { 
RDebugUtils.currentLine=77987842;
 //BA.debugLineNum = 77987842;BA.debugLine="et_telefono.Text = Old";
__ref._et_telefono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_old));
 }else 
{RDebugUtils.currentLine=77987843;
 //BA.debugLineNum = 77987843;BA.debugLine="Else If New.Length > 1 And New.Length <= 10 Then";
if (_new.length()>1 && _new.length()<=10) { 
RDebugUtils.currentLine=77987844;
 //BA.debugLineNum = 77987844;BA.debugLine="If New.Contains(Chr(10)) Or New.Contains(Chr(13)";
if (_new.contains(BA.ObjectToString(__c.Chr((int) (10)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (13)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (34))))) { 
RDebugUtils.currentLine=77987845;
 //BA.debugLineNum = 77987845;BA.debugLine="et_telefono.Text = Old";
__ref._et_telefono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_old));
 };
 }}
;
RDebugUtils.currentLine=77987849;
 //BA.debugLineNum = 77987849;BA.debugLine="End Sub";
return "";
}
public String  _guarda_click(gunav2.keymon.com.mx.c_nuevocliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "guarda_click", false))
	 {return ((String) Debug.delegate(ba, "guarda_click", null));}
String _hora = "";
String _mins = "";
String _segs = "";
String[] _fechacliente = null;
RDebugUtils.currentLine=77725696;
 //BA.debugLineNum = 77725696;BA.debugLine="Sub GUARDA_Click";
RDebugUtils.currentLine=77725706;
 //BA.debugLineNum = 77725706;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=77725724;
 //BA.debugLineNum = 77725724;BA.debugLine="If E_NOMBRE.Text = \"\" Then";
if ((__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { 
RDebugUtils.currentLine=77725725;
 //BA.debugLineNum = 77725725;BA.debugLine="MsgboxAsync(\"Por favor captura el nombre de la T";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura el nombre de la Tienda"),BA.ObjectToCharSequence("Atención"),ba);
 }else 
{RDebugUtils.currentLine=77725727;
 //BA.debugLineNum = 77725727;BA.debugLine="Else If et_direccion.Text.Length > 3 Then";
if (__ref._et_direccion /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().length()>3) { 
RDebugUtils.currentLine=77725729;
 //BA.debugLineNum = 77725729;BA.debugLine="If lat <> 0 Then";
if (__ref._lat /*double*/ !=0) { 
RDebugUtils.currentLine=77725731;
 //BA.debugLineNum = 77725731;BA.debugLine="If giros <> \"SELECCIONA UNA OPCIÓN\" Or cb_giro.";
if ((__ref._giros /*String*/ ).equals("SELECCIONA UNA OPCIÓN") == false || (__ref._cb_giro /*gunav2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null)).equals("SELECCIONA UNA OPCIÓN") == false) { 
RDebugUtils.currentLine=77725733;
 //BA.debugLineNum = 77725733;BA.debugLine="If ET_Atiende.Text <> \"\" Then";
if ((__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725734;
 //BA.debugLineNum = 77725734;BA.debugLine="If et_telefono.Text <> \"\" Then";
if ((__ref._et_telefono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725735;
 //BA.debugLineNum = 77725735;BA.debugLine="If et_colonia.Text <> \"\" Then";
if ((__ref._et_colonia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725736;
 //BA.debugLineNum = 77725736;BA.debugLine="If et_cp.Text <> \"\" Then";
if ((__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725737;
 //BA.debugLineNum = 77725737;BA.debugLine="If et_calle1.Text <> \"\" Then";
if ((__ref._et_calle1 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725738;
 //BA.debugLineNum = 77725738;BA.debugLine="If et_calle2.Text <> \"\" Then";
if ((__ref._et_calle2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725739;
 //BA.debugLineNum = 77725739;BA.debugLine="If et_numeroint.Text <> \"\" Then";
if ((__ref._et_numeroint /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725740;
 //BA.debugLineNum = 77725740;BA.debugLine="If et_numeroext.Text <> \"\" Then";
if ((__ref._et_numeroext /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725741;
 //BA.debugLineNum = 77725741;BA.debugLine="If et_referencia.Text <> \"\" Then";
if ((__ref._et_referencia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=77725745;
 //BA.debugLineNum = 77725745;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=77725746;
 //BA.debugLineNum = 77725746;BA.debugLine="DateTime.Timeformat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=77725747;
 //BA.debugLineNum = 77725747;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=77725748;
 //BA.debugLineNum = 77725748;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=77725749;
 //BA.debugLineNum = 77725749;BA.debugLine="Log($\" ////////////   Date: ${sDate} - T";
__c.LogImpl("077725749",(" ////////////   Date: "+__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ ))+" - Time: "+__c.SmartStringFormatter("",(Object)(__ref._stime /*String*/ ))+" ////////////////"),0);
RDebugUtils.currentLine=77725751;
 //BA.debugLineNum = 77725751;BA.debugLine="Private hora As String = sTime.SubString";
_hora = __ref._stime /*String*/ .substring((int) (0),(int) (2));
RDebugUtils.currentLine=77725752;
 //BA.debugLineNum = 77725752;BA.debugLine="Private mins As String = sTime.SubString";
_mins = __ref._stime /*String*/ .substring((int) (2),(int) (4));
RDebugUtils.currentLine=77725753;
 //BA.debugLineNum = 77725753;BA.debugLine="Private segs As String = sTime.SubString";
_segs = __ref._stime /*String*/ .substring((int) (4));
RDebugUtils.currentLine=77725754;
 //BA.debugLineNum = 77725754;BA.debugLine="sTime = hora & \":\" & mins & \":\" & segs";
__ref._stime /*String*/  = _hora+":"+_mins+":"+_segs;
RDebugUtils.currentLine=77725755;
 //BA.debugLineNum = 77725755;BA.debugLine="Dim Fechacliente() As String = Regex.Spl";
_fechacliente = __c.Regex.Split("/",__ref._sdate /*String*/ );
RDebugUtils.currentLine=77725756;
 //BA.debugLineNum = 77725756;BA.debugLine="Log(\"////////////// sTime: \"&sTime&\" ///";
__c.LogImpl("077725756","////////////// sTime: "+__ref._stime /*String*/ +" ////////////////",0);
RDebugUtils.currentLine=77725757;
 //BA.debugLineNum = 77725757;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_C";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA FROM kmt_info3")));
RDebugUtils.currentLine=77725758;
 //BA.debugLineNum = 77725758;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=77725759;
 //BA.debugLineNum = 77725759;BA.debugLine="no_ruta = c.GetString(\"CAT_CL_RUTA\")";
__ref._no_ruta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=77725760;
 //BA.debugLineNum = 77725760;BA.debugLine="no_cliente = \"N\" & sTime & no_ruta";
__ref._no_cliente /*String*/  = "N"+__ref._stime /*String*/ +__ref._no_ruta /*String*/ ;
RDebugUtils.currentLine=77725761;
 //BA.debugLineNum = 77725761;BA.debugLine="Log(\"++ ++ no_cliente = \"&no_cliente)";
__c.LogImpl("077725761","++ ++ no_cliente = "+__ref._no_cliente /*String*/ ,0);
RDebugUtils.currentLine=77725762;
 //BA.debugLineNum = 77725762;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=77725764;
 //BA.debugLineNum = 77725764;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._no_cliente /*String*/ )}));
RDebugUtils.currentLine=77725765;
 //BA.debugLineNum = 77725765;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from C";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=77725766;
 //BA.debugLineNum = 77725766;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._no_cliente /*String*/ )}));
RDebugUtils.currentLine=77725767;
 //BA.debugLineNum = 77725767;BA.debugLine="c = Starter.skmt.ExecQuery(\"select ID_AL";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN")));
RDebugUtils.currentLine=77725768;
 //BA.debugLineNum = 77725768;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=77725769;
 //BA.debugLineNum = 77725769;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=77725770;
 //BA.debugLineNum = 77725770;BA.debugLine="ALMACEN = c.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
 };
RDebugUtils.currentLine=77725772;
 //BA.debugLineNum = 77725772;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=77725773;
 //BA.debugLineNum = 77725773;BA.debugLine="c = Starter.skmt.ExecQuery(\"select usuar";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=77725774;
 //BA.debugLineNum = 77725774;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=77725775;
 //BA.debugLineNum = 77725775;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=77725776;
 //BA.debugLineNum = 77725776;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=77725780;
 //BA.debugLineNum = 77725780;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=77725781;
 //BA.debugLineNum = 77725781;BA.debugLine="DateTime.Timeformat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=77725782;
 //BA.debugLineNum = 77725782;BA.debugLine="sDate2 = DateTime.Date(DateTime.Now)";
__ref._sdate2 /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=77725783;
 //BA.debugLineNum = 77725783;BA.debugLine="sTime2 = DateTime.Time(DateTime.Now)";
__ref._stime2 /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=77725785;
 //BA.debugLineNum = 77725785;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(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, CAT_CL_GIRO,CAT_CL_CP,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_NUMEROINT,CAT_CL_NUMEROEXT,CAT_CL_REFERENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._no_cliente /*String*/ ),(Object)(__ref._no_ruta /*String*/ ),(Object)(__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(__ref._cb_giro /*gunav2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null)),(Object)(__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_calle1 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_calle2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_numeroint /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_numeroext /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_referencia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=77725786;
 //BA.debugLineNum = 77725786;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CLIENTES_NUEVOS(CN_ID, CN_FECHA, CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA,CN_COLONIA, CN_TELEFONO,CN_CP,CN_CALLE1,CN_CALLE2,CN_NUMEROINT,CN_NUMEROEXT,CN_REFERENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._no_cliente /*String*/ ,__ref._sdate2 /*String*/ +" "+__ref._stime2 /*String*/ ,__ref._usuario /*String*/ ,BA.NumberToString(__ref._lat /*double*/ ),BA.NumberToString(__ref._lon /*double*/ ),__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_direccion /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._almacen /*String*/ ,__ref._no_ruta /*String*/ ,__ref._cb_giro /*gunav2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null),__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_colonia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_telefono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_calle1 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_calle2 /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_numeroint /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_numeroext /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),__ref._et_referencia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()}));
RDebugUtils.currentLine=77725788;
 //BA.debugLineNum = 77725788;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=77725789;
 //BA.debugLineNum = 77725789;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLP");
 }else {
RDebugUtils.currentLine=77725791;
 //BA.debugLineNum = 77725791;BA.debugLine="MsgboxAsync(\"Por favor, captura la re";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura la referencia"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725794;
 //BA.debugLineNum = 77725794;BA.debugLine="MsgboxAsync(\"Por favor, captura el nú";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura el número ext"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725797;
 //BA.debugLineNum = 77725797;BA.debugLine="MsgboxAsync(\"Por favor, captura el núm";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura el número int"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725801;
 //BA.debugLineNum = 77725801;BA.debugLine="MsgboxAsync(\"Por favor, captura  Entre c";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura  Entre calle2"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725804;
 //BA.debugLineNum = 77725804;BA.debugLine="MsgboxAsync(\"Por favor, captura Entre ca";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura Entre calle1"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725808;
 //BA.debugLineNum = 77725808;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el C";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar el C.P. el negocio."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725811;
 //BA.debugLineNum = 77725811;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar la co";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar la colonia el negocio."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725814;
 //BA.debugLineNum = 77725814;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el tel";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar el telefono."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725818;
 //BA.debugLineNum = 77725818;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar al enca";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar al encargado que atiende el negocio."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725821;
 //BA.debugLineNum = 77725821;BA.debugLine="MsgboxAsync(\"Por favor captura el giro del cli";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura el giro del cliente"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725824;
 //BA.debugLineNum = 77725824;BA.debugLine="MsgboxAsync(\"Por favor revisa que tengas señal";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor revisa que tengas señal GPS"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=77725827;
 //BA.debugLineNum = 77725827;BA.debugLine="MsgboxAsync(\"Por favor captura la dirección del";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura la dirección del cliente"),BA.ObjectToCharSequence("Atención"),ba);
 }}
;
RDebugUtils.currentLine=77725834;
 //BA.debugLineNum = 77725834;BA.debugLine="End Sub";
return "";
}
public String  _p_nuevocliente_click(gunav2.keymon.com.mx.c_nuevocliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "p_nuevocliente_click", false))
	 {return ((String) Debug.delegate(ba, "p_nuevocliente_click", null));}
RDebugUtils.currentLine=77791232;
 //BA.debugLineNum = 77791232;BA.debugLine="Private Sub p_nuevoCliente_Click";
RDebugUtils.currentLine=77791234;
 //BA.debugLineNum = 77791234;BA.debugLine="End Sub";
return "";
}
public boolean  _pointinpolygon(gunav2.keymon.com.mx.c_nuevocliente __ref,anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _point,anywheresoftware.b4a.objects.collections.List _polygon) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
if (Debug.shouldDelegate(ba, "pointinpolygon", false))
	 {return ((Boolean) Debug.delegate(ba, "pointinpolygon", new Object[] {_point,_polygon}));}
double _x = 0;
double _y = 0;
boolean _inside = false;
int _i = 0;
int _j = 0;
anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _p1_1 = null;
anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _p2_1 = null;
double _xi = 0;
double _yi = 0;
double _xj = 0;
double _yj = 0;
boolean _intersect = false;
RDebugUtils.currentLine=77660160;
 //BA.debugLineNum = 77660160;BA.debugLine="Sub PointInPolygon(point As LatLng, polygon As Lis";
RDebugUtils.currentLine=77660161;
 //BA.debugLineNum = 77660161;BA.debugLine="Dim x As Double = point.Longitude";
_x = _point.getLongitude();
RDebugUtils.currentLine=77660162;
 //BA.debugLineNum = 77660162;BA.debugLine="Dim y As Double = point.Latitude";
_y = _point.getLatitude();
RDebugUtils.currentLine=77660164;
 //BA.debugLineNum = 77660164;BA.debugLine="Dim inside As Boolean = False";
_inside = __c.False;
RDebugUtils.currentLine=77660165;
 //BA.debugLineNum = 77660165;BA.debugLine="For i = 0 To polygon.Size - 1";
{
final int step4 = 1;
final int limit4 = (int) (_polygon.getSize()-1);
_i = (int) (0) ;
for (;_i <= limit4 ;_i = _i + step4 ) {
RDebugUtils.currentLine=77660166;
 //BA.debugLineNum = 77660166;BA.debugLine="Dim j As Int = (i + 1) Mod polygon.Size";
_j = (int) ((_i+1)%_polygon.getSize());
RDebugUtils.currentLine=77660167;
 //BA.debugLineNum = 77660167;BA.debugLine="Dim p1_1 As LatLng = polygon.Get(i)";
_p1_1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
_p1_1 = (anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(), (com.google.android.gms.maps.model.LatLng)(_polygon.Get(_i)));
RDebugUtils.currentLine=77660168;
 //BA.debugLineNum = 77660168;BA.debugLine="Dim p2_1 As LatLng = polygon.Get(j)";
_p2_1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
_p2_1 = (anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(), (com.google.android.gms.maps.model.LatLng)(_polygon.Get(_j)));
RDebugUtils.currentLine=77660170;
 //BA.debugLineNum = 77660170;BA.debugLine="Dim xi As Double = p1_1.Longitude";
_xi = _p1_1.getLongitude();
RDebugUtils.currentLine=77660171;
 //BA.debugLineNum = 77660171;BA.debugLine="Dim yi As Double = p1_1.Latitude";
_yi = _p1_1.getLatitude();
RDebugUtils.currentLine=77660172;
 //BA.debugLineNum = 77660172;BA.debugLine="Dim xj As Double = p2_1.Longitude";
_xj = _p2_1.getLongitude();
RDebugUtils.currentLine=77660173;
 //BA.debugLineNum = 77660173;BA.debugLine="Dim yj As Double = p2_1.Latitude";
_yj = _p2_1.getLatitude();
RDebugUtils.currentLine=77660175;
 //BA.debugLineNum = 77660175;BA.debugLine="Dim intersect As Boolean = ((yi > y) <> (yj > y)";
_intersect = ((_yi>_y)!=(_yj>_y)) && (_x<(_xj-_xi)*(_y-_yi)/(double)(_yj-_yi)+_xi);
RDebugUtils.currentLine=77660176;
 //BA.debugLineNum = 77660176;BA.debugLine="If intersect Then";
if (_intersect) { 
RDebugUtils.currentLine=77660177;
 //BA.debugLineNum = 77660177;BA.debugLine="inside = Not(inside)";
_inside = __c.Not(_inside);
 };
 }
};
RDebugUtils.currentLine=77660181;
 //BA.debugLineNum = 77660181;BA.debugLine="Return inside";
if (true) return _inside;
RDebugUtils.currentLine=77660184;
 //BA.debugLineNum = 77660184;BA.debugLine="End Sub";
return false;
}
}