package reparto_izca.keymon.lat;


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

public class c_cheklist 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, "reparto_izca.keymon.lat.c_cheklist");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_cheklist.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.PanelWrapper _p_check = null;
public anywheresoftware.b4a.objects.ScrollViewWrapper _sv_datos = null;
public reparto_izca.keymon.lat.cameraexclass _camex = null;
public boolean _frontcamera = false;
public anywheresoftware.b4a.objects.PanelWrapper _p_cam = null;
public String _nombrefoto = "";
public String _nombrefoto1 = "";
public String _nombrefoto2 = "";
public String _nombrefoto3 = "";
public anywheresoftware.b4a.objects.PanelWrapper _p_camara = null;
public anywheresoftware.b4a.objects.IME _teclado = null;
public String _fototomada = "";
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview1 = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview3 = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview2 = null;
public anywheresoftware.b4a.objects.ImageViewWrapper _imageview4 = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_foto = null;
public anywheresoftware.b4a.phone.Phone _device = null;
public reparto_izca.keymon.lat.manageexternalstorage _mes1 = null;
public int _x = 0;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno3 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi4 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno4 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi5 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno5 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi6 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno6 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi7 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno7 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi8 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno8 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi9 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno9 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi10 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno10 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi11 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno11 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi12 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno12 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi13 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno13 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi14 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno14 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi15 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno15 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi16 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno16 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi17 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno17 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi18 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno18 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docsi19 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb_docno19 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_carroceria = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_luces = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_placas = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_liquidos = null;
public String _p1 = "";
public String _p2 = "";
public String _p3 = "";
public String _p4 = "";
public String _p5 = "";
public String _p6 = "";
public String _p7 = "";
public String _p8 = "";
public String _p9 = "";
public String _p10 = "";
public String _p11 = "";
public String _p12 = "";
public String _p13 = "";
public String _p14 = "";
public String _p15 = "";
public String _p16 = "";
public String _p17 = "";
public String _p18 = "";
public String _p19 = "";
public reparto_izca.keymon.lat.b4xcombobox _cb_izqdel = null;
public reparto_izca.keymon.lat.b4xcombobox _cb_derdel = null;
public reparto_izca.keymon.lat.b4xcombobox _cb_izqatras = null;
public reparto_izca.keymon.lat.b4xcombobox _cb_deratras = null;
public String _itemselect1 = "";
public String _itemselect2 = "";
public String _itemselect3 = "";
public String _itemselect4 = "";
public byte[] _foto1 = null;
public byte[] _foto2 = null;
public byte[] _foto3 = null;
public byte[] _foto4 = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public reparto_izca.keymon.lat.dbrequestmanager _reqmanager = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_placa = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_km = null;
public b4a.example.dateutils _dateutils = null;
public reparto_izca.keymon.lat.main _main = null;
public reparto_izca.keymon.lat.appupdater _appupdater = null;
public reparto_izca.keymon.lat.foto _foto = null;
public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_izca.keymon.lat.starter _starter = null;
public reparto_izca.keymon.lat.subs _subs = null;
public reparto_izca.keymon.lat.tracker _tracker = null;
public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public String  _b_foto_click() throws Exception{
 //BA.debugLineNum = 348;BA.debugLine="Private Sub b_foto_Click";
 //BA.debugLineNum = 349;BA.debugLine="camEx.TakePicture";
_camex._takepicture /*String*/ ();
 //BA.debugLineNum = 350;BA.debugLine="p_camara.Visible = False";
_p_camara.setVisible(__c.False);
 //BA.debugLineNum = 352;BA.debugLine="End Sub";
return "";
}
public String  _b_guardar_click() throws Exception{
String _dirp = "";
String _dir = "";
String _dir2 = "";
String _checkdate = "";
String _checktime = "";
String _rutacheck = "";
 //BA.debugLineNum = 541;BA.debugLine="Private Sub b_guardar_Click";
 //BA.debugLineNum = 543;BA.debugLine="Dim Dirp As String = File.DirInternal";
_dirp = __c.File.getDirInternal();
 //BA.debugLineNum = 544;BA.debugLine="Dim Dir As String";
_dir = "";
 //BA.debugLineNum = 545;BA.debugLine="Dim Dir2 As String";
_dir2 = "";
 //BA.debugLineNum = 546;BA.debugLine="Try";
try { //BA.debugLineNum = 547;BA.debugLine="File.MakeDir(Dirp,\"/md\")";
__c.File.MakeDir(_dirp,"/md");
 //BA.debugLineNum = 548;BA.debugLine="Dir = \"/md\"";
_dir = "/md";
 //BA.debugLineNum = 549;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)";
__c.LogImpl("57667720","creado en promotoria "+_dirp+_dir,0);
 } 
       catch (Exception e9) {
			ba.setLastException(e9); //BA.debugLineNum = 551;BA.debugLine="Dir = \"\"";
_dir = "";
 //BA.debugLineNum = 552;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("57667723","creado en raiz",0);
 };
 //BA.debugLineNum = 555;BA.debugLine="Try";
try { //BA.debugLineNum = 556;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")";
__c.File.MakeDir(_dirp+_dir,"/reduccion");
 //BA.debugLineNum = 557;BA.debugLine="Dir2 = \"/reduccion\"";
_dir2 = "/reduccion";
 //BA.debugLineNum = 558;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)";
__c.LogImpl("57667729","creado en promotoria "+_dirp+_dir+_dir2,0);
 } 
       catch (Exception e17) {
			ba.setLastException(e17); //BA.debugLineNum = 560;BA.debugLine="Dir = \"\"";
_dir = "";
 //BA.debugLineNum = 561;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("57667732","creado en raiz",0);
 };
 //BA.debugLineNum = 564;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
 //BA.debugLineNum = 565;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
 //BA.debugLineNum = 566;BA.debugLine="Dim checkdate As String = DateTime.Date(DateTime.";
_checkdate = __c.DateTime.Date(__c.DateTime.getNow());
 //BA.debugLineNum = 567;BA.debugLine="Dim checktime As String = DateTime.Time(DateTime.";
_checktime = __c.DateTime.Time(__c.DateTime.getNow());
 //BA.debugLineNum = 568;BA.debugLine="If et_km.Text <> \"\" Then";
if ((_et_km.getText()).equals("") == false) { 
 //BA.debugLineNum = 569;BA.debugLine="If rb_docno1.Checked Or rb_docsi1.Checked Then";
if (_rb_docno1.getChecked() || _rb_docsi1.getChecked()) { 
 //BA.debugLineNum = 570;BA.debugLine="If rb_docno2.Checked Or rb_docsi2.Checked Then";
if (_rb_docno2.getChecked() || _rb_docsi2.getChecked()) { 
 //BA.debugLineNum = 571;BA.debugLine="If rb_docno3.Checked Or rb_docsi3.Checked Then";
if (_rb_docno3.getChecked() || _rb_docsi3.getChecked()) { 
 //BA.debugLineNum = 572;BA.debugLine="If rb_docno4.Checked Or rb_docsi4.Checked The";
if (_rb_docno4.getChecked() || _rb_docsi4.getChecked()) { 
 //BA.debugLineNum = 573;BA.debugLine="If rb_docno5.Checked Or rb_docsi5.Checked Th";
if (_rb_docno5.getChecked() || _rb_docsi5.getChecked()) { 
 //BA.debugLineNum = 574;BA.debugLine="If rb_docno6.Checked Or rb_docsi6.Checked T";
if (_rb_docno6.getChecked() || _rb_docsi6.getChecked()) { 
 //BA.debugLineNum = 575;BA.debugLine="If rb_docno7.Checked Or rb_docsi7.Checked";
if (_rb_docno7.getChecked() || _rb_docsi7.getChecked()) { 
 //BA.debugLineNum = 576;BA.debugLine="If rb_docno8.Checked Or rb_docsi8.Checked";
if (_rb_docno8.getChecked() || _rb_docsi8.getChecked()) { 
 //BA.debugLineNum = 577;BA.debugLine="If rb_docno9.Checked Or rb_docsi9.Checke";
if (_rb_docno9.getChecked() || _rb_docsi9.getChecked()) { 
 //BA.debugLineNum = 578;BA.debugLine="If (rb_docno9.Checked And et_carroceria";
if ((_rb_docno9.getChecked() && (_et_carroceria.getText()).equals("") == false) || (_rb_docsi9.getChecked() && (_et_carroceria.getText()).equals(""))) { 
 //BA.debugLineNum = 579;BA.debugLine="If rb_docno11.Checked Or rb_docsi11.Ch";
if (_rb_docno11.getChecked() || _rb_docsi11.getChecked()) { 
 //BA.debugLineNum = 580;BA.debugLine="If (rb_docno11.Checked And et_luces.T";
if ((_rb_docno11.getChecked() && (_et_luces.getText()).equals("") == false) || (_rb_docsi11.getChecked() && (_et_luces.getText()).equals(""))) { 
 //BA.debugLineNum = 581;BA.debugLine="If rb_docno13.Checked Or rb_docsi13.";
if (_rb_docno13.getChecked() || _rb_docsi13.getChecked()) { 
 //BA.debugLineNum = 582;BA.debugLine="If (rb_docno12.Checked And et_placa";
if ((_rb_docno12.getChecked() && (_et_placas.getText()).equals("") == false) || (_rb_docsi13.getChecked() && (_et_placas.getText()).equals(""))) { 
 //BA.debugLineNum = 583;BA.debugLine="If rb_docno15.Checked Or rb_docsi1";
if (_rb_docno15.getChecked() || _rb_docsi15.getChecked()) { 
 //BA.debugLineNum = 584;BA.debugLine="If rb_docno16.Checked Or rb_docsi";
if (_rb_docno16.getChecked() || _rb_docsi16.getChecked()) { 
 //BA.debugLineNum = 585;BA.debugLine="If rb_docno17.Checked Or rb_docs";
if (_rb_docno17.getChecked() || _rb_docsi17.getChecked()) { 
 //BA.debugLineNum = 586;BA.debugLine="If rb_docno18.Checked Or rb_doc";
if (_rb_docno18.getChecked() || _rb_docsi18.getChecked()) { 
 //BA.debugLineNum = 587;BA.debugLine="If rb_docno19.Checked Or rb_do";
if (_rb_docno19.getChecked() || _rb_docsi19.getChecked()) { 
 //BA.debugLineNum = 588;BA.debugLine="If et_liquidos.Text <> \"\"  An";
if ((_et_liquidos.getText()).equals("") == false && (_rb_docno15.getChecked() || _rb_docno16.getChecked() || _rb_docno17.getChecked() || _rb_docno18.getChecked() || _rb_docno19.getChecked()) || (_et_liquidos.getText()).equals("") && (_rb_docsi15.getChecked() && _rb_docsi16.getChecked() && _rb_docsi17.getChecked() && _rb_docsi18.getChecked() && _rb_docsi19.getChecked())) { 
 //BA.debugLineNum = 589;BA.debugLine="If nombrefoto <> \"0\" And nom";
if ((_nombrefoto).equals("0") == false && (_nombrefoto1).equals("0") == false && (_nombrefoto2).equals("0") == false && (_nombrefoto3).equals("0") == false) { 
 //BA.debugLineNum = 590;BA.debugLine="c = Starter.skmt.ExecQuery(";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA")));
 //BA.debugLineNum = 591;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
 //BA.debugLineNum = 592;BA.debugLine="Private rutacheck As String";
_rutacheck = _c.GetString("RUTAA");
 //BA.debugLineNum = 593;BA.debugLine="c.Close";
_c.Close();
 //BA.debugLineNum = 594;BA.debugLine="Starter.skmt.ExecNonQuery(\"";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CHECKLIST2");
 //BA.debugLineNum = 595;BA.debugLine="Starter.skmt.ExecNonQuery2(";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CHECKLIST2(USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE,RUTA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/ ),(Object)(_l_placa.getText()),(Object)(_checkdate+" "+_checktime),(Object)(_p1),(Object)(_p2),(Object)(_p3),(Object)(_p4),(Object)(_p5),(Object)(_p6),(Object)(_p7),(Object)(_p8),(Object)(_p9),(Object)(_et_carroceria.getText()),(Object)(_p11),(Object)(_et_luces.getText()),(Object)(_p13),(Object)(_et_placas.getText()),(Object)(_itemselect1),(Object)(_itemselect2),(Object)(_itemselect3),(Object)(_itemselect4),(Object)(_p15),(Object)(_p16),(Object)(_p17),(Object)(_p18),(Object)(_p19),(Object)(_et_liquidos.getText()),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto1)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto2)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto3)),(Object)(_et_km.getText()),(Object)(_rutacheck)}));
 //BA.debugLineNum = 598;BA.debugLine="mandaPendientes";
_mandapendientes();
 //BA.debugLineNum = 600;BA.debugLine="rb_docno1.Checked = False";
_rb_docno1.setChecked(__c.False);
 //BA.debugLineNum = 601;BA.debugLine="rb_docno2.Checked = False";
_rb_docno2.setChecked(__c.False);
 //BA.debugLineNum = 602;BA.debugLine="rb_docno3.Checked = False";
_rb_docno3.setChecked(__c.False);
 //BA.debugLineNum = 603;BA.debugLine="rb_docno4.Checked = False";
_rb_docno4.setChecked(__c.False);
 //BA.debugLineNum = 604;BA.debugLine="rb_docno5.Checked = False";
_rb_docno5.setChecked(__c.False);
 //BA.debugLineNum = 605;BA.debugLine="rb_docno6.Checked = False";
_rb_docno6.setChecked(__c.False);
 //BA.debugLineNum = 606;BA.debugLine="rb_docno7.Checked = False";
_rb_docno7.setChecked(__c.False);
 //BA.debugLineNum = 607;BA.debugLine="rb_docno8.Checked = False";
_rb_docno8.setChecked(__c.False);
 //BA.debugLineNum = 608;BA.debugLine="rb_docno9.Checked = False";
_rb_docno9.setChecked(__c.False);
 //BA.debugLineNum = 609;BA.debugLine="rb_docno11.Checked = False";
_rb_docno11.setChecked(__c.False);
 //BA.debugLineNum = 610;BA.debugLine="rb_docno13.Checked = False";
_rb_docno13.setChecked(__c.False);
 //BA.debugLineNum = 611;BA.debugLine="rb_docno15.Checked = False";
_rb_docno15.setChecked(__c.False);
 //BA.debugLineNum = 612;BA.debugLine="rb_docno16.Checked = False";
_rb_docno16.setChecked(__c.False);
 //BA.debugLineNum = 613;BA.debugLine="rb_docno17.Checked = False";
_rb_docno17.setChecked(__c.False);
 //BA.debugLineNum = 614;BA.debugLine="rb_docno18.Checked = False";
_rb_docno18.setChecked(__c.False);
 //BA.debugLineNum = 615;BA.debugLine="rb_docno19.Checked = False";
_rb_docno19.setChecked(__c.False);
 //BA.debugLineNum = 617;BA.debugLine="rb_docsi1.Checked = False";
_rb_docsi1.setChecked(__c.False);
 //BA.debugLineNum = 618;BA.debugLine="rb_docsi2.Checked = False";
_rb_docsi2.setChecked(__c.False);
 //BA.debugLineNum = 619;BA.debugLine="rb_docsi3.Checked = False";
_rb_docsi3.setChecked(__c.False);
 //BA.debugLineNum = 620;BA.debugLine="rb_docsi4.Checked = False";
_rb_docsi4.setChecked(__c.False);
 //BA.debugLineNum = 621;BA.debugLine="rb_docsi5.Checked = False";
_rb_docsi5.setChecked(__c.False);
 //BA.debugLineNum = 622;BA.debugLine="rb_docsi6.Checked = False";
_rb_docsi6.setChecked(__c.False);
 //BA.debugLineNum = 623;BA.debugLine="rb_docsi7.Checked = False";
_rb_docsi7.setChecked(__c.False);
 //BA.debugLineNum = 624;BA.debugLine="rb_docsi8.Checked = False";
_rb_docsi8.setChecked(__c.False);
 //BA.debugLineNum = 625;BA.debugLine="rb_docsi9.Checked = False";
_rb_docsi9.setChecked(__c.False);
 //BA.debugLineNum = 626;BA.debugLine="rb_docsi11.Checked = False";
_rb_docsi11.setChecked(__c.False);
 //BA.debugLineNum = 627;BA.debugLine="rb_docsi13.Checked = False";
_rb_docsi13.setChecked(__c.False);
 //BA.debugLineNum = 628;BA.debugLine="rb_docsi15.Checked = False";
_rb_docsi15.setChecked(__c.False);
 //BA.debugLineNum = 629;BA.debugLine="rb_docsi16.Checked = False";
_rb_docsi16.setChecked(__c.False);
 //BA.debugLineNum = 630;BA.debugLine="rb_docsi17.Checked = False";
_rb_docsi17.setChecked(__c.False);
 //BA.debugLineNum = 631;BA.debugLine="rb_docsi18.Checked = False";
_rb_docsi18.setChecked(__c.False);
 //BA.debugLineNum = 632;BA.debugLine="rb_docsi19.Checked = False";
_rb_docsi19.setChecked(__c.False);
 //BA.debugLineNum = 634;BA.debugLine="cb_deratras.SelectedIndex =";
_cb_deratras._setselectedindex /*int*/ ((int) (0));
 //BA.debugLineNum = 635;BA.debugLine="cb_derdel.SelectedIndex = 0";
_cb_derdel._setselectedindex /*int*/ ((int) (0));
 //BA.debugLineNum = 636;BA.debugLine="cb_izqatras.SelectedIndex =";
_cb_izqatras._setselectedindex /*int*/ ((int) (0));
 //BA.debugLineNum = 637;BA.debugLine="cb_izqdel.SelectedIndex = 0";
_cb_izqdel._setselectedindex /*int*/ ((int) (0));
 //BA.debugLineNum = 639;BA.debugLine="et_carroceria.Text = \"\"";
_et_carroceria.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 640;BA.debugLine="et_liquidos.Text = \"\"";
_et_liquidos.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 641;BA.debugLine="et_luces.Text = \"\"";
_et_luces.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 642;BA.debugLine="et_placas.Text = \"\"";
_et_placas.setText(BA.ObjectToCharSequence(""));
 //BA.debugLineNum = 644;BA.debugLine="ImageView1.Bitmap = LoadBit";
_imageview1.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"frontal1.png").getObject()));
 //BA.debugLineNum = 645;BA.debugLine="ImageView2.Bitmap = LoadBit";
_imageview2.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"derecha1.png").getObject()));
 //BA.debugLineNum = 646;BA.debugLine="ImageView3.Bitmap = LoadBit";
_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"atras1.png").getObject()));
 //BA.debugLineNum = 647;BA.debugLine="ImageView4.Bitmap = LoadBit";
_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"izquierda1.png").getObject()));
 //BA.debugLineNum = 649;BA.debugLine="nombrefoto = \"0\"";
_nombrefoto = "0";
 //BA.debugLineNum = 650;BA.debugLine="nombrefoto1 = \"0\"";
_nombrefoto1 = "0";
 //BA.debugLineNum = 651;BA.debugLine="nombrefoto2 = \"0\"";
_nombrefoto2 = "0";
 //BA.debugLineNum = 652;BA.debugLine="nombrefoto3 = \"0\"";
_nombrefoto3 = "0";
 //BA.debugLineNum = 654;BA.debugLine="B4XPages.ShowPage(\"Principa";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else {
 //BA.debugLineNum = 656;BA.debugLine="MsgboxAsync(\"Favor de tomar";
__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de tomar todas las fotos"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 659;BA.debugLine="MsgboxAsync(\"Especifica Fuga";
__c.MsgboxAsync(BA.ObjectToCharSequence("Especifica Fugas o detallaes en los liquidos"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 662;BA.debugLine="MsgboxAsync(\"Seleeciona una o";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Fugas"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 665;BA.debugLine="MsgboxAsync(\"Seleeciona una op";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Aire"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 668;BA.debugLine="MsgboxAsync(\"Seleeciona una opc";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Frenos"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 671;BA.debugLine="MsgboxAsync(\"Seleeciona una opci";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Anticongelante"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 674;BA.debugLine="MsgboxAsync(\"Seleeciona una opció";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Aceite"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 677;BA.debugLine="MsgboxAsync(\"Especifica daños en l";
__c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en las condiciones de placas"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 680;BA.debugLine="MsgboxAsync(\"Seleeciona una opción";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Conciciones de placas de Correcto"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 683;BA.debugLine="MsgboxAsync(\"Especifica daños en las";
__c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en las luces"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 686;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Funcionamiento de luces de Correcto"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 689;BA.debugLine="MsgboxAsync(\"Especifica daños en la ca";
__c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en la carrocería"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 692;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en C";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Carrocería de Buen estado"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 695;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Se";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de Llanta de refacción"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 698;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Seg";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de gato"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 701;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Segu";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de Triagulo reflectante"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 704;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Limpi";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Limpieza unidad interna"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 707;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Limpie";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Limpieza unidad externa"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 710;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Documen";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de Licencia de conducir"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 713;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Document";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de Póliza de seguro"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 716;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Documenta";
__c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de tarjeta de circulación"),BA.ObjectToCharSequence("Atención"),ba);
 };
 }else {
 //BA.debugLineNum = 719;BA.debugLine="MsgboxAsync(\"Captura el kilometraje inicial.\",\"A";
__c.MsgboxAsync(BA.ObjectToCharSequence("Captura el kilometraje inicial."),BA.ObjectToCharSequence("Atención"),ba);
 };
 //BA.debugLineNum = 722;BA.debugLine="End Sub";
return "";
}
public void  _b4xpage_appear() throws Exception{
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.c_cheklist parent) {
this.parent = parent;
}
reparto_izca.keymon.lat.c_cheklist parent;
String _permission = "";
boolean _result = false;
int _sdkversion = 0;
anywheresoftware.b4a.objects.RuntimePermissions _rp = null;
int _res = 0;

@Override
public void resume(BA ba, Object[] result) throws Exception{

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 143;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PLACA FROM HIS";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PLACA FROM HIST_VENTAS")));
 //BA.debugLineNum = 144;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
 //BA.debugLineNum = 145;BA.debugLine="Log(c.GetString(\"PLACA\"))";
parent.__c.LogImpl("54521987",parent._c.GetString("PLACA"),0);
 //BA.debugLineNum = 146;BA.debugLine="l_placa.Text = c.GetString(\"PLACA\")";
parent._l_placa.setText(BA.ObjectToCharSequence(parent._c.GetString("PLACA")));
 //BA.debugLineNum = 147;BA.debugLine="c.Close";
parent._c.Close();
 //BA.debugLineNum = 148;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_CAMERA);
 //BA.debugLineNum = 149;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
this.state = 17;
return;
case 17:
//C
this.state = 1;
_permission = (String) result[0];
_result = (Boolean) result[1];
;
 //BA.debugLineNum = 150;BA.debugLine="If Result Then";
if (true) break;

case 1:
//if
this.state = 6;
if (_result) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
 //BA.debugLineNum = 153;BA.debugLine="Log(\"inicializamos Camara\")";
parent.__c.LogImpl("54521995","inicializamos Camara",0);
 if (true) break;

case 5:
//C
this.state = 6;
 //BA.debugLineNum = 155;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission Camara!!!"),parent.__c.True);
 if (true) break;

case 6:
//C
this.state = 7;
;
 //BA.debugLineNum = 157;BA.debugLine="MES1.Initialize(Me, \"MES1\")";
parent._mes1._initialize /*String*/ (ba,parent,"MES1");
 //BA.debugLineNum = 160;BA.debugLine="Dim SdkVersion As Int = device.SdkVersion";
_sdkversion = parent._device.getSdkVersion();
 //BA.debugLineNum = 163;BA.debugLine="If SdkVersion < 30 Then";
if (true) break;

case 7:
//if
this.state = 16;
if (_sdkversion<30) { 
this.state = 9;
}else {
this.state = 11;
}if (true) break;

case 9:
//C
this.state = 16;
 //BA.debugLineNum = 164;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting WRITE";
parent.__c.LogImpl("54522006","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting WRITE_EXTERNAL_STORAGE permission",0);
 //BA.debugLineNum = 165;BA.debugLine="Dim rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
 //BA.debugLineNum = 166;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_";
_rp.CheckAndRequest(ba,_rp.PERMISSION_WRITE_EXTERNAL_STORAGE);
 //BA.debugLineNum = 167;BA.debugLine="Wait For Activity_PermissionResult (Permission A";
parent.__c.WaitFor("activity_permissionresult", ba, this, null);
this.state = 18;
return;
case 18:
//C
this.state = 16;
_permission = (String) result[0];
_result = (Boolean) result[1];
;
 //BA.debugLineNum = 168;BA.debugLine="Log($\"PERMISSION_WRITE_EXTERNAL_STORAGE = ${Resu";
parent.__c.LogImpl("54522010",("PERMISSION_WRITE_EXTERNAL_STORAGE = "+parent.__c.SmartStringFormatter("",(Object)(_result))+""),0);
 if (true) break;

case 11:
//C
this.state = 12;
 //BA.debugLineNum = 170;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting MANAG";
parent.__c.LogImpl("54522012","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting MANAGE_EXTERNAL_STORAGE permission",0);
 //BA.debugLineNum = 171;BA.debugLine="Log(\"On Entry MANAGE_EXTERNAL_STORAGE = \" & MES1";
parent.__c.LogImpl("54522013","On Entry MANAGE_EXTERNAL_STORAGE = "+BA.ObjectToString(parent._mes1._haspermission /*boolean*/ ()),0);
 //BA.debugLineNum = 172;BA.debugLine="If Not(MES1.HasPermission) Then";
if (true) break;

case 12:
//if
this.state = 15;
if (parent.__c.Not(parent._mes1._haspermission /*boolean*/ ())) { 
this.state = 14;
}if (true) break;

case 14:
//C
this.state = 15;
 //BA.debugLineNum = 173;BA.debugLine="MsgboxAsync(\"Esta aplicación requiere acceso a";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Esta aplicación requiere acceso a todos los archivos, habilite la opción"),BA.ObjectToCharSequence("Administrar todos los archivos"),ba);
 //BA.debugLineNum = 174;BA.debugLine="Wait For Msgbox_Result(Res As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 19;
return;
case 19:
//C
this.state = 15;
_res = (Integer) result[0];
;
 //BA.debugLineNum = 175;BA.debugLine="Log(\"Getting permission\")";
parent.__c.LogImpl("54522017","Getting permission",0);
 //BA.debugLineNum = 176;BA.debugLine="MES1.GetPermission";
parent._mes1._getpermission /*String*/ ();
 //BA.debugLineNum = 177;BA.debugLine="Wait For MES_StorageAvailable";
parent.__c.WaitFor("mes_storageavailable", ba, this, null);
this.state = 20;
return;
case 20:
//C
this.state = 15;
;
 if (true) break;

case 15:
//C
this.state = 16;
;
 if (true) break;

case 16:
//C
this.state = -1;
;
 //BA.debugLineNum = 180;BA.debugLine="p_camara.Visible = False";
parent._p_camara.setVisible(parent.__c.False);
 //BA.debugLineNum = 198;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public void  _b4xpage_permissionresult(String _permission,boolean _result) throws Exception{
}
public void  _activity_permissionresult(String _permission,boolean _result) throws Exception{
}
public void  _msgbox_result(int _res) throws Exception{
}
public void  _mes_storageavailable() throws Exception{
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest() throws Exception{
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this);
rsub.resume(ba, null);
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_cheklist parent) {
this.parent = parent;
}
reparto_izca.keymon.lat.c_cheklist parent;

@Override
public void resume(BA ba, Object[] result) throws Exception{

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.ReturnFromResumableSub(this,null);return;}
case 0:
//C
this.state = 1;
 //BA.debugLineNum = 202;BA.debugLine="If p_camara.visible Then";
if (true) break;

case 1:
//if
this.state = 6;
if (parent._p_camara.getVisible()) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
 //BA.debugLineNum = 203;BA.debugLine="p_camara.visible = False";
parent._p_camara.setVisible(parent.__c.False);
 //BA.debugLineNum = 204;BA.debugLine="StopCamera2";
parent._stopcamera2();
 if (true) break;

case 5:
//C
this.state = 6;
 //BA.debugLineNum = 206;BA.debugLine="B4XPages.ShowPage(\"principal\")";
parent._b4xpages._showpage /*String*/ (ba,"principal");
 if (true) break;

case 6:
//C
this.state = -1;
;
 //BA.debugLineNum = 209;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
 //BA.debugLineNum = 210;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
anywheresoftware.b4a.objects.collections.List _items = null;
 //BA.debugLineNum = 111;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
 //BA.debugLineNum = 112;BA.debugLine="Root = Root1";
_root = _root1;
 //BA.debugLineNum = 113;BA.debugLine="Root.LoadLayout(\"checklist\")";
_root.LoadLayout("checklist",ba);
 //BA.debugLineNum = 115;BA.debugLine="sv_datos.Height = Root.Height";
_sv_datos.setHeight(_root.getHeight());
 //BA.debugLineNum = 116;BA.debugLine="sv_datos.Width = Root.Width";
_sv_datos.setWidth(_root.getWidth());
 //BA.debugLineNum = 117;BA.debugLine="sv_datos.Panel.LoadLayout(\"check\")";
_sv_datos.getPanel().LoadLayout("check",ba);
 //BA.debugLineNum = 118;BA.debugLine="sv_datos.Panel.Height = p_check.Height";
_sv_datos.getPanel().setHeight(_p_check.getHeight());
 //BA.debugLineNum = 119;BA.debugLine="p_check.Width = Root.Width";
_p_check.setWidth(_root.getWidth());
 //BA.debugLineNum = 120;BA.debugLine="p_camara.Width = Root.Width";
_p_camara.setWidth(_root.getWidth());
 //BA.debugLineNum = 121;BA.debugLine="p_camara.Height = Root.Height";
_p_camara.setHeight(_root.getHeight());
 //BA.debugLineNum = 124;BA.debugLine="Dim items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
 //BA.debugLineNum = 125;BA.debugLine="items.Initialize";
_items.Initialize();
 //BA.debugLineNum = 126;BA.debugLine="items.Add(\"100%\")";
_items.Add((Object)("100%"));
 //BA.debugLineNum = 127;BA.debugLine="items.Add(\"75%\")";
_items.Add((Object)("75%"));
 //BA.debugLineNum = 128;BA.debugLine="items.Add(\"50%\")";
_items.Add((Object)("50%"));
 //BA.debugLineNum = 129;BA.debugLine="items.Add(\"25%\")";
_items.Add((Object)("25%"));
 //BA.debugLineNum = 130;BA.debugLine="cb_deratras.SetItems(items)";
_cb_deratras._setitems /*String*/ (_items);
 //BA.debugLineNum = 131;BA.debugLine="cb_izqatras.SetItems(items)";
_cb_izqatras._setitems /*String*/ (_items);
 //BA.debugLineNum = 132;BA.debugLine="cb_derdel.SetItems(items)";
_cb_derdel._setitems /*String*/ (_items);
 //BA.debugLineNum = 133;BA.debugLine="cb_izqdel.SetItems(items)";
_cb_izqdel._setitems /*String*/ (_items);
 //BA.debugLineNum = 134;BA.debugLine="itemselect1 = \"100%\"";
_itemselect1 = "100%";
 //BA.debugLineNum = 135;BA.debugLine="itemselect2 = \"100%\"";
_itemselect2 = "100%";
 //BA.debugLineNum = 136;BA.debugLine="itemselect3 = \"100%\"";
_itemselect3 = "100%";
 //BA.debugLineNum = 137;BA.debugLine="itemselect4 = \"100%\"";
_itemselect4 = "100%";
 //BA.debugLineNum = 139;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve";
_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
 //BA.debugLineNum = 140;BA.debugLine="End Sub";
return "";
}
public String  _camera1_picturetaken(byte[] _data) throws Exception{
String _filename = "";
String _dirp = "";
String _dir = "";
String _dir2 = "";
anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _img = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
 //BA.debugLineNum = 238;BA.debugLine="Sub Camera1_PictureTaken (Data()As Byte)";
 //BA.debugLineNum = 239;BA.debugLine="If x = 1 Then";
if (_x==1) { 
 //BA.debugLineNum = 240;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
 //BA.debugLineNum = 241;BA.debugLine="nombrefoto = DateTime.Now & \"_FOTO1.jpg\"";
_nombrefoto = BA.NumberToString(__c.DateTime.getNow())+"_FOTO1.jpg";
 //BA.debugLineNum = 242;BA.debugLine="teclado.HideKeyboard";
_teclado.HideKeyboard(ba);
 //BA.debugLineNum = 243;BA.debugLine="fototomada = nombrefoto";
_fototomada = _nombrefoto;
 }else if(_x==2) { 
 //BA.debugLineNum = 246;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
 //BA.debugLineNum = 247;BA.debugLine="nombrefoto1 = DateTime.Now & \"_FOTO2.jpg\"";
_nombrefoto1 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO2.jpg";
 //BA.debugLineNum = 248;BA.debugLine="teclado.HideKeyboard";
_teclado.HideKeyboard(ba);
 //BA.debugLineNum = 249;BA.debugLine="fototomada = nombrefoto1";
_fototomada = _nombrefoto1;
 }else if(_x==3) { 
 //BA.debugLineNum = 252;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
 //BA.debugLineNum = 253;BA.debugLine="nombrefoto2 = DateTime.Now & \"_FOTO3.jpg\"";
_nombrefoto2 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO3.jpg";
 //BA.debugLineNum = 254;BA.debugLine="teclado.HideKeyboard";
_teclado.HideKeyboard(ba);
 //BA.debugLineNum = 255;BA.debugLine="fototomada = nombrefoto2";
_fototomada = _nombrefoto2;
 }else if(_x==4) { 
 //BA.debugLineNum = 258;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\"";
__c.DateTime.setDateFormat("ddMMyyyyHHmmss");
 //BA.debugLineNum = 259;BA.debugLine="nombrefoto3 = DateTime.Now & \"_FOTO4.jpg\"";
_nombrefoto3 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO4.jpg";
 //BA.debugLineNum = 260;BA.debugLine="teclado.HideKeyboard";
_teclado.HideKeyboard(ba);
 //BA.debugLineNum = 261;BA.debugLine="fototomada = nombrefoto3";
_fototomada = _nombrefoto3;
 };
 //BA.debugLineNum = 265;BA.debugLine="Log(\"tome foto\")";
__c.LogImpl("54784155","tome foto",0);
 //BA.debugLineNum = 266;BA.debugLine="Dim filename As String = fototomada";
_filename = _fototomada;
 //BA.debugLineNum = 267;BA.debugLine="Dim Dirp As String = File.DirInternal";
_dirp = __c.File.getDirInternal();
 //BA.debugLineNum = 268;BA.debugLine="Dim Dir As String";
_dir = "";
 //BA.debugLineNum = 269;BA.debugLine="Dim Dir2 As String";
_dir2 = "";
 //BA.debugLineNum = 270;BA.debugLine="Try";
try { //BA.debugLineNum = 271;BA.debugLine="File.MakeDir(Dirp,\"/md\")";
__c.File.MakeDir(_dirp,"/md");
 //BA.debugLineNum = 272;BA.debugLine="Dir = \"/md\"";
_dir = "/md";
 //BA.debugLineNum = 273;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)";
__c.LogImpl("54784163","creado en promotoria "+_dirp+_dir,0);
 } 
       catch (Exception e32) {
			ba.setLastException(e32); //BA.debugLineNum = 275;BA.debugLine="Dir = \"\"";
_dir = "";
 //BA.debugLineNum = 276;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("54784166","creado en raiz",0);
 };
 //BA.debugLineNum = 279;BA.debugLine="Try";
try { //BA.debugLineNum = 280;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")";
__c.File.MakeDir(_dirp+_dir,"/reduccion");
 //BA.debugLineNum = 281;BA.debugLine="Dir2 = \"/reduccion\"";
_dir2 = "/reduccion";
 //BA.debugLineNum = 282;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)";
__c.LogImpl("54784172","creado en promotoria "+_dirp+_dir+_dir2,0);
 } 
       catch (Exception e40) {
			ba.setLastException(e40); //BA.debugLineNum = 284;BA.debugLine="Dir = \"\"";
_dir = "";
 //BA.debugLineNum = 285;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("54784175","creado en raiz",0);
 };
 //BA.debugLineNum = 288;BA.debugLine="camEx.SavePictureToFile(Data, Dirp&Dir, filename)";
_camex._savepicturetofile /*String*/ (_data,_dirp+_dir,_filename);
 //BA.debugLineNum = 289;BA.debugLine="camEx.StartPreview 'restart preview";
_camex._startpreview /*String*/ ();
 //BA.debugLineNum = 291;BA.debugLine="Log(\"Picture saved.\" & CRLF  & \"File size: \" & Fi";
__c.LogImpl("54784181","Picture saved."+__c.CRLF+"File size: "+BA.NumberToString(__c.File.Size(_dir,_filename))+_dir+","+_filename,0);
 //BA.debugLineNum = 292;BA.debugLine="p_camara.Visible = False";
_p_camara.setVisible(__c.False);
 //BA.debugLineNum = 294;BA.debugLine="Log(nombrefoto)";
__c.LogImpl("54784184",_nombrefoto,0);
 //BA.debugLineNum = 295;BA.debugLine="Log(nombrefoto1)";
__c.LogImpl("54784185",_nombrefoto1,0);
 //BA.debugLineNum = 296;BA.debugLine="Log(nombrefoto2)";
__c.LogImpl("54784186",_nombrefoto2,0);
 //BA.debugLineNum = 297;BA.debugLine="Log(nombrefoto3)";
__c.LogImpl("54784187",_nombrefoto3,0);
 //BA.debugLineNum = 299;BA.debugLine="If nombrefoto <> \"0\" Then";
if ((_nombrefoto).equals("0") == false) { 
 //BA.debugLineNum = 300;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True);
 //BA.debugLineNum = 301;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.True);
 //BA.debugLineNum = 302;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
 //BA.debugLineNum = 305;BA.debugLine="out.Close";
_out.Close();
 //BA.debugLineNum = 306;BA.debugLine="ImageView1.Bitmap = LoadBitmap(File.DirInternal";
_imageview1.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto).getObject()));
 };
 //BA.debugLineNum = 310;BA.debugLine="If nombrefoto1 <> \"0\" Then";
if ((_nombrefoto1).equals("0") == false) { 
 //BA.debugLineNum = 311;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True);
 //BA.debugLineNum = 312;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False);
 //BA.debugLineNum = 313;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
 //BA.debugLineNum = 316;BA.debugLine="out.Close";
_out.Close();
 //BA.debugLineNum = 317;BA.debugLine="ImageView2.Bitmap = LoadBitmap(File.DirInternal";
_imageview2.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto1).getObject()));
 };
 //BA.debugLineNum = 320;BA.debugLine="If nombrefoto2 <> \"0\" Then";
if ((_nombrefoto2).equals("0") == false) { 
 //BA.debugLineNum = 321;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True);
 //BA.debugLineNum = 322;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False);
 //BA.debugLineNum = 323;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
 //BA.debugLineNum = 326;BA.debugLine="out.Close";
_out.Close();
 //BA.debugLineNum = 327;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirInternal";
_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto2).getObject()));
 };
 //BA.debugLineNum = 330;BA.debugLine="If nombrefoto3 <> \"0\" Then";
if ((_nombrefoto3).equals("0") == false) { 
 //BA.debugLineNum = 331;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True);
 //BA.debugLineNum = 332;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False);
 //BA.debugLineNum = 333;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")";
_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG"));
 //BA.debugLineNum = 336;BA.debugLine="out.Close";
_out.Close();
 //BA.debugLineNum = 337;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirInternal";
_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto3).getObject()));
 };
 //BA.debugLineNum = 340;BA.debugLine="StopCamera2";
_stopcamera2();
 //BA.debugLineNum = 342;BA.debugLine="End Sub";
return "";
}
public String  _camera1_ready(boolean _success) throws Exception{
 //BA.debugLineNum = 224;BA.debugLine="Sub Camera1_Ready (Success As Boolean)";
 //BA.debugLineNum = 225;BA.debugLine="Log(\"Camara ready\")";
__c.LogImpl("54718593","Camara ready",0);
 //BA.debugLineNum = 226;BA.debugLine="If Success Then";
if (_success) { 
 //BA.debugLineNum = 227;BA.debugLine="camEx.SetJpegQuality(90)";
_camex._setjpegquality /*String*/ ((int) (90));
 //BA.debugLineNum = 228;BA.debugLine="camEx.SetContinuousAutoFocus";
_camex._setcontinuousautofocus /*String*/ ();
 //BA.debugLineNum = 229;BA.debugLine="camEx.CommitParameters";
_camex._commitparameters /*String*/ ();
 //BA.debugLineNum = 230;BA.debugLine="camEx.StartPreview";
_camex._startpreview /*String*/ ();
 //BA.debugLineNum = 231;BA.debugLine="Log(camEx.GetPreviewSize)";
__c.LogImpl("54718599",BA.ObjectToString(_camex._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ()),0);
 }else {
 //BA.debugLineNum = 233;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True);
 //BA.debugLineNum = 234;BA.debugLine="Log(\"Cannot open camera\")";
__c.LogImpl("54718602","Cannot open camera",0);
 };
 //BA.debugLineNum = 236;BA.debugLine="End Sub";
return "";
}
public String  _cb_deratras_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 536;BA.debugLine="Private Sub cb_deratras_SelectedIndexChanged (Inde";
 //BA.debugLineNum = 537;BA.debugLine="itemselect4 = cb_deratras.SelectedItem";
_itemselect4 = _cb_deratras._getselecteditem /*String*/ ();
 //BA.debugLineNum = 538;BA.debugLine="Log(itemselect4)";
__c.LogImpl("57602178",_itemselect4,0);
 //BA.debugLineNum = 539;BA.debugLine="End Sub";
return "";
}
public String  _cb_derdel_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 531;BA.debugLine="Private Sub cb_derdel_SelectedIndexChanged (Index";
 //BA.debugLineNum = 532;BA.debugLine="itemselect3 = cb_derdel.SelectedItem";
_itemselect3 = _cb_derdel._getselecteditem /*String*/ ();
 //BA.debugLineNum = 533;BA.debugLine="Log(itemselect3)";
__c.LogImpl("57536642",_itemselect3,0);
 //BA.debugLineNum = 534;BA.debugLine="End Sub";
return "";
}
public String  _cb_izqatras_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 526;BA.debugLine="Private Sub cb_izqatras_SelectedIndexChanged (Inde";
 //BA.debugLineNum = 527;BA.debugLine="itemselect2 = cb_izqatras.SelectedItem";
_itemselect2 = _cb_izqatras._getselecteditem /*String*/ ();
 //BA.debugLineNum = 528;BA.debugLine="Log(itemselect2)";
__c.LogImpl("57471106",_itemselect2,0);
 //BA.debugLineNum = 529;BA.debugLine="End Sub";
return "";
}
public String  _cb_izqdel_selectedindexchanged(int _index) throws Exception{
 //BA.debugLineNum = 521;BA.debugLine="Private Sub cb_izqdel_SelectedIndexChanged (Index";
 //BA.debugLineNum = 522;BA.debugLine="itemselect1 = cb_izqdel.SelectedItem";
_itemselect1 = _cb_izqdel._getselecteditem /*String*/ ();
 //BA.debugLineNum = 523;BA.debugLine="Log(itemselect1)";
__c.LogImpl("57405570",_itemselect1,0);
 //BA.debugLineNum = 524;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 p_check As Panel";
_p_check = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 5;BA.debugLine="Private sv_datos As ScrollView";
_sv_datos = new anywheresoftware.b4a.objects.ScrollViewWrapper();
 //BA.debugLineNum = 7;BA.debugLine="Private camEx As CameraExClass";
_camex = new reparto_izca.keymon.lat.cameraexclass();
 //BA.debugLineNum = 8;BA.debugLine="Dim frontCamera As Boolean = False";
_frontcamera = __c.False;
 //BA.debugLineNum = 9;BA.debugLine="Private p_cam As Panel";
_p_cam = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 10;BA.debugLine="Dim  nombrefoto As String = \"0\"";
_nombrefoto = "0";
 //BA.debugLineNum = 11;BA.debugLine="Dim  nombrefoto1 As String = \"0\"";
_nombrefoto1 = "0";
 //BA.debugLineNum = 12;BA.debugLine="Dim  nombrefoto2 As String = \"0\"";
_nombrefoto2 = "0";
 //BA.debugLineNum = 13;BA.debugLine="Dim  nombrefoto3 As String = \"0\"";
_nombrefoto3 = "0";
 //BA.debugLineNum = 14;BA.debugLine="Private p_camara As Panel";
_p_camara = new anywheresoftware.b4a.objects.PanelWrapper();
 //BA.debugLineNum = 15;BA.debugLine="Private teclado As IME";
_teclado = new anywheresoftware.b4a.objects.IME();
 //BA.debugLineNum = 16;BA.debugLine="Dim fototomada As String";
_fototomada = "";
 //BA.debugLineNum = 17;BA.debugLine="Private ImageView1 As ImageView";
_imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 18;BA.debugLine="Private ImageView3 As ImageView";
_imageview3 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 19;BA.debugLine="Private ImageView2 As ImageView";
_imageview2 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 20;BA.debugLine="Private ImageView4 As ImageView";
_imageview4 = new anywheresoftware.b4a.objects.ImageViewWrapper();
 //BA.debugLineNum = 21;BA.debugLine="Private b_foto As Button";
_b_foto = new anywheresoftware.b4a.objects.ButtonWrapper();
 //BA.debugLineNum = 22;BA.debugLine="Dim device As Phone";
_device = new anywheresoftware.b4a.phone.Phone();
 //BA.debugLineNum = 23;BA.debugLine="Dim MES1 As ManageExternalStorage";
_mes1 = new reparto_izca.keymon.lat.manageexternalstorage();
 //BA.debugLineNum = 24;BA.debugLine="Dim x As Int = 0";
_x = (int) (0);
 //BA.debugLineNum = 25;BA.debugLine="Private rb_docsi1 As RadioButton";
_rb_docsi1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 26;BA.debugLine="Private rb_docno1 As RadioButton";
_rb_docno1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 27;BA.debugLine="Private rb_docsi2 As RadioButton";
_rb_docsi2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 28;BA.debugLine="Private rb_docno2 As RadioButton";
_rb_docno2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 29;BA.debugLine="Private rb_docsi3 As RadioButton";
_rb_docsi3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 30;BA.debugLine="Private rb_docno3 As RadioButton";
_rb_docno3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 31;BA.debugLine="Private rb_docsi4 As RadioButton";
_rb_docsi4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 32;BA.debugLine="Private rb_docno4 As RadioButton";
_rb_docno4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 33;BA.debugLine="Private rb_docsi5 As RadioButton";
_rb_docsi5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 34;BA.debugLine="Private rb_docno5 As RadioButton";
_rb_docno5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 35;BA.debugLine="Private rb_docsi6 As RadioButton";
_rb_docsi6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 36;BA.debugLine="Private rb_docno6 As RadioButton";
_rb_docno6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 37;BA.debugLine="Private rb_docsi7 As RadioButton";
_rb_docsi7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 38;BA.debugLine="Private rb_docno7 As RadioButton";
_rb_docno7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 39;BA.debugLine="Private rb_docsi8 As RadioButton";
_rb_docsi8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 40;BA.debugLine="Private rb_docno8 As RadioButton";
_rb_docno8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 41;BA.debugLine="Private rb_docsi9 As RadioButton";
_rb_docsi9 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 42;BA.debugLine="Private rb_docno9 As RadioButton";
_rb_docno9 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 43;BA.debugLine="Private rb_docsi10 As RadioButton";
_rb_docsi10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 44;BA.debugLine="Private rb_docno10 As RadioButton";
_rb_docno10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 45;BA.debugLine="Private rb_docsi11 As RadioButton";
_rb_docsi11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 46;BA.debugLine="Private rb_docno11 As RadioButton";
_rb_docno11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 47;BA.debugLine="Private rb_docsi12 As RadioButton";
_rb_docsi12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 48;BA.debugLine="Private rb_docno12 As RadioButton";
_rb_docno12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 49;BA.debugLine="Private rb_docsi13 As RadioButton";
_rb_docsi13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 50;BA.debugLine="Private rb_docno13 As RadioButton";
_rb_docno13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 51;BA.debugLine="Private rb_docsi14 As RadioButton";
_rb_docsi14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 52;BA.debugLine="Private rb_docno14 As RadioButton";
_rb_docno14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 53;BA.debugLine="Private rb_docsi15 As RadioButton";
_rb_docsi15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 54;BA.debugLine="Private rb_docno15 As RadioButton";
_rb_docno15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 55;BA.debugLine="Private rb_docsi16 As RadioButton";
_rb_docsi16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 56;BA.debugLine="Private rb_docno16 As RadioButton";
_rb_docno16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 57;BA.debugLine="Private rb_docsi17 As RadioButton";
_rb_docsi17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 58;BA.debugLine="Private rb_docno17 As RadioButton";
_rb_docno17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 59;BA.debugLine="Private rb_docsi18 As RadioButton";
_rb_docsi18 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 60;BA.debugLine="Private rb_docno18 As RadioButton";
_rb_docno18 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 61;BA.debugLine="Private rb_docsi19 As RadioButton";
_rb_docsi19 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 62;BA.debugLine="Private rb_docno19 As RadioButton";
_rb_docno19 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
 //BA.debugLineNum = 63;BA.debugLine="Private et_carroceria As EditText";
_et_carroceria = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 64;BA.debugLine="Private et_luces As EditText";
_et_luces = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 65;BA.debugLine="Private et_placas As EditText";
_et_placas = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 66;BA.debugLine="Private et_liquidos As EditText";
_et_liquidos = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 68;BA.debugLine="Dim p1 As String";
_p1 = "";
 //BA.debugLineNum = 69;BA.debugLine="Dim p2 As String";
_p2 = "";
 //BA.debugLineNum = 70;BA.debugLine="Dim p3 As String";
_p3 = "";
 //BA.debugLineNum = 71;BA.debugLine="Dim p4 As String";
_p4 = "";
 //BA.debugLineNum = 72;BA.debugLine="Dim p5 As String";
_p5 = "";
 //BA.debugLineNum = 73;BA.debugLine="Dim p6 As String";
_p6 = "";
 //BA.debugLineNum = 74;BA.debugLine="Dim p7 As String";
_p7 = "";
 //BA.debugLineNum = 75;BA.debugLine="Dim p8 As String";
_p8 = "";
 //BA.debugLineNum = 76;BA.debugLine="Dim p9 As String";
_p9 = "";
 //BA.debugLineNum = 77;BA.debugLine="Dim p10 As String";
_p10 = "";
 //BA.debugLineNum = 78;BA.debugLine="Dim p11 As String";
_p11 = "";
 //BA.debugLineNum = 79;BA.debugLine="Dim p12 As String";
_p12 = "";
 //BA.debugLineNum = 80;BA.debugLine="Dim p13 As String";
_p13 = "";
 //BA.debugLineNum = 81;BA.debugLine="Dim p14 As String";
_p14 = "";
 //BA.debugLineNum = 82;BA.debugLine="Dim p15 As String";
_p15 = "";
 //BA.debugLineNum = 83;BA.debugLine="Dim p16 As String";
_p16 = "";
 //BA.debugLineNum = 84;BA.debugLine="Dim p17 As String";
_p17 = "";
 //BA.debugLineNum = 85;BA.debugLine="Dim p18 As String";
_p18 = "";
 //BA.debugLineNum = 86;BA.debugLine="Dim p19 As String";
_p19 = "";
 //BA.debugLineNum = 87;BA.debugLine="Private cb_izqdel As B4XComboBox";
_cb_izqdel = new reparto_izca.keymon.lat.b4xcombobox();
 //BA.debugLineNum = 88;BA.debugLine="Private cb_derdel As B4XComboBox";
_cb_derdel = new reparto_izca.keymon.lat.b4xcombobox();
 //BA.debugLineNum = 89;BA.debugLine="Private cb_izqatras As B4XComboBox";
_cb_izqatras = new reparto_izca.keymon.lat.b4xcombobox();
 //BA.debugLineNum = 90;BA.debugLine="Private cb_deratras As B4XComboBox";
_cb_deratras = new reparto_izca.keymon.lat.b4xcombobox();
 //BA.debugLineNum = 91;BA.debugLine="Dim itemselect1 As String";
_itemselect1 = "";
 //BA.debugLineNum = 92;BA.debugLine="Dim itemselect2 As String";
_itemselect2 = "";
 //BA.debugLineNum = 93;BA.debugLine="Dim itemselect3 As String";
_itemselect3 = "";
 //BA.debugLineNum = 94;BA.debugLine="Dim itemselect4 As String";
_itemselect4 = "";
 //BA.debugLineNum = 95;BA.debugLine="Dim foto1() As Byte";
_foto1 = new byte[(int) (0)];
;
 //BA.debugLineNum = 96;BA.debugLine="Dim foto2() As Byte";
_foto2 = new byte[(int) (0)];
;
 //BA.debugLineNum = 97;BA.debugLine="Dim foto3() As Byte";
_foto3 = new byte[(int) (0)];
;
 //BA.debugLineNum = 98;BA.debugLine="Dim foto4() As Byte";
_foto4 = new byte[(int) (0)];
;
 //BA.debugLineNum = 99;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
 //BA.debugLineNum = 100;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager();
 //BA.debugLineNum = 101;BA.debugLine="Private l_placa As Label";
_l_placa = new anywheresoftware.b4a.objects.LabelWrapper();
 //BA.debugLineNum = 102;BA.debugLine="Private et_km As EditText";
_et_km = new anywheresoftware.b4a.objects.EditTextWrapper();
 //BA.debugLineNum = 103;BA.debugLine="End Sub";
return "";
}
public String  _imageview1_click() throws Exception{
 //BA.debugLineNum = 361;BA.debugLine="Private Sub ImageView1_Click";
 //BA.debugLineNum = 363;BA.debugLine="x = 1";
_x = (int) (1);
 //BA.debugLineNum = 364;BA.debugLine="InitializeCamera2";
_initializecamera2();
 //BA.debugLineNum = 365;BA.debugLine="p_camara.Visible = True";
_p_camara.setVisible(__c.True);
 //BA.debugLineNum = 367;BA.debugLine="End Sub";
return "";
}
public String  _imageview2_click() throws Exception{
 //BA.debugLineNum = 369;BA.debugLine="Private Sub ImageView2_Click";
 //BA.debugLineNum = 371;BA.debugLine="x = 2";
_x = (int) (2);
 //BA.debugLineNum = 372;BA.debugLine="InitializeCamera2";
_initializecamera2();
 //BA.debugLineNum = 373;BA.debugLine="p_camara.Visible = True";
_p_camara.setVisible(__c.True);
 //BA.debugLineNum = 375;BA.debugLine="End Sub";
return "";
}
public String  _imageview3_click() throws Exception{
 //BA.debugLineNum = 377;BA.debugLine="Private Sub ImageView3_Click";
 //BA.debugLineNum = 379;BA.debugLine="x = 3";
_x = (int) (3);
 //BA.debugLineNum = 380;BA.debugLine="InitializeCamera2";
_initializecamera2();
 //BA.debugLineNum = 381;BA.debugLine="p_camara.Visible = True";
_p_camara.setVisible(__c.True);
 //BA.debugLineNum = 383;BA.debugLine="End Sub";
return "";
}
public String  _imageview4_click() throws Exception{
 //BA.debugLineNum = 385;BA.debugLine="Private Sub ImageView4_Click";
 //BA.debugLineNum = 387;BA.debugLine="x = 4";
_x = (int) (4);
 //BA.debugLineNum = 388;BA.debugLine="InitializeCamera2";
_initializecamera2();
 //BA.debugLineNum = 389;BA.debugLine="p_camara.Visible = True";
_p_camara.setVisible(__c.True);
 //BA.debugLineNum = 391;BA.debugLine="End Sub";
return "";
}
public Object  _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
innerInitialize(_ba);
 //BA.debugLineNum = 106;BA.debugLine="Public Sub Initialize As Object";
 //BA.debugLineNum = 107;BA.debugLine="Return Me";
if (true) return this;
 //BA.debugLineNum = 108;BA.debugLine="End Sub";
return null;
}
public void  _initializecamera2() throws Exception{
ResumableSub_InitializeCamera2 rsub = new ResumableSub_InitializeCamera2(this);
rsub.resume(ba, null);
}
public static class ResumableSub_InitializeCamera2 extends BA.ResumableSub {
public ResumableSub_InitializeCamera2(reparto_izca.keymon.lat.c_cheklist parent) {
this.parent = parent;
}
reparto_izca.keymon.lat.c_cheklist parent;
String _permission = "";
boolean _result = false;

@Override
public void resume(BA ba, Object[] result) throws Exception{

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
 //BA.debugLineNum = 213;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_CAMERA);
 //BA.debugLineNum = 214;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
this.state = 7;
return;
case 7:
//C
this.state = 1;
_permission = (String) result[0];
_result = (Boolean) result[1];
;
 //BA.debugLineNum = 215;BA.debugLine="If Result Then";
if (true) break;

case 1:
//if
this.state = 6;
if (_result) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
 //BA.debugLineNum = 216;BA.debugLine="camEx.Initialize(p_cam, frontCamera, Me, \"Camera";
parent._camex._initialize /*String*/ (ba,parent._p_cam,parent._frontcamera,parent,"Camera1");
 //BA.debugLineNum = 217;BA.debugLine="frontCamera = camEx.Front";
parent._frontcamera = parent._camex._front /*boolean*/ ;
 //BA.debugLineNum = 218;BA.debugLine="Log(\"inicializamos Camara\")";
parent.__c.LogImpl("54653062","inicializamos Camara",0);
 if (true) break;

case 5:
//C
this.state = 6;
 //BA.debugLineNum = 220;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission Camara!!!"),parent.__c.True);
 if (true) break;

case 6:
//C
this.state = -1;
;
 //BA.debugLineNum = 222;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{
reparto_izca.keymon.lat.dbrequestmanager._dbresult _resultado = null;
String _cliente = "";
int _i = 0;
reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
Object[] _records = null;
String _k = "";
 //BA.debugLineNum = 747;BA.debugLine="Sub JobDone(Job As HttpJob)";
 //BA.debugLineNum = 748;BA.debugLine="Log(\"JOBDONE CLIENTE . \" & Job.Success)";
__c.LogImpl("57798785","JOBDONE CLIENTE . "+BA.ObjectToString(_job._success /*boolean*/ ),0);
 //BA.debugLineNum = 749;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
 //BA.debugLineNum = 752;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Job.Error";
__c.LogImpl("57798789","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Blue);
 }else {
 //BA.debugLineNum = 754;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("57798791","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
 //BA.debugLineNum = 755;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
 //BA.debugLineNum = 756;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job);
 //BA.debugLineNum = 757;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_checkl";
if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_checkliPendientes_head_")>-1) { 
 //BA.debugLineNum = 758;BA.debugLine="Private cliente As String= resultado.Tag";
_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
 //BA.debugLineNum = 759;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
 //BA.debugLineNum = 760;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
__c.LogImpl("57798797",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
 //BA.debugLineNum = 762;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLAC";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE, RUTA FROM CHECKLIST2")));
 //BA.debugLineNum = 763;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("57798800",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
 //BA.debugLineNum = 764;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 765;BA.debugLine="For i = 0 To c.RowCount -1";
{
final int step15 = 1;
final int limit15 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit15 ;_i = _i + step15 ) {
 //BA.debugLineNum = 766;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 767;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 769;BA.debugLine="foto1 = c.GetBlob(\"FOTO1\")";
_foto1 = _c.GetBlob("FOTO1");
 //BA.debugLineNum = 770;BA.debugLine="foto2 = c.GetBlob(\"FOTO12\")";
_foto2 = _c.GetBlob("FOTO12");
 //BA.debugLineNum = 771;BA.debugLine="foto3 = c.GetBlob(\"FOTO3\")";
_foto3 = _c.GetBlob("FOTO3");
 //BA.debugLineNum = 772;BA.debugLine="foto4 = c.GetBlob(\"FOTO4\")";
_foto4 = _c.GetBlob("FOTO4");
 //BA.debugLineNum = 774;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 775;BA.debugLine="cmd.Name = \"update_CHECK_MARDS\"";
_cmd.Name /*String*/  = "update_CHECK_MARDS";
 //BA.debugLineNum = 776;BA.debugLine="cmd.Parameters = Array As Object(c.GetString";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("CONDICION_LLANTAS_DEL_DER")),(Object)(_c.GetString("CONDICION_LLANTAS_DEL_IZQ")),(Object)(_c.GetString("CONDICION_LLANTAS_TRASERA_DER")),(Object)(_c.GetString("CONDICION_LLANTAS_TRASERA_IZQ")),(Object)(_c.GetString("ACEITE")),(Object)(_c.GetString("ANTICONGELANTE")),(Object)(_c.GetString("FRENOS")),(Object)(_c.GetString("AIRE")),(Object)(_c.GetString("FUGAS")),(Object)(_c.GetString("COMETARIOS_FUGAS")),(Object)(_foto1),(Object)(_foto2),(Object)(_foto3),(Object)(_foto4),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._principal /*reparto_izca.keymon.lat.c_principal*/ ._almacen /*String*/ ),(Object)(_c.GetString("KILIMETRAJE")),(Object)(_c.GetString("RUTA")),(Object)(_c.GetString("USUARIO")),(Object)(_c.GetString("PLACA")),(Object)(_c.GetString("FECHA_CAPTURA"))};
 //BA.debugLineNum = 777;BA.debugLine="reqManager.ExecuteCommand(cmd , \"update\")";
_reqmanager._executecommand /*String*/ (_cmd,(Object)("update"));
 }
};
 };
 //BA.debugLineNum = 781;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group28 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen28 = group28.getSize()
;int index28 = 0;
;
for (; index28 < groupLen28;index28++){
_records = (Object[])(group28.Get(index28));
 //BA.debugLineNum = 782;BA.debugLine="For Each k As String In resultado.Columns.Key";
{
final anywheresoftware.b4a.BA.IterableList group29 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen29 = group29.getSize()
;int index29 = 0;
;
for (; index29 < groupLen29;index29++){
_k = BA.ObjectToString(group29.Get(index29));
 //BA.debugLineNum = 783;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("57798820",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 //BA.debugLineNum = 786;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE CHECADO_CHEC";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE CHECADO_CHECK set CHECADO = 1 ");
 //BA.debugLineNum = 787;BA.debugLine="B4XPages.MainPage.principal.checachek";
_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._principal /*reparto_izca.keymon.lat.c_principal*/ ._checachek /*String*/ ();
 };
 };
 //BA.debugLineNum = 791;BA.debugLine="Job.Release";
_job._release /*String*/ ();
 };
 //BA.debugLineNum = 794;BA.debugLine="End Sub";
return "";
}
public String  _mandapendientes() throws Exception{
int _i = 0;
reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
 //BA.debugLineNum = 724;BA.debugLine="Sub mandaPendientes";
 //BA.debugLineNum = 725;BA.debugLine="Log(\"MandaPendientes\")";
__c.LogImpl("57733249","MandaPendientes",0);
 //BA.debugLineNum = 727;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLACA,";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4 FROM CHECKLIST2")));
 //BA.debugLineNum = 728;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("57733252",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
 //BA.debugLineNum = 729;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) { 
 //BA.debugLineNum = 730;BA.debugLine="For i = 0 To c.RowCount -1";
{
final int step5 = 1;
final int limit5 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit5 ;_i = _i + step5 ) {
 //BA.debugLineNum = 731;BA.debugLine="c.Position=i";
_c.setPosition(_i);
 //BA.debugLineNum = 732;BA.debugLine="Dim cmd As DBCommand";
_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand();
 //BA.debugLineNum = 734;BA.debugLine="foto1 = c.GetBlob(\"FOTO1\")";
_foto1 = _c.GetBlob("FOTO1");
 //BA.debugLineNum = 735;BA.debugLine="foto2 = c.GetBlob(\"FOTO12\")";
_foto2 = _c.GetBlob("FOTO12");
 //BA.debugLineNum = 736;BA.debugLine="foto3 = c.GetBlob(\"FOTO3\")";
_foto3 = _c.GetBlob("FOTO3");
 //BA.debugLineNum = 737;BA.debugLine="foto4 = c.GetBlob(\"FOTO4\")";
_foto4 = _c.GetBlob("FOTO4");
 //BA.debugLineNum = 739;BA.debugLine="cmd.Initialize";
_cmd.Initialize();
 //BA.debugLineNum = 740;BA.debugLine="cmd.Name = \"insert_CHECK_MARDS\"";
_cmd.Name /*String*/  = "insert_CHECK_MARDS";
 //BA.debugLineNum = 741;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"U";
_cmd.Parameters /*Object[]*/  = new Object[]{(Object)(_c.GetString("USUARIO")),(Object)(_c.GetString("PLACA")),(Object)(_c.GetString("FECHA_CAPTURA")),(Object)(_c.GetString("TARJETA_CIRCULACION")),(Object)(_c.GetString("POLIZA_SEGURO")),(Object)(_c.GetString("LICENCIA_CONDUCIR")),(Object)(_c.GetString("LIMPIA_EXTERNA")),(Object)(_c.GetString("LIMPIA_INTERNA")),(Object)(_c.GetString("TRIANGULO")),(Object)(_c.GetString("GATO")),(Object)(_c.GetString("LLANTA_REFACCION")),(Object)(_c.GetString("CARROCERIA")),(Object)(_c.GetString("CARROCERIA_COMENTARIOS")),(Object)(_c.GetString("LUCES")),(Object)(_c.GetString("LUCES_COMENTARIOS")),(Object)(_c.GetString("CONDICION_PLACAS")),(Object)(_c.GetString("CONDICION_PLACAS_COMENTARIOS"))};
 //BA.debugLineNum = 742;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_checkliPe";
_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_checkliPendientes_head_"+__c.SmartStringFormatter("",(Object)(_c.GetString("USUARIO")))+"")));
 }
};
 };
 //BA.debugLineNum = 745;BA.debugLine="End Sub";
return "";
}
public String  _p_camara_click() throws Exception{
 //BA.debugLineNum = 344;BA.debugLine="Private Sub p_camara_Click";
 //BA.debugLineNum = 346;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno1_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 393;BA.debugLine="Private Sub rb_docno1_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 394;BA.debugLine="p1 = \"No\"";
_p1 = "No";
 //BA.debugLineNum = 395;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno11_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 465;BA.debugLine="Private Sub rb_docno11_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 466;BA.debugLine="p11 = \"Incorrecto\"";
_p11 = "Incorrecto";
 //BA.debugLineNum = 467;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno13_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 473;BA.debugLine="Private Sub rb_docno13_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 474;BA.debugLine="p13 = \"Incorrecto\"";
_p13 = "Incorrecto";
 //BA.debugLineNum = 475;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno15_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 481;BA.debugLine="Private Sub rb_docno15_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 482;BA.debugLine="p15 = \"Incorrecto\"";
_p15 = "Incorrecto";
 //BA.debugLineNum = 483;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno16_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 489;BA.debugLine="Private Sub rb_docno16_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 490;BA.debugLine="p16 = \"Incorrecto\"";
_p16 = "Incorrecto";
 //BA.debugLineNum = 491;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno17_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 497;BA.debugLine="Private Sub rb_docno17_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 498;BA.debugLine="p17 = \"Incorrecto\"";
_p17 = "Incorrecto";
 //BA.debugLineNum = 499;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno18_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 505;BA.debugLine="Private Sub rb_docno18_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 506;BA.debugLine="p18 = \"Incorrecto\"";
_p18 = "Incorrecto";
 //BA.debugLineNum = 507;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno19_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 513;BA.debugLine="Private Sub rb_docno19_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 514;BA.debugLine="p19 = \"Incorrecto\"";
_p19 = "Incorrecto";
 //BA.debugLineNum = 515;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 401;BA.debugLine="Private Sub rb_docno2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 402;BA.debugLine="p2 = \"No\"";
_p2 = "No";
 //BA.debugLineNum = 403;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 409;BA.debugLine="Private Sub rb_docno3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 410;BA.debugLine="p3 = \"No\"";
_p3 = "No";
 //BA.debugLineNum = 411;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno4_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 417;BA.debugLine="Private Sub rb_docno4_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 418;BA.debugLine="p4 = \"No\"";
_p4 = "No";
 //BA.debugLineNum = 419;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno5_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 425;BA.debugLine="Private Sub rb_docno5_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 426;BA.debugLine="p5 = \"No\"";
_p5 = "No";
 //BA.debugLineNum = 427;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno6_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 433;BA.debugLine="Private Sub rb_docno6_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 434;BA.debugLine="p6 = \"No\"";
_p6 = "No";
 //BA.debugLineNum = 435;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno7_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 441;BA.debugLine="Private Sub rb_docno7_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 442;BA.debugLine="p7 = \"No\"";
_p7 = "No";
 //BA.debugLineNum = 443;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno8_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 449;BA.debugLine="Private Sub rb_docno8_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 450;BA.debugLine="p8 = \"No\"";
_p8 = "No";
 //BA.debugLineNum = 451;BA.debugLine="End Sub";
return "";
}
public String  _rb_docno9_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 457;BA.debugLine="Private Sub rb_docno9_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 458;BA.debugLine="p9 = \"Incorrecto\"";
_p9 = "Incorrecto";
 //BA.debugLineNum = 459;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi1_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 397;BA.debugLine="Private Sub rb_docsi1_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 398;BA.debugLine="p1 = \"Si\"";
_p1 = "Si";
 //BA.debugLineNum = 399;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi11_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 469;BA.debugLine="Private Sub rb_docsi11_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 470;BA.debugLine="p11 = \"Correcto\"";
_p11 = "Correcto";
 //BA.debugLineNum = 471;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi13_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 477;BA.debugLine="Private Sub rb_docsi13_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 478;BA.debugLine="p13 = \"Correcto\"";
_p13 = "Correcto";
 //BA.debugLineNum = 479;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi15_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 485;BA.debugLine="Private Sub rb_docsi15_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 486;BA.debugLine="p15 = \"Correcto\"";
_p15 = "Correcto";
 //BA.debugLineNum = 487;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi16_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 493;BA.debugLine="Private Sub rb_docsi16_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 494;BA.debugLine="p16 = \"Correcto\"";
_p16 = "Correcto";
 //BA.debugLineNum = 495;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi17_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 501;BA.debugLine="Private Sub rb_docsi17_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 502;BA.debugLine="p17 = \"Correcto\"";
_p17 = "Correcto";
 //BA.debugLineNum = 503;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi18_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 509;BA.debugLine="Private Sub rb_docsi18_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 510;BA.debugLine="p18 = \"Correcto\"";
_p18 = "Correcto";
 //BA.debugLineNum = 511;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi19_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 517;BA.debugLine="Private Sub rb_docsi19_CheckedChange(Checked As Bo";
 //BA.debugLineNum = 518;BA.debugLine="p19 = \"Correcto\"";
_p19 = "Correcto";
 //BA.debugLineNum = 519;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi2_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 405;BA.debugLine="Private Sub rb_docsi2_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 406;BA.debugLine="p2 = \"Si\"";
_p2 = "Si";
 //BA.debugLineNum = 407;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi3_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 413;BA.debugLine="Private Sub rb_docsi3_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 414;BA.debugLine="p3 = \"Si\"";
_p3 = "Si";
 //BA.debugLineNum = 415;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi4_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 421;BA.debugLine="Private Sub rb_docsi4_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 422;BA.debugLine="p4 = \"Si\"";
_p4 = "Si";
 //BA.debugLineNum = 423;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi5_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 429;BA.debugLine="Private Sub rb_docsi5_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 430;BA.debugLine="p5 = \"Si\"";
_p5 = "Si";
 //BA.debugLineNum = 431;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi6_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 437;BA.debugLine="Private Sub rb_docsi6_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 438;BA.debugLine="p6 = \"Si\"";
_p6 = "Si";
 //BA.debugLineNum = 439;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi7_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 445;BA.debugLine="Private Sub rb_docsi7_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 446;BA.debugLine="p7 = \"Si\"";
_p7 = "Si";
 //BA.debugLineNum = 447;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi8_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 453;BA.debugLine="Private Sub rb_docsi8_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 454;BA.debugLine="p8 = \"Si\"";
_p8 = "Si";
 //BA.debugLineNum = 455;BA.debugLine="End Sub";
return "";
}
public String  _rb_docsi9_checkedchange(boolean _checked) throws Exception{
 //BA.debugLineNum = 461;BA.debugLine="Private Sub rb_docsi9_CheckedChange(Checked As Boo";
 //BA.debugLineNum = 462;BA.debugLine="p9 = \"Correcto\"";
_p9 = "Correcto";
 //BA.debugLineNum = 463;BA.debugLine="End Sub";
return "";
}
public String  _stopcamera2() throws Exception{
 //BA.debugLineNum = 354;BA.debugLine="Private Sub StopCamera2";
 //BA.debugLineNum = 356;BA.debugLine="If camEx.IsInitialized Then";
if (_camex.IsInitialized /*boolean*/ ()) { 
 //BA.debugLineNum = 357;BA.debugLine="camEx.Release";
_camex._release /*String*/ ();
 };
 //BA.debugLineNum = 359;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]);
if (BA.fastSubCompare(sub, "JOBDONE"))
	return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]);
return BA.SubDelegator.SubNotFound;
}
}
