package medicomed.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 BA(_ba, this, htSubs, "medicomed.keymon.com.mx.c_cuestionario");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", medicomed.keymon.com.mx.c_cuestionario.class).invoke(this, new Object[] {null});
        else
            ba.raiseEvent2(null, true, "class_globals", false);
    }

 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 b4a.example.dateutils _dateutils = null;
public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
public medicomed.keymon.com.mx.b4xcollections _b4xcollections = null;
public medicomed.keymon.com.mx.httputils2service _httputils2service = null;
public medicomed.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public String  _agregacolumna(String _tabla,String _columna,String _tipo) throws Exception{
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
 //BA.debugLineNum = 157;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
 //BA.debugLineNum = 158;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
try { //BA.debugLineNum = 159;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)(_db.ExecQuery(("SELECT COUNT(*) AS fCol FROM pragma_table_info('"+__c.SmartStringFormatter("",(Object)(_tabla))+"') WHERE name='"+__c.SmartStringFormatter("",(Object)(_columna))+"'"))));
 //BA.debugLineNum = 160;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 161;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { 
 //BA.debugLineNum = 162;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
 //BA.debugLineNum = 163;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("746989318",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
 };
 } 
       catch (Exception e9) {
			ba.setLastException(e9); //BA.debugLineNum = 166;BA.debugLine="Try";
try { //BA.debugLineNum = 167;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
 //BA.debugLineNum = 168;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("746989323",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
 } 
       catch (Exception e13) {
			ba.setLastException(e13); //BA.debugLineNum = 170;BA.debugLine="Log(LastException)";
__c.LogImpl("746989325",BA.ObjectToString(__c.LastException(ba)),0);
 };
 };
 //BA.debugLineNum = 173;BA.debugLine="End Sub";
return "";
}
public String  _agregapregunta(String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{
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;
 //BA.debugLineNum = 61;BA.debugLine="Sub agregaPregunta(id As String, pregunta As Strin";
 //BA.debugLineNum = 62;BA.debugLine="encuestaIniciada = True";
_encuestainiciada = __c.True;
 //BA.debugLineNum = 63;BA.debugLine="vPreguntaActual = id";
_vpreguntaactual = _id;
 //BA.debugLineNum = 64;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")";
_baceptarpregunta.Initialize(ba,"bAceptarPregunta");
 //BA.debugLineNum = 66;BA.debugLine="Private su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
 //BA.debugLineNum = 67;BA.debugLine="panelSombra.Initialize(\"pSombra\")";
_panelsombra.Initialize(ba,"pSombra");
 //BA.debugLineNum = 68;BA.debugLine="Private cd As ColorDrawable";
_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
 //BA.debugLineNum = 69;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));
 //BA.debugLineNum = 70;BA.debugLine="panelSombra.Background = cd";
_panelsombra.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
 //BA.debugLineNum = 71;BA.debugLine="Private panelX As Panel 'Panel de la pregunta.";
_panelx = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 72;BA.debugLine="panelX.Initialize(\"pQuest\")";
_panelx.Initialize(ba,"pQuest");
 //BA.debugLineNum = 73;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta.";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 74;BA.debugLine="lbl.Initialize(\"\")";
_lbl.Initialize(ba,"");
 //BA.debugLineNum = 75;BA.debugLine="lbl.Text = pregunta";
_lbl.setText(BA.ObjectToCharSequence(_pregunta));
 //BA.debugLineNum = 76;BA.debugLine="lbl.TextSize = 16";
_lbl.setTextSize((float) (16));
 //BA.debugLineNum = 77;BA.debugLine="lbl.TextColor = Colors.Black";
_lbl.setTextColor(__c.Colors.Black);
 //BA.debugLineNum = 78;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)";
_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray);
 //BA.debugLineNum = 79;BA.debugLine="panelX.Background = cd";
_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
 //BA.debugLineNum = 80;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20";
_panelsombra.AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200)));
 //BA.debugLineNum = 81;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a";
_root2.AddView((android.view.View)(_panelsombra.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba));
 //BA.debugLineNum = 82;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)));
 //BA.debugLineNum = 83;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l";
_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText())));
 //BA.debugLineNum = 84;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();
}
}
;
 //BA.debugLineNum = 85;BA.debugLine="For p = 0 To respuestas.Size - 1";
{
final int step23 = 1;
final int limit23 = (int) (_respuestas.getSize()-1);
_p = (int) (0) ;
for (;_p <= limit23 ;_p = _p + step23 ) {
 //BA.debugLineNum = 86;BA.debugLine="r(p).Initialize(\"r\")";
_r[_p].Initialize(ba,"r");
 //BA.debugLineNum = 87;BA.debugLine="r(p).Text = respuestas.Get(p)";
_r[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p)));
 //BA.debugLineNum = 88;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)(_panelsombra.getObject()),(Object)("idRespuesta"),(Object)(_p+1)}).getObject()));
 //BA.debugLineNum = 89;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));
 //BA.debugLineNum = 90;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));
 //BA.debugLineNum = 91;BA.debugLine="Private newTop As Int = lbl.top + lbl.Height + 1";
_newtop = (int) (_lbl.getTop()+_lbl.getHeight()+10);
 //BA.debugLineNum = 92;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);};
 //BA.debugLineNum = 93;BA.debugLine="r(p).Top = newTop";
_r[_p].setTop(_newtop);
 }
};
 //BA.debugLineNum = 95;BA.debugLine="r(0).Checked = True";
_r[(int) (0)].setChecked(__c.True);
 //BA.debugLineNum = 96;BA.debugLine="bAceptarPregunta.Text = \"Continuar\"";
_baceptarpregunta.setText(BA.ObjectToCharSequence("Continuar"));
 //BA.debugLineNum = 97;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, newTop + r(r";
_panelx.AddView((android.view.View)(_baceptarpregunta.getObject()),(int) (10),(int) (_newtop+_r[(int) (_respuestas.getSize()-1)].getHeight()+20),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50)));
 //BA.debugLineNum = 98;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc";
_baceptarpregunta.setLeft((int) ((_panelx.getWidth()/(double)2)-(_baceptarpregunta.getWidth()/(double)2)));
 //BA.debugLineNum = 99;BA.debugLine="panelX.Height = bAceptarPregunta.Top + bAceptarPr";
_panelx.setHeight((int) (_baceptarpregunta.getTop()+_baceptarpregunta.getHeight()+__c.DipToCurrent((int) (15))));
 //BA.debugLineNum = 100;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /";
_panelx.setLeft((int) ((_root2.getWidth()/(double)2)-(_panelx.getWidth()/(double)2)));
 //BA.debugLineNum = 101;BA.debugLine="panelX.top = (Root2.Height / 3) - (panelX.Height";
_panelx.setTop((int) ((_root2.getHeight()/(double)3)-(_panelx.getHeight()/(double)2)));
 //BA.debugLineNum = 102;BA.debugLine="panelSombra.Width = Root2.Width";
_panelsombra.setWidth(_root2.getWidth());
 //BA.debugLineNum = 103;BA.debugLine="panelSombra.Height = Root2.Height";
_panelsombra.setHeight(_root2.getHeight());
 //BA.debugLineNum = 104;BA.debugLine="panelSombra.Elevation = 100";
_panelsombra.setElevation((float) (100));
 //BA.debugLineNum = 105;BA.debugLine="panelSombra.BringToFront";
_panelsombra.BringToFront();
 //BA.debugLineNum = 107;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
 //BA.debugLineNum = 30;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
 //BA.debugLineNum = 31;BA.debugLine="Root = Root1";
_root = _root1;
 //BA.debugLineNum = 33;BA.debugLine="End Sub";
return "";
}
public String  _baceptarpregunta_click() throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
 //BA.debugLineNum = 122;BA.debugLine="Private Sub bAceptarPregunta_Click";
 //BA.debugLineNum = 123;BA.debugLine="encuestaIniciada = True";
_encuestainiciada = __c.True;
 //BA.debugLineNum = 124;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())));
 //BA.debugLineNum = 125;BA.debugLine="preguntaContestada(m)";
_preguntacontestada(_m);
 //BA.debugLineNum = 138;BA.debugLine="End Sub";
return "";
}
public String  _class_globals() throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
 //BA.debugLineNum = 4;BA.debugLine="Private bAceptarPregunta As Button";
_baceptarpregunta = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 5;BA.debugLine="Dim encuestaIniciada As Boolean = False";
_encuestainiciada = __c.False;
 //BA.debugLineNum = 6;BA.debugLine="Private Root2 As B4XView";
_root2 = new anywheresoftware.b4a.objects.B4XViewWrapper();
 //BA.debugLineNum = 7;BA.debugLine="Private EventName As String 'ignore";
_eventname = "";
 //BA.debugLineNum = 8;BA.debugLine="Private CallBack As Object 'ignore";
_callback = new Object();
 //BA.debugLineNum = 9;BA.debugLine="Private vPreguntaActual As String";
_vpreguntaactual = "";
 //BA.debugLineNum = 10;BA.debugLine="Private db As SQL";
_db = new anywheresoftware.b4a.sql.SQL();
 //BA.debugLineNum = 12;BA.debugLine="Dim panelSombra As Panel 'Panel de sombra.";
_panelsombra = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 13;BA.debugLine="End Sub";
return "";
}
public boolean  _clienteconcuestionario(String _idcliente) throws Exception{
boolean _r = false;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
 //BA.debugLineNum = 141;BA.debugLine="Sub clienteConCuestionario(idCliente As String) As";
 //BA.debugLineNum = 142;BA.debugLine="Private r As Boolean = False";
_r = __c.False;
 //BA.debugLineNum = 143;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)(_db.ExecQuery(("select count(*) as q from CUESTIONARIO where Q_IDCLIENTE = '"+__c.SmartStringFormatter("",(Object)(_idcliente))+"'"))));
 //BA.debugLineNum = 144;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 145;BA.debugLine="If c.GetInt(\"q\") > 0 Then r = True";
if (_c.GetInt("q")>0) { 
_r = __c.True;};
 //BA.debugLineNum = 146;BA.debugLine="Return r";
if (true) return _r;
 //BA.debugLineNum = 147;BA.debugLine="End Sub";
return false;
}
public Object  _initialize(anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname,anywheresoftware.b4a.objects.B4XViewWrapper _vroot,anywheresoftware.b4a.sql.SQL _skmt) throws Exception{
innerInitialize(_ba);
 //BA.debugLineNum = 16;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent";
 //BA.debugLineNum = 17;BA.debugLine="Root2 = vRoot";
_root2 = _vroot;
 //BA.debugLineNum = 18;BA.debugLine="EventName = vEventName";
_eventname = _veventname;
 //BA.debugLineNum = 19;BA.debugLine="CallBack = vCallback";
_callback = _vcallback;
 //BA.debugLineNum = 20;BA.debugLine="db = skmt";
_db = _skmt;
 //BA.debugLineNum = 21;BA.debugLine="vPreguntaActual = 0";
_vpreguntaactual = BA.NumberToString(0);
 //BA.debugLineNum = 22;BA.debugLine="db.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CUEST";
_db.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)");
 //BA.debugLineNum = 23;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_ENVIO_OK\", \"TEXT";
_agregacolumna("CUESTIONARIO","Q_ENVIO_OK","TEXT");
 //BA.debugLineNum = 24;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_RUTA\", \"TEXT\")";
_agregacolumna("CUESTIONARIO","Q_RUTA","TEXT");
 //BA.debugLineNum = 25;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_ALMACEN\", \"TEXT\"";
_agregacolumna("CUESTIONARIO","Q_ALMACEN","TEXT");
 //BA.debugLineNum = 26;BA.debugLine="Return Me";
if (true) return this;
 //BA.debugLineNum = 27;BA.debugLine="End Sub";
return null;
}
public String  _ocultpanelpregunta() throws Exception{
 //BA.debugLineNum = 150;BA.debugLine="Sub ocultPanelPregunta";
 //BA.debugLineNum = 151;BA.debugLine="If panelSombra.IsInitialized Then panelSombra.Rem";
if (_panelsombra.IsInitialized()) { 
_panelsombra.RemoveView();};
 //BA.debugLineNum = 152;BA.debugLine="End Sub";
return "";
}
public String  _preguntaactual() throws Exception{
 //BA.debugLineNum = 41;BA.debugLine="Sub preguntaActual As String 'ignore";
 //BA.debugLineNum = 42;BA.debugLine="Return vPreguntaActual";
if (true) return _vpreguntaactual;
 //BA.debugLineNum = 43;BA.debugLine="End Sub";
return "";
}
public String  _preguntacontestada(anywheresoftware.b4a.objects.collections.Map _success) throws Exception{
 //BA.debugLineNum = 109;BA.debugLine="private Sub preguntaContestada(Success As Map) 'ig";
 //BA.debugLineNum = 110;BA.debugLine="If SubExists(CallBack, EventName & \"_preguntaCont";
if (__c.SubExists(ba,_callback,_eventname+"_preguntaContestada")) { 
 //BA.debugLineNum = 111;BA.debugLine="CallSubDelayed2(CallBack, EventName & \"_pregunta";
__c.CallSubDelayed2(ba,_callback,_eventname+"_preguntaContestada",(Object)(_success));
 };
 //BA.debugLineNum = 113;BA.debugLine="End Sub";
return "";
}
public String  _psombra_click() throws Exception{
 //BA.debugLineNum = 115;BA.debugLine="private Sub pSombra_Click";
 //BA.debugLineNum = 116;BA.debugLine="End Sub";
return "";
}
public String  _r_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 118;BA.debugLine="private Sub r_CheckedChange(Checked As Boolean)";
 //BA.debugLineNum = 119;BA.debugLine="bAceptarPregunta.tag = CreateMap(\"idPregunta\":Sen";
_baceptarpregunta.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()));
 //BA.debugLineNum = 120;BA.debugLine="End Sub";
return "";
}
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
BA.senderHolder.set(sender);
if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
	return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
return BA.SubDelegator.SubNotFound;
}
}
