package keymon.lat.medicomed;


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, "keymon.lat.medicomed.c_clientes");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", keymon.lat.medicomed.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.LabelWrapper _la_cuenta = null;
public b4a.example.dateutils _dateutils = null;
public keymon.lat.medicomed.main _main = null;
public keymon.lat.medicomed.starter _starter = null;
public keymon.lat.medicomed.subs _subs = null;
public keymon.lat.medicomed.appupdater _appupdater = null;
public keymon.lat.medicomed.mapa_rutas _mapa_rutas = null;
public keymon.lat.medicomed.tracker _tracker = null;
public keymon.lat.medicomed.newinst2 _newinst2 = null;
public keymon.lat.medicomed.b4xpages _b4xpages = null;
public keymon.lat.medicomed.b4xcollections _b4xcollections = null;
public keymon.lat.medicomed.httputils2service _httputils2service = null;
public keymon.lat.medicomed.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(keymon.lat.medicomed.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=8323072;
 //BA.debugLineNum = 8323072;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=8323073;
 //BA.debugLineNum = 8323073;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=8323074;
 //BA.debugLineNum = 8323074;BA.debugLine="End Sub";
return null;
}
public String  _b_qr_click(keymon.lat.medicomed.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=8716288;
 //BA.debugLineNum = 8716288;BA.debugLine="Sub b_qr_Click";
RDebugUtils.currentLine=8716289;
 //BA.debugLineNum = 8716289;BA.debugLine="Dim scan_width As Int";
_scan_width = 0;
RDebugUtils.currentLine=8716290;
 //BA.debugLineNum = 8716290;BA.debugLine="Dim scan_height As Int";
_scan_height = 0;
RDebugUtils.currentLine=8716291;
 //BA.debugLineNum = 8716291;BA.debugLine="scan_width = 400";
_scan_width = (int) (400);
RDebugUtils.currentLine=8716292;
 //BA.debugLineNum = 8716292;BA.debugLine="scan_height = 400";
_scan_height = (int) (400);
RDebugUtils.currentLine=8716293;
 //BA.debugLineNum = 8716293;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(keymon.lat.medicomed.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));}
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
int _i = 0;
RDebugUtils.currentLine=8454144;
 //BA.debugLineNum = 8454144;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=8454145;
 //BA.debugLineNum = 8454145;BA.debugLine="B4XPages.SetTitle(Me, $\"Clientes - ${Starter.dia_";
_b4xpages._settitle /*String*/ (ba,this,(Object)(("Clientes - "+__c.SmartStringFormatter("",(Object)(_starter._dia_semana /*String*/ ))+"")));
RDebugUtils.currentLine=8454146;
 //BA.debugLineNum = 8454146;BA.debugLine="busca.Text = \"\"";
__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=8454147;
 //BA.debugLineNum = 8454147;BA.debugLine="entro =\"2\"";
__ref._entro /*String*/  = "2";
RDebugUtils.currentLine=8454148;
 //BA.debugLineNum = 8454148;BA.debugLine="colonia = 0";
__ref._colonia /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=8454149;
 //BA.debugLineNum = 8454149;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_NOEXT, CAT_CL_CALLE1, CAT_CL_SECUENCIA from kmt_info where  gestion = 0 ORDER BY CAT_CL_SECUENCIA, CAT_CL_CODIGO")));
RDebugUtils.currentLine=8454150;
 //BA.debugLineNum = 8454150;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=8454152;
 //BA.debugLineNum = 8454152;BA.debugLine="lfila.Text = \"NOMBRE\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("NOMBRE"));
RDebugUtils.currentLine=8454153;
 //BA.debugLineNum = 8454153;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8454154;
 //BA.debugLineNum = 8454154;BA.debugLine="c.Position= 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8454155;
 //BA.debugLineNum = 8454155;BA.debugLine="la_cuenta.text = c.GetString(\"CAT_CL_CODIGO\")";
__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")));
RDebugUtils.currentLine=8454156;
 //BA.debugLineNum = 8454156;BA.debugLine="Log(\"La cuenta: --->\"&la_cuenta)";
__c.LogImpl("38454156","La cuenta: --->"+BA.ObjectToString(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ ),0);
RDebugUtils.currentLine=8454157;
 //BA.debugLineNum = 8454157;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=8454158;
 //BA.debugLineNum = 8454158;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=8454159;
 //BA.debugLineNum = 8454159;BA.debugLine="label1.TextSize = 14";
_label1.setTextSize((float) (14));
RDebugUtils.currentLine=8454160;
 //BA.debugLineNum = 8454160;BA.debugLine="label1.TextColor = Colors.Black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=8454161;
 //BA.debugLineNum = 8454161;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=8454162;
 //BA.debugLineNum = 8454162;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=8454163;
 //BA.debugLineNum = 8454163;BA.debugLine="label2.TextSize = 14";
_label2.setTextSize((float) (14));
RDebugUtils.currentLine=8454164;
 //BA.debugLineNum = 8454164;BA.debugLine="label2.TextColor = Colors.Black";
_label2.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=8454165;
 //BA.debugLineNum = 8454165;BA.debugLine="label2.Height = 50dip";
_label2.setHeight(__c.DipToCurrent((int) (50)));
RDebugUtils.currentLine=8454166;
 //BA.debugLineNum = 8454166;BA.debugLine="label2.Width = ListView1.Width * 0.99";
_label2.setWidth((int) (__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getWidth()*0.99));
RDebugUtils.currentLine=8454167;
 //BA.debugLineNum = 8454167;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 85dip";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (85)));
RDebugUtils.currentLine=8454168;
 //BA.debugLineNum = 8454168;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step23 = 1;
final int limit23 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit23 ;_i = _i + step23 ) {
RDebugUtils.currentLine=8454169;
 //BA.debugLineNum = 8454169;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8454172;
 //BA.debugLineNum = 8454172;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")+" - "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_SECUENCIA")),BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")+__c.CRLF+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE1")));
 }
};
 };
RDebugUtils.currentLine=8454176;
 //BA.debugLineNum = 8454176;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8454177;
 //BA.debugLineNum = 8454177;BA.debugLine="p_clientes.Height = Root.Height";
__ref._p_clientes /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=8454178;
 //BA.debugLineNum = 8454178;BA.debugLine="ListView1.Height = Root.Height * 0.75";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setHeight((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.75));
RDebugUtils.currentLine=8454179;
 //BA.debugLineNum = 8454179;BA.debugLine="entro = \"4\"";
__ref._entro /*String*/  = "4";
RDebugUtils.currentLine=8454180;
 //BA.debugLineNum = 8454180;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(keymon.lat.medicomed.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(keymon.lat.medicomed.c_clientes parent,keymon.lat.medicomed.c_clientes __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
keymon.lat.medicomed.c_clientes __ref;
keymon.lat.medicomed.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=8585223;
 //BA.debugLineNum = 8585223;BA.debugLine="Return True";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;};
RDebugUtils.currentLine=8585224;
 //BA.debugLineNum = 8585224;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b4xpage_created(keymon.lat.medicomed.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=8388608;
 //BA.debugLineNum = 8388608;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=8388609;
 //BA.debugLineNum = 8388609;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=8388611;
 //BA.debugLineNum = 8388611;BA.debugLine="Root.LoadLayout(\"clientes\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("clientes",ba);
RDebugUtils.currentLine=8388613;
 //BA.debugLineNum = 8388613;BA.debugLine="entro =\"2\"";
__ref._entro /*String*/  = "2";
RDebugUtils.currentLine=8388618;
 //BA.debugLineNum = 8388618;BA.debugLine="ruta = File.DirInternal";
__ref._ruta /*String*/  = __c.File.getDirInternal();
RDebugUtils.currentLine=8388625;
 //BA.debugLineNum = 8388625;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (__c.File.Exists(__ref._ruta /*String*/ ,"kmt.db")==__c.False) { 
RDebugUtils.currentLine=8388626;
 //BA.debugLineNum = 8388626;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=8388628;
 //BA.debugLineNum = 8388628;BA.debugLine="qr.initialize";
__ref._qr /*com.inforpires.baQRCode.baQRCode*/ .initialize();
RDebugUtils.currentLine=8388629;
 //BA.debugLineNum = 8388629;BA.debugLine="End Sub";
return "";
}
public String  _busca_textchanged(keymon.lat.medicomed.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}));}
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
int _i = 0;
RDebugUtils.currentLine=8650752;
 //BA.debugLineNum = 8650752;BA.debugLine="Sub BUSCA_TextChanged (Old As String, New As Strin";
RDebugUtils.currentLine=8650754;
 //BA.debugLineNum = 8650754;BA.debugLine="If Old <> \"\" And New <> \"\" Then";
if ((_old).equals("") == false && (_new).equals("") == false) { 
RDebugUtils.currentLine=8650756;
 //BA.debugLineNum = 8650756;BA.debugLine="q_buscar = \"%\" & busca.Text & \"%\"";
__ref._q_buscar /*String*/  = "%"+__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"%";
RDebugUtils.currentLine=8650757;
 //BA.debugLineNum = 8650757;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO,CAT_CL_SECUENCIA, CAT_CL_CALLE1 from kmt_info where (CAT_CL_NOMBRE like ? OR CAT_CL_CODIGO LIKE ? OR CAT_CL_CALLE1 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=8650758;
 //BA.debugLineNum = 8650758;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=8650759;
 //BA.debugLineNum = 8650759;BA.debugLine="lfila.text = \"Nombre y Calle\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Nombre y Calle"));
RDebugUtils.currentLine=8650761;
 //BA.debugLineNum = 8650761;BA.debugLine="If c2.RowCount > 0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8650762;
 //BA.debugLineNum = 8650762;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=8650763;
 //BA.debugLineNum = 8650763;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=8650764;
 //BA.debugLineNum = 8650764;BA.debugLine="label1.TextSize = 14";
_label1.setTextSize((float) (14));
RDebugUtils.currentLine=8650765;
 //BA.debugLineNum = 8650765;BA.debugLine="label1.TextColor = Colors.DarkGray";
_label1.setTextColor(__c.Colors.DarkGray);
RDebugUtils.currentLine=8650766;
 //BA.debugLineNum = 8650766;BA.debugLine="Dim label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=8650767;
 //BA.debugLineNum = 8650767;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel";
_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=8650768;
 //BA.debugLineNum = 8650768;BA.debugLine="label2.TextSize = 14";
_label2.setTextSize((float) (14));
RDebugUtils.currentLine=8650769;
 //BA.debugLineNum = 8650769;BA.debugLine="label2.Height = 50dip";
_label2.setHeight(__c.DipToCurrent((int) (50)));
RDebugUtils.currentLine=8650770;
 //BA.debugLineNum = 8650770;BA.debugLine="label2.Width = ListView1.Width * 0.99";
_label2.setWidth((int) (__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getWidth()*0.99));
RDebugUtils.currentLine=8650771;
 //BA.debugLineNum = 8650771;BA.debugLine="label2.TextColor = Colors.DarkGray";
_label2.setTextColor(__c.Colors.DarkGray);
RDebugUtils.currentLine=8650773;
 //BA.debugLineNum = 8650773;BA.debugLine="For i=0 To c2.RowCount -1";
{
final int step17 = 1;
final int limit17 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit17 ;_i = _i + step17 ) {
RDebugUtils.currentLine=8650774;
 //BA.debugLineNum = 8650774;BA.debugLine="c2.Position=i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8650777;
 //BA.debugLineNum = 8650777;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")+" - "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_SECUENCIA")),BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")+__c.CRLF+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE1")));
 }
};
 };
RDebugUtils.currentLine=8650780;
 //BA.debugLineNum = 8650780;BA.debugLine="entro = \"4\"";
__ref._entro /*String*/  = "4";
RDebugUtils.currentLine=8650781;
 //BA.debugLineNum = 8650781;BA.debugLine="c2.Close";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
 };
RDebugUtils.currentLine=8650783;
 //BA.debugLineNum = 8650783;BA.debugLine="End Sub";
return "";
}
public String  _calc_ean_checksum(keymon.lat.medicomed.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=8912896;
 //BA.debugLineNum = 8912896;BA.debugLine="Sub calc_ean_checksum(number As String) As String";
RDebugUtils.currentLine=8912897;
 //BA.debugLineNum = 8912897;BA.debugLine="Dim i As Int";
_i = 0;
RDebugUtils.currentLine=8912898;
 //BA.debugLineNum = 8912898;BA.debugLine="Dim cO As Char";
_co = '\0';
RDebugUtils.currentLine=8912899;
 //BA.debugLineNum = 8912899;BA.debugLine="Dim soma As Int";
_soma = 0;
RDebugUtils.currentLine=8912900;
 //BA.debugLineNum = 8912900;BA.debugLine="Dim n As Int";
_n = 0;
RDebugUtils.currentLine=8912901;
 //BA.debugLineNum = 8912901;BA.debugLine="Dim digit As Float";
_digit = 0f;
RDebugUtils.currentLine=8912902;
 //BA.debugLineNum = 8912902;BA.debugLine="soma = 0";
_soma = (int) (0);
RDebugUtils.currentLine=8912903;
 //BA.debugLineNum = 8912903;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=8912904;
 //BA.debugLineNum = 8912904;BA.debugLine="digit = number.SubString2(i,i+1)";
_digit = (float)(Double.parseDouble(_number.substring(_i,(int) (_i+1))));
RDebugUtils.currentLine=8912905;
 //BA.debugLineNum = 8912905;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)";
_n = (int) (_digit*((_i%2)*2+1));
RDebugUtils.currentLine=8912906;
 //BA.debugLineNum = 8912906;BA.debugLine="soma=soma+n";
_soma = (int) (_soma+_n);
 }
};
RDebugUtils.currentLine=8912908;
 //BA.debugLineNum = 8912908;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10";
if (true) return _number+BA.NumberToString(((10-(_soma%10))%10));
RDebugUtils.currentLine=8912909;
 //BA.debugLineNum = 8912909;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(keymon.lat.medicomed.c_clientes __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
RDebugUtils.currentLine=8257536;
 //BA.debugLineNum = 8257536;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=8257537;
 //BA.debugLineNum = 8257537;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=8257538;
 //BA.debugLineNum = 8257538;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=8257541;
 //BA.debugLineNum = 8257541;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=8257542;
 //BA.debugLineNum = 8257542;BA.debugLine="Dim c2 As Cursor";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=8257543;
 //BA.debugLineNum = 8257543;BA.debugLine="Dim s As Cursor";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=8257544;
 //BA.debugLineNum = 8257544;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=8257545;
 //BA.debugLineNum = 8257545;BA.debugLine="Dim entro As String";
_entro = "";
RDebugUtils.currentLine=8257546;
 //BA.debugLineNum = 8257546;BA.debugLine="Dim gest As Button";
_gest = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=8257547;
 //BA.debugLineNum = 8257547;BA.debugLine="Dim lfila As Label";
_lfila = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=8257548;
 //BA.debugLineNum = 8257548;BA.debugLine="Dim busca As EditText";
_busca = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=8257549;
 //BA.debugLineNum = 8257549;BA.debugLine="Dim colonia As String";
_colonia = "";
RDebugUtils.currentLine=8257550;
 //BA.debugLineNum = 8257550;BA.debugLine="Private b_qr As Button";
_b_qr = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=8257551;
 //BA.debugLineNum = 8257551;BA.debugLine="Private qr As QRCode";
_qr = new com.inforpires.baQRCode.baQRCode();
RDebugUtils.currentLine=8257553;
 //BA.debugLineNum = 8257553;BA.debugLine="Dim CODIGO As String";
_codigo = "";
RDebugUtils.currentLine=8257554;
 //BA.debugLineNum = 8257554;BA.debugLine="Dim STIME As String";
_stime = "";
RDebugUtils.currentLine=8257557;
 //BA.debugLineNum = 8257557;BA.debugLine="Dim ruta As String";
_ruta = "";
RDebugUtils.currentLine=8257558;
 //BA.debugLineNum = 8257558;BA.debugLine="Dim q_buscar As String";
_q_buscar = "";
RDebugUtils.currentLine=8257559;
 //BA.debugLineNum = 8257559;BA.debugLine="Private p_clientes As Panel";
_p_clientes = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=8257560;
 //BA.debugLineNum = 8257560;BA.debugLine="Dim la_cuenta As Label";
_la_cuenta = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=8257562;
 //BA.debugLineNum = 8257562;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemclick(keymon.lat.medicomed.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}));}
String[] _value2 = null;
int _i = 0;
RDebugUtils.currentLine=8519680;
 //BA.debugLineNum = 8519680;BA.debugLine="Sub ListView1_ItemClick (Position As Int, Value As";
RDebugUtils.currentLine=8519681;
 //BA.debugLineNum = 8519681;BA.debugLine="Private value2() As String  = Regex.Split(\" - \",";
_value2 = __c.Regex.Split(" - ",BA.ObjectToString(_value));
RDebugUtils.currentLine=8519683;
 //BA.debugLineNum = 8519683;BA.debugLine="If colonia = 0 Then";
if ((__ref._colonia /*String*/ ).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=8519684;
 //BA.debugLineNum = 8519684;BA.debugLine="colonia = value2(0)";
__ref._colonia /*String*/  = _value2[(int) (0)];
 };
RDebugUtils.currentLine=8519687;
 //BA.debugLineNum = 8519687;BA.debugLine="Log(\"-------------------------------\" & value2(0)";
__c.LogImpl("38519687","-------------------------------"+_value2[(int) (0)],0);
RDebugUtils.currentLine=8519689;
 //BA.debugLineNum = 8519689;BA.debugLine="If entro = \"2\" Then";
if ((__ref._entro /*String*/ ).equals("2")) { 
RDebugUtils.currentLine=8519690;
 //BA.debugLineNum = 8519690;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_CALLE, CAT_CL_COLONIA, count(*) as cuantos from kmt_info where gestion = 0 and CAT_CL_COLONIA = ? GROUP BY CAT_CL_CALLE, CAT_CL_COLONIA order by CAT_CL_CALLE ",new String[]{_value2[(int) (0)]})));
RDebugUtils.currentLine=8519691;
 //BA.debugLineNum = 8519691;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=8519692;
 //BA.debugLineNum = 8519692;BA.debugLine="lfila.text = \"Calle\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Calle"));
RDebugUtils.currentLine=8519693;
 //BA.debugLineNum = 8519693;BA.debugLine="If c2.RowCount>0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8519694;
 //BA.debugLineNum = 8519694;BA.debugLine="For i=0 To c2.RowCount -1";
{
final int step11 = 1;
final int limit11 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit11 ;_i = _i + step11 ) {
RDebugUtils.currentLine=8519695;
 //BA.debugLineNum = 8519695;BA.debugLine="c2.Position=i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8519696;
 //BA.debugLineNum = 8519696;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=8519699;
 //BA.debugLineNum = 8519699;BA.debugLine="entro = \"3\"";
__ref._entro /*String*/  = "3";
 }else 
{RDebugUtils.currentLine=8519700;
 //BA.debugLineNum = 8519700;BA.debugLine="Else If entro = \"3\" Then";
if ((__ref._entro /*String*/ ).equals("3")) { 
RDebugUtils.currentLine=8519701;
 //BA.debugLineNum = 8519701;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select  CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where  gestion = 0 and  CAT_CL_CALLE = ? AND CAT_CL_COLONIA = ? order by CAT_CL_NOMBRE ",new String[]{_value2[(int) (0)],__ref._colonia /*String*/ })));
RDebugUtils.currentLine=8519702;
 //BA.debugLineNum = 8519702;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=8519703;
 //BA.debugLineNum = 8519703;BA.debugLine="lfila.text = \"Nombre\"";
__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Nombre"));
RDebugUtils.currentLine=8519704;
 //BA.debugLineNum = 8519704;BA.debugLine="If c2.RowCount>0 Then";
if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=8519705;
 //BA.debugLineNum = 8519705;BA.debugLine="For i=0 To c2.RowCount -1";
{
final int step22 = 1;
final int limit22 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit22 ;_i = _i + step22 ) {
RDebugUtils.currentLine=8519706;
 //BA.debugLineNum = 8519706;BA.debugLine="c2.Position=i";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=8519707;
 //BA.debugLineNum = 8519707;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=8519710;
 //BA.debugLineNum = 8519710;BA.debugLine="entro = \"4\"";
__ref._entro /*String*/  = "4";
 }else 
{RDebugUtils.currentLine=8519711;
 //BA.debugLineNum = 8519711;BA.debugLine="Else If entro = \"4\" Then";
if ((__ref._entro /*String*/ ).equals("4")) { 
RDebugUtils.currentLine=8519712;
 //BA.debugLineNum = 8519712;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=8519713;
 //BA.debugLineNum = 8519713;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_value2[(int) (0)])}));
RDebugUtils.currentLine=8519714;
 //BA.debugLineNum = 8519714;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=8519715;
 //BA.debugLineNum = 8519715;BA.debugLine="STIME=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=8519717;
 //BA.debugLineNum = 8519717;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 /*keymon.lat.medicomed.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=8519718;
 //BA.debugLineNum = 8519718;BA.debugLine="s.Position = 0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8519719;
 //BA.debugLineNum = 8519719;BA.debugLine="If s.GetString(\"CUANTOS\") = 1 Then";
if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=8519720;
 //BA.debugLineNum = 8519720;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
_b4xpages._mainpage /*keymon.lat.medicomed.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=8519722;
 //BA.debugLineNum = 8519722;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN";
_b4xpages._mainpage /*keymon.lat.medicomed.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[]{(Object)(_value2[(int) (0)])}));
RDebugUtils.currentLine=8519723;
 //BA.debugLineNum = 8519723;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI";
_b4xpages._mainpage /*keymon.lat.medicomed.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=8519725;
 //BA.debugLineNum = 8519725;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS";
_b4xpages._mainpage /*keymon.lat.medicomed.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=8519726;
 //BA.debugLineNum = 8519726;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=8519728;
 //BA.debugLineNum = 8519728;BA.debugLine="Subs.guardaClienteHoraInicio(value2(0))";
_subs._guardaclientehorainicio /*String*/ (ba,_value2[(int) (0)]);
RDebugUtils.currentLine=8519730;
 //BA.debugLineNum = 8519730;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
 }}}
;
RDebugUtils.currentLine=8519732;
 //BA.debugLineNum = 8519732;BA.debugLine="End Sub";
return "";
}
public String  _mods(keymon.lat.medicomed.c_clientes __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_clientes";
if (Debug.shouldDelegate(ba, "mods", false))
	 {return ((String) Debug.delegate(ba, "mods", null));}
RDebugUtils.currentLine=8192000;
 //BA.debugLineNum = 8192000;BA.debugLine="Sub Mods";
RDebugUtils.currentLine=8192003;
 //BA.debugLineNum = 8192003;BA.debugLine="End Sub";
return "";
}
public String  _p_clientes_click(keymon.lat.medicomed.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=8978432;
 //BA.debugLineNum = 8978432;BA.debugLine="Private Sub p_clientes_Click";
RDebugUtils.currentLine=8978434;
 //BA.debugLineNum = 8978434;BA.debugLine="End Sub";
return "";
}
public String  _sc_noscan(keymon.lat.medicomed.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=8847360;
 //BA.debugLineNum = 8847360;BA.debugLine="Sub sc_noScan";
RDebugUtils.currentLine=8847361;
 //BA.debugLineNum = 8847361;BA.debugLine="Log(\"nothing returned from the scan !!!!!\")";
__c.LogImpl("38847361","nothing returned from the scan !!!!!",0);
RDebugUtils.currentLine=8847362;
 //BA.debugLineNum = 8847362;BA.debugLine="End Sub";
return "";
}
public String  _sc_result(keymon.lat.medicomed.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=8781824;
 //BA.debugLineNum = 8781824;BA.debugLine="Sub sc_result(atype As String,Values As String)";
RDebugUtils.currentLine=8781825;
 //BA.debugLineNum = 8781825;BA.debugLine="CODIGO = Values";
__ref._codigo /*String*/  = _values;
RDebugUtils.currentLine=8781826;
 //BA.debugLineNum = 8781826;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select   COUNT(*) AS ENCONTRADO from kmt_info where CAT_CL_NUM_SERIEFISICO = ?  order by CAT_CL_NOMBRE ",new String[]{__ref._codigo /*String*/ })));
RDebugUtils.currentLine=8781827;
 //BA.debugLineNum = 8781827;BA.debugLine="c2.Position =0";
__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8781828;
 //BA.debugLineNum = 8781828;BA.debugLine="If c2.GetString(\"ENCONTRADO\") > 0 Then";
if ((double)(Double.parseDouble(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ENCONTRADO")))>0) { 
RDebugUtils.currentLine=8781829;
 //BA.debugLineNum = 8781829;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 /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select   CAT_CL_CODIGO from kmt_info where CAT_CL_NUM_SERIEFISICO = ?  order by CAT_CL_NOMBRE ",new String[]{__ref._codigo /*String*/ })));
RDebugUtils.currentLine=8781830;
 //BA.debugLineNum = 8781830;BA.debugLine="s.Position =0";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=8781831;
 //BA.debugLineNum = 8781831;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
RDebugUtils.currentLine=8781832;
 //BA.debugLineNum = 8781832;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*keymon.lat.medicomed.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=8781833;
 //BA.debugLineNum = 8781833;BA.debugLine="s.Close";
__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=8781835;
 //BA.debugLineNum = 8781835;BA.debugLine="B4XPages.ShowPage(\"clientes\")";
_b4xpages._showpage /*String*/ (ba,"clientes");
 }else {
RDebugUtils.currentLine=8781837;
 //BA.debugLineNum = 8781837;BA.debugLine="Msgbox(\"CODIGO \" & CODIGO & \" NO ENCONTRADO\",\"AV";
__c.Msgbox(BA.ObjectToCharSequence("CODIGO "+__ref._codigo /*String*/ +" NO ENCONTRADO"),BA.ObjectToCharSequence("AVISO"),ba);
 };
RDebugUtils.currentLine=8781839;
 //BA.debugLineNum = 8781839;BA.debugLine="End Sub";
return "";
}
}