package gunav2.keymon.com.mx;


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

public class c_historico2 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_historico2");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_historico2.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 _clie_id = "";
public String _sdate = "";
public String _stime = "";
public String _usuario = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public String _ruta = "";
public anywheresoftware.b4a.objects.ButtonWrapper _regresar = null;
public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
public anywheresoftware.b4a.objects.ButtonWrapper _borra = null;
public String _existe = "";
public String _result = "";
public anywheresoftware.b4a.objects.LabelWrapper _titulo = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_desc = null;
public anywheresoftware.b4a.objects.ListViewWrapper _listview2 = null;
public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_nota = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_productohist = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_s1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_s2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_s3 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_s4 = null;
public b4a.example3.customlistview _customlistview1 = 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  _gps_locationchanged(gunav2.keymon.com.mx.c_historico2 __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_historico2";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=75628544;
 //BA.debugLineNum = 75628544;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=75628547;
 //BA.debugLineNum = 75628547;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(gunav2.keymon.com.mx.c_historico2 __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_historico2";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_appear", null));}
int _i = 0;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
int _sfdf = 0;
RDebugUtils.currentLine=75497472;
 //BA.debugLineNum = 75497472;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=75497473;
 //BA.debugLineNum = 75497473;BA.debugLine="p_nota.Height = Root.Height * 0.9";
__ref._p_nota /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.9));
RDebugUtils.currentLine=75497474;
 //BA.debugLineNum = 75497474;BA.debugLine="p_nota.Width = Root.Width * 0.9";
__ref._p_nota /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.9));
RDebugUtils.currentLine=75497475;
 //BA.debugLineNum = 75497475;BA.debugLine="Panel1.Visible = False";
__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=75497476;
 //BA.debugLineNum = 75497476;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { 
RDebugUtils.currentLine=75497477;
 //BA.debugLineNum = 75497477;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True);
RDebugUtils.currentLine=75497478;
 //BA.debugLineNum = 75497478;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
 };
RDebugUtils.currentLine=75497480;
 //BA.debugLineNum = 75497480;BA.debugLine="L_CANT.Text =\"\"";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=75497481;
 //BA.debugLineNum = 75497481;BA.debugLine="L_TOTAL.Text=\"\"";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=75497482;
 //BA.debugLineNum = 75497482;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
__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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=75497483;
 //BA.debugLineNum = 75497483;BA.debugLine="C.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=75497484;
 //BA.debugLineNum = 75497484;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
__ref._existe /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE");
RDebugUtils.currentLine=75497485;
 //BA.debugLineNum = 75497485;BA.debugLine="C.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=75497486;
 //BA.debugLineNum = 75497486;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HVD_CL";
__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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_FECHA asc")));
RDebugUtils.currentLine=75497487;
 //BA.debugLineNum = 75497487;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=75497488;
 //BA.debugLineNum = 75497488;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=75497489;
 //BA.debugLineNum = 75497489;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step17 = 1;
final int limit17 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit17 ;_i = _i + step17 ) {
RDebugUtils.currentLine=75497490;
 //BA.debugLineNum = 75497490;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=75497491;
 //BA.debugLineNum = 75497491;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75497492;
 //BA.debugLineNum = 75497492;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=75497493;
 //BA.debugLineNum = 75497493;BA.debugLine="label1.TextSize = 15";
_label1.setTextSize((float) (15));
RDebugUtils.currentLine=75497494;
 //BA.debugLineNum = 75497494;BA.debugLine="label1.TextColor = Colors.White";
_label1.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=75497495;
 //BA.debugLineNum = 75497495;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75497496;
 //BA.debugLineNum = 75497496;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=75497497;
 //BA.debugLineNum = 75497497;BA.debugLine="label2.TextSize = 15";
_label2.setTextSize((float) (15));
RDebugUtils.currentLine=75497498;
 //BA.debugLineNum = 75497498;BA.debugLine="label2.TextColor = Colors.White";
_label2.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=75497499;
 //BA.debugLineNum = 75497499;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"HVD_PRONOMBR";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")),BA.ObjectToCharSequence("Cantidad #"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")+" SubTotal $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")+"      Fecha: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA")));
 }
};
 };
RDebugUtils.currentLine=75497502;
 //BA.debugLineNum = 75497502;BA.debugLine="If Existe <> 0 Then";
if ((__ref._existe /*String*/ ).equals(BA.NumberToString(0)) == false) { 
RDebugUtils.currentLine=75497503;
 //BA.debugLineNum = 75497503;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(H";
__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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(HVD_CANT) AS PC_NOART, SUM(HVD_COSTO_TOT) AS PC_MONTO from HIST_VENTAS where HVD_CLIENTE in (Select CUENTA from cuentaa)")));
RDebugUtils.currentLine=75497504;
 //BA.debugLineNum = 75497504;BA.debugLine="C.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=75497505;
 //BA.debugLineNum = 75497505;BA.debugLine="L_CANT.Text = c.GetString(\"PC_NOART\")";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART")));
RDebugUtils.currentLine=75497506;
 //BA.debugLineNum = 75497506;BA.debugLine="L_TOTAL.Text = c.GetString(\"PC_MONTO\")";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO")));
 };
RDebugUtils.currentLine=75497512;
 //BA.debugLineNum = 75497512;BA.debugLine="For sfdf = 0 To  1";
{
final int step36 = 1;
final int limit36 = (int) (1);
_sfdf = (int) (0) ;
for (;_sfdf <= limit36 ;_sfdf = _sfdf + step36 ) {
RDebugUtils.currentLine=75497513;
 //BA.debugLineNum = 75497513;BA.debugLine="CustomListView1.Add(CreateListItem(\"ejemplo\",\"1\"";
__ref._customlistview1 /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,"ejemplo",(int)(Double.parseDouble("1")),(int)(Double.parseDouble("2")),(int)(Double.parseDouble("3")),(int)(Double.parseDouble("4")),(int) (284),(int) (144)).getObject())),(Object)(_sfdf));
 }
};
RDebugUtils.currentLine=75497519;
 //BA.debugLineNum = 75497519;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(gunav2.keymon.com.mx.c_historico2 __ref,String _prodhis,int _s1,int _s2,int _s3,int _s4,int _width,int _height) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_historico2";
if (Debug.shouldDelegate(ba, "createlistitem", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_prodhis,_s1,_s2,_s3,_s4,_width,_height}));}
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
RDebugUtils.currentLine=75563008;
 //BA.debugLineNum = 75563008;BA.debugLine="Sub CreateListItem(prodhis As String, s1 As Int, s";
RDebugUtils.currentLine=75563009;
 //BA.debugLineNum = 75563009;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=75563010;
 //BA.debugLineNum = 75563010;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
RDebugUtils.currentLine=75563011;
 //BA.debugLineNum = 75563011;BA.debugLine="p.LoadLayout(\"historicobat\")";
_p.LoadLayout("historicobat",ba);
RDebugUtils.currentLine=75563025;
 //BA.debugLineNum = 75563025;BA.debugLine="Return p";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
RDebugUtils.currentLine=75563026;
 //BA.debugLineNum = 75563026;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(gunav2.keymon.com.mx.c_historico2 __ref) throws Exception{
RDebugUtils.currentModule="c_historico2";
if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false))
	 {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(gunav2.keymon.com.mx.c_historico2 parent,gunav2.keymon.com.mx.c_historico2 __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_historico2 __ref;
gunav2.keymon.com.mx.c_historico2 parent;

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

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.ReturnFromResumableSub(this,null);return;}
case 0:
//C
this.state = -1;
RDebugUtils.currentLine=75759619;
 //BA.debugLineNum = 75759619;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=75759620;
 //BA.debugLineNum = 75759620;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
RDebugUtils.currentLine=75759621;
 //BA.debugLineNum = 75759621;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b4xpage_created(gunav2.keymon.com.mx.c_historico2 __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_historico2";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=75431936;
 //BA.debugLineNum = 75431936;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=75431937;
 //BA.debugLineNum = 75431937;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=75431939;
 //BA.debugLineNum = 75431939;BA.debugLine="ruta = File.DirInternal";
__ref._ruta /*String*/  = __c.File.getDirInternal();
RDebugUtils.currentLine=75431940;
 //BA.debugLineNum = 75431940;BA.debugLine="Root.LoadLayout(\"nota2\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("nota2",ba);
RDebugUtils.currentLine=75431941;
 //BA.debugLineNum = 75431941;BA.debugLine="borra.Visible = False";
__ref._borra /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=75431942;
 //BA.debugLineNum = 75431942;BA.debugLine="Titulo.Text = \"Acumulado\"";
__ref._titulo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Acumulado"));
RDebugUtils.currentLine=75431943;
 //BA.debugLineNum = 75431943;BA.debugLine="b_desc.Visible = False";
__ref._b_desc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=75431944;
 //BA.debugLineNum = 75431944;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(__ref._ruta /*String*/ ,"kmt.db")==__c.False) { 
RDebugUtils.currentLine=75431945;
 //BA.debugLineNum = 75431945;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
__c.File.Copy(__c.File.getDirAssets(),"kmt.db",__ref._ruta /*String*/ ,"kmt.db");
 };
RDebugUtils.currentLine=75431948;
 //BA.debugLineNum = 75431948;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.c_historico2 __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_historico2";
RDebugUtils.currentLine=75366400;
 //BA.debugLineNum = 75366400;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=75366401;
 //BA.debugLineNum = 75366401;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=75366402;
 //BA.debugLineNum = 75366402;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=75366404;
 //BA.debugLineNum = 75366404;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=75366405;
 //BA.debugLineNum = 75366405;BA.debugLine="Dim clie_id As String";
_clie_id = "";
RDebugUtils.currentLine=75366406;
 //BA.debugLineNum = 75366406;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=75366407;
 //BA.debugLineNum = 75366407;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=75366409;
 //BA.debugLineNum = 75366409;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=75366410;
 //BA.debugLineNum = 75366410;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=75366411;
 //BA.debugLineNum = 75366411;BA.debugLine="Dim Regresar As Button";
_regresar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=75366414;
 //BA.debugLineNum = 75366414;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=75366415;
 //BA.debugLineNum = 75366415;BA.debugLine="Dim L_CANT As Label";
_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75366416;
 //BA.debugLineNum = 75366416;BA.debugLine="Dim L_TOTAL As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75366417;
 //BA.debugLineNum = 75366417;BA.debugLine="Dim borra As Button";
_borra = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=75366418;
 //BA.debugLineNum = 75366418;BA.debugLine="Dim Existe As String";
_existe = "";
RDebugUtils.currentLine=75366419;
 //BA.debugLineNum = 75366419;BA.debugLine="Dim result As String";
_result = "";
RDebugUtils.currentLine=75366422;
 //BA.debugLineNum = 75366422;BA.debugLine="Private Titulo As Label";
_titulo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75366423;
 //BA.debugLineNum = 75366423;BA.debugLine="Private b_desc As Button";
_b_desc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=75366424;
 //BA.debugLineNum = 75366424;BA.debugLine="Private ListView2 As ListView";
_listview2 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=75366425;
 //BA.debugLineNum = 75366425;BA.debugLine="Dim tgl As Toggle";
_tgl = new com.rootsoft.togglelibrary.ToggleLibrary();
RDebugUtils.currentLine=75366426;
 //BA.debugLineNum = 75366426;BA.debugLine="Private p_nota As Panel";
_p_nota = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=75366427;
 //BA.debugLineNum = 75366427;BA.debugLine="Private Panel1 As Panel";
_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=75366428;
 //BA.debugLineNum = 75366428;BA.debugLine="Private l_productohist As Label";
_l_productohist = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75366429;
 //BA.debugLineNum = 75366429;BA.debugLine="Private l_s1 As Label";
_l_s1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75366430;
 //BA.debugLineNum = 75366430;BA.debugLine="Private l_s2 As Label";
_l_s2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75366431;
 //BA.debugLineNum = 75366431;BA.debugLine="Private l_s3 As Label";
_l_s3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75366432;
 //BA.debugLineNum = 75366432;BA.debugLine="Private l_s4 As Label";
_l_s4 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75366433;
 //BA.debugLineNum = 75366433;BA.debugLine="Private CustomListView1 As CustomListView";
_customlistview1 = new b4a.example3.customlistview();
RDebugUtils.currentLine=75366435;
 //BA.debugLineNum = 75366435;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemclick(gunav2.keymon.com.mx.c_historico2 __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_historico2";
if (Debug.shouldDelegate(ba, "listview1_itemclick", false))
	 {return ((String) Debug.delegate(ba, "listview1_itemclick", new Object[] {_position,_value}));}
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
int _i = 0;
RDebugUtils.currentLine=75890688;
 //BA.debugLineNum = 75890688;BA.debugLine="Sub ListView1_ItemClick (Position As Int, Value As";
RDebugUtils.currentLine=75890689;
 //BA.debugLineNum = 75890689;BA.debugLine="ListView2.Visible = True";
__ref._listview2 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=75890690;
 //BA.debugLineNum = 75890690;BA.debugLine="ListView1.Visible = False";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=75890691;
 //BA.debugLineNum = 75890691;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=75890692;
 //BA.debugLineNum = 75890692;BA.debugLine="For i=0 To 20";
{
final int step4 = 1;
final int limit4 = (int) (20);
_i = (int) (0) ;
for (;_i <= limit4 ;_i = _i + step4 ) {
RDebugUtils.currentLine=75890693;
 //BA.debugLineNum = 75890693;BA.debugLine="label1 = ListView2.SingleLineLayout.Label";
_label1 = __ref._listview2 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label;
RDebugUtils.currentLine=75890694;
 //BA.debugLineNum = 75890694;BA.debugLine="label1.TextSize = 15";
_label1.setTextSize((float) (15));
RDebugUtils.currentLine=75890695;
 //BA.debugLineNum = 75890695;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=75890696;
 //BA.debugLineNum = 75890696;BA.debugLine="ListView2.AddSingleLine(i)";
__ref._listview2 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(_i));
 }
};
RDebugUtils.currentLine=75890698;
 //BA.debugLineNum = 75890698;BA.debugLine="End Sub";
return "";
}
public String  _listview2_itemclick(gunav2.keymon.com.mx.c_historico2 __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_historico2";
if (Debug.shouldDelegate(ba, "listview2_itemclick", false))
	 {return ((String) Debug.delegate(ba, "listview2_itemclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=75825152;
 //BA.debugLineNum = 75825152;BA.debugLine="Sub ListView2_ItemClick (Position As Int, Value As";
RDebugUtils.currentLine=75825153;
 //BA.debugLineNum = 75825153;BA.debugLine="ListView2.Visible = False";
__ref._listview2 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=75825154;
 //BA.debugLineNum = 75825154;BA.debugLine="ListView1.Visible = True";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True);
RDebugUtils.currentLine=75825155;
 //BA.debugLineNum = 75825155;BA.debugLine="End Sub";
return "";
}
public String  _regresar_click(gunav2.keymon.com.mx.c_historico2 __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_historico2";
if (Debug.shouldDelegate(ba, "regresar_click", false))
	 {return ((String) Debug.delegate(ba, "regresar_click", null));}
RDebugUtils.currentLine=75694080;
 //BA.debugLineNum = 75694080;BA.debugLine="Sub Regresar_Click";
RDebugUtils.currentLine=75694081;
 //BA.debugLineNum = 75694081;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=75694082;
 //BA.debugLineNum = 75694082;BA.debugLine="End Sub";
return "";
}
}