package gunav2.keymon.com.mx;


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

public class c_bitacora 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_bitacora");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_bitacora.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.sql.SQL _db = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root2 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_transparenteiniciofin2 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_inicio_fin_venta2 = null;
public int _contadoriniciarventa = 0;
public int _precision = 0;
public boolean _inivenno = false;
public boolean _dentrodegeocerca = false;
public boolean _enventa = false;
public String _motivonoventa = "";
public String _motivonovisita = "";
public String _banderageocerca = "";
public gunav2.keymon.com.mx.dbrequestmanager _reqmanager = 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 String  _mandabitacora(gunav2.keymon.com.mx.c_bitacora __ref,String _fechab,String _usuariob,String _almacenb,String _rutab,String _eventob,String _clienteb,String _iniciob,String _finb,String _latitudb,String _longitudb,String _precisionb,String _motivonoventab,String _motivonovisitab,String _ban_geob) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "mandabitacora", false))
	 {return ((String) Debug.delegate(ba, "mandabitacora", new Object[] {_fechab,_usuariob,_almacenb,_rutab,_eventob,_clienteb,_iniciob,_finb,_latitudb,_longitudb,_precisionb,_motivonoventab,_motivonovisitab,_ban_geob}));}
gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
String _nombrecliente = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _e = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
RDebugUtils.currentLine=69074944;
 //BA.debugLineNum = 69074944;BA.debugLine="Sub mandaBitacora(fechab As String, usuariob As St";
RDebugUtils.currentLine=69074945;
 //BA.debugLineNum = 69074945;BA.debugLine="Log(motivoNoVisitab)";
__c.LogImpl("069074945",_motivonovisitab,0);
RDebugUtils.currentLine=69074947;
 //BA.debugLineNum = 69074947;BA.debugLine="Private cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
RDebugUtils.currentLine=69074948;
 //BA.debugLineNum = 69074948;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
RDebugUtils.currentLine=69074949;
 //BA.debugLineNum = 69074949;BA.debugLine="cmd.Name = \"mandaBitacora3_GUNA\"";
_cmd.Name /*String*/  = "mandaBitacora3_GUNA";
RDebugUtils.currentLine=69074951;
 //BA.debugLineNum = 69074951;BA.debugLine="Private nombreCliente As String = traeNombreClien";
_nombrecliente = __ref._traenombrecliente /*String*/ (null,_clienteb);
RDebugUtils.currentLine=69074952;
 //BA.debugLineNum = 69074952;BA.debugLine="If eventob = \"Llega a almacen\" Then";
if ((_eventob).equals("Llega a almacen")) { 
RDebugUtils.currentLine=69074953;
 //BA.debugLineNum = 69074953;BA.debugLine="nombreCliente = \"BOLETA\"";
_nombrecliente = "BOLETA";
RDebugUtils.currentLine=69074954;
 //BA.debugLineNum = 69074954;BA.debugLine="clienteb = \"\"";
_clienteb = "";
RDebugUtils.currentLine=69074955;
 //BA.debugLineNum = 69074955;BA.debugLine="finb = iniciob";
_finb = _iniciob;
 };
RDebugUtils.currentLine=69074957;
 //BA.debugLineNum = 69074957;BA.debugLine="If eventob = \"Salida almacen\" Then nombreCliente";
if ((_eventob).equals("Salida almacen")) { 
_nombrecliente = "CHECKLIST";};
RDebugUtils.currentLine=69074958;
 //BA.debugLineNum = 69074958;BA.debugLine="If eventob = \"Fin Día\" Then nombreCliente = \"FIN";
if ((_eventob).equals("Fin Día")) { 
_nombrecliente = "FIN DIA";};
RDebugUtils.currentLine=69074959;
 //BA.debugLineNum = 69074959;BA.debugLine="If eventob = \"Carga día\" Then nombreCliente = \"CA";
if ((_eventob).equals("Carga día")) { 
_nombrecliente = "CARGA DIA";};
RDebugUtils.currentLine=69074960;
 //BA.debugLineNum = 69074960;BA.debugLine="If eventob = \"Carga día suplencia\" Then nombreCli";
if ((_eventob).equals("Carga día suplencia")) { 
_nombrecliente = __ref._traerutassup /*String*/ (null);};
RDebugUtils.currentLine=69074961;
 //BA.debugLineNum = 69074961;BA.debugLine="If eventob <> \"Termina Venta\" And eventob <> \"No";
if ((_eventob).equals("Termina Venta") == false && (_eventob).equals("No Venta") == false) { 
RDebugUtils.currentLine=69074962;
 //BA.debugLineNum = 69074962;BA.debugLine="db.ExecNonQuery($\"INSERT INTO BITACORAGPS (fecha";
__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO BITACORAGPS (fechab, usuariob , almacenb , rutab , eventob , clienteb , iniciob , finb , latitudb, longitudb , precision , motivonoventa , motivonovisita, BAN_GEOB) VALUES ('"+__c.SmartStringFormatter("",(Object)(_fechab))+"' ,'"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' , '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' , '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' , '"+__c.SmartStringFormatter("",(Object)(_eventob))+"' , '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' , '"+__c.SmartStringFormatter("",(Object)(_iniciob))+"' , '"+__c.SmartStringFormatter("",(Object)(_finb))+"' , '"+__c.SmartStringFormatter("",(Object)(_latitudb))+"' , '"+__c.SmartStringFormatter("",(Object)(_longitudb))+"' , '"+__c.SmartStringFormatter("",(Object)(_precisionb))+"' , '"+__c.SmartStringFormatter("",(Object)(_motivonoventab))+"' , '"+__c.SmartStringFormatter("",(Object)(_motivonovisitab))+"', '"+__c.SmartStringFormatter("",(Object)(_ban_geob))+"')"));
 }else {
RDebugUtils.currentLine=69074964;
 //BA.debugLineNum = 69074964;BA.debugLine="Private e As Cursor = db.ExecQuery($\"select fech";
_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select fechab from BITACORAGPS where usuariob = '"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' and almacenb = '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' and rutab = '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' and clienteb = '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' and eventob = 'Inicia Venta' order by fechab desc"))));
RDebugUtils.currentLine=69074965;
 //BA.debugLineNum = 69074965;BA.debugLine="If e.RowCount > 0 Then";
if (_e.getRowCount()>0) { 
RDebugUtils.currentLine=69074966;
 //BA.debugLineNum = 69074966;BA.debugLine="e.Position = 0";
_e.setPosition((int) (0));
RDebugUtils.currentLine=69074967;
 //BA.debugLineNum = 69074967;BA.debugLine="Log(\"ACTUALIZA BITACORA\")";
__c.LogImpl("069074967","ACTUALIZA BITACORA",0);
RDebugUtils.currentLine=69074968;
 //BA.debugLineNum = 69074968;BA.debugLine="If eventob = \"Termina Venta\" Then";
if ((_eventob).equals("Termina Venta")) { 
RDebugUtils.currentLine=69074969;
 //BA.debugLineNum = 69074969;BA.debugLine="db.ExecNonQuery($\"update BITACORAGPS set finb";
__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update BITACORAGPS set finb = '"+__c.SmartStringFormatter("",(Object)(_finb))+"' where rutab = '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' and almacenb = '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' and usuariob = '"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' and clienteb = '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' and fechab = '"+__c.SmartStringFormatter("",(Object)(_e.GetString("fechab")))+"' "));
RDebugUtils.currentLine=69074970;
 //BA.debugLineNum = 69074970;BA.debugLine="cmd.Parameters = Array As Object(finb, rutab,";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_finb),(Object)(_rutab),(Object)(_almacenb),(Object)(_usuariob),(Object)(_clienteb),(Object)("Inicia Venta"),(Object)(_e.GetString("fechab"))};
 }else 
{RDebugUtils.currentLine=69074971;
 //BA.debugLineNum = 69074971;BA.debugLine="else if  eventob = \"No Venta\" Then";
if ((_eventob).equals("No Venta")) { 
RDebugUtils.currentLine=69074972;
 //BA.debugLineNum = 69074972;BA.debugLine="db.ExecNonQuery($\"update BITACORAGPS set finb";
__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update BITACORAGPS set finb = '"+__c.SmartStringFormatter("",(Object)(_finb))+"', motivonoventa = '"+__c.SmartStringFormatter("",(Object)(_motivonoventab))+"', motivonovisita = '"+__c.SmartStringFormatter("",(Object)(_motivonovisitab))+"' where rutab = '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' and almacenb = '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' and usuariob = '"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' and clienteb = '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' and fechab = '"+__c.SmartStringFormatter("",(Object)(_e.GetString("fechab")))+"' "));
RDebugUtils.currentLine=69074973;
 //BA.debugLineNum = 69074973;BA.debugLine="cmd.Parameters = Array As Object(finb, motivoN";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_finb),(Object)(_motivonoventab),(Object)(_motivonovisitab),(Object)(_rutab),(Object)(_almacenb),(Object)(_usuariob),(Object)(_clienteb),(Object)("Inicia Venta"),(Object)(_e.GetString("fechab"))};
 }}
;
 };
 };
RDebugUtils.currentLine=69074977;
 //BA.debugLineNum = 69074977;BA.debugLine="If eventob <> \"Inicia Venta\" Then";
if ((_eventob).equals("Inicia Venta") == false) { 
RDebugUtils.currentLine=69074978;
 //BA.debugLineNum = 69074978;BA.debugLine="Private c As Cursor = db.ExecQuery($\"select * fr";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from BITACORAGPS where usuariob = '"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' and almacenb = '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' and rutab = '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' and clienteb = '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' order by fechab desc"))));
RDebugUtils.currentLine=69074979;
 //BA.debugLineNum = 69074979;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
RDebugUtils.currentLine=69074980;
 //BA.debugLineNum = 69074980;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
RDebugUtils.currentLine=69074981;
 //BA.debugLineNum = 69074981;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"a";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("almacenb")),(Object)(_c.GetString("usuariob")),(Object)(_c.GetString("rutab")),(Object)(_c.GetString("eventob")),(Object)(_c.GetString("clienteb")),(Object)(_nombrecliente),(Object)(_c.GetString("iniciob")),(Object)(_c.GetString("finb")),(Object)(_c.GetString("latitudb")),(Object)(_c.GetString("longitudb")),(Object)(_c.GetString("precision")),(Object)(_c.GetString("motivonoventa")),(Object)(_c.GetString("motivonovisita")),(Object)(_c.GetString("fechab")),(Object)(_c.GetString("BAN_GEOB"))};
RDebugUtils.currentLine=69074982;
 //BA.debugLineNum = 69074982;BA.debugLine="reqManager.ExecuteCommand(cmd , \"mandaBitacora\"";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (null,_cmd,(Object)("mandaBitacora"));
 };
 };
RDebugUtils.currentLine=69074986;
 //BA.debugLineNum = 69074986;BA.debugLine="End Sub";
return "";
}
public Object  _initialize(gunav2.keymon.com.mx.c_bitacora __ref,anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname,anywheresoftware.b4a.objects.B4XViewWrapper _vroot,anywheresoftware.b4a.sql.SQL _db1,gunav2.keymon.com.mx.dbrequestmanager _dbreq) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba,_vcallback,_veventname,_vroot,_db1,_dbreq}));}
RDebugUtils.currentLine=68943872;
 //BA.debugLineNum = 68943872;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent";
RDebugUtils.currentLine=68943873;
 //BA.debugLineNum = 68943873;BA.debugLine="db = db1";
__ref._db /*anywheresoftware.b4a.sql.SQL*/  = _db1;
RDebugUtils.currentLine=68943874;
 //BA.debugLineNum = 68943874;BA.debugLine="Root2 = vRoot";
__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _vroot;
RDebugUtils.currentLine=68943875;
 //BA.debugLineNum = 68943875;BA.debugLine="reqManager = DBReq";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/  = _dbreq;
RDebugUtils.currentLine=68943876;
 //BA.debugLineNum = 68943876;BA.debugLine="db.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS BITAC";
__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS BITACORAGPS(fechab TEXT, usuariob TEXT, almacenb TEXT, rutab TEXT, eventob TEXT, clienteb TEXT, iniciob TEXT, finb TEXT, latitudb TEXT, longitudb TEXT, precision TEXT, motivonoventa TEXT, motivonovisita TEXT, BAN_GEOB TEXT)");
RDebugUtils.currentLine=68943877;
 //BA.debugLineNum = 68943877;BA.debugLine="agregaColumna(\"BITACORAGPS\", \"BAN_GEOB\", \"TEXT\")";
__ref._agregacolumna /*String*/ (null,"BITACORAGPS","BAN_GEOB","TEXT");
RDebugUtils.currentLine=68943878;
 //BA.debugLineNum = 68943878;BA.debugLine="contadorIniciarVenta = 0";
__ref._contadoriniciarventa /*int*/  = (int) (0);
RDebugUtils.currentLine=68943879;
 //BA.debugLineNum = 68943879;BA.debugLine="cargamosPanel";
__ref._cargamospanel /*String*/ (null);
RDebugUtils.currentLine=68943880;
 //BA.debugLineNum = 68943880;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=68943881;
 //BA.debugLineNum = 68943881;BA.debugLine="End Sub";
return null;
}
public String  _iniciofin(gunav2.keymon.com.mx.c_bitacora __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "iniciofin", false))
	 {return ((String) Debug.delegate(ba, "iniciofin", null));}
RDebugUtils.currentLine=69271552;
 //BA.debugLineNum = 69271552;BA.debugLine="Sub inicioFin";
RDebugUtils.currentLine=69271553;
 //BA.debugLineNum = 69271553;BA.debugLine="LogColor($\">>>>>>>>>>>>   XX EN VENTA : ${enVenta";
__c.LogImpl("069271553",(">>>>>>>>>>>>   XX EN VENTA : "+__c.SmartStringFormatter("",(Object)(__ref._enventa /*boolean*/ ))+"    <<<<<<<<<<<<"),__c.Colors.Blue);
RDebugUtils.currentLine=69271554;
 //BA.debugLineNum = 69271554;BA.debugLine="Log(b_Inicio_Fin_venta2.Text)";
__c.LogImpl("069271554",__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getText(),0);
RDebugUtils.currentLine=69271555;
 //BA.debugLineNum = 69271555;BA.debugLine="If  enVenta = False Then";
if (__ref._enventa /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=69271556;
 //BA.debugLineNum = 69271556;BA.debugLine="p_transparenteInicioFin2.BringToFront";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=69271557;
 //BA.debugLineNum = 69271557;BA.debugLine="p_transparenteInicioFin2.Visible = True";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
 }else {
RDebugUtils.currentLine=69271561;
 //BA.debugLineNum = 69271561;BA.debugLine="If b_Inicio_Fin_venta2.Text <> \"TERMINAR VISITA\"";
if ((__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getText()).equals("TERMINAR VISITA") == false) { 
RDebugUtils.currentLine=69271562;
 //BA.debugLineNum = 69271562;BA.debugLine="p_transparenteInicioFin2.Visible = False";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 };
 };
RDebugUtils.currentLine=69271566;
 //BA.debugLineNum = 69271566;BA.debugLine="End Sub";
return "";
}
public String  _agregacolumna(gunav2.keymon.com.mx.c_bitacora __ref,String _tabla,String _columna,String _tipo) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "agregacolumna", false))
	 {return ((String) Debug.delegate(ba, "agregacolumna", new Object[] {_tabla,_columna,_tipo}));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
RDebugUtils.currentLine=69599232;
 //BA.debugLineNum = 69599232;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
RDebugUtils.currentLine=69599233;
 //BA.debugLineNum = 69599233;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
try {RDebugUtils.currentLine=69599234;
 //BA.debugLineNum = 69599234;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) AS fCol FROM pragma_table_info('"+__c.SmartStringFormatter("",(Object)(_tabla))+"') WHERE name='"+__c.SmartStringFormatter("",(Object)(_columna))+"'"))));
RDebugUtils.currentLine=69599235;
 //BA.debugLineNum = 69599235;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
RDebugUtils.currentLine=69599236;
 //BA.debugLineNum = 69599236;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=69599237;
 //BA.debugLineNum = 69599237;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
RDebugUtils.currentLine=69599238;
 //BA.debugLineNum = 69599238;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("069599238",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
 };
 } 
       catch (Exception e9) {
			ba.setLastException(e9);RDebugUtils.currentLine=69599242;
 //BA.debugLineNum = 69599242;BA.debugLine="Try";
try {RDebugUtils.currentLine=69599243;
 //BA.debugLineNum = 69599243;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
RDebugUtils.currentLine=69599244;
 //BA.debugLineNum = 69599244;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("069599244",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
 } 
       catch (Exception e13) {
			ba.setLastException(e13);RDebugUtils.currentLine=69599246;
 //BA.debugLineNum = 69599246;BA.debugLine="Log(LastException)";
__c.LogImpl("069599246",BA.ObjectToString(__c.LastException(ba)),0);
 };
RDebugUtils.currentLine=69599248;
 //BA.debugLineNum = 69599248;BA.debugLine="Log(2)";
__c.LogImpl("069599248",BA.NumberToString(2),0);
 };
RDebugUtils.currentLine=69599250;
 //BA.debugLineNum = 69599250;BA.debugLine="End Sub";
return "";
}
public String  _b_inicio_fin_venta2_click(gunav2.keymon.com.mx.c_bitacora __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "b_inicio_fin_venta2_click", false))
	 {return ((String) Debug.delegate(ba, "b_inicio_fin_venta2_click", null));}
RDebugUtils.currentLine=69337088;
 //BA.debugLineNum = 69337088;BA.debugLine="Private Sub b_Inicio_Fin_venta2_Click";
RDebugUtils.currentLine=69337091;
 //BA.debugLineNum = 69337091;BA.debugLine="contadorIniciarVenta = 0";
__ref._contadoriniciarventa /*int*/  = (int) (0);
RDebugUtils.currentLine=69337092;
 //BA.debugLineNum = 69337092;BA.debugLine="IniVenNO = False";
__ref._inivenno /*boolean*/  = __c.False;
RDebugUtils.currentLine=69337093;
 //BA.debugLineNum = 69337093;BA.debugLine="If dentroDeGeocerca Then precision = 1";
if (__ref._dentrodegeocerca /*boolean*/ ) { 
__ref._precision /*int*/  = (int) (1);};
RDebugUtils.currentLine=69337095;
 //BA.debugLineNum = 69337095;BA.debugLine="LogColor($\">>>>>>>>>>>>   EN VENTA : ${enVenta}";
__c.LogImpl("069337095",(">>>>>>>>>>>>   EN VENTA : "+__c.SmartStringFormatter("",(Object)(__ref._enventa /*boolean*/ ))+"    <<<<<<<<<<<<"),__c.Colors.Blue);
RDebugUtils.currentLine=69337096;
 //BA.debugLineNum = 69337096;BA.debugLine="motivoNoVenta = \"\"";
__ref._motivonoventa /*String*/  = "";
RDebugUtils.currentLine=69337097;
 //BA.debugLineNum = 69337097;BA.debugLine="motivoNoVisita = \"\"";
__ref._motivonovisita /*String*/  = "";
RDebugUtils.currentLine=69337098;
 //BA.debugLineNum = 69337098;BA.debugLine="p_transparenteInicioFin2.Visible = False";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=69337099;
 //BA.debugLineNum = 69337099;BA.debugLine="If b_Inicio_Fin_venta2.Text = \"TERMINAR VISITA\" T";
if ((__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getText()).equals("TERMINAR VISITA")) { 
RDebugUtils.currentLine=69337100;
 //BA.debugLineNum = 69337100;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), Su";
__ref._mandabitacora /*String*/ (null,_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._traeusuariodebd /*String*/ (ba),_subs._traealmacen /*String*/ (ba),_subs._traerutabitacora /*String*/ (ba),"Termina Venta",_subs._traecliente /*String*/ (ba),"",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(__ref._precision /*int*/ ),__ref._motivonoventa /*String*/ ,__ref._motivonovisita /*String*/ ,__ref._banderageocerca /*String*/ );
RDebugUtils.currentLine=69337101;
 //BA.debugLineNum = 69337101;BA.debugLine="enVenta = False";
__ref._enventa /*boolean*/  = __c.False;
RDebugUtils.currentLine=69337102;
 //BA.debugLineNum = 69337102;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Colors";
__c.LogImpl("069337102",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(__ref._enventa /*boolean*/ ))+""),__c.Colors.Red);
RDebugUtils.currentLine=69337103;
 //BA.debugLineNum = 69337103;BA.debugLine="iniciamosVenta";
__ref._iniciamosventa /*String*/ (null);
RDebugUtils.currentLine=69337104;
 //BA.debugLineNum = 69337104;BA.debugLine="B4XPages.ShowPageAndRemovePreviousPages(\"Princip";
_b4xpages._showpageandremovepreviouspages /*String*/ (ba,"Principal");
 }else 
{RDebugUtils.currentLine=69337106;
 //BA.debugLineNum = 69337106;BA.debugLine="Else if b_Inicio_Fin_venta2.Text = \"INICIAR VISIT";
if ((__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getText()).equals("INICIAR VISITA")) { 
RDebugUtils.currentLine=69337107;
 //BA.debugLineNum = 69337107;BA.debugLine="contadorIniciarVenta = 0";
__ref._contadoriniciarventa /*int*/  = (int) (0);
RDebugUtils.currentLine=69337108;
 //BA.debugLineNum = 69337108;BA.debugLine="IniVenNO = False";
__ref._inivenno /*boolean*/  = __c.False;
RDebugUtils.currentLine=69337109;
 //BA.debugLineNum = 69337109;BA.debugLine="contadorIniciarVenta = contadorIniciarVenta + 1";
__ref._contadoriniciarventa /*int*/  = (int) (__ref._contadoriniciarventa /*int*/ +1);
RDebugUtils.currentLine=69337110;
 //BA.debugLineNum = 69337110;BA.debugLine="If contadorIniciarVenta = 1 And IniVenNO = False";
if (__ref._contadoriniciarventa /*int*/ ==1 && __ref._inivenno /*boolean*/ ==__c.False && (__ref._motivonoventa /*String*/ ).equals("NO VENTA") == false) { 
RDebugUtils.currentLine=69337111;
 //BA.debugLineNum = 69337111;BA.debugLine="IniVenNO = True";
__ref._inivenno /*boolean*/  = __c.True;
RDebugUtils.currentLine=69337112;
 //BA.debugLineNum = 69337112;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), S";
__ref._mandabitacora /*String*/ (null,_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._traeusuariodebd /*String*/ (ba),_subs._traealmacen /*String*/ (ba),_subs._traerutabitacora /*String*/ (ba),"Inicia Venta",_subs._traecliente /*String*/ (ba),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),"",_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(__ref._precision /*int*/ ),"","",__ref._banderageocerca /*String*/ );
RDebugUtils.currentLine=69337113;
 //BA.debugLineNum = 69337113;BA.debugLine="enVenta = True";
__ref._enventa /*boolean*/  = __c.True;
RDebugUtils.currentLine=69337114;
 //BA.debugLineNum = 69337114;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color";
__c.LogImpl("069337114",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(__ref._enventa /*boolean*/ ))+""),__c.Colors.Red);
 }else 
{RDebugUtils.currentLine=69337116;
 //BA.debugLineNum = 69337116;BA.debugLine="Else If contadorIniciarVenta = 1 And IniVenNO =";
if (__ref._contadoriniciarventa /*int*/ ==1 && __ref._inivenno /*boolean*/ ==__c.False && (__ref._motivonoventa /*String*/ ).equals("NO VENTA")) { 
RDebugUtils.currentLine=69337117;
 //BA.debugLineNum = 69337117;BA.debugLine="IniVenNO = True";
__ref._inivenno /*boolean*/  = __c.True;
RDebugUtils.currentLine=69337118;
 //BA.debugLineNum = 69337118;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), S";
__ref._mandabitacora /*String*/ (null,_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._traeusuariodebd /*String*/ (ba),_subs._traealmacen /*String*/ (ba),_subs._traerutabitacora /*String*/ (ba),"Inicia Venta",_subs._traecliente /*String*/ (ba),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),"",_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(__ref._precision /*int*/ ),__ref._motivonoventa /*String*/ ,"",__ref._banderageocerca /*String*/ );
RDebugUtils.currentLine=69337119;
 //BA.debugLineNum = 69337119;BA.debugLine="enVenta = True";
__ref._enventa /*boolean*/  = __c.True;
RDebugUtils.currentLine=69337120;
 //BA.debugLineNum = 69337120;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color";
__c.LogImpl("069337120",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(__ref._enventa /*boolean*/ ))+""),__c.Colors.Red);
 }else 
{RDebugUtils.currentLine=69337121;
 //BA.debugLineNum = 69337121;BA.debugLine="Else If contadorIniciarVenta > 1 Then";
if (__ref._contadoriniciarventa /*int*/ >1) { 
RDebugUtils.currentLine=69337122;
 //BA.debugLineNum = 69337122;BA.debugLine="p_transparenteInicioFin2.Visible = False";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
 }}}
;
 }}
;
RDebugUtils.currentLine=69337125;
 //BA.debugLineNum = 69337125;BA.debugLine="p_transparenteInicioFin2.Visible = False";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=69337126;
 //BA.debugLineNum = 69337126;BA.debugLine="LogColor($\">>>>>>>>>>>>   EN VENTA : ${enVenta}";
__c.LogImpl("069337126",(">>>>>>>>>>>>   EN VENTA : "+__c.SmartStringFormatter("",(Object)(__ref._enventa /*boolean*/ ))+"    <<<<<<<<<<<<"),__c.Colors.Blue);
RDebugUtils.currentLine=69337127;
 //BA.debugLineNum = 69337127;BA.debugLine="End Sub";
return "";
}
public String  _iniciamosventa(gunav2.keymon.com.mx.c_bitacora __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "iniciamosventa", false))
	 {return ((String) Debug.delegate(ba, "iniciamosventa", null));}
RDebugUtils.currentLine=69533696;
 //BA.debugLineNum = 69533696;BA.debugLine="Sub iniciamosVenta";
RDebugUtils.currentLine=69533697;
 //BA.debugLineNum = 69533697;BA.debugLine="enVenta = False";
__ref._enventa /*boolean*/  = __c.False;
RDebugUtils.currentLine=69533698;
 //BA.debugLineNum = 69533698;BA.debugLine="b_Inicio_Fin_venta2.Text = \"INICIAR VISITA\"";
__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("INICIAR VISITA"));
RDebugUtils.currentLine=69533699;
 //BA.debugLineNum = 69533699;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(gunav2.keymon.com.mx.c_bitacora __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=69009408;
 //BA.debugLineNum = 69009408;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=69009409;
 //BA.debugLineNum = 69009409;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=69009411;
 //BA.debugLineNum = 69009411;BA.debugLine="End Sub";
return "";
}
public String  _borradatosbitacora(gunav2.keymon.com.mx.c_bitacora __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "borradatosbitacora", false))
	 {return ((String) Debug.delegate(ba, "borradatosbitacora", null));}
RDebugUtils.currentLine=69664768;
 //BA.debugLineNum = 69664768;BA.debugLine="Sub borraDatosBitacora";
RDebugUtils.currentLine=69664769;
 //BA.debugLineNum = 69664769;BA.debugLine="db.ExecNonQuery(\"DELETE FROM BITACORAGPS\")";
__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BITACORAGPS");
RDebugUtils.currentLine=69664770;
 //BA.debugLineNum = 69664770;BA.debugLine="End Sub";
return "";
}
public String  _cargamospanel(gunav2.keymon.com.mx.c_bitacora __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "cargamospanel", false))
	 {return ((String) Debug.delegate(ba, "cargamospanel", null));}
RDebugUtils.currentLine=69402624;
 //BA.debugLineNum = 69402624;BA.debugLine="private Sub cargamosPanel";
RDebugUtils.currentLine=69402625;
 //BA.debugLineNum = 69402625;BA.debugLine="Log(p_transparenteInicioFin2.IsInitialized)";
__c.LogImpl("069402625",BA.ObjectToString(__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .IsInitialized()),0);
RDebugUtils.currentLine=69402627;
 //BA.debugLineNum = 69402627;BA.debugLine="If Not(p_transparenteInicioFin2.IsInitialized) Th";
if (__c.Not(__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .IsInitialized())) { 
RDebugUtils.currentLine=69402628;
 //BA.debugLineNum = 69402628;BA.debugLine="LogColor(\">>>>>>>   CARGAMOS PANEL BITACORA\", Co";
__c.LogImpl("069402628",">>>>>>>   CARGAMOS PANEL BITACORA",__c.Colors.Red);
RDebugUtils.currentLine=69402629;
 //BA.debugLineNum = 69402629;BA.debugLine="Root2.LoadLayout(\"inicioFinVenta\")";
__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("inicioFinVenta",ba);
RDebugUtils.currentLine=69402630;
 //BA.debugLineNum = 69402630;BA.debugLine="p_transparenteInicioFin2.Width = Root2.Width";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=69402631;
 //BA.debugLineNum = 69402631;BA.debugLine="p_transparenteInicioFin2.Height = Root2.Height";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=69402632;
 //BA.debugLineNum = 69402632;BA.debugLine="b_Inicio_Fin_venta2.top = 700";
__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (700));
RDebugUtils.currentLine=69402633;
 //BA.debugLineNum = 69402633;BA.debugLine="b_Inicio_Fin_venta2.Left = 5";
__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) (5));
RDebugUtils.currentLine=69402634;
 //BA.debugLineNum = 69402634;BA.debugLine="b_Inicio_Fin_venta2.Width = Root2.Width - 20";
__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setWidth((int) (__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-20));
RDebugUtils.currentLine=69402635;
 //BA.debugLineNum = 69402635;BA.debugLine="b_Inicio_Fin_venta2.Text = \"INICIAR VISITA\"";
__ref._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("INICIAR VISITA"));
RDebugUtils.currentLine=69402636;
 //BA.debugLineNum = 69402636;BA.debugLine="p_transparenteInicioFin2.BringToFront";
__ref._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
 };
RDebugUtils.currentLine=69402638;
 //BA.debugLineNum = 69402638;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.c_bitacora __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
RDebugUtils.currentLine=68878336;
 //BA.debugLineNum = 68878336;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=68878337;
 //BA.debugLineNum = 68878337;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=68878338;
 //BA.debugLineNum = 68878338;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=68878339;
 //BA.debugLineNum = 68878339;BA.debugLine="Dim db As SQL";
_db = new anywheresoftware.b4a.sql.SQL();
RDebugUtils.currentLine=68878340;
 //BA.debugLineNum = 68878340;BA.debugLine="Private Root2 As B4XView";
_root2 = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=68878341;
 //BA.debugLineNum = 68878341;BA.debugLine="Dim p_transparenteInicioFin2 As Panel";
_p_transparenteiniciofin2 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=68878342;
 //BA.debugLineNum = 68878342;BA.debugLine="Dim b_Inicio_Fin_venta2 As Button";
_b_inicio_fin_venta2 = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=68878343;
 //BA.debugLineNum = 68878343;BA.debugLine="Dim contadorIniciarVenta, precision As Int";
_contadoriniciarventa = 0;
_precision = 0;
RDebugUtils.currentLine=68878344;
 //BA.debugLineNum = 68878344;BA.debugLine="Dim IniVenNO, dentroDeGeocerca, enVenta As Boolea";
_inivenno = false;
_dentrodegeocerca = false;
_enventa = false;
RDebugUtils.currentLine=68878345;
 //BA.debugLineNum = 68878345;BA.debugLine="Dim motivoNoVenta, motivoNoVisita As String";
_motivonoventa = "";
_motivonovisita = "";
RDebugUtils.currentLine=68878346;
 //BA.debugLineNum = 68878346;BA.debugLine="Dim banderaGeoCerca As String";
_banderageocerca = "";
RDebugUtils.currentLine=68878347;
 //BA.debugLineNum = 68878347;BA.debugLine="Private reqManager As DBRequestManager";
_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager();
RDebugUtils.currentLine=68878348;
 //BA.debugLineNum = 68878348;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(gunav2.keymon.com.mx.c_bitacora __ref,gunav2.keymon.com.mx.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "jobdone", false))
	 {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));}
gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null;
RDebugUtils.currentLine=69730304;
 //BA.debugLineNum = 69730304;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=69730305;
 //BA.debugLineNum = 69730305;BA.debugLine="Log(\"JOBDONE BITACORA\")";
__c.LogImpl("069730305","JOBDONE BITACORA",0);
RDebugUtils.currentLine=69730306;
 //BA.debugLineNum = 69730306;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=69730307;
 //BA.debugLineNum = 69730307;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo";
_result = __ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=69730308;
 //BA.debugLineNum = 69730308;BA.debugLine="Log($\"Tag: ${RESULT.tag}, success=${Job.Success}";
__c.LogImpl("069730308",("Tag: "+__c.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+__c.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0);
 };
RDebugUtils.currentLine=69730311;
 //BA.debugLineNum = 69730311;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
RDebugUtils.currentLine=69730313;
 //BA.debugLineNum = 69730313;BA.debugLine="LogColor(\"Error: \" & Job.ErrorMessage, Colors.re";
__c.LogImpl("069730313","Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
 }else {
 };
RDebugUtils.currentLine=69730317;
 //BA.debugLineNum = 69730317;BA.debugLine="End Sub";
return "";
}
public String  _traenombrecliente(gunav2.keymon.com.mx.c_bitacora __ref,String _id) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "traenombrecliente", false))
	 {return ((String) Debug.delegate(ba, "traenombrecliente", new Object[] {_id}));}
anywheresoftware.b4a.sql.SQL.ResultSetWrapper _c = null;
String _n = "";
RDebugUtils.currentLine=69140480;
 //BA.debugLineNum = 69140480;BA.debugLine="Sub traeNombreCliente(id As String) As String";
RDebugUtils.currentLine=69140481;
 //BA.debugLineNum = 69140481;BA.debugLine="Private c As ResultSet = B4XPages.MainPage.skmt.E";
_c = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_c = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_NOMBRE from kmt_info3 where CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(_id))+"'"))));
RDebugUtils.currentLine=69140482;
 //BA.debugLineNum = 69140482;BA.debugLine="Private n As String = \"N/A\"";
_n = "N/A";
RDebugUtils.currentLine=69140483;
 //BA.debugLineNum = 69140483;BA.debugLine="Do While c.NextRow";
while (_c.NextRow()) {
RDebugUtils.currentLine=69140484;
 //BA.debugLineNum = 69140484;BA.debugLine="n = c.GetString(\"CAT_CL_NOMBRE\")";
_n = _c.GetString("CAT_CL_NOMBRE");
 }
;
RDebugUtils.currentLine=69140486;
 //BA.debugLineNum = 69140486;BA.debugLine="Return n";
if (true) return _n;
RDebugUtils.currentLine=69140487;
 //BA.debugLineNum = 69140487;BA.debugLine="End Sub";
return "";
}
public String  _traerutassup(gunav2.keymon.com.mx.c_bitacora __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "traerutassup", false))
	 {return ((String) Debug.delegate(ba, "traerutassup", null));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
String _rutas = "";
int _i = 0;
RDebugUtils.currentLine=69206016;
 //BA.debugLineNum = 69206016;BA.debugLine="Sub traeRutasSup As String";
RDebugUtils.currentLine=69206017;
 //BA.debugLineNum = 69206017;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=69206018;
 //BA.debugLineNum = 69206018;BA.debugLine="Dim rutas As String";
_rutas = "";
RDebugUtils.currentLine=69206019;
 //BA.debugLineNum = 69206019;BA.debugLine="rutas = \"\"";
_rutas = "";
RDebugUtils.currentLine=69206021;
 //BA.debugLineNum = 69206021;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT_";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info3")));
RDebugUtils.currentLine=69206023;
 //BA.debugLineNum = 69206023;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
RDebugUtils.currentLine=69206024;
 //BA.debugLineNum = 69206024;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step6 = 1;
final int limit6 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit6 ;_i = _i + step6 ) {
RDebugUtils.currentLine=69206025;
 //BA.debugLineNum = 69206025;BA.debugLine="c.Position = i";
_c.setPosition(_i);
RDebugUtils.currentLine=69206026;
 //BA.debugLineNum = 69206026;BA.debugLine="rutas = rutas & c.GetString(\"CAT_CL_RUTA\") & \",";
_rutas = _rutas+_c.GetString("CAT_CL_RUTA")+", ";
 }
};
RDebugUtils.currentLine=69206028;
 //BA.debugLineNum = 69206028;BA.debugLine="If rutas.Length > 0 Then rutas = rutas.SubString";
if (_rutas.length()>0) { 
_rutas = _rutas.substring((int) (0),(int) (_rutas.length()-2));};
 };
RDebugUtils.currentLine=69206031;
 //BA.debugLineNum = 69206031;BA.debugLine="c.Close";
_c.Close();
RDebugUtils.currentLine=69206032;
 //BA.debugLineNum = 69206032;BA.debugLine="Return rutas";
if (true) return _rutas;
RDebugUtils.currentLine=69206033;
 //BA.debugLineNum = 69206033;BA.debugLine="End Sub";
return "";
}
public String  _p_transparenteiniciofin2_click(gunav2.keymon.com.mx.c_bitacora __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_bitacora";
if (Debug.shouldDelegate(ba, "p_transparenteiniciofin2_click", false))
	 {return ((String) Debug.delegate(ba, "p_transparenteiniciofin2_click", null));}
RDebugUtils.currentLine=69468160;
 //BA.debugLineNum = 69468160;BA.debugLine="Sub p_transparenteInicioFin2_click";
RDebugUtils.currentLine=69468162;
 //BA.debugLineNum = 69468162;BA.debugLine="End Sub";
return "";
}
}