package SHARK2.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, "SHARK2.keymon.com.mx.c_nuevocliente");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", SHARK2.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 SHARK2.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 b4a.example.dateutils _dateutils = null;
public SHARK2.keymon.com.mx.main _main = null;
public SHARK2.keymon.com.mx.appupdater _appupdater = null;
public SHARK2.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public SHARK2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public SHARK2.keymon.com.mx.notificationservice _notificationservice = null;
public SHARK2.keymon.com.mx.pendientes _pendientes = null;
public SHARK2.keymon.com.mx.starter _starter = null;
public SHARK2.keymon.com.mx.subs _subs = null;
public SHARK2.keymon.com.mx.tracker _tracker = null;
public SHARK2.keymon.com.mx.newinst2 _newinst2 = null;
public SHARK2.keymon.com.mx.b4xpages _b4xpages = null;
public SHARK2.keymon.com.mx.b4xcollections _b4xcollections = null;
public SHARK2.keymon.com.mx.httputils2service _httputils2service = null;
public SHARK2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(SHARK2.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=16515072;
 //BA.debugLineNum = 16515072;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=16515073;
 //BA.debugLineNum = 16515073;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=16515074;
 //BA.debugLineNum = 16515074;BA.debugLine="End Sub";
return null;
}
public String  _b4xpage_appear(SHARK2.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.sql.SQL.CursorWrapper _pol = null;
int _poli = 0;
anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _coords = null;
anywheresoftware.b4a.objects.collections.List _items = null;
int _i = 0;
RDebugUtils.currentLine=16646144;
 //BA.debugLineNum = 16646144;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=16646145;
 //BA.debugLineNum = 16646145;BA.debugLine="et_direccion.Text = \"\"";
__ref._et_direccion /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=16646146;
 //BA.debugLineNum = 16646146;BA.debugLine="E_NOMBRE.Text =  \"\"";
__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=16646147;
 //BA.debugLineNum = 16646147;BA.debugLine="ET_Atiende.Text = \"\"";
__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=16646148;
 //BA.debugLineNum = 16646148;BA.debugLine="et_colonia.Text = \"\"";
__ref._et_colonia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=16646149;
 //BA.debugLineNum = 16646149;BA.debugLine="et_telefono.Text = \"\"";
__ref._et_telefono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=16646150;
 //BA.debugLineNum = 16646150;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
RDebugUtils.currentLine=16646151;
 //BA.debugLineNum = 16646151;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True);
RDebugUtils.currentLine=16646152;
 //BA.debugLineNum = 16646152;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 };
RDebugUtils.currentLine=16646154;
 //BA.debugLineNum = 16646154;BA.debugLine="GUARDA.Visible = False";
__ref._guarda /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=16646155;
 //BA.debugLineNum = 16646155;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=16646156;
 //BA.debugLineNum = 16646156;BA.debugLine="p_nuevoCliente.Height = Root.Height";
__ref._p_nuevocliente /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=16646157;
 //BA.debugLineNum = 16646157;BA.debugLine="p_nuevoCliente.Width = Root.Width";
__ref._p_nuevocliente /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=16646158;
 //BA.debugLineNum = 16646158;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=16646159;
 //BA.debugLineNum = 16646159;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=16646160;
 //BA.debugLineNum = 16646160;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=16646161;
 //BA.debugLineNum = 16646161;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=16646162;
 //BA.debugLineNum = 16646162;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=16646163;
 //BA.debugLineNum = 16646163;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=16646164;
 //BA.debugLineNum = 16646164;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=16646165;
 //BA.debugLineNum = 16646165;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=16646166;
 //BA.debugLineNum = 16646166;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=16646167;
 //BA.debugLineNum = 16646167;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=16646168;
 //BA.debugLineNum = 16646168;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=16646169;
 //BA.debugLineNum = 16646169;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=16646170;
 //BA.debugLineNum = 16646170;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
if ((_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0.0") == false) { 
RDebugUtils.currentLine=16646171;
 //BA.debugLineNum = 16646171;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostra";
__ref._guarda /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=16646172;
 //BA.debugLineNum = 16646172;BA.debugLine="l_sinUbicacion.Visible = True";
__ref._l_sinubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
 };
RDebugUtils.currentLine=16646175;
 //BA.debugLineNum = 16646175;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"Track");
RDebugUtils.currentLine=16646176;
 //BA.debugLineNum = 16646176;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall");
RDebugUtils.currentLine=16646177;
 //BA.debugLineNum = 16646177;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=16646178;
 //BA.debugLineNum = 16646178;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/  = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude());
RDebugUtils.currentLine=16646179;
 //BA.debugLineNum = 16646179;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/  = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude());
RDebugUtils.currentLine=16646181;
 //BA.debugLineNum = 16646181;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
__ref._gps_locationchanged /*String*/ (null,_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation());
 };
RDebugUtils.currentLine=16646184;
 //BA.debugLineNum = 16646184;BA.debugLine="lista_punta.Initialize";
__ref._lista_punta /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=16646185;
 //BA.debugLineNum = 16646185;BA.debugLine="Dim pol As Cursor = Starter.skmt.ExecQuery(\"SELEC";
_pol = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_pol = (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 LAT, LONG FROM POLIGONO")));
RDebugUtils.currentLine=16646186;
 //BA.debugLineNum = 16646186;BA.debugLine="If pol.RowCount > 0 Then";
if (_pol.getRowCount()>0) { 
RDebugUtils.currentLine=16646188;
 //BA.debugLineNum = 16646188;BA.debugLine="For poli = 0 To pol.RowCount -1";
{
final int step40 = 1;
final int limit40 = (int) (_pol.getRowCount()-1);
_poli = (int) (0) ;
for (;_poli <= limit40 ;_poli = _poli + step40 ) {
RDebugUtils.currentLine=16646189;
 //BA.debugLineNum = 16646189;BA.debugLine="pol.Position = poli";
_pol.setPosition(_poli);
RDebugUtils.currentLine=16646190;
 //BA.debugLineNum = 16646190;BA.debugLine="Dim coords As LatLng";
_coords = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
RDebugUtils.currentLine=16646191;
 //BA.debugLineNum = 16646191;BA.debugLine="coords.Initialize(pol.GetString(\"LAT\"), pol.Get";
_coords.Initialize((double)(Double.parseDouble(_pol.GetString("LAT"))),(double)(Double.parseDouble(_pol.GetString("LONG"))));
RDebugUtils.currentLine=16646192;
 //BA.debugLineNum = 16646192;BA.debugLine="lista_punta.Add(coords)";
__ref._lista_punta /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_coords.getObject()));
 }
};
 };
RDebugUtils.currentLine=16646196;
 //BA.debugLineNum = 16646196;BA.debugLine="If Not(Starter.GPS.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
RDebugUtils.currentLine=16646197;
 //BA.debugLineNum = 16646197;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo";
__c.ToastMessageShow(BA.ObjectToCharSequence("Debe Activar el GPS del Equipo."),__c.True);
RDebugUtils.currentLine=16646198;
 //BA.debugLineNum = 16646198;BA.debugLine="StartActivity(Starter.GPS.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 }else {
RDebugUtils.currentLine=16646200;
 //BA.debugLineNum = 16646200;BA.debugLine="Starter.GPS.Start(0, 0)";
_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .Start(ba,(long) (0),(float) (0));
 };
RDebugUtils.currentLine=16646203;
 //BA.debugLineNum = 16646203;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall");
RDebugUtils.currentLine=16646205;
 //BA.debugLineNum = 16646205;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=16646206;
 //BA.debugLineNum = 16646206;BA.debugLine="Dim Items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=16646207;
 //BA.debugLineNum = 16646207;BA.debugLine="Items.Initialize";
_items.Initialize();
RDebugUtils.currentLine=16646208;
 //BA.debugLineNum = 16646208;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCIÓN\")";
_items.Add((Object)("SELECCIONA UNA OPCIÓN"));
RDebugUtils.currentLine=16646209;
 //BA.debugLineNum = 16646209;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=16646210;
 //BA.debugLineNum = 16646210;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=16646211;
 //BA.debugLineNum = 16646211;BA.debugLine="c.Position = i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=16646212;
 //BA.debugLineNum = 16646212;BA.debugLine="Items.Add(c.GetString(\"GIRO\"))";
_items.Add((Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("GIRO")));
 }
};
RDebugUtils.currentLine=16646214;
 //BA.debugLineNum = 16646214;BA.debugLine="cb_giro.SetItems(Items)";
__ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._setitems /*String*/ (null,_items);
 };
RDebugUtils.currentLine=16646216;
 //BA.debugLineNum = 16646216;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
__ref._giros /*String*/  = "SELECCIONA UNA OPCIÓN";
RDebugUtils.currentLine=16646217;
 //BA.debugLineNum = 16646217;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16646218;
 //BA.debugLineNum = 16646218;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(SHARK2.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=16711680;
 //BA.debugLineNum = 16711680;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=16711681;
 //BA.debugLineNum = 16711681;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
if ((_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0.0") == false) { 
RDebugUtils.currentLine=16711682;
 //BA.debugLineNum = 16711682;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostra";
__ref._guarda /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=16711683;
 //BA.debugLineNum = 16711683;BA.debugLine="l_sinUbicacion.Visible = True";
__ref._l_sinubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=16711684;
 //BA.debugLineNum = 16711684;BA.debugLine="lat = Location1.Latitude";
__ref._lat /*double*/  = _location1.getLatitude();
RDebugUtils.currentLine=16711685;
 //BA.debugLineNum = 16711685;BA.debugLine="lon = Location1.Longitude";
__ref._lon /*double*/  = _location1.getLongitude();
RDebugUtils.currentLine=16711686;
 //BA.debugLineNum = 16711686;BA.debugLine="l_sinUbicacion.Text = (\"Latitud: \" & lat & \", Lo";
__ref._l_sinubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Latitud: "+BA.NumberToString(__ref._lat /*double*/ )+", Longotud: "+BA.NumberToString(__ref._lon /*double*/ ))));
 };
RDebugUtils.currentLine=16711689;
 //BA.debugLineNum = 16711689;BA.debugLine="b_ubicacion.TextSize = 13";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (13));
RDebugUtils.currentLine=16711690;
 //BA.debugLineNum = 16711690;BA.debugLine="b_ubicacion.Text = $\"Precisión GPS $1.0{Location1";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Precisión GPS "+__c.SmartStringFormatter("1.0",(Object)(_location1.getAccuracy()))+" m")));
RDebugUtils.currentLine=16711691;
 //BA.debugLineNum = 16711691;BA.debugLine="If Location1.Accuracy > 200 Then";
if (_location1.getAccuracy()>200) { 
RDebugUtils.currentLine=16711692;
 //BA.debugLineNum = 16711692;BA.debugLine="b_ubicacion.TextColor = Colors.Red";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Red);
RDebugUtils.currentLine=16711693;
 //BA.debugLineNum = 16711693;BA.debugLine="b_ubicacion.TextSize = 16";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (16));
RDebugUtils.currentLine=16711694;
 //BA.debugLineNum = 16711694;BA.debugLine="b_ubicacion.Text = $\"Mala señal $1.0{Location1.A";
__ref._b_ubicacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Mala señal "+__c.SmartStringFormatter("1.0",(Object)(_location1.getAccuracy()))+" m")));
 };
RDebugUtils.currentLine=16711696;
 //BA.debugLineNum = 16711696;BA.debugLine="End Sub";
return "";
}
public void  _b4xpage_created(SHARK2.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(SHARK2.keymon.com.mx.c_nuevocliente parent,SHARK2.keymon.com.mx.c_nuevocliente __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) {
this.parent = parent;
this.__ref = __ref;
this._root1 = _root1;
this.__ref = parent;
}
SHARK2.keymon.com.mx.c_nuevocliente __ref;
SHARK2.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=16580610;
 //BA.debugLineNum = 16580610;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=16580612;
 //BA.debugLineNum = 16580612;BA.debugLine="Root.LoadLayout(\"nuevocliente\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("nuevocliente",ba);
RDebugUtils.currentLine=16580613;
 //BA.debugLineNum = 16580613;BA.debugLine="ruta = File.DirInternal";
__ref._ruta /*String*/  = parent.__c.File.getDirInternal();
RDebugUtils.currentLine=16580614;
 //BA.debugLineNum = 16580614;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=16580615;
 //BA.debugLineNum = 16580615;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=16580629;
 //BA.debugLineNum = 16580629;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=16580630;
 //BA.debugLineNum = 16580630;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=16580631;
 //BA.debugLineNum = 16580631;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=16580632;
 //BA.debugLineNum = 16580632;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("516580632","Con permisos para escritura",0);
 if (true) break;

case 9:
//C
this.state = 10;
RDebugUtils.currentLine=16580634;
 //BA.debugLineNum = 16580634;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=16580637;
 //BA.debugLineNum = 16580637;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=16580638;
 //BA.debugLineNum = 16580638;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=16580639;
 //BA.debugLineNum = 16580639;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=16580640;
 //BA.debugLineNum = 16580640;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("516580640","Con permisos para escritura",0);
 if (true) break;

case 15:
//C
this.state = 16;
RDebugUtils.currentLine=16580642;
 //BA.debugLineNum = 16580642;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=16580644;
 //BA.debugLineNum = 16580644;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _cancela_click(SHARK2.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=16777216;
 //BA.debugLineNum = 16777216;BA.debugLine="Sub CANCELA_Click";
RDebugUtils.currentLine=16777217;
 //BA.debugLineNum = 16777217;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
RDebugUtils.currentLine=16777218;
 //BA.debugLineNum = 16777218;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLP");
RDebugUtils.currentLine=16777219;
 //BA.debugLineNum = 16777219;BA.debugLine="End Sub";
return "";
}
public String  _cb_giro_selectedindexchanged(SHARK2.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=17039360;
 //BA.debugLineNum = 17039360;BA.debugLine="Private Sub cb_giro_SelectedIndexChanged (Index As";
RDebugUtils.currentLine=17039361;
 //BA.debugLineNum = 17039361;BA.debugLine="giros = cb_giro.SelectedItem";
__ref._giros /*String*/  = __ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null);
RDebugUtils.currentLine=17039362;
 //BA.debugLineNum = 17039362;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(SHARK2.keymon.com.mx.c_nuevocliente __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_nuevocliente";
RDebugUtils.currentLine=16449536;
 //BA.debugLineNum = 16449536;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=16449537;
 //BA.debugLineNum = 16449537;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=16449538;
 //BA.debugLineNum = 16449538;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=16449540;
 //BA.debugLineNum = 16449540;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=16449541;
 //BA.debugLineNum = 16449541;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=16449542;
 //BA.debugLineNum = 16449542;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=16449544;
 //BA.debugLineNum = 16449544;BA.debugLine="Dim CANCELA As Button";
_cancela = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=16449545;
 //BA.debugLineNum = 16449545;BA.debugLine="Dim GUARDA As Button";
_guarda = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=16449546;
 //BA.debugLineNum = 16449546;BA.debugLine="Dim cuenta As String";
_cuenta = "";
RDebugUtils.currentLine=16449547;
 //BA.debugLineNum = 16449547;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=16449548;
 //BA.debugLineNum = 16449548;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=16449549;
 //BA.debugLineNum = 16449549;BA.debugLine="Dim sDate2,sTime2 As String";
_sdate2 = "";
_stime2 = "";
RDebugUtils.currentLine=16449550;
 //BA.debugLineNum = 16449550;BA.debugLine="Dim no_cliente As String";
_no_cliente = "";
RDebugUtils.currentLine=16449551;
 //BA.debugLineNum = 16449551;BA.debugLine="Dim no_ruta As String";
_no_ruta = "";
RDebugUtils.currentLine=16449552;
 //BA.debugLineNum = 16449552;BA.debugLine="Dim lista_punta As List";
_lista_punta = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=16449553;
 //BA.debugLineNum = 16449553;BA.debugLine="Dim r_4 As RadioButton";
_r_4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=16449554;
 //BA.debugLineNum = 16449554;BA.debugLine="Dim E_NOMBRE As EditText";
_e_nombre = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=16449555;
 //BA.debugLineNum = 16449555;BA.debugLine="Dim tgl As Toggle";
_tgl = new com.rootsoft.togglelibrary.ToggleLibrary();
RDebugUtils.currentLine=16449556;
 //BA.debugLineNum = 16449556;BA.debugLine="Private l_sinUbicacion As Label";
_l_sinubicacion = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16449557;
 //BA.debugLineNum = 16449557;BA.debugLine="Private p_nuevoCliente As Panel";
_p_nuevocliente = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=16449558;
 //BA.debugLineNum = 16449558;BA.debugLine="Private Label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16449559;
 //BA.debugLineNum = 16449559;BA.debugLine="Private p_botones As Panel";
_p_botones = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=16449560;
 //BA.debugLineNum = 16449560;BA.debugLine="Private p_cam As Panel";
_p_cam = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=16449561;
 //BA.debugLineNum = 16449561;BA.debugLine="Private p_camara As Panel";
_p_camara = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=16449562;
 //BA.debugLineNum = 16449562;BA.debugLine="Private b_foto_inci As Button";
_b_foto_inci = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=16449564;
 //BA.debugLineNum = 16449564;BA.debugLine="Dim frontCamera As Boolean = False";
_frontcamera = __c.False;
RDebugUtils.currentLine=16449565;
 //BA.debugLineNum = 16449565;BA.debugLine="Dim fototomada As String = \"0\"";
_fototomada = "0";
RDebugUtils.currentLine=16449566;
 //BA.debugLineNum = 16449566;BA.debugLine="Dim ALMACEN As String";
_almacen = "";
RDebugUtils.currentLine=16449567;
 //BA.debugLineNum = 16449567;BA.debugLine="Private et_direccion As EditText";
_et_direccion = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=16449568;
 //BA.debugLineNum = 16449568;BA.debugLine="Private Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16449569;
 //BA.debugLineNum = 16449569;BA.debugLine="Dim lat As Double = 0";
_lat = 0;
RDebugUtils.currentLine=16449570;
 //BA.debugLineNum = 16449570;BA.debugLine="Dim lon As Double = 0";
_lon = 0;
RDebugUtils.currentLine=16449571;
 //BA.debugLineNum = 16449571;BA.debugLine="Private b_ubicacion As Label";
_b_ubicacion = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16449572;
 //BA.debugLineNum = 16449572;BA.debugLine="Private Label3 As Label";
_label3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16449573;
 //BA.debugLineNum = 16449573;BA.debugLine="Private cb_giro As B4XComboBox";
_cb_giro = new SHARK2.keymon.com.mx.b4xcombobox();
RDebugUtils.currentLine=16449574;
 //BA.debugLineNum = 16449574;BA.debugLine="Dim giros As String";
_giros = "";
RDebugUtils.currentLine=16449575;
 //BA.debugLineNum = 16449575;BA.debugLine="Private L_Atiende As Label";
_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16449576;
 //BA.debugLineNum = 16449576;BA.debugLine="Private ET_Atiende As EditText";
_et_atiende = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=16449577;
 //BA.debugLineNum = 16449577;BA.debugLine="Private Label5 As Label";
_label5 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16449578;
 //BA.debugLineNum = 16449578;BA.debugLine="Private et_colonia As EditText";
_et_colonia = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=16449579;
 //BA.debugLineNum = 16449579;BA.debugLine="Private et_telefono As EditText";
_et_telefono = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=16449580;
 //BA.debugLineNum = 16449580;BA.debugLine="Private et_cp As EditText";
_et_cp = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=16449581;
 //BA.debugLineNum = 16449581;BA.debugLine="Private Label6 As Label";
_label6 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=16449582;
 //BA.debugLineNum = 16449582;BA.debugLine="End Sub";
return "";
}
public String  _guarda_click(SHARK2.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 = "";
RDebugUtils.currentLine=16908288;
 //BA.debugLineNum = 16908288;BA.debugLine="Sub GUARDA_Click";
RDebugUtils.currentLine=16908297;
 //BA.debugLineNum = 16908297;BA.debugLine="ToastMessageShow(\"El punto está DENTRO del polí";
__c.ToastMessageShow(BA.ObjectToCharSequence("El punto está DENTRO del polígono"),__c.True);
RDebugUtils.currentLine=16908298;
 //BA.debugLineNum = 16908298;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
RDebugUtils.currentLine=16908302;
 //BA.debugLineNum = 16908302;BA.debugLine="If E_NOMBRE.Text = \"\" Then";
if ((__ref._e_nombre /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { 
RDebugUtils.currentLine=16908303;
 //BA.debugLineNum = 16908303;BA.debugLine="MsgboxAsync(\"Por favor captura el nombre de la";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura el nombre de la Tienda"),BA.ObjectToCharSequence("Atención"),ba);
 }else 
{RDebugUtils.currentLine=16908305;
 //BA.debugLineNum = 16908305;BA.debugLine="Else If et_direccion.Text.Length > 3 Then";
if (__ref._et_direccion /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText().length()>3) { 
RDebugUtils.currentLine=16908307;
 //BA.debugLineNum = 16908307;BA.debugLine="If lat <> 0 Then";
if (__ref._lat /*double*/ !=0) { 
RDebugUtils.currentLine=16908309;
 //BA.debugLineNum = 16908309;BA.debugLine="If giros <> \"SELECCIONA UNA OPCIÓN\" Or cb_gir";
if ((__ref._giros /*String*/ ).equals("SELECCIONA UNA OPCIÓN") == false || (__ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null)).equals("SELECCIONA UNA OPCIÓN") == false) { 
RDebugUtils.currentLine=16908311;
 //BA.debugLineNum = 16908311;BA.debugLine="If ET_Atiende.Text <> \"\" Then";
if ((__ref._et_atiende /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=16908312;
 //BA.debugLineNum = 16908312;BA.debugLine="If et_colonia.Text <> \"\" Then";
if ((__ref._et_colonia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=16908313;
 //BA.debugLineNum = 16908313;BA.debugLine="If et_colonia.Text <> \"\" Then";
if ((__ref._et_colonia /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=16908314;
 //BA.debugLineNum = 16908314;BA.debugLine="If et_cp.Text <> \"\" Then";
if ((__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { 
RDebugUtils.currentLine=16908316;
 //BA.debugLineNum = 16908316;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=16908317;
 //BA.debugLineNum = 16908317;BA.debugLine="DateTime.Timeformat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=16908318;
 //BA.debugLineNum = 16908318;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=16908319;
 //BA.debugLineNum = 16908319;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=16908320;
 //BA.debugLineNum = 16908320;BA.debugLine="Log($\" ////////////   Date: ${sDate} - T";
__c.LogImpl("516908320",(" ////////////   Date: "+__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ ))+" - Time: "+__c.SmartStringFormatter("",(Object)(__ref._stime /*String*/ ))+" ////////////////"),0);
RDebugUtils.currentLine=16908322;
 //BA.debugLineNum = 16908322;BA.debugLine="Private hora As String = sTime.SubString";
_hora = __ref._stime /*String*/ .substring((int) (0),(int) (2));
RDebugUtils.currentLine=16908323;
 //BA.debugLineNum = 16908323;BA.debugLine="Private mins As String = sTime.SubString";
_mins = __ref._stime /*String*/ .substring((int) (2),(int) (4));
RDebugUtils.currentLine=16908324;
 //BA.debugLineNum = 16908324;BA.debugLine="Private segs As String = sTime.SubString";
_segs = __ref._stime /*String*/ .substring((int) (4));
RDebugUtils.currentLine=16908325;
 //BA.debugLineNum = 16908325;BA.debugLine="sTime = hora & \":\" & mins & \":\" & segs";
__ref._stime /*String*/  = _hora+":"+_mins+":"+_segs;
RDebugUtils.currentLine=16908326;
 //BA.debugLineNum = 16908326;BA.debugLine="Log(\"////////////// sTime: \"&sTime&\" ///";
__c.LogImpl("516908326","////////////// sTime: "+__ref._stime /*String*/ +" ////////////////",0);
RDebugUtils.currentLine=16908327;
 //BA.debugLineNum = 16908327;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_info")));
RDebugUtils.currentLine=16908328;
 //BA.debugLineNum = 16908328;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=16908329;
 //BA.debugLineNum = 16908329;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=16908330;
 //BA.debugLineNum = 16908330;BA.debugLine="no_cliente = \"N\" & sTime & no_ruta";
__ref._no_cliente /*String*/  = "N"+__ref._stime /*String*/ +__ref._no_ruta /*String*/ ;
RDebugUtils.currentLine=16908331;
 //BA.debugLineNum = 16908331;BA.debugLine="Log(\"++ ++ no_cliente = \"&no_cliente)";
__c.LogImpl("516908331","++ ++ no_cliente = "+__ref._no_cliente /*String*/ ,0);
RDebugUtils.currentLine=16908332;
 //BA.debugLineNum = 16908332;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16908334;
 //BA.debugLineNum = 16908334;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=16908335;
 //BA.debugLineNum = 16908335;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from C";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=16908336;
 //BA.debugLineNum = 16908336;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=16908337;
 //BA.debugLineNum = 16908337;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=16908338;
 //BA.debugLineNum = 16908338;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=16908339;
 //BA.debugLineNum = 16908339;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=16908340;
 //BA.debugLineNum = 16908340;BA.debugLine="ALMACEN = c.GetString(\"ID_ALMACEN\")";
__ref._almacen /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");
 };
RDebugUtils.currentLine=16908342;
 //BA.debugLineNum = 16908342;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16908343;
 //BA.debugLineNum = 16908343;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=16908344;
 //BA.debugLineNum = 16908344;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=16908345;
 //BA.debugLineNum = 16908345;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=16908346;
 //BA.debugLineNum = 16908346;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=16908350;
 //BA.debugLineNum = 16908350;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=16908351;
 //BA.debugLineNum = 16908351;BA.debugLine="DateTime.Timeformat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=16908352;
 //BA.debugLineNum = 16908352;BA.debugLine="sDate2 = DateTime.Date(DateTime.Now)";
__ref._sdate2 /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=16908353;
 //BA.debugLineNum = 16908353;BA.debugLine="sTime2 = DateTime.Time(DateTime.Now)";
__ref._stime2 /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=16908355;
 //BA.debugLineNum = 16908355;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("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, CAT_CL_GIRO,CAT_CL_CP) 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 /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*SHARK2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(__ref._cb_giro /*SHARK2.keymon.com.mx.b4xcombobox*/ ._getselecteditem /*String*/ (null)),(Object)(__ref._et_cp /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}));
RDebugUtils.currentLine=16908356;
 //BA.debugLineNum = 16908356;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) 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 /*SHARK2.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()}));
RDebugUtils.currentLine=16908358;
 //BA.debugLineNum = 16908358;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=16908359;
 //BA.debugLineNum = 16908359;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLP");
 }else {
RDebugUtils.currentLine=16908361;
 //BA.debugLineNum = 16908361;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar el C.P. el negocio."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=16908364;
 //BA.debugLineNum = 16908364;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar la";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar la colonia el negocio."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=16908367;
 //BA.debugLineNum = 16908367;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el t";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar el telfono."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=16908371;
 //BA.debugLineNum = 16908371;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar al en";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar al encargado que atiende el negocio."),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=16908374;
 //BA.debugLineNum = 16908374;BA.debugLine="MsgboxAsync(\"Por favor captura el giro del c";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura el giro del cliente"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=16908377;
 //BA.debugLineNum = 16908377;BA.debugLine="MsgboxAsync(\"Por favor revisa que tengas seña";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor revisa que tengas señal GPS"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
RDebugUtils.currentLine=16908380;
 //BA.debugLineNum = 16908380;BA.debugLine="MsgboxAsync(\"Por favor captura la dirección de";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura la dirección del cliente"),BA.ObjectToCharSequence("Atención"),ba);
 }}
;
RDebugUtils.currentLine=16908387;
 //BA.debugLineNum = 16908387;BA.debugLine="End Sub";
return "";
}
public String  _p_nuevocliente_click(SHARK2.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=16973824;
 //BA.debugLineNum = 16973824;BA.debugLine="Private Sub p_nuevoCliente_Click";
RDebugUtils.currentLine=16973826;
 //BA.debugLineNum = 16973826;BA.debugLine="End Sub";
return "";
}
public boolean  _pointinpolygon(SHARK2.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=16842752;
 //BA.debugLineNum = 16842752;BA.debugLine="Sub PointInPolygon(point As LatLng, polygon As Lis";
RDebugUtils.currentLine=16842753;
 //BA.debugLineNum = 16842753;BA.debugLine="Dim x As Double = point.Longitude";
_x = _point.getLongitude();
RDebugUtils.currentLine=16842754;
 //BA.debugLineNum = 16842754;BA.debugLine="Dim y As Double = point.Latitude";
_y = _point.getLatitude();
RDebugUtils.currentLine=16842756;
 //BA.debugLineNum = 16842756;BA.debugLine="Dim inside As Boolean = False";
_inside = __c.False;
RDebugUtils.currentLine=16842757;
 //BA.debugLineNum = 16842757;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=16842758;
 //BA.debugLineNum = 16842758;BA.debugLine="Dim j As Int = (i + 1) Mod polygon.Size";
_j = (int) ((_i+1)%_polygon.getSize());
RDebugUtils.currentLine=16842759;
 //BA.debugLineNum = 16842759;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=16842760;
 //BA.debugLineNum = 16842760;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=16842762;
 //BA.debugLineNum = 16842762;BA.debugLine="Dim xi As Double = p1_1.Longitude";
_xi = _p1_1.getLongitude();
RDebugUtils.currentLine=16842763;
 //BA.debugLineNum = 16842763;BA.debugLine="Dim yi As Double = p1_1.Latitude";
_yi = _p1_1.getLatitude();
RDebugUtils.currentLine=16842764;
 //BA.debugLineNum = 16842764;BA.debugLine="Dim xj As Double = p2_1.Longitude";
_xj = _p2_1.getLongitude();
RDebugUtils.currentLine=16842765;
 //BA.debugLineNum = 16842765;BA.debugLine="Dim yj As Double = p2_1.Latitude";
_yj = _p2_1.getLatitude();
RDebugUtils.currentLine=16842767;
 //BA.debugLineNum = 16842767;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=16842768;
 //BA.debugLineNum = 16842768;BA.debugLine="If intersect Then";
if (_intersect) { 
RDebugUtils.currentLine=16842769;
 //BA.debugLineNum = 16842769;BA.debugLine="inside = Not(inside)";
_inside = __c.Not(_inside);
 };
 }
};
RDebugUtils.currentLine=16842773;
 //BA.debugLineNum = 16842773;BA.debugLine="Return inside";
if (true) return _inside;
RDebugUtils.currentLine=16842776;
 //BA.debugLineNum = 16842776;BA.debugLine="End Sub";
return false;
}
}