package SHARK2.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, "SHARK2.keymon.com.mx.c_cuestionario");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", SHARK2.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 b4a.example.dateutils _dateutils = null;
public SHARK2.keymon.com.mx.main _main = null;
public SHARK2.keymon.com.mx.appupdater _appupdater = null;
public SHARK2.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public SHARK2.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public SHARK2.keymon.com.mx.notificationservice _notificationservice = null;
public SHARK2.keymon.com.mx.pendientes _pendientes = null;
public SHARK2.keymon.com.mx.starter _starter = null;
public SHARK2.keymon.com.mx.subs _subs = null;
public SHARK2.keymon.com.mx.tracker _tracker = null;
public SHARK2.keymon.com.mx.newinst2 _newinst2 = null;
public SHARK2.keymon.com.mx.b4xpages _b4xpages = null;
public SHARK2.keymon.com.mx.b4xcollections _b4xcollections = null;
public SHARK2.keymon.com.mx.httputils2service _httputils2service = null;
public SHARK2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public String  _ocultpanelpregunta(SHARK2.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=10944512;
 //BA.debugLineNum = 10944512;BA.debugLine="Sub ocultPanelPregunta";
RDebugUtils.currentLine=10944513;
 //BA.debugLineNum = 10944513;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=10944514;
 //BA.debugLineNum = 10944514;BA.debugLine="End Sub";
return "";
}
public Object  _initialize(SHARK2.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=10354688;
 //BA.debugLineNum = 10354688;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent";
RDebugUtils.currentLine=10354689;
 //BA.debugLineNum = 10354689;BA.debugLine="Root2 = vRoot";
__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _vroot;
RDebugUtils.currentLine=10354690;
 //BA.debugLineNum = 10354690;BA.debugLine="EventName = vEventName";
__ref._eventname /*String*/  = _veventname;
RDebugUtils.currentLine=10354691;
 //BA.debugLineNum = 10354691;BA.debugLine="CallBack = vCallback";
__ref._callback /*Object*/  = _vcallback;
RDebugUtils.currentLine=10354692;
 //BA.debugLineNum = 10354692;BA.debugLine="db = skmt";
__ref._db /*anywheresoftware.b4a.sql.SQL*/  = _skmt;
RDebugUtils.currentLine=10354693;
 //BA.debugLineNum = 10354693;BA.debugLine="vPreguntaActual = 0";
__ref._vpreguntaactual /*String*/  = BA.NumberToString(0);
RDebugUtils.currentLine=10354694;
 //BA.debugLineNum = 10354694;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=10354695;
 //BA.debugLineNum = 10354695;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_ENVIO_OK\", \"TEXT";
__ref._agregacolumna /*String*/ (null,"CUESTIONARIO","Q_ENVIO_OK","TEXT");
RDebugUtils.currentLine=10354696;
 //BA.debugLineNum = 10354696;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_RUTA\", \"TEXT\")";
__ref._agregacolumna /*String*/ (null,"CUESTIONARIO","Q_RUTA","TEXT");
RDebugUtils.currentLine=10354697;
 //BA.debugLineNum = 10354697;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_ALMACEN\", \"TEXT\"";
__ref._agregacolumna /*String*/ (null,"CUESTIONARIO","Q_ALMACEN","TEXT");
RDebugUtils.currentLine=10354698;
 //BA.debugLineNum = 10354698;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=10354699;
 //BA.debugLineNum = 10354699;BA.debugLine="End Sub";
return null;
}
public String  _agregapregunta(SHARK2.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, "agregapregunta", false))
	 {return ((String) Debug.delegate(ba, "agregapregunta", 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=10551296;
 //BA.debugLineNum = 10551296;BA.debugLine="Sub agregaPregunta(id As String, pregunta As Strin";
RDebugUtils.currentLine=10551297;
 //BA.debugLineNum = 10551297;BA.debugLine="encuestaIniciada = True";
__ref._encuestainiciada /*boolean*/  = __c.True;
RDebugUtils.currentLine=10551298;
 //BA.debugLineNum = 10551298;BA.debugLine="vPreguntaActual = id";
__ref._vpreguntaactual /*String*/  = _id;
RDebugUtils.currentLine=10551299;
 //BA.debugLineNum = 10551299;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .Initialize(ba,"bAceptarPregunta");
RDebugUtils.currentLine=10551301;
 //BA.debugLineNum = 10551301;BA.debugLine="Private su As StringUtils";
_su = new anywheresoftware.b4a.objects.StringUtils();
RDebugUtils.currentLine=10551302;
 //BA.debugLineNum = 10551302;BA.debugLine="panelSombra.Initialize(\"pSombra\")";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .Initialize(ba,"pSombra");
RDebugUtils.currentLine=10551303;
 //BA.debugLineNum = 10551303;BA.debugLine="Private cd As ColorDrawable";
_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable();
RDebugUtils.currentLine=10551304;
 //BA.debugLineNum = 10551304;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=10551305;
 //BA.debugLineNum = 10551305;BA.debugLine="panelSombra.Background = cd";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
RDebugUtils.currentLine=10551306;
 //BA.debugLineNum = 10551306;BA.debugLine="Private panelX As Panel 'Panel de la pregunta.";
_panelx = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=10551307;
 //BA.debugLineNum = 10551307;BA.debugLine="panelX.Initialize(\"pQuest\")";
_panelx.Initialize(ba,"pQuest");
RDebugUtils.currentLine=10551308;
 //BA.debugLineNum = 10551308;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta.";
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=10551309;
 //BA.debugLineNum = 10551309;BA.debugLine="lbl.Initialize(\"\")";
_lbl.Initialize(ba,"");
RDebugUtils.currentLine=10551310;
 //BA.debugLineNum = 10551310;BA.debugLine="lbl.Text = pregunta";
_lbl.setText(BA.ObjectToCharSequence(_pregunta));
RDebugUtils.currentLine=10551311;
 //BA.debugLineNum = 10551311;BA.debugLine="lbl.TextSize = 16";
_lbl.setTextSize((float) (16));
RDebugUtils.currentLine=10551312;
 //BA.debugLineNum = 10551312;BA.debugLine="lbl.TextColor = Colors.Black";
_lbl.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=10551313;
 //BA.debugLineNum = 10551313;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)";
_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray);
RDebugUtils.currentLine=10551314;
 //BA.debugLineNum = 10551314;BA.debugLine="panelX.Background = cd";
_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject()));
RDebugUtils.currentLine=10551315;
 //BA.debugLineNum = 10551315;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=10551316;
 //BA.debugLineNum = 10551316;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=10551317;
 //BA.debugLineNum = 10551317;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=10551318;
 //BA.debugLineNum = 10551318;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l";
_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText())));
RDebugUtils.currentLine=10551319;
 //BA.debugLineNum = 10551319;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=10551320;
 //BA.debugLineNum = 10551320;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 ) {
RDebugUtils.currentLine=10551321;
 //BA.debugLineNum = 10551321;BA.debugLine="r(p).Initialize(\"r\")";
_r[_p].Initialize(ba,"r");
RDebugUtils.currentLine=10551322;
 //BA.debugLineNum = 10551322;BA.debugLine="r(p).Text = respuestas.Get(p)";
_r[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p)));
RDebugUtils.currentLine=10551323;
 //BA.debugLineNum = 10551323;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=10551324;
 //BA.debugLineNum = 10551324;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=10551325;
 //BA.debugLineNum = 10551325;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=10551326;
 //BA.debugLineNum = 10551326;BA.debugLine="Private newTop As Int = lbl.top + lbl.Height + 1";
_newtop = (int) (_lbl.getTop()+_lbl.getHeight()+10);
RDebugUtils.currentLine=10551327;
 //BA.debugLineNum = 10551327;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=10551328;
 //BA.debugLineNum = 10551328;BA.debugLine="r(p).Top = newTop";
_r[_p].setTop(_newtop);
 }
};
RDebugUtils.currentLine=10551330;
 //BA.debugLineNum = 10551330;BA.debugLine="r(0).Checked = True";
_r[(int) (0)].setChecked(__c.True);
RDebugUtils.currentLine=10551331;
 //BA.debugLineNum = 10551331;BA.debugLine="bAceptarPregunta.Text = \"Continuar\"";
__ref._baceptarpregunta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("Continuar"));
RDebugUtils.currentLine=10551332;
 //BA.debugLineNum = 10551332;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=10551333;
 //BA.debugLineNum = 10551333;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=10551334;
 //BA.debugLineNum = 10551334;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=10551335;
 //BA.debugLineNum = 10551335;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=10551336;
 //BA.debugLineNum = 10551336;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=10551337;
 //BA.debugLineNum = 10551337;BA.debugLine="panelSombra.Width = Root2.Width";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=10551338;
 //BA.debugLineNum = 10551338;BA.debugLine="panelSombra.Height = Root2.Height";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root2 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=10551339;
 //BA.debugLineNum = 10551339;BA.debugLine="panelSombra.Elevation = 100";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .setElevation((float) (100));
RDebugUtils.currentLine=10551340;
 //BA.debugLineNum = 10551340;BA.debugLine="panelSombra.BringToFront";
__ref._panelsombra /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront();
RDebugUtils.currentLine=10551342;
 //BA.debugLineNum = 10551342;BA.debugLine="End Sub";
return "";
}
public String  _agregacolumna(SHARK2.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=11010048;
 //BA.debugLineNum = 11010048;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri";
RDebugUtils.currentLine=11010049;
 //BA.debugLineNum = 11010049;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev";
try {RDebugUtils.currentLine=11010050;
 //BA.debugLineNum = 11010050;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=11010051;
 //BA.debugLineNum = 11010051;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
RDebugUtils.currentLine=11010052;
 //BA.debugLineNum = 11010052;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c";
if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=11010053;
 //BA.debugLineNum = 11010053;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=11010054;
 //BA.debugLineNum = 11010054;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("511010054",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
 };
 } 
       catch (Exception e9) {
			ba.setLastException(e9);RDebugUtils.currentLine=11010057;
 //BA.debugLineNum = 11010057;BA.debugLine="Try";
try {RDebugUtils.currentLine=11010058;
 //BA.debugLineNum = 11010058;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=11010059;
 //BA.debugLineNum = 11010059;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("511010059",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
 } 
       catch (Exception e13) {
			ba.setLastException(e13);RDebugUtils.currentLine=11010061;
 //BA.debugLineNum = 11010061;BA.debugLine="Log(LastException)";
__c.LogImpl("511010061",BA.ObjectToString(__c.LastException(ba)),0);
 };
 };
RDebugUtils.currentLine=11010064;
 //BA.debugLineNum = 11010064;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(SHARK2.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=10420224;
 //BA.debugLineNum = 10420224;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=10420225;
 //BA.debugLineNum = 10420225;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=10420227;
 //BA.debugLineNum = 10420227;BA.debugLine="End Sub";
return "";
}
public String  _baceptarpregunta_click(SHARK2.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=10813440;
 //BA.debugLineNum = 10813440;BA.debugLine="Private Sub bAceptarPregunta_Click";
RDebugUtils.currentLine=10813441;
 //BA.debugLineNum = 10813441;BA.debugLine="encuestaIniciada = True";
__ref._encuestainiciada /*boolean*/  = __c.True;
RDebugUtils.currentLine=10813442;
 //BA.debugLineNum = 10813442;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=10813443;
 //BA.debugLineNum = 10813443;BA.debugLine="preguntaContestada(m)";
__ref._preguntacontestada /*String*/ (null,_m);
RDebugUtils.currentLine=10813456;
 //BA.debugLineNum = 10813456;BA.debugLine="End Sub";
return "";
}
public String  _preguntacontestada(SHARK2.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=10616832;
 //BA.debugLineNum = 10616832;BA.debugLine="private Sub preguntaContestada(Success As Map) 'ig";
RDebugUtils.currentLine=10616833;
 //BA.debugLineNum = 10616833;BA.debugLine="If SubExists(CallBack, EventName & \"_preguntaCont";
if (__c.SubExists(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_preguntaContestada")) { 
RDebugUtils.currentLine=10616834;
 //BA.debugLineNum = 10616834;BA.debugLine="CallSubDelayed2(CallBack, EventName & \"_pregunta";
__c.CallSubDelayed2(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_preguntaContestada",(Object)(_success));
 };
RDebugUtils.currentLine=10616836;
 //BA.debugLineNum = 10616836;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(SHARK2.keymon.com.mx.c_cuestionario __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_cuestionario";
RDebugUtils.currentLine=10289152;
 //BA.debugLineNum = 10289152;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=10289153;
 //BA.debugLineNum = 10289153;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=10289154;
 //BA.debugLineNum = 10289154;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=10289155;
 //BA.debugLineNum = 10289155;BA.debugLine="Private bAceptarPregunta As Button";
_baceptarpregunta = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=10289156;
 //BA.debugLineNum = 10289156;BA.debugLine="Dim encuestaIniciada As Boolean = False";
_encuestainiciada = __c.False;
RDebugUtils.currentLine=10289157;
 //BA.debugLineNum = 10289157;BA.debugLine="Private Root2 As B4XView";
_root2 = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=10289158;
 //BA.debugLineNum = 10289158;BA.debugLine="Private EventName As String 'ignore";
_eventname = "";
RDebugUtils.currentLine=10289159;
 //BA.debugLineNum = 10289159;BA.debugLine="Private CallBack As Object 'ignore";
_callback = new Object();
RDebugUtils.currentLine=10289160;
 //BA.debugLineNum = 10289160;BA.debugLine="Private vPreguntaActual As String";
_vpreguntaactual = "";
RDebugUtils.currentLine=10289161;
 //BA.debugLineNum = 10289161;BA.debugLine="Private db As SQL";
_db = new anywheresoftware.b4a.sql.SQL();
RDebugUtils.currentLine=10289163;
 //BA.debugLineNum = 10289163;BA.debugLine="Dim panelSombra As Panel 'Panel de sombra.";
_panelsombra = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=10289164;
 //BA.debugLineNum = 10289164;BA.debugLine="End Sub";
return "";
}
public boolean  _clienteconcuestionario(SHARK2.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=10878976;
 //BA.debugLineNum = 10878976;BA.debugLine="Sub clienteConCuestionario(idCliente As String) As";
RDebugUtils.currentLine=10878977;
 //BA.debugLineNum = 10878977;BA.debugLine="Private r As Boolean = False";
_r = __c.False;
RDebugUtils.currentLine=10878978;
 //BA.debugLineNum = 10878978;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=10878979;
 //BA.debugLineNum = 10878979;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
RDebugUtils.currentLine=10878980;
 //BA.debugLineNum = 10878980;BA.debugLine="If c.GetInt(\"q\") > 0 Then r = True";
if (_c.GetInt("q")>0) { 
_r = __c.True;};
RDebugUtils.currentLine=10878981;
 //BA.debugLineNum = 10878981;BA.debugLine="Return r";
if (true) return _r;
RDebugUtils.currentLine=10878982;
 //BA.debugLineNum = 10878982;BA.debugLine="End Sub";
return false;
}
public String  _preguntaactual(SHARK2.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=10485760;
 //BA.debugLineNum = 10485760;BA.debugLine="Sub preguntaActual As String 'ignore";
RDebugUtils.currentLine=10485761;
 //BA.debugLineNum = 10485761;BA.debugLine="Return vPreguntaActual";
if (true) return __ref._vpreguntaactual /*String*/ ;
RDebugUtils.currentLine=10485762;
 //BA.debugLineNum = 10485762;BA.debugLine="End Sub";
return "";
}
public String  _psombra_click(SHARK2.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=10682368;
 //BA.debugLineNum = 10682368;BA.debugLine="private Sub pSombra_Click";
RDebugUtils.currentLine=10682369;
 //BA.debugLineNum = 10682369;BA.debugLine="End Sub";
return "";
}
public String  _r_checkedchange(SHARK2.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=10747904;
 //BA.debugLineNum = 10747904;BA.debugLine="private Sub r_CheckedChange(Checked As Boolean)";
RDebugUtils.currentLine=10747905;
 //BA.debugLineNum = 10747905;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=10747906;
 //BA.debugLineNum = 10747906;BA.debugLine="End Sub";
return "";
}
}