package gunav2.keymon.com.mx;


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

public class c_clientescompletos 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_clientescompletos");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_clientescompletos.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 String _q_buscar = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _lfila = null;
public anywheresoftware.b4a.objects.EditTextWrapper _busca = null;
public String _stime = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
public gunav2.keymon.com.mx.subs _subs = null;
public gunav2.keymon.com.mx.appupdater _appupdater = null;
public gunav2.keymon.com.mx.tracker _tracker = null;
public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null;
public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public gunav2.keymon.com.mx.newinst2 _newinst2 = null;
public gunav2.keymon.com.mx.b4xpages _b4xpages = null;
public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null;
public gunav2.keymon.com.mx.httputils2service _httputils2service = null;
public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(gunav2.keymon.com.mx.c_clientescompletos __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_clientescompletos";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=70713344;
 //BA.debugLineNum = 70713344;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=70713345;
 //BA.debugLineNum = 70713345;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=70713346;
 //BA.debugLineNum = 70713346;BA.debugLine="End Sub";
return null;
}
public String  _b4xpage_created(gunav2.keymon.com.mx.c_clientescompletos __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientescompletos";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=70778880;
 //BA.debugLineNum = 70778880;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=70778881;
 //BA.debugLineNum = 70778881;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=70778884;
 //BA.debugLineNum = 70778884;BA.debugLine="Root.LoadLayout(\"Clientes_completos\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("Clientes_completos",ba);
RDebugUtils.currentLine=70778885;
 //BA.debugLineNum = 70778885;BA.debugLine="End Sub";
return "";
}
public String  _busca_textchanged(gunav2.keymon.com.mx.c_clientescompletos __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientescompletos";
if (Debug.shouldDelegate(ba, "busca_textchanged", false))
	 {return ((String) Debug.delegate(ba, "busca_textchanged", new Object[] {_old,_new}));}
int _i = 0;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
RDebugUtils.currentLine=70844416;
 //BA.debugLineNum = 70844416;BA.debugLine="Sub BUSCA_TextChanged (Old As String, New As Strin";
RDebugUtils.currentLine=70844417;
 //BA.debugLineNum = 70844417;BA.debugLine="If New = \"\" Then";
if ((_new).equals("")) { 
RDebugUtils.currentLine=70844418;
 //BA.debugLineNum = 70844418;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
 }else {
RDebugUtils.currentLine=70844420;
 //BA.debugLineNum = 70844420;BA.debugLine="q_buscar = \"%\" & BUSCA.Text & \"%\"";
__ref._q_buscar /*String*/  = "%"+__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"%";
RDebugUtils.currentLine=70844421;
 //BA.debugLineNum = 70844421;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select  CAT";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (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*/ .ExecQuery2("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from CAT_CATCLIENTESTODOS where (CAT_CL_NOMBRE like ? OR CAT_CL_CODIGO LIKE ? OR CAT_CL_CALLE LIKE ?) order by CAT_CL_NOMBRE ",new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ })));
RDebugUtils.currentLine=70844422;
 //BA.debugLineNum = 70844422;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=70844423;
 //BA.debugLineNum = 70844423;BA.debugLine="Subs.SetDivider(ListView1, Colors.White, 2)";
_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.White,(int) (2));
RDebugUtils.currentLine=70844424;
 //BA.debugLineNum = 70844424;BA.debugLine="lfila.text = \"Nombre y Calle\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Nombre y Calle"));
RDebugUtils.currentLine=70844425;
 //BA.debugLineNum = 70844425;BA.debugLine="If c2.RowCount>0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=70844426;
 //BA.debugLineNum = 70844426;BA.debugLine="For i=0 To c2.RowCount -1";
{
final int step10 = 1;
final int limit10 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit10 ;_i = _i + step10 ) {
RDebugUtils.currentLine=70844427;
 //BA.debugLineNum = 70844427;BA.debugLine="c2.Position=i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=70844428;
 //BA.debugLineNum = 70844428;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=70844429;
 //BA.debugLineNum = 70844429;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=70844430;
 //BA.debugLineNum = 70844430;BA.debugLine="label1.TextSize = 20";
_label1.setTextSize((float) (20));
RDebugUtils.currentLine=70844431;
 //BA.debugLineNum = 70844431;BA.debugLine="label1.TextColor = Colors.White";
_label1.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=70844432;
 //BA.debugLineNum = 70844432;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=70844433;
 //BA.debugLineNum = 70844433;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=70844434;
 //BA.debugLineNum = 70844434;BA.debugLine="label2.TextSize = 20";
_label2.setTextSize((float) (20));
RDebugUtils.currentLine=70844435;
 //BA.debugLineNum = 70844435;BA.debugLine="label2.TextColor = Colors.White";
_label2.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=70844436;
 //BA.debugLineNum = 70844436;BA.debugLine="label1.Height = 25dip";
_label1.setHeight(__c.DipToCurrent((int) (25)));
RDebugUtils.currentLine=70844437;
 //BA.debugLineNum = 70844437;BA.debugLine="label2.Height = 60dip";
_label2.setHeight(__c.DipToCurrent((int) (60)));
RDebugUtils.currentLine=70844439;
 //BA.debugLineNum = 70844439;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95)));
RDebugUtils.currentLine=70844440;
 //BA.debugLineNum = 70844440;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.D";
_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
RDebugUtils.currentLine=70844441;
 //BA.debugLineNum = 70844441;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface.D";
_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
RDebugUtils.currentLine=70844442;
 //BA.debugLineNum = 70844442;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_CODI";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")),BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")+__c.CRLF+"CALLE:  "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE")));
 }
};
 };
RDebugUtils.currentLine=70844446;
 //BA.debugLineNum = 70844446;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=70844448;
 //BA.debugLineNum = 70844448;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.c_clientescompletos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientescompletos";
RDebugUtils.currentLine=70647808;
 //BA.debugLineNum = 70647808;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=70647809;
 //BA.debugLineNum = 70647809;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=70647810;
 //BA.debugLineNum = 70647810;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=70647811;
 //BA.debugLineNum = 70647811;BA.debugLine="Dim q_buscar As String";
_q_buscar = "";
RDebugUtils.currentLine=70647812;
 //BA.debugLineNum = 70647812;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=70647813;
 //BA.debugLineNum = 70647813;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=70647814;
 //BA.debugLineNum = 70647814;BA.debugLine="Dim lfila As Label";
_lfila = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=70647815;
 //BA.debugLineNum = 70647815;BA.debugLine="Private BUSCA As EditText";
_busca = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=70647816;
 //BA.debugLineNum = 70647816;BA.debugLine="Dim STIME As String";
_stime = "";
RDebugUtils.currentLine=70647817;
 //BA.debugLineNum = 70647817;BA.debugLine="Dim S As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=70647818;
 //BA.debugLineNum = 70647818;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemclick(gunav2.keymon.com.mx.c_clientescompletos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientescompletos";
if (Debug.shouldDelegate(ba, "listview1_itemclick", false))
	 {return ((String) Debug.delegate(ba, "listview1_itemclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=70909952;
 //BA.debugLineNum = 70909952;BA.debugLine="Sub ListView1_ItemClick (Position As Int, Value As";
RDebugUtils.currentLine=70909954;
 //BA.debugLineNum = 70909954;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=70909955;
 //BA.debugLineNum = 70909955;BA.debugLine="Log(Value)";
__c.LogImpl("070909955",BA.ObjectToString(_value),0);
RDebugUtils.currentLine=70909956;
 //BA.debugLineNum = 70909956;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value}));
RDebugUtils.currentLine=70909961;
 //BA.debugLineNum = 70909961;BA.debugLine="B4XPages.ShowPage(\"Tclientes\")";
_b4xpages._showpage /*String*/ (ba,"Tclientes");
RDebugUtils.currentLine=70909963;
 //BA.debugLineNum = 70909963;BA.debugLine="End Sub";
return "";
}
}