package gunav2.keymon.com.mx;


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

public class c_cuestionario 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_cuestionario");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_cuestionario.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.objects.ButtonWrapper _baceptarpregunta = null;
public boolean _encuestainiciada = false;
public anywheresoftware.b4a.objects.B4XViewWrapper _root2 = null;
public String _eventname = "";
public Object _callback = null;
public String _vpreguntaactual = "";
public anywheresoftware.b4a.sql.SQL _db = null;
public anywheresoftware.b4a.objects.PanelWrapper _panelsombra = null;
public String _cb_respuestas = "";
public anywheresoftware.b4a.objects.PanelWrapper _panelactual = null;
public int _bringtofrontcont = 0;
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  _ocultpanelpregunta(gunav2.keymon.com.mx.c_cuestionario __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "ocultpanelpregunta", false))
	 {return ((String) Debug.delegate(ba, "ocultpanelpregunta", null));}
RDebugUtils.currentLine=74514432;
 //BA.debugLineNum = 74514432;BA.debugLine="Sub ocultPanelPregunta";
RDebugUtils.currentLine=74514433;
 //BA.debugLineNum = 74514433;BA.debugLine="If panelSombra.IsInitialized Then panelSombra.Rem";
if (__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .IsInitialized()) { 
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .RemoveView();};
RDebugUtils.currentLine=74514434;
 //BA.debugLineNum = 74514434;BA.debugLine="End Sub";
return "";
}
public Object  _initialize(gunav2.keymon.com.mx.c_cuestionario __ref,anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname,anywheresoftware.b4a.objects.B4XViewWrapper _vroot,anywheresoftware.b4a.sql.SQL _skmt) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba,_vcallback,_veventname,_vroot,_skmt}));}
RDebugUtils.currentLine=73662464;
 //BA.debugLineNum = 73662464;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent";
RDebugUtils.currentLine=73662465;
 //BA.debugLineNum = 73662465;BA.debugLine="Root2 = vRoot";
__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _vroot;
RDebugUtils.currentLine=73662466;
 //BA.debugLineNum = 73662466;BA.debugLine="EventName = vEventName";
__ref._eventname /*String*/  = _veventname;
RDebugUtils.currentLine=73662467;
 //BA.debugLineNum = 73662467;BA.debugLine="CallBack = vCallback";
__ref._callback /*Object*/  = _vcallback;
RDebugUtils.currentLine=73662468;
 //BA.debugLineNum = 73662468;BA.debugLine="db = skmt";
__ref._db /*anywheresoftware.b4a.sql.SQL*/  = _skmt;
RDebugUtils.currentLine=73662469;
 //BA.debugLineNum = 73662469;BA.debugLine="vPreguntaActual = 0";
__ref._vpreguntaactual /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=73662470;
 //BA.debugLineNum = 73662470;BA.debugLine="db.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CUEST";
__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CUESTIONARIO (Q_RUTA TEXT, Q_ALMACEN TEXT, Q_IDCLIENTE TEXT, Q_IDPREGUNTA TEXT, Q_PREGUNTA TEXT, Q_IDRESPUESTA TEXT, Q_RESPUESTA TEXT, Q_FECHA TEXT, Q_ENVIO_OK INTEGER DEFAULT 0)");
RDebugUtils.currentLine=73662471;
 //BA.debugLineNum = 73662471;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_RUTA\", \"TEXT\")";
__ref._agregacolumna /*String*/ (null,"CUESTIONARIO","Q_RUTA","TEXT");
RDebugUtils.currentLine=73662472;
 //BA.debugLineNum = 73662472;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_ALMACEN\", \"TEXT\"";
__ref._agregacolumna /*String*/ (null,"CUESTIONARIO","Q_ALMACEN","TEXT");
RDebugUtils.currentLine=73662473;
 //BA.debugLineNum = 73662473;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=73662474;
 //BA.debugLineNum = 73662474;BA.debugLine="End Sub";
return null;
}
public String  _agregapreguntacheckbox(gunav2.keymon.com.mx.c_cuestionario __ref,String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "agregapreguntacheckbox", false))
	 {return ((String) Debug.delegate(ba, "agregapreguntacheckbox", new Object[] {_id,_pregunta,_respuestas}));}
anywheresoftware.b4a.objects.StringUtils _su = null;
anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null;
anywheresoftware.b4a.objects.PanelWrapper _panelx = null;
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper[] _cb = null;
int _p = 0;
int _newtop = 0;
RDebugUtils.currentLine=73859072;
 //BA.debugLineNum = 73859072;BA.debugLine="Sub agregaPreguntaCheckbox(id As String, pregunta";
RDebugUtils.currentLine=73859073;
 //BA.debugLineNum = 73859073;BA.debugLine="encuestaIniciada = True";
__ref._encuestainiciada /*boolean*/  = __c.True;
RDebugUtils.currentLine=73859074;
 //BA.debugLineNum = 73859074;BA.debugLine="vPreguntaActual = id";
__ref._vpreguntaactual /*String*/  = _id;
RDebugUtils.currentLine=73859075;
 //BA.debugLineNum = 73859075;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .Initialize(ba,"bAceptarPregunta");
RDebugUtils.currentLine=73859076;
 //BA.debugLineNum = 73859076;BA.debugLine="bAceptarPregunta.Enabled = False";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=73859077;
 //BA.debugLineNum = 73859077;BA.debugLine="Private su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
RDebugUtils.currentLine=73859078;
 //BA.debugLineNum = 73859078;BA.debugLine="panelSombra.Initialize(\"pSombra\")";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .Initialize(ba,"pSombra");
RDebugUtils.currentLine=73859079;
 //BA.debugLineNum = 73859079;BA.debugLine="Private cd As ColorDrawable";
_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
RDebugUtils.currentLine=73859080;
 //BA.debugLineNum = 73859080;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)";
_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0));
RDebugUtils.currentLine=73859081;
 //BA.debugLineNum = 73859081;BA.debugLine="panelSombra.Background = cd";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
RDebugUtils.currentLine=73859082;
 //BA.debugLineNum = 73859082;BA.debugLine="Private panelX As Panel 'Panel de la pregunta.";
_panelx = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=73859083;
 //BA.debugLineNum = 73859083;BA.debugLine="panelX.Initialize(\"pQuest\")";
_panelx.Initialize(ba,"pQuest");
RDebugUtils.currentLine=73859084;
 //BA.debugLineNum = 73859084;BA.debugLine="panelActual = panelX";
__ref._panelactual /*anywheresoftware.b4a.objects.PanelWrapper*/  = _panelx;
RDebugUtils.currentLine=73859085;
 //BA.debugLineNum = 73859085;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta.";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=73859086;
 //BA.debugLineNum = 73859086;BA.debugLine="lbl.Initialize(\"\")";
_lbl.Initialize(ba,"");
RDebugUtils.currentLine=73859087;
 //BA.debugLineNum = 73859087;BA.debugLine="lbl.Text = pregunta";
_lbl.setText(BA.ObjectToCharSequence(_pregunta));
RDebugUtils.currentLine=73859088;
 //BA.debugLineNum = 73859088;BA.debugLine="lbl.TextSize = 16";
_lbl.setTextSize((float) (16));
RDebugUtils.currentLine=73859089;
 //BA.debugLineNum = 73859089;BA.debugLine="lbl.TextColor = Colors.Black";
_lbl.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=73859090;
 //BA.debugLineNum = 73859090;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)";
_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray);
RDebugUtils.currentLine=73859091;
 //BA.debugLineNum = 73859091;BA.debugLine="panelX.Background = cd";
_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
RDebugUtils.currentLine=73859092;
 //BA.debugLineNum = 73859092;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200)));
RDebugUtils.currentLine=73859093;
 //BA.debugLineNum = 73859093;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a";
__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
RDebugUtils.currentLine=73859094;
 //BA.debugLineNum = 73859094;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *";
_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40)));
RDebugUtils.currentLine=73859095;
 //BA.debugLineNum = 73859095;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l";
_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText())));
RDebugUtils.currentLine=73859096;
 //BA.debugLineNum = 73859096;BA.debugLine="Private cb(respuestas.Size) As CheckBox";
_cb = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper[_respuestas.getSize()];
{
int d0 = _cb.length;
for (int i0 = 0;i0 < d0;i0++) {
_cb[i0] = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
}
}
;
RDebugUtils.currentLine=73859097;
 //BA.debugLineNum = 73859097;BA.debugLine="For p = 0 To respuestas.Size - 1";
{
final int step25 = 1;
final int limit25 = (int) (_respuestas.getSize()-1);
_p = (int) (0) ;
for (;_p <= limit25 ;_p = _p + step25 ) {
RDebugUtils.currentLine=73859098;
 //BA.debugLineNum = 73859098;BA.debugLine="cb(p).Initialize(\"cb\")";
_cb[_p].Initialize(ba,"cb");
RDebugUtils.currentLine=73859099;
 //BA.debugLineNum = 73859099;BA.debugLine="cb(p).Text = respuestas.Get(p)";
_cb[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p)));
RDebugUtils.currentLine=73859100;
 //BA.debugLineNum = 73859100;BA.debugLine="cb(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregun";
_cb[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject()),(Object)("idRespuesta"),(Object)(_p+1)}).getObject()));
RDebugUtils.currentLine=73859101;
 //BA.debugLineNum = 73859101;BA.debugLine="panelX.AddView(cb(p), 10dip, (70 * (p + 1)), (pa";
_panelx.AddView((android.view.View)(_cb[_p].getObject()),__c.DipToCurrent((int) (10)),(int) ((70*(_p+1))),(int) ((_panelx.getWidth()*0.9)),(int) (10));
RDebugUtils.currentLine=73859102;
 //BA.debugLineNum = 73859102;BA.debugLine="cb(p).Height = su.MeasureMultilineTextHeight(cb(";
_cb[_p].setHeight((int) (_su.MeasureMultilineTextHeight((android.widget.TextView)(_cb[_p].getObject()),BA.ObjectToCharSequence(_cb[_p].getText()))+1));
RDebugUtils.currentLine=73859103;
 //BA.debugLineNum = 73859103;BA.debugLine="Private newTop As Int = lbl.top + lbl.Height + 1";
_newtop = (int) (_lbl.getTop()+_lbl.getHeight()+10);
RDebugUtils.currentLine=73859104;
 //BA.debugLineNum = 73859104;BA.debugLine="If p <> 0 Then newTop =cb(p - 1).Top + cb(p - 1)";
if (_p!=0) { 
_newtop = (int) (_cb[(int) (_p-1)].getTop()+_cb[(int) (_p-1)].getHeight()+10);};
RDebugUtils.currentLine=73859105;
 //BA.debugLineNum = 73859105;BA.debugLine="cb(p).Top = newTop";
_cb[_p].setTop(_newtop);
 }
};
RDebugUtils.currentLine=73859107;
 //BA.debugLineNum = 73859107;BA.debugLine="bAceptarPregunta.Text = \"Continuar\"";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("Continuar"));
RDebugUtils.currentLine=73859109;
 //BA.debugLineNum = 73859109;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, newTop + cb(";
_panelx.AddView((android.view.View)(__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getObject()),(int) (10),(int) (_newtop+_cb[(int) (_respuestas.getSize()-1)].getHeight()+20),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50)));
RDebugUtils.currentLine=73859110;
 //BA.debugLineNum = 73859110;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) ((_panelx.getWidth()/(double)2)-(__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=73859111;
 //BA.debugLineNum = 73859111;BA.debugLine="panelX.Height = bAceptarPregunta.Top + bAceptarPr";
_panelx.setHeight((int) (__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getTop()+__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight()+__c.DipToCurrent((int) (15))));
RDebugUtils.currentLine=73859112;
 //BA.debugLineNum = 73859112;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /";
_panelx.setLeft((int) ((__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(_panelx.getWidth()/(double)2)));
RDebugUtils.currentLine=73859113;
 //BA.debugLineNum = 73859113;BA.debugLine="panelX.top = (Root2.Height / 3) - (panelX.Height";
_panelx.setTop((int) ((__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)3)-(_panelx.getHeight()/(double)3)));
RDebugUtils.currentLine=73859114;
 //BA.debugLineNum = 73859114;BA.debugLine="panelSombra.Width = Root2.Width";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=73859115;
 //BA.debugLineNum = 73859115;BA.debugLine="panelSombra.Height = Root2.Height";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=73859116;
 //BA.debugLineNum = 73859116;BA.debugLine="panelSombra.Elevation = 100";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setElevation((float) (100));
RDebugUtils.currentLine=73859117;
 //BA.debugLineNum = 73859117;BA.debugLine="panelSombra.BringToFront";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=73859119;
 //BA.debugLineNum = 73859119;BA.debugLine="End Sub";
return "";
}
public String  _agregapreguntaabierta(gunav2.keymon.com.mx.c_cuestionario __ref,String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _ids,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "agregapreguntaabierta", false))
	 {return ((String) Debug.delegate(ba, "agregapreguntaabierta", new Object[] {_id,_pregunta,_ids,_respuestas}));}
anywheresoftware.b4a.objects.ScrollViewWrapper _sv_cuest = null;
anywheresoftware.b4a.objects.StringUtils _su = null;
anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null;
anywheresoftware.b4a.objects.PanelWrapper _panelx = null;
anywheresoftware.b4a.objects.PanelWrapper _panel2 = null;
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
anywheresoftware.b4a.objects.EditTextWrapper[] _et = null;
anywheresoftware.b4a.objects.LabelWrapper[] _labelx = null;
int _p = 0;
anywheresoftware.b4a.objects.LabelWrapper _lx = null;
int _newtop = 0;
RDebugUtils.currentLine=73990144;
 //BA.debugLineNum = 73990144;BA.debugLine="Sub agregaPreguntaAbierta(id As String, pregunta A";
RDebugUtils.currentLine=73990145;
 //BA.debugLineNum = 73990145;BA.debugLine="Log(\"Iniciamos PreguntaAbierta\")";
__c.LogImpl("073990145","Iniciamos PreguntaAbierta",0);
RDebugUtils.currentLine=73990146;
 //BA.debugLineNum = 73990146;BA.debugLine="Log(ids)";
__c.LogImpl("073990146",BA.ObjectToString(_ids),0);
RDebugUtils.currentLine=73990147;
 //BA.debugLineNum = 73990147;BA.debugLine="Log(respuestas)";
__c.LogImpl("073990147",BA.ObjectToString(_respuestas),0);
RDebugUtils.currentLine=73990148;
 //BA.debugLineNum = 73990148;BA.debugLine="Private sv_cuest As ScrollView";
_sv_cuest = new anywheresoftware.b4a.objects.ScrollViewWrapper();
RDebugUtils.currentLine=73990149;
 //BA.debugLineNum = 73990149;BA.debugLine="sv_cuest.Initialize(500dip)";
_sv_cuest.Initialize(ba,__c.DipToCurrent((int) (500)));
RDebugUtils.currentLine=73990150;
 //BA.debugLineNum = 73990150;BA.debugLine="encuestaIniciada = True";
__ref._encuestainiciada /*boolean*/  = __c.True;
RDebugUtils.currentLine=73990151;
 //BA.debugLineNum = 73990151;BA.debugLine="vPreguntaActual = id";
__ref._vpreguntaactual /*String*/  = _id;
RDebugUtils.currentLine=73990152;
 //BA.debugLineNum = 73990152;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .Initialize(ba,"bAceptarPregunta");
RDebugUtils.currentLine=73990153;
 //BA.debugLineNum = 73990153;BA.debugLine="Private su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
RDebugUtils.currentLine=73990154;
 //BA.debugLineNum = 73990154;BA.debugLine="panelSombra.Initialize(\"pSombra\")";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .Initialize(ba,"pSombra");
RDebugUtils.currentLine=73990155;
 //BA.debugLineNum = 73990155;BA.debugLine="Private cd As ColorDrawable";
_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
RDebugUtils.currentLine=73990156;
 //BA.debugLineNum = 73990156;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)";
_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0));
RDebugUtils.currentLine=73990157;
 //BA.debugLineNum = 73990157;BA.debugLine="panelSombra.Background = cd";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
RDebugUtils.currentLine=73990158;
 //BA.debugLineNum = 73990158;BA.debugLine="Private panelX As Panel 'Panel de la pregunta.";
_panelx = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=73990159;
 //BA.debugLineNum = 73990159;BA.debugLine="panelX.Initialize(\"pQuest\")";
_panelx.Initialize(ba,"pQuest");
RDebugUtils.currentLine=73990160;
 //BA.debugLineNum = 73990160;BA.debugLine="Private sv_cuest As ScrollView";
_sv_cuest = new anywheresoftware.b4a.objects.ScrollViewWrapper();
RDebugUtils.currentLine=73990161;
 //BA.debugLineNum = 73990161;BA.debugLine="sv_cuest.Initialize(100dip)";
_sv_cuest.Initialize(ba,__c.DipToCurrent((int) (100)));
RDebugUtils.currentLine=73990162;
 //BA.debugLineNum = 73990162;BA.debugLine="Private panel2 As Panel 'Panel de la pregunta.";
_panel2 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=73990163;
 //BA.debugLineNum = 73990163;BA.debugLine="panel2.Initialize(\"panel2\")";
_panel2.Initialize(ba,"panel2");
RDebugUtils.currentLine=73990164;
 //BA.debugLineNum = 73990164;BA.debugLine="panel2.Color = Colors.Yellow";
_panel2.setColor(__c.Colors.Yellow);
RDebugUtils.currentLine=73990165;
 //BA.debugLineNum = 73990165;BA.debugLine="panelActual = panelX";
__ref._panelactual /*anywheresoftware.b4a.objects.PanelWrapper*/  = _panelx;
RDebugUtils.currentLine=73990166;
 //BA.debugLineNum = 73990166;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta.";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=73990167;
 //BA.debugLineNum = 73990167;BA.debugLine="lbl.Initialize(\"\")";
_lbl.Initialize(ba,"");
RDebugUtils.currentLine=73990168;
 //BA.debugLineNum = 73990168;BA.debugLine="lbl.Text = pregunta";
_lbl.setText(BA.ObjectToCharSequence(_pregunta));
RDebugUtils.currentLine=73990169;
 //BA.debugLineNum = 73990169;BA.debugLine="lbl.TextSize = 16";
_lbl.setTextSize((float) (16));
RDebugUtils.currentLine=73990170;
 //BA.debugLineNum = 73990170;BA.debugLine="lbl.TextColor = Colors.Black";
_lbl.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=73990171;
 //BA.debugLineNum = 73990171;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)";
_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray);
RDebugUtils.currentLine=73990172;
 //BA.debugLineNum = 73990172;BA.debugLine="panelX.Background = cd";
_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
RDebugUtils.currentLine=73990173;
 //BA.debugLineNum = 73990173;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200)));
RDebugUtils.currentLine=73990174;
 //BA.debugLineNum = 73990174;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a";
__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
RDebugUtils.currentLine=73990175;
 //BA.debugLineNum = 73990175;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *";
_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40)));
RDebugUtils.currentLine=73990176;
 //BA.debugLineNum = 73990176;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l";
_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText())));
RDebugUtils.currentLine=73990177;
 //BA.debugLineNum = 73990177;BA.debugLine="Private et(respuestas.Size) As EditText";
_et = new anywheresoftware.b4a.objects.EditTextWrapper[_respuestas.getSize()];
{
int d0 = _et.length;
for (int i0 = 0;i0 < d0;i0++) {
_et[i0] = new anywheresoftware.b4a.objects.EditTextWrapper();
}
}
;
RDebugUtils.currentLine=73990178;
 //BA.debugLineNum = 73990178;BA.debugLine="Private labelX(respuestas.Size) As Label";
_labelx = new anywheresoftware.b4a.objects.LabelWrapper[_respuestas.getSize()];
{
int d0 = _labelx.length;
for (int i0 = 0;i0 < d0;i0++) {
_labelx[i0] = new anywheresoftware.b4a.objects.LabelWrapper();
}
}
;
RDebugUtils.currentLine=73990179;
 //BA.debugLineNum = 73990179;BA.debugLine="For p = 0 To respuestas.Size - 1";
{
final int step35 = 1;
final int limit35 = (int) (_respuestas.getSize()-1);
_p = (int) (0) ;
for (;_p <= limit35 ;_p = _p + step35 ) {
RDebugUtils.currentLine=73990180;
 //BA.debugLineNum = 73990180;BA.debugLine="et(p).Initialize(\"et\")";
_et[_p].Initialize(ba,"et");
RDebugUtils.currentLine=73990181;
 //BA.debugLineNum = 73990181;BA.debugLine="labelX(p).Initialize(\"labelX\")";
_labelx[_p].Initialize(ba,"labelX");
RDebugUtils.currentLine=73990182;
 //BA.debugLineNum = 73990182;BA.debugLine="labelX(p).Height = 60dip";
_labelx[_p].setHeight(__c.DipToCurrent((int) (60)));
RDebugUtils.currentLine=73990185;
 //BA.debugLineNum = 73990185;BA.debugLine="et(p).As(B4XView).SetTextAlignment(\"CENTER\", \"CE";
((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_et[_p].getObject()))).SetTextAlignment("CENTER","CENTER");
RDebugUtils.currentLine=73990186;
 //BA.debugLineNum = 73990186;BA.debugLine="labelX(p).As(B4XView).SetTextAlignment(\"CENTER\",";
((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_labelx[_p].getObject()))).SetTextAlignment("CENTER","CENTER");
RDebugUtils.currentLine=73990187;
 //BA.debugLineNum = 73990187;BA.debugLine="et(p).SetTextSizeAnimated(0, 10)";
_et[_p].SetTextSizeAnimated((int) (0),(float) (10));
RDebugUtils.currentLine=73990188;
 //BA.debugLineNum = 73990188;BA.debugLine="et(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregun";
_et[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject()),(Object)("idRespuesta"),_ids.Get(_p)}).getObject()));
RDebugUtils.currentLine=73990189;
 //BA.debugLineNum = 73990189;BA.debugLine="labelX(p).Text = respuestas.Get(p)";
_labelx[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p)));
RDebugUtils.currentLine=73990190;
 //BA.debugLineNum = 73990190;BA.debugLine="Private lx As Label = labelX(p)";
_lx = new anywheresoftware.b4a.objects.LabelWrapper();
_lx = _labelx[_p];
RDebugUtils.currentLine=73990191;
 //BA.debugLineNum = 73990191;BA.debugLine="et(p).Text = \"\"";
_et[_p].setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=73990192;
 //BA.debugLineNum = 73990192;BA.debugLine="Log($\"Agregamos ET ${labelX(p).text} - ${(70*p)}";
__c.LogImpl("073990192",("Agregamos ET "+__c.SmartStringFormatter("",(Object)(_labelx[_p].getText()))+" - "+__c.SmartStringFormatter("",(Object)((70*_p)))+""),0);
RDebugUtils.currentLine=73990194;
 //BA.debugLineNum = 73990194;BA.debugLine="Log(labelX(p).Height)";
__c.LogImpl("073990194",BA.NumberToString(_labelx[_p].getHeight()),0);
RDebugUtils.currentLine=73990195;
 //BA.debugLineNum = 73990195;BA.debugLine="sv_cuest.panel.AddView(labelX(p), 0, (70 * p), (";
_sv_cuest.getPanel().AddView((android.view.View)(_labelx[_p].getObject()),(int) (0),(int) ((70*_p)),(int) ((_panelx.getWidth()*0.72)),(int) (60));
RDebugUtils.currentLine=73990196;
 //BA.debugLineNum = 73990196;BA.debugLine="sv_cuest.panel.AddView(et(p), (labelX(p).Width +";
_sv_cuest.getPanel().AddView((android.view.View)(_et[_p].getObject()),(int) ((_labelx[_p].getWidth()+5)),(int) ((70*_p)),(int) ((_panelx.getWidth()*0.2)),(int) (115));
RDebugUtils.currentLine=73990197;
 //BA.debugLineNum = 73990197;BA.debugLine="Private newTop As Int = 0 'lbl.top + lbl.Height";
_newtop = (int) (0);
RDebugUtils.currentLine=73990198;
 //BA.debugLineNum = 73990198;BA.debugLine="If p <> 0 Then newTop = et(p - 1).Top + et(p - 1";
if (_p!=0) { 
_newtop = (int) (_et[(int) (_p-1)].getTop()+_et[(int) (_p-1)].getHeight()+5);};
RDebugUtils.currentLine=73990199;
 //BA.debugLineNum = 73990199;BA.debugLine="et(p).Top = newTop";
_et[_p].setTop(_newtop);
RDebugUtils.currentLine=73990200;
 //BA.debugLineNum = 73990200;BA.debugLine="labelX(p).Top = newTop";
_labelx[_p].setTop(_newtop);
 }
};
RDebugUtils.currentLine=73990202;
 //BA.debugLineNum = 73990202;BA.debugLine="bAceptarPregunta.Text = \"Continuar\"";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("Continuar"));
RDebugUtils.currentLine=73990203;
 //BA.debugLineNum = 73990203;BA.debugLine="panelX.AddView(sv_cuest, 10, lbl.top + lbl.Height";
_panelx.AddView((android.view.View)(_sv_cuest.getObject()),(int) (10),(int) (_lbl.getTop()+_lbl.getHeight()+20),(int) ((_panelx.getWidth()*0.95)),__c.DipToCurrent((int) (300)));
RDebugUtils.currentLine=73990204;
 //BA.debugLineNum = 73990204;BA.debugLine="sv_cuest.panel.Height = newTop + 40dip";
_sv_cuest.getPanel().setHeight((int) (_newtop+__c.DipToCurrent((int) (40))));
RDebugUtils.currentLine=73990205;
 //BA.debugLineNum = 73990205;BA.debugLine="panelX.Height = newTop + 80dip + 35dip 'Calculamo";
_panelx.setHeight((int) (_newtop+__c.DipToCurrent((int) (80))+__c.DipToCurrent((int) (35))));
RDebugUtils.currentLine=73990206;
 //BA.debugLineNum = 73990206;BA.debugLine="panelX.Height = 150dip + (respuestas.Size * 80) '";
_panelx.setHeight((int) (__c.DipToCurrent((int) (150))+(_respuestas.getSize()*80)));
RDebugUtils.currentLine=73990208;
 //BA.debugLineNum = 73990208;BA.debugLine="If panelX.Height > (Root2.Height * 0.7) Then ' Si";
if (_panelx.getHeight()>(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.7)) { 
RDebugUtils.currentLine=73990209;
 //BA.debugLineNum = 73990209;BA.debugLine="panelX.Height = Root2.Height * 0.7";
_panelx.setHeight((int) (__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.7));
 };
RDebugUtils.currentLine=73990211;
 //BA.debugLineNum = 73990211;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, (panelX.Heig";
_panelx.AddView((android.view.View)(__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getObject()),(int) (10),(int) ((_panelx.getHeight()-__c.DipToCurrent((int) (55)))),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50)));
RDebugUtils.currentLine=73990212;
 //BA.debugLineNum = 73990212;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) ((_panelx.getWidth()/(double)2)-(__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=73990213;
 //BA.debugLineNum = 73990213;BA.debugLine="bAceptarPregunta.Enabled = False";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);
RDebugUtils.currentLine=73990214;
 //BA.debugLineNum = 73990214;BA.debugLine="sv_cuest.Height = panelX.Height - (lbl.Top + lbl.";
_sv_cuest.setHeight((int) (_panelx.getHeight()-(_lbl.getTop()+_lbl.getHeight())-__c.DipToCurrent((int) (55))));
RDebugUtils.currentLine=73990215;
 //BA.debugLineNum = 73990215;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /";
_panelx.setLeft((int) ((__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(_panelx.getWidth()/(double)2)));
RDebugUtils.currentLine=73990216;
 //BA.debugLineNum = 73990216;BA.debugLine="panelX.top = (Root2.Height / 2) - (panelX.Height";
_panelx.setTop((int) ((__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2)-(_panelx.getHeight()/(double)2)));
RDebugUtils.currentLine=73990217;
 //BA.debugLineNum = 73990217;BA.debugLine="If respuestas.Size < 10 Then panelX.top = (Root2.";
if (_respuestas.getSize()<10) { 
_panelx.setTop((int) ((__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)3)-(_panelx.getHeight()/(double)2)));};
RDebugUtils.currentLine=73990218;
 //BA.debugLineNum = 73990218;BA.debugLine="panelSombra.Width = Root2.Width";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=73990219;
 //BA.debugLineNum = 73990219;BA.debugLine="panelSombra.Height = Root2.Height";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=73990220;
 //BA.debugLineNum = 73990220;BA.debugLine="panelSombra.Elevation = 100dip";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setElevation((float) (__c.DipToCurrent((int) (100))));
RDebugUtils.currentLine=73990221;
 //BA.debugLineNum = 73990221;BA.debugLine="panelSombra.BringToFront";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=73990222;
 //BA.debugLineNum = 73990222;BA.debugLine="bringToFrontCont = 0";
__ref._bringtofrontcont /*int*/  = (int) (0);
RDebugUtils.currentLine=73990223;
 //BA.debugLineNum = 73990223;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.collections.List  _strtolist(gunav2.keymon.com.mx.c_cuestionario __ref,String _str) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "strtolist", false))
	 {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "strtolist", new Object[] {_str}));}
String[] _resps = null;
anywheresoftware.b4a.objects.collections.List _l = null;
int _r = 0;
RDebugUtils.currentLine=74711040;
 //BA.debugLineNum = 74711040;BA.debugLine="Sub strToList(str As String) As List 'ignore";
RDebugUtils.currentLine=74711041;
 //BA.debugLineNum = 74711041;BA.debugLine="Private resps() As String = Regex.Split(\"\\|\", str";
_resps = __c.Regex.Split("\\|",_str);
RDebugUtils.currentLine=74711042;
 //BA.debugLineNum = 74711042;BA.debugLine="Private l As List";
_l = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=74711043;
 //BA.debugLineNum = 74711043;BA.debugLine="l.Initialize";
_l.Initialize();
RDebugUtils.currentLine=74711044;
 //BA.debugLineNum = 74711044;BA.debugLine="For r = 0 To resps.Length - 1";
{
final int step4 = 1;
final int limit4 = (int) (_resps.length-1);
_r = (int) (0) ;
for (;_r <= limit4 ;_r = _r + step4 ) {
RDebugUtils.currentLine=74711045;
 //BA.debugLineNum = 74711045;BA.debugLine="l.Add(resps(r))";
_l.Add((Object)(_resps[_r]));
 }
};
RDebugUtils.currentLine=74711047;
 //BA.debugLineNum = 74711047;BA.debugLine="Return l";
if (true) return _l;
RDebugUtils.currentLine=74711048;
 //BA.debugLineNum = 74711048;BA.debugLine="End Sub";
return null;
}
public String  _agregacolumna(gunav2.keymon.com.mx.c_cuestionario __ref,String _tabla,String _columna,String _tipo) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "agregacolumna", false))
	 {return ((String) Debug.delegate(ba, "agregacolumna", new Object[] {_tabla,_columna,_tipo}));}
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
RDebugUtils.currentLine=74579968;
 //BA.debugLineNum = 74579968;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
RDebugUtils.currentLine=74579969;
 //BA.debugLineNum = 74579969;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
try {RDebugUtils.currentLine=74579970;
 //BA.debugLineNum = 74579970;BA.debugLine="Private c As Cursor = db.ExecQuery($\"SELECT COUN";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) AS fCol FROM pragma_table_info('"+__c.SmartStringFormatter("",(Object)(_tabla))+"') WHERE name='"+__c.SmartStringFormatter("",(Object)(_columna))+"'"))));
RDebugUtils.currentLine=74579971;
 //BA.debugLineNum = 74579971;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
RDebugUtils.currentLine=74579972;
 //BA.debugLineNum = 74579972;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=74579973;
 //BA.debugLineNum = 74579973;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
RDebugUtils.currentLine=74579974;
 //BA.debugLineNum = 74579974;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("074579974",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
 };
 } 
       catch (Exception e9) {
			ba.setLastException(e9);RDebugUtils.currentLine=74579977;
 //BA.debugLineNum = 74579977;BA.debugLine="Try";
try {RDebugUtils.currentLine=74579978;
 //BA.debugLineNum = 74579978;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
RDebugUtils.currentLine=74579979;
 //BA.debugLineNum = 74579979;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("074579979",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
 } 
       catch (Exception e13) {
			ba.setLastException(e13);RDebugUtils.currentLine=74579981;
 //BA.debugLineNum = 74579981;BA.debugLine="Log(LastException)";
__c.LogImpl("074579981",BA.ObjectToString(__c.LastException(ba)),0);
 };
 };
RDebugUtils.currentLine=74579984;
 //BA.debugLineNum = 74579984;BA.debugLine="End Sub";
return "";
}
public String  _agregapreguntaradio(gunav2.keymon.com.mx.c_cuestionario __ref,String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "agregapreguntaradio", false))
	 {return ((String) Debug.delegate(ba, "agregapreguntaradio", new Object[] {_id,_pregunta,_respuestas}));}
anywheresoftware.b4a.objects.StringUtils _su = null;
anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null;
anywheresoftware.b4a.objects.PanelWrapper _panelx = null;
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper[] _r = null;
int _p = 0;
int _newtop = 0;
RDebugUtils.currentLine=73924608;
 //BA.debugLineNum = 73924608;BA.debugLine="Sub agregaPreguntaRadio(id As String, pregunta As";
RDebugUtils.currentLine=73924609;
 //BA.debugLineNum = 73924609;BA.debugLine="encuestaIniciada = True";
__ref._encuestainiciada /*boolean*/  = __c.True;
RDebugUtils.currentLine=73924610;
 //BA.debugLineNum = 73924610;BA.debugLine="vPreguntaActual = id";
__ref._vpreguntaactual /*String*/  = _id;
RDebugUtils.currentLine=73924611;
 //BA.debugLineNum = 73924611;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .Initialize(ba,"bAceptarPregunta");
RDebugUtils.currentLine=73924612;
 //BA.debugLineNum = 73924612;BA.debugLine="Private su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
RDebugUtils.currentLine=73924613;
 //BA.debugLineNum = 73924613;BA.debugLine="panelSombra.Initialize(\"pSombra\")";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .Initialize(ba,"pSombra");
RDebugUtils.currentLine=73924614;
 //BA.debugLineNum = 73924614;BA.debugLine="Private cd As ColorDrawable";
_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
RDebugUtils.currentLine=73924615;
 //BA.debugLineNum = 73924615;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)";
_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0));
RDebugUtils.currentLine=73924616;
 //BA.debugLineNum = 73924616;BA.debugLine="panelSombra.Background = cd";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
RDebugUtils.currentLine=73924617;
 //BA.debugLineNum = 73924617;BA.debugLine="Private panelX As Panel 'Panel de la pregunta.";
_panelx = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=73924618;
 //BA.debugLineNum = 73924618;BA.debugLine="panelX.Initialize(\"pQuest\")";
_panelx.Initialize(ba,"pQuest");
RDebugUtils.currentLine=73924619;
 //BA.debugLineNum = 73924619;BA.debugLine="panelActual = panelX";
__ref._panelactual /*anywheresoftware.b4a.objects.PanelWrapper*/  = _panelx;
RDebugUtils.currentLine=73924620;
 //BA.debugLineNum = 73924620;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta.";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=73924621;
 //BA.debugLineNum = 73924621;BA.debugLine="lbl.Initialize(\"\")";
_lbl.Initialize(ba,"");
RDebugUtils.currentLine=73924622;
 //BA.debugLineNum = 73924622;BA.debugLine="lbl.Text = pregunta";
_lbl.setText(BA.ObjectToCharSequence(_pregunta));
RDebugUtils.currentLine=73924623;
 //BA.debugLineNum = 73924623;BA.debugLine="lbl.TextSize = 16";
_lbl.setTextSize((float) (16));
RDebugUtils.currentLine=73924624;
 //BA.debugLineNum = 73924624;BA.debugLine="lbl.TextColor = Colors.Black";
_lbl.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=73924625;
 //BA.debugLineNum = 73924625;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)";
_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray);
RDebugUtils.currentLine=73924626;
 //BA.debugLineNum = 73924626;BA.debugLine="panelX.Background = cd";
_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
RDebugUtils.currentLine=73924627;
 //BA.debugLineNum = 73924627;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200)));
RDebugUtils.currentLine=73924628;
 //BA.debugLineNum = 73924628;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a";
__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
RDebugUtils.currentLine=73924629;
 //BA.debugLineNum = 73924629;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *";
_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40)));
RDebugUtils.currentLine=73924630;
 //BA.debugLineNum = 73924630;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l";
_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText())));
RDebugUtils.currentLine=73924631;
 //BA.debugLineNum = 73924631;BA.debugLine="Private r(respuestas.Size) As RadioButton";
_r = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper[_respuestas.getSize()];
{
int d0 = _r.length;
for (int i0 = 0;i0 < d0;i0++) {
_r[i0] = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
}
}
;
RDebugUtils.currentLine=73924632;
 //BA.debugLineNum = 73924632;BA.debugLine="For p = 0 To respuestas.Size - 1";
{
final int step24 = 1;
final int limit24 = (int) (_respuestas.getSize()-1);
_p = (int) (0) ;
for (;_p <= limit24 ;_p = _p + step24 ) {
RDebugUtils.currentLine=73924633;
 //BA.debugLineNum = 73924633;BA.debugLine="r(p).Initialize(\"r\")";
_r[_p].Initialize(ba,"r");
RDebugUtils.currentLine=73924634;
 //BA.debugLineNum = 73924634;BA.debugLine="r(p).Text = respuestas.Get(p)";
_r[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p)));
RDebugUtils.currentLine=73924635;
 //BA.debugLineNum = 73924635;BA.debugLine="r(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregunt";
_r[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject()),(Object)("idRespuesta"),(Object)(_p+1)}).getObject()));
RDebugUtils.currentLine=73924636;
 //BA.debugLineNum = 73924636;BA.debugLine="panelX.AddView(r(p), 10dip, (70 * (p + 1)), (pan";
_panelx.AddView((android.view.View)(_r[_p].getObject()),__c.DipToCurrent((int) (10)),(int) ((70*(_p+1))),(int) ((_panelx.getWidth()*0.9)),(int) (10));
RDebugUtils.currentLine=73924637;
 //BA.debugLineNum = 73924637;BA.debugLine="r(p).Height = su.MeasureMultilineTextHeight(r(p)";
_r[_p].setHeight((int) (_su.MeasureMultilineTextHeight((android.widget.TextView)(_r[_p].getObject()),BA.ObjectToCharSequence(_r[_p].getText()))+25));
RDebugUtils.currentLine=73924638;
 //BA.debugLineNum = 73924638;BA.debugLine="Private newTop As Int = lbl.top + lbl.Height + 1";
_newtop = (int) (_lbl.getTop()+_lbl.getHeight()+10);
RDebugUtils.currentLine=73924639;
 //BA.debugLineNum = 73924639;BA.debugLine="If p <> 0 Then newTop = r(p - 1).Top + r(p - 1).";
if (_p!=0) { 
_newtop = (int) (_r[(int) (_p-1)].getTop()+_r[(int) (_p-1)].getHeight()+5);};
RDebugUtils.currentLine=73924640;
 //BA.debugLineNum = 73924640;BA.debugLine="r(p).Top = newTop";
_r[_p].setTop(_newtop);
 }
};
RDebugUtils.currentLine=73924642;
 //BA.debugLineNum = 73924642;BA.debugLine="r(0).Checked = True";
_r[(int) (0)].setChecked(__c.True);
RDebugUtils.currentLine=73924643;
 //BA.debugLineNum = 73924643;BA.debugLine="bAceptarPregunta.Text = \"Continuar\"";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("Continuar"));
RDebugUtils.currentLine=73924645;
 //BA.debugLineNum = 73924645;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, newTop + r(r";
_panelx.AddView((android.view.View)(__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getObject()),(int) (10),(int) (_newtop+_r[(int) (_respuestas.getSize()-1)].getHeight()+20),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50)));
RDebugUtils.currentLine=73924646;
 //BA.debugLineNum = 73924646;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setLeft((int) ((_panelx.getWidth()/(double)2)-(__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getWidth()/(double)2)));
RDebugUtils.currentLine=73924647;
 //BA.debugLineNum = 73924647;BA.debugLine="panelX.Height = bAceptarPregunta.Top + bAceptarPr";
_panelx.setHeight((int) (__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getTop()+__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight()+__c.DipToCurrent((int) (15))));
RDebugUtils.currentLine=73924648;
 //BA.debugLineNum = 73924648;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /";
_panelx.setLeft((int) ((__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)-(_panelx.getWidth()/(double)2)));
RDebugUtils.currentLine=73924649;
 //BA.debugLineNum = 73924649;BA.debugLine="panelX.top = (Root2.Height / 3) - (panelX.Height";
_panelx.setTop((int) ((__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)3)-(_panelx.getHeight()/(double)2)));
RDebugUtils.currentLine=73924650;
 //BA.debugLineNum = 73924650;BA.debugLine="panelSombra.Width = Root2.Width";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=73924651;
 //BA.debugLineNum = 73924651;BA.debugLine="panelSombra.Height = Root2.Height";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=73924652;
 //BA.debugLineNum = 73924652;BA.debugLine="panelSombra.Elevation = 100";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setElevation((float) (100));
RDebugUtils.currentLine=73924653;
 //BA.debugLineNum = 73924653;BA.debugLine="panelSombra.BringToFront";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=73924654;
 //BA.debugLineNum = 73924654;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(gunav2.keymon.com.mx.c_cuestionario __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=73728000;
 //BA.debugLineNum = 73728000;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=73728001;
 //BA.debugLineNum = 73728001;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=73728003;
 //BA.debugLineNum = 73728003;BA.debugLine="End Sub";
return "";
}
public String  _baceptarpregunta_click(gunav2.keymon.com.mx.c_cuestionario __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "baceptarpregunta_click", false))
	 {return ((String) Debug.delegate(ba, "baceptarpregunta_click", null));}
anywheresoftware.b4a.objects.collections.Map _m = null;
RDebugUtils.currentLine=74383360;
 //BA.debugLineNum = 74383360;BA.debugLine="Private Sub bAceptarPregunta_Click";
RDebugUtils.currentLine=74383361;
 //BA.debugLineNum = 74383361;BA.debugLine="encuestaIniciada = True";
__ref._encuestainiciada /*boolean*/  = __c.True;
RDebugUtils.currentLine=74383362;
 //BA.debugLineNum = 74383362;BA.debugLine="Private m As Map = Sender.As(Button).tag.As(Map)";
_m = new anywheresoftware.b4a.objects.collections.Map();
_m = ((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba)))).getTag())));
RDebugUtils.currentLine=74383363;
 //BA.debugLineNum = 74383363;BA.debugLine="preguntaContestada(m)";
__ref._preguntacontestada /*String*/ (null,_m);
RDebugUtils.currentLine=74383376;
 //BA.debugLineNum = 74383376;BA.debugLine="End Sub";
return "";
}
public String  _preguntacontestada(gunav2.keymon.com.mx.c_cuestionario __ref,anywheresoftware.b4a.objects.collections.Map _success) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "preguntacontestada", false))
	 {return ((String) Debug.delegate(ba, "preguntacontestada", new Object[] {_success}));}
RDebugUtils.currentLine=74055680;
 //BA.debugLineNum = 74055680;BA.debugLine="private Sub preguntaContestada(Success As Map) 'ig";
RDebugUtils.currentLine=74055681;
 //BA.debugLineNum = 74055681;BA.debugLine="If SubExists(CallBack, EventName & \"_preguntaCont";
if (__c.SubExists(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_preguntaContestada")) { 
RDebugUtils.currentLine=74055682;
 //BA.debugLineNum = 74055682;BA.debugLine="CallSubDelayed2(CallBack, EventName & \"_pregunta";
__c.CallSubDelayed2(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_preguntaContestada",(Object)(_success));
 };
RDebugUtils.currentLine=74055684;
 //BA.debugLineNum = 74055684;BA.debugLine="End Sub";
return "";
}
public String  _cb_checkedchange(gunav2.keymon.com.mx.c_cuestionario __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "cb_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "cb_checkedchange", new Object[] {_checked}));}
anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _elcb = null;
anywheresoftware.b4a.objects.collections.Map _elcbmap = null;
int _cuantoschks = 0;
anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null;
String _cb_idrespuestas = "";
RDebugUtils.currentLine=74252288;
 //BA.debugLineNum = 74252288;BA.debugLine="private Sub cb_CheckedChange(Checked As Boolean)";
RDebugUtils.currentLine=74252289;
 //BA.debugLineNum = 74252289;BA.debugLine="Private elCB As CheckBox = Sender.As(CheckBox)";
_elcb = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
_elcb = ((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(__c.Sender(ba))));
RDebugUtils.currentLine=74252290;
 //BA.debugLineNum = 74252290;BA.debugLine="Private elCBMap As Map = elCB.tag.As(Map)";
_elcbmap = new anywheresoftware.b4a.objects.collections.Map();
_elcbmap = ((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_elcb.getTag())));
RDebugUtils.currentLine=74252291;
 //BA.debugLineNum = 74252291;BA.debugLine="Private cuantosChks As Int = 0";
_cuantoschks = (int) (0);
RDebugUtils.currentLine=74252293;
 //BA.debugLineNum = 74252293;BA.debugLine="If elCB.Text = \"Ninguno de los anteriores\" And el";
if ((_elcb.getText()).equals("Ninguno de los anteriores") && _elcb.getChecked()==__c.True) { 
RDebugUtils.currentLine=74252294;
 //BA.debugLineNum = 74252294;BA.debugLine="For Each v As View In panelActual.GetAllViewsRec";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
{
final anywheresoftware.b4a.BA.IterableList group5 = __ref._panelactual /*anywheresoftware.b4a.objects.PanelWrapper*/ .GetAllViewsRecursive();
final int groupLen5 = group5.getSize()
;int index5 = 0;
;
for (; index5 < groupLen5;index5++){
_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group5.Get(index5)));
RDebugUtils.currentLine=74252295;
 //BA.debugLineNum = 74252295;BA.debugLine="If getViewType(v) = \"CheckBox\" Then";
if ((__ref._getviewtype /*String*/ (null,_v)).equals("CheckBox")) { 
RDebugUtils.currentLine=74252296;
 //BA.debugLineNum = 74252296;BA.debugLine="cuantosChks = cuantosChks + 1";
_cuantoschks = (int) (_cuantoschks+1);
RDebugUtils.currentLine=74252297;
 //BA.debugLineNum = 74252297;BA.debugLine="v.As(CheckBox).Checked = False";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setChecked(__c.False);
RDebugUtils.currentLine=74252298;
 //BA.debugLineNum = 74252298;BA.debugLine="v.As(CheckBox).Enabled = False";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.False);
RDebugUtils.currentLine=74252301;
 //BA.debugLineNum = 74252301;BA.debugLine="If v.As(CheckBox).Text = \"Ninguno de los anter";
if ((((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText()).equals("Ninguno de los anteriores")) { 
RDebugUtils.currentLine=74252302;
 //BA.debugLineNum = 74252302;BA.debugLine="v.As(CheckBox).Enabled = True";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.True);
RDebugUtils.currentLine=74252303;
 //BA.debugLineNum = 74252303;BA.debugLine="v.As(CheckBox).Checked = True";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setChecked(__c.True);
 };
RDebugUtils.currentLine=74252305;
 //BA.debugLineNum = 74252305;BA.debugLine="If v.As(CheckBox).Checked Then cb_respuestas =";
if (((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getChecked()) { 
__ref._cb_respuestas /*String*/  = __ref._cb_respuestas /*String*/ +"|"+((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText();};
 };
 }
};
 }else 
{RDebugUtils.currentLine=74252308;
 //BA.debugLineNum = 74252308;BA.debugLine="else if elCB.Text = \"Ninguno de los anteriores\" A";
if ((_elcb.getText()).equals("Ninguno de los anteriores") && _elcb.getChecked()==__c.False) { 
RDebugUtils.currentLine=74252309;
 //BA.debugLineNum = 74252309;BA.debugLine="For Each v As View In panelActual.GetAllViewsRec";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
{
final anywheresoftware.b4a.BA.IterableList group18 = __ref._panelactual /*anywheresoftware.b4a.objects.PanelWrapper*/ .GetAllViewsRecursive();
final int groupLen18 = group18.getSize()
;int index18 = 0;
;
for (; index18 < groupLen18;index18++){
_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group18.Get(index18)));
RDebugUtils.currentLine=74252310;
 //BA.debugLineNum = 74252310;BA.debugLine="If getViewType(v) = \"CheckBox\" Then";
if ((__ref._getviewtype /*String*/ (null,_v)).equals("CheckBox")) { 
RDebugUtils.currentLine=74252311;
 //BA.debugLineNum = 74252311;BA.debugLine="v.As(CheckBox).Enabled = True";
((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.True);
 };
 }
};
 }}
;
RDebugUtils.currentLine=74252315;
 //BA.debugLineNum = 74252315;BA.debugLine="If cuantosChks = 0 Then bAceptarPregunta.Enabled";
if (_cuantoschks==0) { 
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);};
RDebugUtils.currentLine=74252316;
 //BA.debugLineNum = 74252316;BA.debugLine="cb_respuestas = \"\"";
__ref._cb_respuestas /*String*/  = "";
RDebugUtils.currentLine=74252317;
 //BA.debugLineNum = 74252317;BA.debugLine="Private cb_idRespuestas As String= \"\"";
_cb_idrespuestas = "";
RDebugUtils.currentLine=74252318;
 //BA.debugLineNum = 74252318;BA.debugLine="For Each v As View In panelActual.GetAllViewsRecu";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
{
final anywheresoftware.b4a.BA.IterableList group27 = __ref._panelactual /*anywheresoftware.b4a.objects.PanelWrapper*/ .GetAllViewsRecursive();
final int groupLen27 = group27.getSize()
;int index27 = 0;
;
for (; index27 < groupLen27;index27++){
_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group27.Get(index27)));
RDebugUtils.currentLine=74252320;
 //BA.debugLineNum = 74252320;BA.debugLine="If getViewType(v) = \"CheckBox\" Then";
if ((__ref._getviewtype /*String*/ (null,_v)).equals("CheckBox")) { 
RDebugUtils.currentLine=74252323;
 //BA.debugLineNum = 74252323;BA.debugLine="If v.As(CheckBox).Checked Then";
if (((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getChecked()) { 
RDebugUtils.currentLine=74252325;
 //BA.debugLineNum = 74252325;BA.debugLine="If cb_respuestas = \"\" Then";
if ((__ref._cb_respuestas /*String*/ ).equals("")) { 
RDebugUtils.currentLine=74252326;
 //BA.debugLineNum = 74252326;BA.debugLine="cb_respuestas = v.As(CheckBox).Text";
__ref._cb_respuestas /*String*/  = ((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText();
RDebugUtils.currentLine=74252327;
 //BA.debugLineNum = 74252327;BA.debugLine="cb_idRespuestas = v.As(CheckBox).Tag.As(Map).";
_cb_idrespuestas = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta")));
 }else {
RDebugUtils.currentLine=74252329;
 //BA.debugLineNum = 74252329;BA.debugLine="cb_respuestas = cb_respuestas &\"|\" & v.As(Che";
__ref._cb_respuestas /*String*/  = __ref._cb_respuestas /*String*/ +"|"+((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText();
RDebugUtils.currentLine=74252330;
 //BA.debugLineNum = 74252330;BA.debugLine="cb_idRespuestas = cb_idRespuestas &\"|\" & v.As";
_cb_idrespuestas = _cb_idrespuestas+"|"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta")));
 };
RDebugUtils.currentLine=74252332;
 //BA.debugLineNum = 74252332;BA.debugLine="bAceptarPregunta.Enabled = True ' Si hay opcio";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);
 };
 };
 }
};
RDebugUtils.currentLine=74252339;
 //BA.debugLineNum = 74252339;BA.debugLine="bAceptarPregunta.tag = CreateMap(\"idPregunta\":elC";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(_elcbmap.Get((Object)("id"))))),(Object)("pregunta"),_elcbmap.Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)(_cb_idrespuestas),(Object)("respuesta"),(Object)(__ref._cb_respuestas /*String*/ ),(Object)("panel"),_elcbmap.Get((Object)("panel"))}).getObject()));
RDebugUtils.currentLine=74252340;
 //BA.debugLineNum = 74252340;BA.debugLine="End Sub";
return "";
}
public String  _getviewtype(gunav2.keymon.com.mx.c_cuestionario __ref,anywheresoftware.b4a.objects.ConcreteViewWrapper _v) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "getviewtype", false))
	 {return ((String) Debug.delegate(ba, "getviewtype", new Object[] {_v}));}
String _t = "";
String[] _t2 = null;
RDebugUtils.currentLine=74645504;
 //BA.debugLineNum = 74645504;BA.debugLine="Sub getViewType (v As View) As String 'ignore";
RDebugUtils.currentLine=74645505;
 //BA.debugLineNum = 74645505;BA.debugLine="Private t As String = GetType(v)";
_t = __c.GetType((Object)(_v.getObject()));
RDebugUtils.currentLine=74645507;
 //BA.debugLineNum = 74645507;BA.debugLine="Private t2() As String = Regex.Split(\"\\.\", t)";
_t2 = __c.Regex.Split("\\.",_t);
RDebugUtils.currentLine=74645509;
 //BA.debugLineNum = 74645509;BA.debugLine="If t2.Length = 3 Then";
if (_t2.length==3) { 
RDebugUtils.currentLine=74645510;
 //BA.debugLineNum = 74645510;BA.debugLine="t = t2(2)";
_t = _t2[(int) (2)];
 };
RDebugUtils.currentLine=74645512;
 //BA.debugLineNum = 74645512;BA.debugLine="Return t";
if (true) return _t;
RDebugUtils.currentLine=74645513;
 //BA.debugLineNum = 74645513;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(gunav2.keymon.com.mx.c_cuestionario __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
RDebugUtils.currentLine=73596928;
 //BA.debugLineNum = 73596928;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=73596929;
 //BA.debugLineNum = 73596929;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=73596930;
 //BA.debugLineNum = 73596930;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=73596931;
 //BA.debugLineNum = 73596931;BA.debugLine="Private bAceptarPregunta As Button";
_baceptarpregunta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=73596932;
 //BA.debugLineNum = 73596932;BA.debugLine="Dim encuestaIniciada As Boolean = False";
_encuestainiciada = __c.False;
RDebugUtils.currentLine=73596933;
 //BA.debugLineNum = 73596933;BA.debugLine="Private Root2 As B4XView";
_root2 = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=73596934;
 //BA.debugLineNum = 73596934;BA.debugLine="Private EventName As String 'ignore";
_eventname = "";
RDebugUtils.currentLine=73596935;
 //BA.debugLineNum = 73596935;BA.debugLine="Private CallBack As Object 'ignore";
_callback = new Object();
RDebugUtils.currentLine=73596936;
 //BA.debugLineNum = 73596936;BA.debugLine="Private vPreguntaActual As String";
_vpreguntaactual = "";
RDebugUtils.currentLine=73596937;
 //BA.debugLineNum = 73596937;BA.debugLine="Private db As SQL";
_db = new anywheresoftware.b4a.sql.SQL();
RDebugUtils.currentLine=73596939;
 //BA.debugLineNum = 73596939;BA.debugLine="Dim panelSombra As Panel 'Panel de sombra.";
_panelsombra = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=73596940;
 //BA.debugLineNum = 73596940;BA.debugLine="Dim cb_respuestas As String = \"\"";
_cb_respuestas = "";
RDebugUtils.currentLine=73596941;
 //BA.debugLineNum = 73596941;BA.debugLine="Dim panelActual As Panel";
_panelactual = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=73596942;
 //BA.debugLineNum = 73596942;BA.debugLine="Dim bringToFrontCont As Int = 0";
_bringtofrontcont = (int) (0);
RDebugUtils.currentLine=73596943;
 //BA.debugLineNum = 73596943;BA.debugLine="End Sub";
return "";
}
public boolean  _clienteconcuestionario(gunav2.keymon.com.mx.c_cuestionario __ref,String _idcliente) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "clienteconcuestionario", false))
	 {return ((Boolean) Debug.delegate(ba, "clienteconcuestionario", new Object[] {_idcliente}));}
boolean _r = false;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
RDebugUtils.currentLine=74448896;
 //BA.debugLineNum = 74448896;BA.debugLine="Sub clienteConCuestionario(idCliente As String) As";
RDebugUtils.currentLine=74448897;
 //BA.debugLineNum = 74448897;BA.debugLine="Private r As Boolean = False";
_r = __c.False;
RDebugUtils.currentLine=74448898;
 //BA.debugLineNum = 74448898;BA.debugLine="Private c As Cursor = db.ExecQuery($\"select count";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(__ref._db /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(*) as q from CUESTIONARIO where Q_IDCLIENTE = '"+__c.SmartStringFormatter("",(Object)(_idcliente))+"'"))));
RDebugUtils.currentLine=74448899;
 //BA.debugLineNum = 74448899;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
RDebugUtils.currentLine=74448900;
 //BA.debugLineNum = 74448900;BA.debugLine="If c.GetInt(\"q\") > 0 Then r = True";
if (_c.GetInt("q")>0) { 
_r = __c.True;};
RDebugUtils.currentLine=74448901;
 //BA.debugLineNum = 74448901;BA.debugLine="Return r";
if (true) return _r;
RDebugUtils.currentLine=74448902;
 //BA.debugLineNum = 74448902;BA.debugLine="End Sub";
return false;
}
public String  _et_textchanged(gunav2.keymon.com.mx.c_cuestionario __ref,String _old,String _new) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "et_textchanged", false))
	 {return ((String) Debug.delegate(ba, "et_textchanged", new Object[] {_old,_new}));}
int _ettotales = 0;
int _etcont = 0;
String _etresps = "";
String _etidresps = "";
anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null;
RDebugUtils.currentLine=74317824;
 //BA.debugLineNum = 74317824;BA.debugLine="Private Sub et_TextChanged(Old As String, New As S";
RDebugUtils.currentLine=74317825;
 //BA.debugLineNum = 74317825;BA.debugLine="Log($\"${Old}, ${New}\"$)";
__c.LogImpl("074317825",(""+__c.SmartStringFormatter("",(Object)(_old))+", "+__c.SmartStringFormatter("",(Object)(_new))+""),0);
RDebugUtils.currentLine=74317826;
 //BA.debugLineNum = 74317826;BA.debugLine="Private etTotales As Int = 0";
_ettotales = (int) (0);
RDebugUtils.currentLine=74317827;
 //BA.debugLineNum = 74317827;BA.debugLine="Private etCont As Int = 0";
_etcont = (int) (0);
RDebugUtils.currentLine=74317828;
 //BA.debugLineNum = 74317828;BA.debugLine="Private etResps As String = \"\"";
_etresps = "";
RDebugUtils.currentLine=74317829;
 //BA.debugLineNum = 74317829;BA.debugLine="Private etIdResps As String = \"\"";
_etidresps = "";
RDebugUtils.currentLine=74317830;
 //BA.debugLineNum = 74317830;BA.debugLine="For Each v As View In panelActual.GetAllViewsRecu";
_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper();
{
final anywheresoftware.b4a.BA.IterableList group6 = __ref._panelactual /*anywheresoftware.b4a.objects.PanelWrapper*/ .GetAllViewsRecursive();
final int groupLen6 = group6.getSize()
;int index6 = 0;
;
for (; index6 < groupLen6;index6++){
_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group6.Get(index6)));
RDebugUtils.currentLine=74317832;
 //BA.debugLineNum = 74317832;BA.debugLine="If getViewType(v) = \"EditText\" Then";
if ((__ref._getviewtype /*String*/ (null,_v)).equals("EditText")) { 
RDebugUtils.currentLine=74317833;
 //BA.debugLineNum = 74317833;BA.debugLine="etTotales = etTotales + 1";
_ettotales = (int) (_ettotales+1);
RDebugUtils.currentLine=74317835;
 //BA.debugLineNum = 74317835;BA.debugLine="If v.As(EditText).text <> \"\" Then";
if ((((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText()).equals("") == false) { 
RDebugUtils.currentLine=74317836;
 //BA.debugLineNum = 74317836;BA.debugLine="etCont = etCont + 1";
_etcont = (int) (_etcont+1);
RDebugUtils.currentLine=74317837;
 //BA.debugLineNum = 74317837;BA.debugLine="If etResps = \"\" Then";
if ((_etresps).equals("")) { 
RDebugUtils.currentLine=74317838;
 //BA.debugLineNum = 74317838;BA.debugLine="etResps = v.As(EditText).Text";
_etresps = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText();
RDebugUtils.currentLine=74317839;
 //BA.debugLineNum = 74317839;BA.debugLine="etIdResps = v.As(EditText).Tag.As(Map).Get(\"i";
_etidresps = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta")));
 }else {
RDebugUtils.currentLine=74317841;
 //BA.debugLineNum = 74317841;BA.debugLine="etResps = etResps &\"|\" & v.As(EditText).Text";
_etresps = _etresps+"|"+((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText();
RDebugUtils.currentLine=74317842;
 //BA.debugLineNum = 74317842;BA.debugLine="etIdResps = etIdResps &\"|\" & v.As(EditText).T";
_etidresps = _etidresps+"|"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta")));
 };
 };
 };
 }
};
RDebugUtils.currentLine=74317848;
 //BA.debugLineNum = 74317848;BA.debugLine="Log($\"${etCont}, ${etTotales}\"$)";
__c.LogImpl("074317848",(""+__c.SmartStringFormatter("",(Object)(_etcont))+", "+__c.SmartStringFormatter("",(Object)(_ettotales))+""),0);
RDebugUtils.currentLine=74317849;
 //BA.debugLineNum = 74317849;BA.debugLine="bAceptarPregunta.Tag = CreateMap(\"idPregunta\":Sen";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("id"))))),(Object)("pregunta"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)(_etidresps),(Object)("respuesta"),(Object)(_etresps),(Object)("panel"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("panel"))}).getObject()));
RDebugUtils.currentLine=74317850;
 //BA.debugLineNum = 74317850;BA.debugLine="If etCont = etTotales Then bAceptarPregunta.Enabl";
if (_etcont==_ettotales) { 
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True);}
else {
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False);};
RDebugUtils.currentLine=74317851;
 //BA.debugLineNum = 74317851;BA.debugLine="End Sub";
return "";
}
public String  _preguntaactual(gunav2.keymon.com.mx.c_cuestionario __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "preguntaactual", false))
	 {return ((String) Debug.delegate(ba, "preguntaactual", null));}
RDebugUtils.currentLine=73793536;
 //BA.debugLineNum = 73793536;BA.debugLine="Sub preguntaActual As String 'ignore";
RDebugUtils.currentLine=73793537;
 //BA.debugLineNum = 73793537;BA.debugLine="Return vPreguntaActual";
if (true) return __ref._vpreguntaactual /*String*/ ;
RDebugUtils.currentLine=73793538;
 //BA.debugLineNum = 73793538;BA.debugLine="End Sub";
return "";
}
public String  _psombra_click(gunav2.keymon.com.mx.c_cuestionario __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "psombra_click", false))
	 {return ((String) Debug.delegate(ba, "psombra_click", null));}
RDebugUtils.currentLine=74121216;
 //BA.debugLineNum = 74121216;BA.debugLine="private Sub pSombra_Click";
RDebugUtils.currentLine=74121217;
 //BA.debugLineNum = 74121217;BA.debugLine="End Sub";
return "";
}
public String  _r_checkedchange(gunav2.keymon.com.mx.c_cuestionario __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
if (Debug.shouldDelegate(ba, "r_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "r_checkedchange", new Object[] {_checked}));}
RDebugUtils.currentLine=74186752;
 //BA.debugLineNum = 74186752;BA.debugLine="private Sub r_CheckedChange(Checked As Boolean)";
RDebugUtils.currentLine=74186753;
 //BA.debugLineNum = 74186753;BA.debugLine="bAceptarPregunta.tag = CreateMap(\"idPregunta\":Sen";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("id"))))),(Object)("pregunta"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("idRespuesta"))))),(Object)("respuesta"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()),(Object)("panel"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("panel"))}).getObject()));
RDebugUtils.currentLine=74186754;
 //BA.debugLineNum = 74186754;BA.debugLine="End Sub";
return "";
}
}