package gunav2.keymon.com.mx;


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

public class c_clientes 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_clientes");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_clientes.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.CursorWrapper _c = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null;
public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
public String _entro = "";
public anywheresoftware.b4a.objects.ButtonWrapper _gest = null;
public anywheresoftware.b4a.objects.LabelWrapper _lfila = null;
public anywheresoftware.b4a.objects.EditTextWrapper _busca = null;
public String _colonia = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_qr = null;
public com.inforpires.baQRCode.baQRCode _qr = null;
public String _codigo = "";
public String _stime = "";
public String _ruta = "";
public String _q_buscar = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_clientes = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null;
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 Object  _initialize(gunav2.keymon.com.mx.c_clientes __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=71041024;
 //BA.debugLineNum = 71041024;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=71041025;
 //BA.debugLineNum = 71041025;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=71041026;
 //BA.debugLineNum = 71041026;BA.debugLine="End Sub";
return null;
}
public String  _b_qr_click(gunav2.keymon.com.mx.c_clientes __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "b_qr_click", false))
	 {return ((String) Debug.delegate(ba, "b_qr_click", null));}
int _scan_width = 0;
int _scan_height = 0;
RDebugUtils.currentLine=71434240;
 //BA.debugLineNum = 71434240;BA.debugLine="Sub b_qr_Click";
RDebugUtils.currentLine=71434241;
 //BA.debugLineNum = 71434241;BA.debugLine="Dim scan_width As Int";
_scan_width = 0;
RDebugUtils.currentLine=71434242;
 //BA.debugLineNum = 71434242;BA.debugLine="Dim scan_height As Int";
_scan_height = 0;
RDebugUtils.currentLine=71434243;
 //BA.debugLineNum = 71434243;BA.debugLine="scan_width = 400";
_scan_width = (int) (400);
RDebugUtils.currentLine=71434244;
 //BA.debugLineNum = 71434244;BA.debugLine="scan_height = 400";
_scan_height = (int) (400);
RDebugUtils.currentLine=71434245;
 //BA.debugLineNum = 71434245;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(gunav2.keymon.com.mx.c_clientes __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
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;
RDebugUtils.currentLine=71172096;
 //BA.debugLineNum = 71172096;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=71172097;
 //BA.debugLineNum = 71172097;BA.debugLine="reqManager.Initialize(Me, Starter.server)";
__ref._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_starter._server /*String*/ );
RDebugUtils.currentLine=71172098;
 //BA.debugLineNum = 71172098;BA.debugLine="busca.Text = \"\"";
__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=71172099;
 //BA.debugLineNum = 71172099;BA.debugLine="entro = \"2\"";
__ref._entro /*String*/  = "2";
RDebugUtils.currentLine=71172100;
 //BA.debugLineNum = 71172100;BA.debugLine="colonia = 0";
__ref._colonia /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=71172101;
 //BA.debugLineNum = 71172101;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select  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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info3 where  gestion = 0 ORDER BY CAT_CL_CODIGO")));
RDebugUtils.currentLine=71172102;
 //BA.debugLineNum = 71172102;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=71172103;
 //BA.debugLineNum = 71172103;BA.debugLine="lfila.Text = \"NOMBRE\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("NOMBRE"));
RDebugUtils.currentLine=71172104;
 //BA.debugLineNum = 71172104;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=71172105;
 //BA.debugLineNum = 71172105;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=71172106;
 //BA.debugLineNum = 71172106;BA.debugLine="For i = 0 To c.RowCount - 1";
{
final int step10 = 1;
final int limit10 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit10 ;_i = _i + step10 ) {
RDebugUtils.currentLine=71172107;
 //BA.debugLineNum = 71172107;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=71172108;
 //BA.debugLineNum = 71172108;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=71172109;
 //BA.debugLineNum = 71172109;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=71172110;
 //BA.debugLineNum = 71172110;BA.debugLine="label1.TextSize = 20";
_label1.setTextSize((float) (20));
RDebugUtils.currentLine=71172111;
 //BA.debugLineNum = 71172111;BA.debugLine="label1.TextColor = Colors.White";
_label1.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=71172112;
 //BA.debugLineNum = 71172112;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=71172113;
 //BA.debugLineNum = 71172113;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=71172114;
 //BA.debugLineNum = 71172114;BA.debugLine="label2.TextSize = 20";
_label2.setTextSize((float) (20));
RDebugUtils.currentLine=71172115;
 //BA.debugLineNum = 71172115;BA.debugLine="label2.TextColor = Colors.White";
_label2.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=71172116;
 //BA.debugLineNum = 71172116;BA.debugLine="label1.Height = 25dip";
_label1.setHeight(__c.DipToCurrent((int) (25)));
RDebugUtils.currentLine=71172117;
 //BA.debugLineNum = 71172117;BA.debugLine="label2.Height = 60dip";
_label2.setHeight(__c.DipToCurrent((int) (60)));
RDebugUtils.currentLine=71172119;
 //BA.debugLineNum = 71172119;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95)));
RDebugUtils.currentLine=71172120;
 //BA.debugLineNum = 71172120;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.D";
_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
RDebugUtils.currentLine=71172121;
 //BA.debugLineNum = 71172121;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface.D";
_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
RDebugUtils.currentLine=71172122;
 //BA.debugLineNum = 71172122;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_CODIG";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")),BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")));
 }
};
 };
RDebugUtils.currentLine=71172125;
 //BA.debugLineNum = 71172125;BA.debugLine="If B4XPages.MainPage.cliente.cuest.IsInitialized";
if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._cuest /*gunav2.keymon.com.mx.c_cuestionario*/ .IsInitialized /*boolean*/ ()) { 
RDebugUtils.currentLine=71172127;
 //BA.debugLineNum = 71172127;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUESTIONARIO where Q_IDCLIENTE not in (select Q_IDCLIENTE from CUESTIONARIO where Q_IDPREGUNTA = '7')");
RDebugUtils.currentLine=71172128;
 //BA.debugLineNum = 71172128;BA.debugLine="Log(\"Borramos encuestas incompletas\")";
__c.LogImpl("071172128","Borramos encuestas incompletas",0);
 };
RDebugUtils.currentLine=71172130;
 //BA.debugLineNum = 71172130;BA.debugLine="entro = \"4\"";
__ref._entro /*String*/  = "4";
RDebugUtils.currentLine=71172131;
 //BA.debugLineNum = 71172131;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(gunav2.keymon.com.mx.c_clientes __ref) throws Exception{
RDebugUtils.currentModule="c_clientes";
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_clientes parent,gunav2.keymon.com.mx.c_clientes __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
gunav2.keymon.com.mx.c_clientes __ref;
gunav2.keymon.com.mx.c_clientes parent;

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

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.ReturnFromResumableSub(this,null);return;}
case 0:
//C
this.state = -1;
RDebugUtils.currentLine=71303175;
 //BA.debugLineNum = 71303175;BA.debugLine="Return True";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;};
RDebugUtils.currentLine=71303176;
 //BA.debugLineNum = 71303176;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b4xpage_created(gunav2.keymon.com.mx.c_clientes __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=71106560;
 //BA.debugLineNum = 71106560;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=71106561;
 //BA.debugLineNum = 71106561;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=71106563;
 //BA.debugLineNum = 71106563;BA.debugLine="Root.LoadLayout(\"clientes\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("clientes",ba);
RDebugUtils.currentLine=71106565;
 //BA.debugLineNum = 71106565;BA.debugLine="entro =\"2\"";
__ref._entro /*String*/  = "2";
RDebugUtils.currentLine=71106566;
 //BA.debugLineNum = 71106566;BA.debugLine="p_clientes.Height = Root.Height";
__ref._p_clientes /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=71106567;
 //BA.debugLineNum = 71106567;BA.debugLine="p_clientes.Width = Root.Width";
__ref._p_clientes /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=71106568;
 //BA.debugLineNum = 71106568;BA.debugLine="Panel4.Left = Round(Root.Width/2)-(Panel4.Width/2";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (__c.Round(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=71106569;
 //BA.debugLineNum = 71106569;BA.debugLine="Panel4.Height = Root.Height * 0.70";
__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.70));
RDebugUtils.currentLine=71106570;
 //BA.debugLineNum = 71106570;BA.debugLine="ListView1.Height = Panel4.Height * 0.95";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setHeight((int) (__ref._panel4 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()*0.95));
RDebugUtils.currentLine=71106576;
 //BA.debugLineNum = 71106576;BA.debugLine="ruta = File.DirInternal";
__ref._ruta /*String*/  = __c.File.getDirInternal();
RDebugUtils.currentLine=71106583;
 //BA.debugLineNum = 71106583;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(__ref._ruta /*String*/ ,"kmt.db")==__c.False) { 
RDebugUtils.currentLine=71106584;
 //BA.debugLineNum = 71106584;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=71106586;
 //BA.debugLineNum = 71106586;BA.debugLine="qr.initialize";
__ref._qr /*com.inforpires.baQRCode.baQRCode*/ .initialize();
RDebugUtils.currentLine=71106587;
 //BA.debugLineNum = 71106587;BA.debugLine="End Sub";
return "";
}
public String  _busca_textchanged(gunav2.keymon.com.mx.c_clientes __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
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=71368704;
 //BA.debugLineNum = 71368704;BA.debugLine="Sub BUSCA_TextChanged (Old As String, New As Strin";
RDebugUtils.currentLine=71368705;
 //BA.debugLineNum = 71368705;BA.debugLine="q_buscar = \"%\" & busca.Text & \"%\"";
__ref._q_buscar /*String*/  = "%"+__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"%";
RDebugUtils.currentLine=71368706;
 //BA.debugLineNum = 71368706;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 kmt_info3 where (CAT_CL_NOMBRE like ? OR CAT_CL_CODIGO LIKE ? OR CAT_CL_CALLE LIKE ?)and gestion = 0 order by CAT_CL_NOMBRE ",new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ })));
RDebugUtils.currentLine=71368707;
 //BA.debugLineNum = 71368707;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=71368708;
 //BA.debugLineNum = 71368708;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=71368709;
 //BA.debugLineNum = 71368709;BA.debugLine="lfila.text = \"Nombre y Calle\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Nombre y Calle"));
RDebugUtils.currentLine=71368710;
 //BA.debugLineNum = 71368710;BA.debugLine="If c2.RowCount>0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=71368711;
 //BA.debugLineNum = 71368711;BA.debugLine="For i=0 To c2.RowCount -1";
{
final int step7 = 1;
final int limit7 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit7 ;_i = _i + step7 ) {
RDebugUtils.currentLine=71368712;
 //BA.debugLineNum = 71368712;BA.debugLine="c2.Position=i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=71368713;
 //BA.debugLineNum = 71368713;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=71368714;
 //BA.debugLineNum = 71368714;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=71368715;
 //BA.debugLineNum = 71368715;BA.debugLine="label1.TextSize = 20";
_label1.setTextSize((float) (20));
RDebugUtils.currentLine=71368716;
 //BA.debugLineNum = 71368716;BA.debugLine="label1.TextColor = Colors.White";
_label1.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=71368717;
 //BA.debugLineNum = 71368717;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=71368718;
 //BA.debugLineNum = 71368718;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=71368719;
 //BA.debugLineNum = 71368719;BA.debugLine="label2.TextSize = 20";
_label2.setTextSize((float) (20));
RDebugUtils.currentLine=71368720;
 //BA.debugLineNum = 71368720;BA.debugLine="label2.TextColor = Colors.White";
_label2.setTextColor(__c.Colors.White);
RDebugUtils.currentLine=71368721;
 //BA.debugLineNum = 71368721;BA.debugLine="label1.Height = 25dip";
_label1.setHeight(__c.DipToCurrent((int) (25)));
RDebugUtils.currentLine=71368722;
 //BA.debugLineNum = 71368722;BA.debugLine="label2.Height = 60dip";
_label2.setHeight(__c.DipToCurrent((int) (60)));
RDebugUtils.currentLine=71368724;
 //BA.debugLineNum = 71368724;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95)));
RDebugUtils.currentLine=71368725;
 //BA.debugLineNum = 71368725;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.D";
_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
RDebugUtils.currentLine=71368726;
 //BA.debugLineNum = 71368726;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface.D";
_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
RDebugUtils.currentLine=71368727;
 //BA.debugLineNum = 71368727;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=71368730;
 //BA.debugLineNum = 71368730;BA.debugLine="entro = \"4\"";
__ref._entro /*String*/  = "4";
RDebugUtils.currentLine=71368731;
 //BA.debugLineNum = 71368731;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=71368732;
 //BA.debugLineNum = 71368732;BA.debugLine="End Sub";
return "";
}
public String  _calc_ean_checksum(gunav2.keymon.com.mx.c_clientes __ref,String _number) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "calc_ean_checksum", false))
	 {return ((String) Debug.delegate(ba, "calc_ean_checksum", new Object[] {_number}));}
int _i = 0;
char _co = '\0';
int _soma = 0;
int _n = 0;
float _digit = 0f;
RDebugUtils.currentLine=71630848;
 //BA.debugLineNum = 71630848;BA.debugLine="Sub calc_ean_checksum(number As String) As String";
RDebugUtils.currentLine=71630849;
 //BA.debugLineNum = 71630849;BA.debugLine="Dim i As Int";
_i = 0;
RDebugUtils.currentLine=71630850;
 //BA.debugLineNum = 71630850;BA.debugLine="Dim cO As Char";
_co = '\0';
RDebugUtils.currentLine=71630851;
 //BA.debugLineNum = 71630851;BA.debugLine="Dim soma As Int";
_soma = 0;
RDebugUtils.currentLine=71630852;
 //BA.debugLineNum = 71630852;BA.debugLine="Dim n As Int";
_n = 0;
RDebugUtils.currentLine=71630853;
 //BA.debugLineNum = 71630853;BA.debugLine="Dim digit As Float";
_digit = 0f;
RDebugUtils.currentLine=71630854;
 //BA.debugLineNum = 71630854;BA.debugLine="soma = 0";
_soma = (int) (0);
RDebugUtils.currentLine=71630855;
 //BA.debugLineNum = 71630855;BA.debugLine="For i=0 To number.Length - 1";
{
final int step7 = 1;
final int limit7 = (int) (_number.length()-1);
_i = (int) (0) ;
for (;_i <= limit7 ;_i = _i + step7 ) {
RDebugUtils.currentLine=71630856;
 //BA.debugLineNum = 71630856;BA.debugLine="digit = number.SubString2(i,i+1)";
_digit = (float)(Double.parseDouble(_number.substring(_i,(int) (_i+1))));
RDebugUtils.currentLine=71630857;
 //BA.debugLineNum = 71630857;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)";
_n = (int) (_digit*((_i%2)*2+1));
RDebugUtils.currentLine=71630858;
 //BA.debugLineNum = 71630858;BA.debugLine="soma=soma+n";
_soma = (int) (_soma+_n);
 }
};
RDebugUtils.currentLine=71630860;
 //BA.debugLineNum = 71630860;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10";
if (true) return _number+BA.NumberToString(((10-(_soma%10))%10));
RDebugUtils.currentLine=71630861;
 //BA.debugLineNum = 71630861;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.c_clientes __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
RDebugUtils.currentLine=70975488;
 //BA.debugLineNum = 70975488;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=70975489;
 //BA.debugLineNum = 70975489;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=70975490;
 //BA.debugLineNum = 70975490;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=70975493;
 //BA.debugLineNum = 70975493;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=70975494;
 //BA.debugLineNum = 70975494;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=70975495;
 //BA.debugLineNum = 70975495;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=70975496;
 //BA.debugLineNum = 70975496;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=70975497;
 //BA.debugLineNum = 70975497;BA.debugLine="Dim entro As String";
_entro = "";
RDebugUtils.currentLine=70975498;
 //BA.debugLineNum = 70975498;BA.debugLine="Dim gest As Button";
_gest = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=70975499;
 //BA.debugLineNum = 70975499;BA.debugLine="Dim lfila As Label";
_lfila = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=70975500;
 //BA.debugLineNum = 70975500;BA.debugLine="Dim busca As EditText";
_busca = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=70975501;
 //BA.debugLineNum = 70975501;BA.debugLine="Dim colonia As String";
_colonia = "";
RDebugUtils.currentLine=70975502;
 //BA.debugLineNum = 70975502;BA.debugLine="Private b_qr As Button";
_b_qr = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=70975503;
 //BA.debugLineNum = 70975503;BA.debugLine="Private qr As QRCode";
_qr = new com.inforpires.baQRCode.baQRCode();
RDebugUtils.currentLine=70975505;
 //BA.debugLineNum = 70975505;BA.debugLine="Dim CODIGO As String";
_codigo = "";
RDebugUtils.currentLine=70975506;
 //BA.debugLineNum = 70975506;BA.debugLine="Dim STIME As String";
_stime = "";
RDebugUtils.currentLine=70975508;
 //BA.debugLineNum = 70975508;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=70975509;
 //BA.debugLineNum = 70975509;BA.debugLine="Dim q_buscar As String";
_q_buscar = "";
RDebugUtils.currentLine=70975510;
 //BA.debugLineNum = 70975510;BA.debugLine="Private p_clientes As Panel";
_p_clientes = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=70975511;
 //BA.debugLineNum = 70975511;BA.debugLine="Private Panel4 As Panel";
_panel4 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=70975513;
 //BA.debugLineNum = 70975513;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager();
RDebugUtils.currentLine=70975514;
 //BA.debugLineNum = 70975514;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemclick(gunav2.keymon.com.mx.c_clientes __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "listview1_itemclick", false))
	 {return ((String) Debug.delegate(ba, "listview1_itemclick", new Object[] {_position,_value}));}
int _i = 0;
RDebugUtils.currentLine=71237632;
 //BA.debugLineNum = 71237632;BA.debugLine="Sub ListView1_ItemClick (Position As Int, Value As";
RDebugUtils.currentLine=71237633;
 //BA.debugLineNum = 71237633;BA.debugLine="If colonia = 0 Then";
if ((__ref._colonia /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=71237634;
 //BA.debugLineNum = 71237634;BA.debugLine="colonia = Value";
__ref._colonia /*String*/  = BA.ObjectToString(_value);
 };
RDebugUtils.currentLine=71237636;
 //BA.debugLineNum = 71237636;BA.debugLine="If entro = \"2\" Then";
if ((__ref._entro /*String*/ ).equals("2")) { 
RDebugUtils.currentLine=71237637;
 //BA.debugLineNum = 71237637;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_CALLE, CAT_CL_COLONIA, count(*) as cuantos from kmt_info3 where gestion = 0 and CAT_CL_COLONIA = ? GROUP BY CAT_CL_CALLE, CAT_CL_COLONIA order by CAT_CL_CALLE ",new String[]{BA.ObjectToString(_value)})));
RDebugUtils.currentLine=71237638;
 //BA.debugLineNum = 71237638;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=71237639;
 //BA.debugLineNum = 71237639;BA.debugLine="lfila.text = \"Calle\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Calle"));
RDebugUtils.currentLine=71237640;
 //BA.debugLineNum = 71237640;BA.debugLine="If c2.RowCount>0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=71237641;
 //BA.debugLineNum = 71237641;BA.debugLine="For i=0 To c2.RowCount -1";
{
final int step9 = 1;
final int limit9 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit9 ;_i = _i + step9 ) {
RDebugUtils.currentLine=71237642;
 //BA.debugLineNum = 71237642;BA.debugLine="c2.Position=i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=71237643;
 //BA.debugLineNum = 71237643;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_CAL";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE")),BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("cuantos")));
 }
};
 };
RDebugUtils.currentLine=71237646;
 //BA.debugLineNum = 71237646;BA.debugLine="entro = \"3\"";
__ref._entro /*String*/  = "3";
 }else 
{RDebugUtils.currentLine=71237647;
 //BA.debugLineNum = 71237647;BA.debugLine="Else If entro = \"3\" Then";
if ((__ref._entro /*String*/ ).equals("3")) { 
RDebugUtils.currentLine=71237648;
 //BA.debugLineNum = 71237648;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select  CA";
__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 kmt_info3 where  gestion = 0 and  CAT_CL_CALLE = ? AND CAT_CL_COLONIA = ? order by CAT_CL_NOMBRE ",new String[]{BA.ObjectToString(_value),__ref._colonia /*String*/ })));
RDebugUtils.currentLine=71237649;
 //BA.debugLineNum = 71237649;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=71237650;
 //BA.debugLineNum = 71237650;BA.debugLine="lfila.text = \"Nombre\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Nombre"));
RDebugUtils.currentLine=71237651;
 //BA.debugLineNum = 71237651;BA.debugLine="If c2.RowCount>0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=71237652;
 //BA.debugLineNum = 71237652;BA.debugLine="For i=0 To c2.RowCount -1";
{
final int step20 = 1;
final int limit20 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit20 ;_i = _i + step20 ) {
RDebugUtils.currentLine=71237653;
 //BA.debugLineNum = 71237653;BA.debugLine="c2.Position = i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=71237654;
 //BA.debugLineNum = 71237654;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_COD";
__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")));
 }
};
 };
RDebugUtils.currentLine=71237657;
 //BA.debugLineNum = 71237657;BA.debugLine="entro = \"4\"";
__ref._entro /*String*/  = "4";
 }else 
{RDebugUtils.currentLine=71237658;
 //BA.debugLineNum = 71237658;BA.debugLine="Else If entro = \"4\" Then";
if ((__ref._entro /*String*/ ).equals("4")) { 
RDebugUtils.currentLine=71237659;
 //BA.debugLineNum = 71237659;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=71237660;
 //BA.debugLineNum = 71237660;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=71237661;
 //BA.debugLineNum = 71237661;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=71237662;
 //BA.debugLineNum = 71237662;BA.debugLine="STIME=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=71237664;
 //BA.debugLineNum = 71237664;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN";
__ref._s /*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 COUNT(*) AS CUANTOS FROM HIST_STAY_STORE WHERE HSS_IN = ? AND HSS_CODIGO In (select cuenta from cuentaa)",new String[]{"0"})));
RDebugUtils.currentLine=71237665;
 //BA.debugLineNum = 71237665;BA.debugLine="s.Position = 0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=71237666;
 //BA.debugLineNum = 71237666;BA.debugLine="If s.GetString(\"CUANTOS\") = 1 Then";
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=71237667;
 //BA.debugLineNum = 71237667;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_IN = ?  where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._stime /*String*/ )}));
 }else {
RDebugUtils.currentLine=71237669;
 //BA.debugLineNum = 71237669;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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[]{_value}));
RDebugUtils.currentLine=71237670;
 //BA.debugLineNum = 71237670;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_IN = ?  where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._stime /*String*/ )}));
 };
RDebugUtils.currentLine=71237672;
 //BA.debugLineNum = 71237672;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_OUT set HSO_INI = ?  where HSO_INI = 0 ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._stime /*String*/ )}));
RDebugUtils.currentLine=71237673;
 //BA.debugLineNum = 71237673;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=71237675;
 //BA.debugLineNum = 71237675;BA.debugLine="If B4XPages.MainPage.cliente.bitacora.IsInitiali";
if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ .IsInitialized /*boolean*/ ()) { 
RDebugUtils.currentLine=71237676;
 //BA.debugLineNum = 71237676;BA.debugLine="Log(\"VAMOS A CLIENTE CON ENVENTA = FALSO\")";
__c.LogImpl("071237676","VAMOS A CLIENTE CON ENVENTA = FALSO",0);
RDebugUtils.currentLine=71237677;
 //BA.debugLineNum = 71237677;BA.debugLine="B4XPages.MainPage.cliente.bitacora.iniciamosVen";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._iniciamosventa /*String*/ (null);
RDebugUtils.currentLine=71237678;
 //BA.debugLineNum = 71237678;BA.debugLine="Log(B4XPages.MainPage.cliente.bitacora.enVenta)";
__c.LogImpl("071237678",BA.ObjectToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._enventa /*boolean*/ ),0);
 };
RDebugUtils.currentLine=71237680;
 //BA.debugLineNum = 71237680;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
 }}}
;
RDebugUtils.currentLine=71237685;
 //BA.debugLineNum = 71237685;BA.debugLine="Log(entro)";
__c.LogImpl("071237685",__ref._entro /*String*/ ,0);
RDebugUtils.currentLine=71237686;
 //BA.debugLineNum = 71237686;BA.debugLine="End Sub";
return "";
}
public String  _p_clientes_click(gunav2.keymon.com.mx.c_clientes __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "p_clientes_click", false))
	 {return ((String) Debug.delegate(ba, "p_clientes_click", null));}
RDebugUtils.currentLine=71696384;
 //BA.debugLineNum = 71696384;BA.debugLine="Private Sub p_clientes_Click";
RDebugUtils.currentLine=71696386;
 //BA.debugLineNum = 71696386;BA.debugLine="End Sub";
return "";
}
public String  _sc_noscan(gunav2.keymon.com.mx.c_clientes __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "sc_noscan", false))
	 {return ((String) Debug.delegate(ba, "sc_noscan", null));}
RDebugUtils.currentLine=71565312;
 //BA.debugLineNum = 71565312;BA.debugLine="Sub sc_noScan";
RDebugUtils.currentLine=71565313;
 //BA.debugLineNum = 71565313;BA.debugLine="Log(\"nothing returned from the scan !!!!!\")";
__c.LogImpl("071565313","nothing returned from the scan !!!!!",0);
RDebugUtils.currentLine=71565314;
 //BA.debugLineNum = 71565314;BA.debugLine="End Sub";
return "";
}
public String  _sc_result(gunav2.keymon.com.mx.c_clientes __ref,String _atype,String _values) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "sc_result", false))
	 {return ((String) Debug.delegate(ba, "sc_result", new Object[] {_atype,_values}));}
RDebugUtils.currentLine=71499776;
 //BA.debugLineNum = 71499776;BA.debugLine="Sub sc_result(atype As String,Values As String)";
RDebugUtils.currentLine=71499777;
 //BA.debugLineNum = 71499777;BA.debugLine="CODIGO = Values";
__ref._codigo /*String*/  = _values;
RDebugUtils.currentLine=71499778;
 //BA.debugLineNum = 71499778;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select   CO";
__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   COUNT(*) AS ENCONTRADO from kmt_info3 where CAT_CL_NUM_SERIEFISICO = ?  order by CAT_CL_NOMBRE ",new String[]{__ref._codigo /*String*/ })));
RDebugUtils.currentLine=71499779;
 //BA.debugLineNum = 71499779;BA.debugLine="c2.Position =0";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=71499780;
 //BA.debugLineNum = 71499780;BA.debugLine="If c2.GetString(\"ENCONTRADO\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ENCONTRADO")))>0) { 
RDebugUtils.currentLine=71499781;
 //BA.debugLineNum = 71499781;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"select   CA";
__ref._s /*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_CODIGO from kmt_info3 where CAT_CL_NUM_SERIEFISICO = ?  order by CAT_CL_NOMBRE ",new String[]{__ref._codigo /*String*/ })));
RDebugUtils.currentLine=71499782;
 //BA.debugLineNum = 71499782;BA.debugLine="s.Position =0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=71499783;
 //BA.debugLineNum = 71499783;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=71499784;
 //BA.debugLineNum = 71499784;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[]{(Object)(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO"))}));
RDebugUtils.currentLine=71499785;
 //BA.debugLineNum = 71499785;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=71499787;
 //BA.debugLineNum = 71499787;BA.debugLine="B4XPages.ShowPage(\"clientes\")";
_b4xpages._showpage /*String*/ (ba,"clientes");
 }else {
RDebugUtils.currentLine=71499789;
 //BA.debugLineNum = 71499789;BA.debugLine="Msgbox(\"CODIGO \" & CODIGO & \" NO ENCONTRADO\",\"AV";
__c.Msgbox(BA.ObjectToCharSequence("CODIGO "+__ref._codigo /*String*/ +" NO ENCONTRADO"),BA.ObjectToCharSequence("AVISO"),ba);
 };
RDebugUtils.currentLine=71499791;
 //BA.debugLineNum = 71499791;BA.debugLine="End Sub";
return "";
}
}