package reparto_intmex.keymon.lat;


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

public class c_noventa 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, "reparto_intmex.keymon.lat.c_noventa");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_intmex.keymon.lat.c_noventa.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.gps.GPS _g = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public String _comentario = "";
public anywheresoftware.b4a.objects.ButtonWrapper _cancela = null;
public anywheresoftware.b4a.objects.ButtonWrapper _guarda = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_1 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_2 = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_3 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _e_comm = null;
public String _motivo = "";
public String _cuenta = "";
public String _usuario = "";
public String _sdate = "";
public String _stime = "";
public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_4 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null;
public reparto_intmex.keymon.lat.dbrequestmanager _reqmanager = null;
public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb_reprogramar = null;
public int _reprogramar = 0;
public b4a.example.dateutils _dateutils = null;
public reparto_intmex.keymon.lat.main _main = null;
public reparto_intmex.keymon.lat.appupdater _appupdater = null;
public reparto_intmex.keymon.lat.foto _foto = null;
public reparto_intmex.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_intmex.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_intmex.keymon.lat.starter _starter = null;
public reparto_intmex.keymon.lat.subs _subs = null;
public reparto_intmex.keymon.lat.tracker _tracker = null;
public reparto_intmex.keymon.lat.newinst2 _newinst2 = null;
public reparto_intmex.keymon.lat.b4xpages _b4xpages = null;
public reparto_intmex.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_intmex.keymon.lat.httputils2service _httputils2service = null;
public reparto_intmex.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public Object  _initialize(reparto_intmex.keymon.lat.c_noventa __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=50724864;
 //BA.debugLineNum = 50724864;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=50724865;
 //BA.debugLineNum = 50724865;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=50724866;
 //BA.debugLineNum = 50724866;BA.debugLine="End Sub";
return null;
}
public String  _b4xpage_appear(reparto_intmex.keymon.lat.c_noventa __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_appear", null));}
RDebugUtils.currentLine=50855936;
 //BA.debugLineNum = 50855936;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=50855937;
 //BA.debugLineNum = 50855937;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=50855938;
 //BA.debugLineNum = 50855938;BA.debugLine="e_comm.Text=\"\"";
__ref._e_comm /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=50855939;
 //BA.debugLineNum = 50855939;BA.debugLine="r_1.Checked = False";
__ref._r_1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False);
RDebugUtils.currentLine=50855940;
 //BA.debugLineNum = 50855940;BA.debugLine="r_2.Checked = False";
__ref._r_2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False);
RDebugUtils.currentLine=50855941;
 //BA.debugLineNum = 50855941;BA.debugLine="r_3.Checked = False";
__ref._r_3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False);
RDebugUtils.currentLine=50855942;
 //BA.debugLineNum = 50855942;BA.debugLine="r_4.Checked = False";
__ref._r_4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False);
RDebugUtils.currentLine=50855943;
 //BA.debugLineNum = 50855943;BA.debugLine="cb_reprogramar.Checked = False";
__ref._cb_reprogramar /*anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper*/ .setChecked(__c.False);
RDebugUtils.currentLine=50855944;
 //BA.debugLineNum = 50855944;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_created(reparto_intmex.keymon.lat.c_noventa __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=50790400;
 //BA.debugLineNum = 50790400;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=50790401;
 //BA.debugLineNum = 50790401;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=50790403;
 //BA.debugLineNum = 50790403;BA.debugLine="Root.LoadLayout(\"no_venta\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("no_venta",ba);
RDebugUtils.currentLine=50790404;
 //BA.debugLineNum = 50790404;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE";
__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ );
RDebugUtils.currentLine=50790405;
 //BA.debugLineNum = 50790405;BA.debugLine="End Sub";
return "";
}
public String  _cancela_click(reparto_intmex.keymon.lat.c_noventa __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "cancela_click", false))
	 {return ((String) Debug.delegate(ba, "cancela_click", null));}
RDebugUtils.currentLine=50987008;
 //BA.debugLineNum = 50987008;BA.debugLine="Sub CANCELA_Click";
RDebugUtils.currentLine=50987009;
 //BA.debugLineNum = 50987009;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=50987010;
 //BA.debugLineNum = 50987010;BA.debugLine="End Sub";
return "";
}
public String  _cb_reprogramar_checkedchange(reparto_intmex.keymon.lat.c_noventa __ref,boolean _checked) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "cb_reprogramar_checkedchange", false))
	 {return ((String) Debug.delegate(ba, "cb_reprogramar_checkedchange", new Object[] {_checked}));}
RDebugUtils.currentLine=51249152;
 //BA.debugLineNum = 51249152;BA.debugLine="Private Sub cb_reprogramar_CheckedChange(Checked A";
RDebugUtils.currentLine=51249153;
 //BA.debugLineNum = 51249153;BA.debugLine="If Checked Then";
if (_checked) { 
RDebugUtils.currentLine=51249154;
 //BA.debugLineNum = 51249154;BA.debugLine="reprogramar = 1";
__ref._reprogramar /*int*/  = (int) (1);
 }else {
RDebugUtils.currentLine=51249156;
 //BA.debugLineNum = 51249156;BA.debugLine="reprogramar = 0";
__ref._reprogramar /*int*/  = (int) (0);
 };
RDebugUtils.currentLine=51249158;
 //BA.debugLineNum = 51249158;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(reparto_intmex.keymon.lat.c_noventa __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
RDebugUtils.currentLine=50659328;
 //BA.debugLineNum = 50659328;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=50659329;
 //BA.debugLineNum = 50659329;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=50659330;
 //BA.debugLineNum = 50659330;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=50659331;
 //BA.debugLineNum = 50659331;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=50659332;
 //BA.debugLineNum = 50659332;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=50659333;
 //BA.debugLineNum = 50659333;BA.debugLine="Dim COMENTARIO As String";
_comentario = "";
RDebugUtils.currentLine=50659334;
 //BA.debugLineNum = 50659334;BA.debugLine="Dim CANCELA As Button";
_cancela = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=50659335;
 //BA.debugLineNum = 50659335;BA.debugLine="Dim GUARDA As Button";
_guarda = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=50659336;
 //BA.debugLineNum = 50659336;BA.debugLine="Dim r_1 As RadioButton";
_r_1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=50659337;
 //BA.debugLineNum = 50659337;BA.debugLine="Dim r_2 As RadioButton";
_r_2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=50659338;
 //BA.debugLineNum = 50659338;BA.debugLine="Dim r_3 As RadioButton";
_r_3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=50659339;
 //BA.debugLineNum = 50659339;BA.debugLine="Dim e_comm As EditText";
_e_comm = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=50659340;
 //BA.debugLineNum = 50659340;BA.debugLine="Dim motivo As String";
_motivo = "";
RDebugUtils.currentLine=50659341;
 //BA.debugLineNum = 50659341;BA.debugLine="Dim cuenta As String";
_cuenta = "";
RDebugUtils.currentLine=50659342;
 //BA.debugLineNum = 50659342;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=50659343;
 //BA.debugLineNum = 50659343;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=50659344;
 //BA.debugLineNum = 50659344;BA.debugLine="Dim r_4 As RadioButton";
_r_4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper();
RDebugUtils.currentLine=50659345;
 //BA.debugLineNum = 50659345;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=50659346;
 //BA.debugLineNum = 50659346;BA.debugLine="Dim d As Cursor";
_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=50659347;
 //BA.debugLineNum = 50659347;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new reparto_intmex.keymon.lat.dbrequestmanager();
RDebugUtils.currentLine=50659348;
 //BA.debugLineNum = 50659348;BA.debugLine="Private cb_reprogramar As CheckBox";
_cb_reprogramar = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper();
RDebugUtils.currentLine=50659349;
 //BA.debugLineNum = 50659349;BA.debugLine="Dim reprogramar As Int = 0";
_reprogramar = (int) (0);
RDebugUtils.currentLine=50659350;
 //BA.debugLineNum = 50659350;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(reparto_intmex.keymon.lat.c_noventa __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=50921472;
 //BA.debugLineNum = 50921472;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=50921475;
 //BA.debugLineNum = 50921475;BA.debugLine="End Sub";
return "";
}
public String  _guarda_click(reparto_intmex.keymon.lat.c_noventa __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "guarda_click", false))
	 {return ((String) Debug.delegate(ba, "guarda_click", null));}
String _rutaactualizar = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null;
String _estecliente = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _rv = null;
int _i2 = 0;
int _i = 0;
String _ruta = "";
String _rutapre = "";
String _fechaprev = "";
RDebugUtils.currentLine=51052544;
 //BA.debugLineNum = 51052544;BA.debugLine="Sub GUARDA_Click";
RDebugUtils.currentLine=51052545;
 //BA.debugLineNum = 51052545;BA.debugLine="If r_1.Checked = False And r_2.Checked = False An";
if (__ref._r_1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.False && __ref._r_2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.False && __ref._r_3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.False && __ref._r_4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.False) { 
RDebugUtils.currentLine=51052546;
 //BA.debugLineNum = 51052546;BA.debugLine="MsgboxAsync(\"Selecciona un motivo de rechazo\",\"A";
__c.MsgboxAsync(BA.ObjectToCharSequence("Selecciona un motivo de rechazo"),BA.ObjectToCharSequence("Atención"),ba);
 }else {
RDebugUtils.currentLine=51052549;
 //BA.debugLineNum = 51052549;BA.debugLine="If r_1.Checked Then";
if (__ref._r_1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { 
RDebugUtils.currentLine=51052550;
 //BA.debugLineNum = 51052550;BA.debugLine="motivo = \"CERRADO\"";
__ref._motivo /*String*/  = "CERRADO";
 }else 
{RDebugUtils.currentLine=51052551;
 //BA.debugLineNum = 51052551;BA.debugLine="Else If r_2.Checked Then";
if (__ref._r_2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { 
RDebugUtils.currentLine=51052552;
 //BA.debugLineNum = 51052552;BA.debugLine="motivo = \"NO PIDIO\"";
__ref._motivo /*String*/  = "NO PIDIO";
 }else 
{RDebugUtils.currentLine=51052553;
 //BA.debugLineNum = 51052553;BA.debugLine="Else If r_3.Checked Then";
if (__ref._r_3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { 
RDebugUtils.currentLine=51052554;
 //BA.debugLineNum = 51052554;BA.debugLine="motivo = \"CANCELA\"";
__ref._motivo /*String*/  = "CANCELA";
 }else {
RDebugUtils.currentLine=51052556;
 //BA.debugLineNum = 51052556;BA.debugLine="motivo = \"NO ESTA EL ENCARGADO\"";
__ref._motivo /*String*/  = "NO ESTA EL ENCARGADO";
 }}}
;
RDebugUtils.currentLine=51052559;
 //BA.debugLineNum = 51052559;BA.debugLine="If motivo <> \"CERRADO\"  Or motivo = \"CERRADO\" Th";
if ((__ref._motivo /*String*/ ).equals("CERRADO") == false || (__ref._motivo /*String*/ ).equals("CERRADO")) { 
RDebugUtils.currentLine=51052560;
 //BA.debugLineNum = 51052560;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
RDebugUtils.currentLine=51052561;
 //BA.debugLineNum = 51052561;BA.debugLine="DateTime.TimeFormat=\"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
RDebugUtils.currentLine=51052562;
 //BA.debugLineNum = 51052562;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=51052563;
 //BA.debugLineNum = 51052563;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=51052564;
 //BA.debugLineNum = 51052564;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cu";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa")));
RDebugUtils.currentLine=51052565;
 //BA.debugLineNum = 51052565;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51052566;
 //BA.debugLineNum = 51052566;BA.debugLine="cuenta = c.GetString(\"CUENTA\")";
__ref._cuenta /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA");
RDebugUtils.currentLine=51052567;
 //BA.debugLineNum = 51052567;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from u";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa")));
RDebugUtils.currentLine=51052568;
 //BA.debugLineNum = 51052568;BA.debugLine="c.Position = 0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51052569;
 //BA.debugLineNum = 51052569;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
__ref._usuario /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO");
RDebugUtils.currentLine=51052570;
 //BA.debugLineNum = 51052570;BA.debugLine="c.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51052571;
 //BA.debugLineNum = 51052571;BA.debugLine="Dim rutaactualizar As String";
_rutaactualizar = "";
RDebugUtils.currentLine=51052572;
 //BA.debugLineNum = 51052572;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SEL";
_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rut = (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 CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=51052573;
 //BA.debugLineNum = 51052573;BA.debugLine="If rut.RowCount > 0 Then";
if (_rut.getRowCount()>0) { 
RDebugUtils.currentLine=51052574;
 //BA.debugLineNum = 51052574;BA.debugLine="rut.Position = 0";
_rut.setPosition((int) (0));
RDebugUtils.currentLine=51052575;
 //BA.debugLineNum = 51052575;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")";
_rutaactualizar = _rut.GetString("CAT_CL_RUTA");
 };
RDebugUtils.currentLine=51052577;
 //BA.debugLineNum = 51052577;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENTA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) "));
RDebugUtils.currentLine=51052579;
 //BA.debugLineNum = 51052579;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_NUM_REGIST";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_NUM_REGISTRO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_PROID, CAT_GP_PRECIO from HIST_VENTAS2 join CAT_GUNAPROD on CAT_GP_ID = HVD_PROID WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc")));
RDebugUtils.currentLine=51052580;
 //BA.debugLineNum = 51052580;BA.debugLine="If c.RowCount > 0 Then 'Si  hay pedido en HIST_";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=51052583;
 //BA.debugLineNum = 51052583;BA.debugLine="Private esteCliente As String = Subs.traeClien";
_estecliente = _subs._traecliente /*String*/ (ba);
RDebugUtils.currentLine=51052584;
 //BA.debugLineNum = 51052584;BA.debugLine="Private rv As Cursor = Starter.skmt.ExecQuery(";
_rv = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rv = (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 * from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_estecliente))+"' and REP_CLI_ORIG <> '"+__c.SmartStringFormatter("",(Object)(_estecliente))+"' and REP_RECHAZO = 0"))));
RDebugUtils.currentLine=51052585;
 //BA.debugLineNum = 51052585;BA.debugLine="If rv.RowCount > 0 Then 'Si tenemos venta en e";
if (_rv.getRowCount()>0) { 
RDebugUtils.currentLine=51052586;
 //BA.debugLineNum = 51052586;BA.debugLine="For i2=0 To rv.RowCount - 1";
{
final int step37 = 1;
final int limit37 = (int) (_rv.getRowCount()-1);
_i2 = (int) (0) ;
for (;_i2 <= limit37 ;_i2 = _i2 + step37 ) {
RDebugUtils.currentLine=51052587;
 //BA.debugLineNum = 51052587;BA.debugLine="rv.Position = i2";
_rv.setPosition(_i2);
RDebugUtils.currentLine=51052588;
 //BA.debugLineNum = 51052588;BA.debugLine="Log($\"Actualizamos REPARTO - cliente=${rv.Ge";
__c.LogImpl("251052588",("Actualizamos REPARTO - cliente="+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLIENTE")))+", cliente orignal="+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+", le agregamos "+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+""),0);
RDebugUtils.currentLine=51052589;
 //BA.debugLineNum = 51052589;BA.debugLine="Starter.skmt.ExecNonQuery($\"update REPARTO s";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update REPARTO set REP_CANT = REP_CANT + "+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+" where REP_RECHAZO = '1' and REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+"'"));
 }
};
 };
RDebugUtils.currentLine=51052593;
 //BA.debugLineNum = 51052593;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from reparto";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from reparto where REP_CLIENTE IN (Select CUENTA from cuentaa)");
RDebugUtils.currentLine=51052594;
 //BA.debugLineNum = 51052594;BA.debugLine="For i=0 To c.RowCount - 1 'Insertamos los prod";
{
final int step44 = 1;
final int limit44 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit44 ;_i = _i + step44 ) {
RDebugUtils.currentLine=51052595;
 //BA.debugLineNum = 51052595;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=51052596;
 //BA.debugLineNum = 51052596;BA.debugLine="Log($\"REGISTRO= ${c.GetString(\"HVD_NUM_REGIST";
__c.LogImpl("251052596",("REGISTRO= "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")))+""),0);
RDebugUtils.currentLine=51052597;
 //BA.debugLineNum = 51052597;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repar";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_PRECIO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")}));
RDebugUtils.currentLine=51052598;
 //BA.debugLineNum = 51052598;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repar";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),BA.NumberToString(0),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_PRECIO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")}));
RDebugUtils.currentLine=51052599;
 //BA.debugLineNum = 51052599;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapr";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"))}));
 }
};
 };
RDebugUtils.currentLine=51052603;
 //BA.debugLineNum = 51052603;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._cuenta /*String*/ ),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._motivo /*String*/ ),(Object)(__ref._e_comm /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(__ref._reprogramar /*int*/ )}));
RDebugUtils.currentLine=51052604;
 //BA.debugLineNum = 51052604;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'"));
RDebugUtils.currentLine=51052605;
 //BA.debugLineNum = 51052605;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS S";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
RDebugUtils.currentLine=51052606;
 //BA.debugLineNum = 51052606;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2,  HVD_RECHAZOCANT = HVD_RECHAZOCANT  WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)"));
RDebugUtils.currentLine=51052607;
 //BA.debugLineNum = 51052607;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDIDO W";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)");
RDebugUtils.currentLine=51052608;
 //BA.debugLineNum = 51052608;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM R";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (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")));
RDebugUtils.currentLine=51052609;
 //BA.debugLineNum = 51052609;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51052610;
 //BA.debugLineNum = 51052610;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")";
_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");
RDebugUtils.currentLine=51052611;
 //BA.debugLineNum = 51052611;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51052612;
 //BA.debugLineNum = 51052612;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RUTA";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (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 CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=51052613;
 //BA.debugLineNum = 51052613;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51052614;
 //BA.debugLineNum = 51052614;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_RUT";
_rutapre = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA");
RDebugUtils.currentLine=51052615;
 //BA.debugLineNum = 51052615;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51052616;
 //BA.debugLineNum = 51052616;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FR";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (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 HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")));
RDebugUtils.currentLine=51052617;
 //BA.debugLineNum = 51052617;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51052618;
 //BA.debugLineNum = 51052618;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_FECH";
_fechaprev = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA");
RDebugUtils.currentLine=51052619;
 //BA.debugLineNum = 51052619;BA.debugLine="d.Close";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=51052620;
 //BA.debugLineNum = 51052620;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/  = (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 CUENTA FROM CUENTAA")));
RDebugUtils.currentLine=51052621;
 //BA.debugLineNum = 51052621;BA.debugLine="d.Position = 0";
__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=51052622;
 //BA.debugLineNum = 51052622;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPARTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._cuenta /*String*/ ,__ref._usuario /*String*/ ,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_intmex.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,_fechaprev,__ref._motivo /*String*/ ,__ref._e_comm /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),"NO ENTREGADO"}));
RDebugUtils.currentLine=51052628;
 //BA.debugLineNum = 51052628;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
 }else {
RDebugUtils.currentLine=51052631;
 //BA.debugLineNum = 51052631;BA.debugLine="COMENTARIO = e_comm.Text";
__ref._comentario /*String*/  = __ref._e_comm /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText();
 };
 };
RDebugUtils.currentLine=51052636;
 //BA.debugLineNum = 51052636;BA.debugLine="End Sub";
return "";
}
public String  _jobdone(reparto_intmex.keymon.lat.c_noventa __ref,reparto_intmex.keymon.lat.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "jobdone", false))
	 {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));}
reparto_intmex.keymon.lat.dbrequestmanager._dbresult _resultado = null;
String _cliente = "";
Object[] _records = null;
String _k = "";
RDebugUtils.currentLine=51183616;
 //BA.debugLineNum = 51183616;BA.debugLine="Sub JobDone(Job As HttpJob)";
RDebugUtils.currentLine=51183617;
 //BA.debugLineNum = 51183617;BA.debugLine="Log(Job.Success)";
__c.LogImpl("251183617",BA.ObjectToString(_job._success /*boolean*/ ),0);
RDebugUtils.currentLine=51183618;
 //BA.debugLineNum = 51183618;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) { 
 }else {
RDebugUtils.currentLine=51183621;
 //BA.debugLineNum = 51183621;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("251183621","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
RDebugUtils.currentLine=51183622;
 //BA.debugLineNum = 51183622;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) { 
RDebugUtils.currentLine=51183623;
 //BA.debugLineNum = 51183623;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
_resultado = __ref._reqmanager /*reparto_intmex.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_intmex.keymon.lat.dbrequestmanager._dbresult*/ (null,_job);
RDebugUtils.currentLine=51183624;
 //BA.debugLineNum = 51183624;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART";
if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_REPARTOPendientes_head_")>-1) { 
RDebugUtils.currentLine=51183625;
 //BA.debugLineNum = 51183625;BA.debugLine="Private cliente As String= resultado.Tag";
_cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
RDebugUtils.currentLine=51183626;
 //BA.debugLineNum = 51183626;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
RDebugUtils.currentLine=51183627;
 //BA.debugLineNum = 51183627;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
__c.LogImpl("251183627",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
RDebugUtils.currentLine=51183628;
 //BA.debugLineNum = 51183628;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"1",_cliente,"1"}));
RDebugUtils.currentLine=51183629;
 //BA.debugLineNum = 51183629;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group12 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen12 = group12.getSize()
;int index12 = 0;
;
for (; index12 < groupLen12;index12++){
_records = (Object[])(group12.Get(index12));
RDebugUtils.currentLine=51183630;
 //BA.debugLineNum = 51183630;BA.debugLine="For Each k As String In resultado.Columns.Key";
{
final anywheresoftware.b4a.BA.IterableList group13 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen13 = group13.getSize()
;int index13 = 0;
;
for (; index13 < groupLen13;index13++){
_k = BA.ObjectToString(group13.Get(index13));
RDebugUtils.currentLine=51183631;
 //BA.debugLineNum = 51183631;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("251183631",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
 }
};
 }
};
 };
 };
RDebugUtils.currentLine=51183636;
 //BA.debugLineNum = 51183636;BA.debugLine="Job.Release";
_job._release /*String*/ (null);
 };
RDebugUtils.currentLine=51183639;
 //BA.debugLineNum = 51183639;BA.debugLine="End Sub";
return "";
}
public String  _mandapendientesreparto(reparto_intmex.keymon.lat.c_noventa __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_noventa";
if (Debug.shouldDelegate(ba, "mandapendientesreparto", false))
	 {return ((String) Debug.delegate(ba, "mandapendientesreparto", null));}
RDebugUtils.currentLine=51118080;
 //BA.debugLineNum = 51118080;BA.debugLine="Sub mandaPendientesreparto";
RDebugUtils.currentLine=51118096;
 //BA.debugLineNum = 51118096;BA.debugLine="End Sub";
return "";
}
}