package reparto_izca.keymon.lat;


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

public class c_productos 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_izca.keymon.lat.c_productos");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.c_productos.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 String _clie_id = "";
public String _sdate = "";
public String _stime = "";
public String _usuario = "";
public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_regresar = null;
public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_total = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_borra = null;
public String _existe = "";
public String _result = "";
public String _cuantos = "";
public String _nombre_prod = "";
public String _cuantos_pedido = "";
public anywheresoftware.b4a.objects.LabelWrapper _titulo = null;
public anywheresoftware.b4a.objects.PanelWrapper _p1 = null;
public anywheresoftware.b4a.objects.ListViewWrapper _lv2 = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null;
public b4a.example3.customlistview _clv_pedido = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_prods = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_prodx = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pcant = null;
public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
public boolean _etcanthasfocus = false;
public int _totalprods = 0;
public int _totalcompra = 0;
public anywheresoftware.b4a.objects.collections.Map _prodsmap = null;
public boolean _reconstruirpedido = false;
public String _promoaborrar = "";
public anywheresoftware.b4a.objects.ButtonWrapper _b_guardar = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenosc = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_pcantc = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_pcantc = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmasc = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmenc = null;
public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmen = null;
public anywheresoftware.b4a.objects.ButtonWrapper _b_revversar = null;
public anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
public anywheresoftware.b4a.objects.LabelWrapper _label3 = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_piezas = null;
public anywheresoftware.b4a.objects.LabelWrapper _l_cajas = 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.subs _subs = 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.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 Object  _initialize(reparto_izca.keymon.lat.c_productos __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=24248320;
 //BA.debugLineNum = 24248320;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=24248321;
 //BA.debugLineNum = 24248321;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=24248322;
 //BA.debugLineNum = 24248322;BA.debugLine="End Sub";
return null;
}
public String  _b_guardar_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_guardar_click", false))
	 {return ((String) Debug.delegate(ba, "b_guardar_click", null));}
RDebugUtils.currentLine=25362432;
 //BA.debugLineNum = 25362432;BA.debugLine="Private Sub b_guardar_Click";
RDebugUtils.currentLine=25362434;
 //BA.debugLineNum = 25362434;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmas_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_prodmas_click", false))
	 {return ((String) Debug.delegate(ba, "b_prodmas_click", null));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
anywheresoftware.b4a.objects.collections.List _estetag = null;
String _maxprods = "";
String _minimoadesc = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null;
String _preciofull = "";
String _pup = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _precioreg = null;
String _precioregalo = "";
String _esregalo = "";
RDebugUtils.currentLine=24969216;
 //BA.debugLineNum = 24969216;BA.debugLine="Sub b_prodMas_Click";
RDebugUtils.currentLine=24969217;
 //BA.debugLineNum = 24969217;BA.debugLine="etCantHasFocus = False";
__ref._etcanthasfocus /*boolean*/  = __c.False;
RDebugUtils.currentLine=24969218;
 //BA.debugLineNum = 24969218;BA.debugLine="Dim sDate, sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=24969219;
 //BA.debugLineNum = 24969219;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
RDebugUtils.currentLine=24969220;
 //BA.debugLineNum = 24969220;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
RDebugUtils.currentLine=24969221;
 //BA.debugLineNum = 24969221;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
__ref._sdate /*String*/  = __c.DateTime.Date(__c.DateTime.getNow());
RDebugUtils.currentLine=24969222;
 //BA.debugLineNum = 24969222;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
__ref._stime /*String*/  = __c.DateTime.Time(__c.DateTime.getNow());
RDebugUtils.currentLine=24969224;
 //BA.debugLineNum = 24969224;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
__c.LogImpl("824969224","b_prodMas_Click",__c.Colors.Magenta);
RDebugUtils.currentLine=24969225;
 //BA.debugLineNum = 24969225;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=24969226;
 //BA.debugLineNum = 24969226;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=24969227;
 //BA.debugLineNum = 24969227;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=24969228;
 //BA.debugLineNum = 24969228;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (3));
RDebugUtils.currentLine=24969232;
 //BA.debugLineNum = 24969232;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
RDebugUtils.currentLine=24969233;
 //BA.debugLineNum = 24969233;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
__c.LogImpl("824969233","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
RDebugUtils.currentLine=24969234;
 //BA.debugLineNum = 24969234;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=24969236;
 //BA.debugLineNum = 24969236;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4";
_maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))));
RDebugUtils.currentLine=24969238;
 //BA.debugLineNum = 24969238;BA.debugLine="Private minimoadesc As String";
_minimoadesc = "";
RDebugUtils.currentLine=24969239;
 //BA.debugLineNum = 24969239;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
RDebugUtils.currentLine=24969240;
 //BA.debugLineNum = 24969240;BA.debugLine="If minimos.RowCount > 0 Then";
if (_minimos.getRowCount()>0) { 
RDebugUtils.currentLine=24969241;
 //BA.debugLineNum = 24969241;BA.debugLine="minimos.Position = 0";
_minimos.setPosition((int) (0));
RDebugUtils.currentLine=24969242;
 //BA.debugLineNum = 24969242;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA");
 }else {
RDebugUtils.currentLine=24969244;
 //BA.debugLineNum = 24969244;BA.debugLine="minimoadesc = \"1\"";
_minimoadesc = "1";
 };
RDebugUtils.currentLine=24969246;
 //BA.debugLineNum = 24969246;BA.debugLine="minimos.Close";
_minimos.Close();
RDebugUtils.currentLine=24969247;
 //BA.debugLineNum = 24969247;BA.debugLine="minimoadesc = \"1\"";
_minimoadesc = "1";
RDebugUtils.currentLine=24969250;
 //BA.debugLineNum = 24969250;BA.debugLine="LogColor($\"++++++++++++++++++++++++++   ${esteTag";
__c.LogImpl("824969250",("++++++++++++++++++++++++++   "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
RDebugUtils.currentLine=24969251;
 //BA.debugLineNum = 24969251;BA.debugLine="Log(esteTag.get(4))";
__c.LogImpl("824969251",BA.ObjectToString(_estetag.Get((int) (4))),0);
RDebugUtils.currentLine=24969252;
 //BA.debugLineNum = 24969252;BA.debugLine="If esteTag.Get(4) = \"0\" Then";
if ((_estetag.Get((int) (4))).equals((Object)("0"))) { 
 }else {
RDebugUtils.currentLine=24969255;
 //BA.debugLineNum = 24969255;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { 
RDebugUtils.currentLine=24969256;
 //BA.debugLineNum = 24969256;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
__c.LogImpl("824969256",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
RDebugUtils.currentLine=24969257;
 //BA.debugLineNum = 24969257;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
RDebugUtils.currentLine=24969258;
 //BA.debugLineNum = 24969258;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}));
RDebugUtils.currentLine=24969259;
 //BA.debugLineNum = 24969259;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI";
__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*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
RDebugUtils.currentLine=24969260;
 //BA.debugLineNum = 24969260;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=24969261;
 //BA.debugLineNum = 24969261;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
RDebugUtils.currentLine=24969262;
 //BA.debugLineNum = 24969262;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=24969263;
 //BA.debugLineNum = 24969263;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=24969265;
 //BA.debugLineNum = 24969265;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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 IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=24969266;
 //BA.debugLineNum = 24969266;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=24969267;
 //BA.debugLineNum = 24969267;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=24969268;
 //BA.debugLineNum = 24969268;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=24969270;
 //BA.debugLineNum = 24969270;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=24969272;
 //BA.debugLineNum = 24969272;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
if ((_c2.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { 
RDebugUtils.currentLine=24969273;
 //BA.debugLineNum = 24969273;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO";
_pup = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("HVD_CANT"))));
RDebugUtils.currentLine=24969275;
 //BA.debugLineNum = 24969275;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_pup))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
 }else {
RDebugUtils.currentLine=24969277;
 //BA.debugLineNum = 24969277;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
 };
 };
 }else {
RDebugUtils.currentLine=24969282;
 //BA.debugLineNum = 24969282;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
RDebugUtils.currentLine=24969283;
 //BA.debugLineNum = 24969283;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=24969284;
 //BA.debugLineNum = 24969284;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=24969286;
 //BA.debugLineNum = 24969286;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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 IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=24969287;
 //BA.debugLineNum = 24969287;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=24969288;
 //BA.debugLineNum = 24969288;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=24969289;
 //BA.debugLineNum = 24969289;BA.debugLine="Dim preciofull As String = preciocat.GetStri";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=24969291;
 //BA.debugLineNum = 24969291;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=24969293;
 //BA.debugLineNum = 24969293;BA.debugLine="Dim precioreg As Cursor = Starter.skmt.ExecQu";
_precioreg = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_precioreg = (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 IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS WHERE HVD_PROID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"))));
RDebugUtils.currentLine=24969294;
 //BA.debugLineNum = 24969294;BA.debugLine="If precioreg.RowCount > 0 Then";
if (_precioreg.getRowCount()>0) { 
RDebugUtils.currentLine=24969295;
 //BA.debugLineNum = 24969295;BA.debugLine="precioreg.Position = 0";
_precioreg.setPosition((int) (0));
RDebugUtils.currentLine=24969296;
 //BA.debugLineNum = 24969296;BA.debugLine="Dim precioregalo As String = precioreg.GetSt";
_precioregalo = BA.NumberToString((double)(Double.parseDouble(_precioreg.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_precioreg.GetString("HVD_CANT"))));
RDebugUtils.currentLine=24969297;
 //BA.debugLineNum = 24969297;BA.debugLine="If precioregalo < 1 Then";
if ((double)(Double.parseDouble(_precioregalo))<1) { 
RDebugUtils.currentLine=24969298;
 //BA.debugLineNum = 24969298;BA.debugLine="Dim esregalo As String = 1";
_esregalo = BA.NumberToString(1);
 }else {
RDebugUtils.currentLine=24969300;
 //BA.debugLineNum = 24969300;BA.debugLine="Dim esregalo As String = 0";
_esregalo = BA.NumberToString(0);
 };
 };
RDebugUtils.currentLine=24969303;
 //BA.debugLineNum = 24969303;BA.debugLine="precioreg.Close";
_precioreg.Close();
RDebugUtils.currentLine=24969305;
 //BA.debugLineNum = 24969305;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
if ((_c2.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { 
RDebugUtils.currentLine=24969306;
 //BA.debugLineNum = 24969306;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO";
_pup = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("HVD_CANT"))));
RDebugUtils.currentLine=24969309;
 //BA.debugLineNum = 24969309;BA.debugLine="Log(\"algo1\")";
__c.LogImpl("824969309","algo1",0);
RDebugUtils.currentLine=24969310;
 //BA.debugLineNum = 24969310;BA.debugLine="If Subs.traeCliente = \"63403\" Then";
if ((_subs._traecliente /*String*/ (ba)).equals("63403")) { 
RDebugUtils.currentLine=24969311;
 //BA.debugLineNum = 24969311;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"DANADO",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo}));
 }else {
RDebugUtils.currentLine=24969313;
 //BA.debugLineNum = 24969313;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo}));
 };
 }else {
RDebugUtils.currentLine=24969316;
 //BA.debugLineNum = 24969316;BA.debugLine="Log(\"|\" & preciofull& \"|\")";
__c.LogImpl("824969316","|"+_preciofull+"|",0);
RDebugUtils.currentLine=24969317;
 //BA.debugLineNum = 24969317;BA.debugLine="Log(\"|\" & minimoadesc& \"|\")";
__c.LogImpl("824969317","|"+_minimoadesc+"|",0);
RDebugUtils.currentLine=24969321;
 //BA.debugLineNum = 24969321;BA.debugLine="Log(esteTag.Get(2))";
__c.LogImpl("824969321",BA.ObjectToString(_estetag.Get((int) (2))),0);
RDebugUtils.currentLine=24969322;
 //BA.debugLineNum = 24969322;BA.debugLine="Log(c2.GetString(\"HVD_PRONOMBRE\"))";
__c.LogImpl("824969322",_c2.GetString("HVD_PRONOMBRE"),0);
RDebugUtils.currentLine=24969323;
 //BA.debugLineNum = 24969323;BA.debugLine="Log((1*minimoadesc))";
__c.LogImpl("824969323",BA.NumberToString((1*(double)(Double.parseDouble(_minimoadesc)))),0);
RDebugUtils.currentLine=24969324;
 //BA.debugLineNum = 24969324;BA.debugLine="Log(esteTag.Get(5))";
__c.LogImpl("824969324",BA.ObjectToString(_estetag.Get((int) (5))),0);
RDebugUtils.currentLine=24969325;
 //BA.debugLineNum = 24969325;BA.debugLine="Log(Subs.traeCliente)";
__c.LogImpl("824969325",_subs._traecliente /*String*/ (ba),0);
RDebugUtils.currentLine=24969326;
 //BA.debugLineNum = 24969326;BA.debugLine="Log((preciofull*minimoadesc))";
__c.LogImpl("824969326",BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),0);
RDebugUtils.currentLine=24969327;
 //BA.debugLineNum = 24969327;BA.debugLine="Log(esteTag.Get(6))";
__c.LogImpl("824969327",BA.ObjectToString(_estetag.Get((int) (6))),0);
RDebugUtils.currentLine=24969328;
 //BA.debugLineNum = 24969328;BA.debugLine="Log(Subs.traerUTAPREV)";
__c.LogImpl("824969328",_subs._traerutaprev /*String*/ (ba),0);
RDebugUtils.currentLine=24969329;
 //BA.debugLineNum = 24969329;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("824969329",_subs._traealmacen /*String*/ (ba),0);
RDebugUtils.currentLine=24969330;
 //BA.debugLineNum = 24969330;BA.debugLine="Log(sDate & \" \" & sTime)";
__c.LogImpl("824969330",__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,0);
RDebugUtils.currentLine=24969331;
 //BA.debugLineNum = 24969331;BA.debugLine="Log(Subs.traeUsuario)";
__c.LogImpl("824969331",_subs._traeusuario /*String*/ (ba),0);
RDebugUtils.currentLine=24969332;
 //BA.debugLineNum = 24969332;BA.debugLine="Log(Subs.traefECHAPREV)";
__c.LogImpl("824969332",_subs._traefechaprev /*String*/ (ba),0);
RDebugUtils.currentLine=24969333;
 //BA.debugLineNum = 24969333;BA.debugLine="Log(Subs.traeRutaReparto)";
__c.LogImpl("824969333",_subs._traerutareparto /*String*/ (ba),0);
RDebugUtils.currentLine=24969334;
 //BA.debugLineNum = 24969334;BA.debugLine="Log(esregalo)";
__c.LogImpl("824969334",_esregalo,0);
RDebugUtils.currentLine=24969337;
 //BA.debugLineNum = 24969337;BA.debugLine="If Subs.traeCliente = \"63403\" Then";
if ((_subs._traecliente /*String*/ (ba)).equals("63403")) { 
RDebugUtils.currentLine=24969338;
 //BA.debugLineNum = 24969338;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"DANADO",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo}));
 }else {
RDebugUtils.currentLine=24969340;
 //BA.debugLineNum = 24969340;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo}));
 };
 };
 };
 };
RDebugUtils.currentLine=24969348;
 //BA.debugLineNum = 24969348;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))";
_subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2))));
RDebugUtils.currentLine=24969353;
 //BA.debugLineNum = 24969353;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 };
 };
RDebugUtils.currentLine=24969370;
 //BA.debugLineNum = 24969370;BA.debugLine="End Sub";
return "";
}
public String  _b4xpage_appear(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_appear", null));}
int _i = 0;
anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
int _bgcolor = 0;
int _textcolor = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _d5 = null;
String _restacant = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
String _resta = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null;
String _preciofull = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _oc = null;
int _cant2 = 0;
String _puc = "";
RDebugUtils.currentLine=24379392;
 //BA.debugLineNum = 24379392;BA.debugLine="Sub B4XPage_Appear";
RDebugUtils.currentLine=24379393;
 //BA.debugLineNum = 24379393;BA.debugLine="Label2.Visible = False";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24379394;
 //BA.debugLineNum = 24379394;BA.debugLine="Label3.Visible = False";
__ref._label3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24379395;
 //BA.debugLineNum = 24379395;BA.debugLine="L_TOTAL.Visible = False";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24379396;
 //BA.debugLineNum = 24379396;BA.debugLine="L_CANT.Visible = False";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24379397;
 //BA.debugLineNum = 24379397;BA.debugLine="b_revversar.Visible = False";
__ref._b_revversar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24379398;
 //BA.debugLineNum = 24379398;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)";
_subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth());
RDebugUtils.currentLine=24379402;
 //BA.debugLineNum = 24379402;BA.debugLine="L_CANT.Text =\"\"";
__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=24379403;
 //BA.debugLineNum = 24379403;BA.debugLine="L_TOTAL.Text=\"\"";
__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(""));
RDebugUtils.currentLine=24379404;
 //BA.debugLineNum = 24379404;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS";
__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 count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 ")));
RDebugUtils.currentLine=24379405;
 //BA.debugLineNum = 24379405;BA.debugLine="C.Position=0";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0));
RDebugUtils.currentLine=24379406;
 //BA.debugLineNum = 24379406;BA.debugLine="Existe = C.GetString(\"EXISTE\")";
__ref._existe /*String*/  = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE");
RDebugUtils.currentLine=24379407;
 //BA.debugLineNum = 24379407;BA.debugLine="C.Close";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close();
RDebugUtils.currentLine=24379411;
 //BA.debugLineNum = 24379411;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from HIST_VENT";
__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 * from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc")));
RDebugUtils.currentLine=24379414;
 //BA.debugLineNum = 24379414;BA.debugLine="ListView1.Clear";
__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();
RDebugUtils.currentLine=24379415;
 //BA.debugLineNum = 24379415;BA.debugLine="clv_pedido.Clear";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._clear();
RDebugUtils.currentLine=24379416;
 //BA.debugLineNum = 24379416;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)";
_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2));
RDebugUtils.currentLine=24379417;
 //BA.debugLineNum = 24379417;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-50),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.62));
RDebugUtils.currentLine=24379418;
 //BA.debugLineNum = 24379418;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._base_resize(__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().getWidth(),__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().getHeight());
RDebugUtils.currentLine=24379420;
 //BA.debugLineNum = 24379420;BA.debugLine="If c.RowCount>0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=24379423;
 //BA.debugLineNum = 24379423;BA.debugLine="For i=0 To c.RowCount -1";
{
final int step20 = 1;
final int limit20 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit20 ;_i = _i + step20 ) {
RDebugUtils.currentLine=24379424;
 //BA.debugLineNum = 24379424;BA.debugLine="c.Position=i";
__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i);
RDebugUtils.currentLine=24379426;
 //BA.debugLineNum = 24379426;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BCAJAS")).equals("0")) { 
RDebugUtils.currentLine=24379437;
 //BA.debugLineNum = 24379437;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24379438;
 //BA.debugLineNum = 24379438;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=24379439;
 //BA.debugLineNum = 24379439;BA.debugLine="label1.TextSize = 12";
_label1.setTextSize((float) (12));
RDebugUtils.currentLine=24379440;
 //BA.debugLineNum = 24379440;BA.debugLine="label1.TextColor = Colors.black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=24379441;
 //BA.debugLineNum = 24379441;BA.debugLine="Dim Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24379442;
 //BA.debugLineNum = 24379442;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/  = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=24379443;
 //BA.debugLineNum = 24379443;BA.debugLine="Label2.TextSize = 12";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12));
RDebugUtils.currentLine=24379444;
 //BA.debugLineNum = 24379444;BA.debugLine="Label2.TextColor = Colors.black";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=24379445;
 //BA.debugLineNum = 24379445;BA.debugLine="Private bgColor, textColor As Int";
_bgcolor = 0;
_textcolor = 0;
RDebugUtils.currentLine=24379446;
 //BA.debugLineNum = 24379446;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
RDebugUtils.currentLine=24379447;
 //BA.debugLineNum = 24379447;BA.debugLine="textColor = Colors.black";
_textcolor = __c.Colors.Black;
RDebugUtils.currentLine=24379448;
 //BA.debugLineNum = 24379448;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { 
RDebugUtils.currentLine=24379450;
 //BA.debugLineNum = 24379450;BA.debugLine="bgColor = Colors.White";
_bgcolor = __c.Colors.White;
 };
RDebugUtils.currentLine=24379456;
 //BA.debugLineNum = 24379456;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\"";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (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 IFNULL(PE_CANT,0) AS PE_CANT, CONSECUTIVO, PE_BCAJAS from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=24379459;
 //BA.debugLineNum = 24379459;BA.debugLine="Private d5 As Cursor =  Starter.skmt.ExecQuery";
_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_d5 = (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 IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=24379460;
 //BA.debugLineNum = 24379460;BA.debugLine="d5.Position = 0";
_d5.setPosition((int) (0));
RDebugUtils.currentLine=24379461;
 //BA.debugLineNum = 24379461;BA.debugLine="Private restacant As String = d5.GetString(\"PE";
_restacant = _d5.GetString("PE_CANT");
RDebugUtils.currentLine=24379462;
 //BA.debugLineNum = 24379462;BA.debugLine="d5.Close";
_d5.Close();
RDebugUtils.currentLine=24379464;
 //BA.debugLineNum = 24379464;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
if (((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))!=(double)(Double.parseDouble("0"))) { 
RDebugUtils.currentLine=24379465;
 //BA.debugLineNum = 24379465;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=24379466;
 //BA.debugLineNum = 24379466;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=24379468;
 //BA.debugLineNum = 24379468;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (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 Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=24379469;
 //BA.debugLineNum = 24379469;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=24379471;
 //BA.debugLineNum = 24379471;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=24379473;
 //BA.debugLineNum = 24379473;BA.debugLine="Log(1)";
__c.LogImpl("824379473",BA.NumberToString(1),0);
RDebugUtils.currentLine=24379474;
 //BA.debugLineNum = 24379474;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=24379475;
 //BA.debugLineNum = 24379475;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=24379478;
 //BA.debugLineNum = 24379478;BA.debugLine="Log(2)";
__c.LogImpl("824379478",BA.NumberToString(2),0);
RDebugUtils.currentLine=24379479;
 //BA.debugLineNum = 24379479;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=24379482;
 //BA.debugLineNum = 24379482;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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 IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=24379483;
 //BA.debugLineNum = 24379483;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=24379484;
 //BA.debugLineNum = 24379484;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=24379485;
 //BA.debugLineNum = 24379485;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=24379487;
 //BA.debugLineNum = 24379487;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=24379488;
 //BA.debugLineNum = 24379488;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))";
__c.LogImpl("824379488",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),0);
RDebugUtils.currentLine=24379489;
 //BA.debugLineNum = 24379489;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("824379489",_subs._traealmacen /*String*/ (ba),0);
RDebugUtils.currentLine=24379492;
 //BA.debugLineNum = 24379492;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { 
RDebugUtils.currentLine=24379493;
 //BA.debugLineNum = 24379493;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")),(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
 }else {
RDebugUtils.currentLine=24379495;
 //BA.debugLineNum = 24379495;BA.debugLine="Log(\"aqui arriba\")";
__c.LogImpl("824379495","aqui arriba",0);
RDebugUtils.currentLine=24379496;
 //BA.debugLineNum = 24379496;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_preciofull,(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
 };
 }else 
{RDebugUtils.currentLine=24379500;
 //BA.debugLineNum = 24379500;BA.debugLine="Else iF c2.RowCount = 0 Then";
if (_c2.getRowCount()==0) { 
RDebugUtils.currentLine=24379501;
 //BA.debugLineNum = 24379501;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (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 Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=24379502;
 //BA.debugLineNum = 24379502;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=24379504;
 //BA.debugLineNum = 24379504;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=24379506;
 //BA.debugLineNum = 24379506;BA.debugLine="Log(3)";
__c.LogImpl("824379506",BA.NumberToString(3),0);
RDebugUtils.currentLine=24379507;
 //BA.debugLineNum = 24379507;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=24379508;
 //BA.debugLineNum = 24379508;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=24379511;
 //BA.debugLineNum = 24379511;BA.debugLine="Log(4)";
__c.LogImpl("824379511",BA.NumberToString(4),0);
RDebugUtils.currentLine=24379512;
 //BA.debugLineNum = 24379512;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=24379516;
 //BA.debugLineNum = 24379516;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ";
_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_preciocat = (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 IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'"))));
RDebugUtils.currentLine=24379517;
 //BA.debugLineNum = 24379517;BA.debugLine="If preciocat.RowCount > 0 Then";
if (_preciocat.getRowCount()>0) { 
RDebugUtils.currentLine=24379518;
 //BA.debugLineNum = 24379518;BA.debugLine="preciocat.Position = 0";
_preciocat.setPosition((int) (0));
RDebugUtils.currentLine=24379519;
 //BA.debugLineNum = 24379519;BA.debugLine="Dim preciofull As String = preciocat.GetStr";
_preciofull = _preciocat.GetString("CAT_GP_PRECIO");
 };
RDebugUtils.currentLine=24379521;
 //BA.debugLineNum = 24379521;BA.debugLine="preciocat.Close";
_preciocat.Close();
RDebugUtils.currentLine=24379522;
 //BA.debugLineNum = 24379522;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))";
__c.LogImpl("824379522",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),0);
RDebugUtils.currentLine=24379523;
 //BA.debugLineNum = 24379523;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("824379523",_subs._traealmacen /*String*/ (ba),0);
RDebugUtils.currentLine=24379525;
 //BA.debugLineNum = 24379525;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { 
RDebugUtils.currentLine=24379526;
 //BA.debugLineNum = 24379526;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")),(int) (0),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
 }else {
RDebugUtils.currentLine=24379528;
 //BA.debugLineNum = 24379528;BA.debugLine="Log(\"aqui abajo\")";
__c.LogImpl("824379528","aqui abajo",0);
RDebugUtils.currentLine=24379529;
 //BA.debugLineNum = 24379529;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_preciofull,(int) (0),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
 };
 }}
;
 };
RDebugUtils.currentLine=24379536;
 //BA.debugLineNum = 24379536;BA.debugLine="c2.Close";
_c2.Close();
 }else 
{RDebugUtils.currentLine=24379539;
 //BA.debugLineNum = 24379539;BA.debugLine="Else If c.GetString(\"BCAJAS\") = \"1\" Then";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BCAJAS")).equals("1")) { 
RDebugUtils.currentLine=24379540;
 //BA.debugLineNum = 24379540;BA.debugLine="Log(\"AQUI1\")";
__c.LogImpl("824379540","AQUI1",0);
RDebugUtils.currentLine=24379543;
 //BA.debugLineNum = 24379543;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery(";
_oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_oc = (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_CANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")))+"'"))));
RDebugUtils.currentLine=24379544;
 //BA.debugLineNum = 24379544;BA.debugLine="Private cant2 As Int = 0";
_cant2 = (int) (0);
RDebugUtils.currentLine=24379545;
 //BA.debugLineNum = 24379545;BA.debugLine="If oc.RowCount > 0 Then";
if (_oc.getRowCount()>0) { 
RDebugUtils.currentLine=24379546;
 //BA.debugLineNum = 24379546;BA.debugLine="oc.Position = 0";
_oc.setPosition((int) (0));
RDebugUtils.currentLine=24379547;
 //BA.debugLineNum = 24379547;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")";
_cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT")));
 };
RDebugUtils.currentLine=24379549;
 //BA.debugLineNum = 24379549;BA.debugLine="oc.Close";
_oc.Close();
RDebugUtils.currentLine=24379550;
 //BA.debugLineNum = 24379550;BA.debugLine="Dim label1 As Label";
_label1 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24379551;
 //BA.debugLineNum = 24379551;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label";
_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label;
RDebugUtils.currentLine=24379552;
 //BA.debugLineNum = 24379552;BA.debugLine="label1.TextSize = 12";
_label1.setTextSize((float) (12));
RDebugUtils.currentLine=24379553;
 //BA.debugLineNum = 24379553;BA.debugLine="label1.TextColor = Colors.black";
_label1.setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=24379554;
 //BA.debugLineNum = 24379554;BA.debugLine="Dim Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24379555;
 //BA.debugLineNum = 24379555;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/  = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel;
RDebugUtils.currentLine=24379556;
 //BA.debugLineNum = 24379556;BA.debugLine="Label2.TextSize = 12";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12));
RDebugUtils.currentLine=24379557;
 //BA.debugLineNum = 24379557;BA.debugLine="Label2.TextColor = Colors.black";
__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Black);
RDebugUtils.currentLine=24379558;
 //BA.debugLineNum = 24379558;BA.debugLine="Private bgColor, textColor As Int";
_bgcolor = 0;
_textcolor = 0;
RDebugUtils.currentLine=24379559;
 //BA.debugLineNum = 24379559;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
RDebugUtils.currentLine=24379560;
 //BA.debugLineNum = 24379560;BA.debugLine="textColor = Colors.black";
_textcolor = __c.Colors.Black;
RDebugUtils.currentLine=24379561;
 //BA.debugLineNum = 24379561;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm";
if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { 
RDebugUtils.currentLine=24379563;
 //BA.debugLineNum = 24379563;BA.debugLine="bgColor = Colors.White";
_bgcolor = __c.Colors.White;
 };
RDebugUtils.currentLine=24379568;
 //BA.debugLineNum = 24379568;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\"";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (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 PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
RDebugUtils.currentLine=24379570;
 //BA.debugLineNum = 24379570;BA.debugLine="Private d5 As Cursor =  Starter.skmt.ExecQuery";
_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_d5 = (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 IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=24379571;
 //BA.debugLineNum = 24379571;BA.debugLine="d5.Position = 0";
_d5.setPosition((int) (0));
RDebugUtils.currentLine=24379572;
 //BA.debugLineNum = 24379572;BA.debugLine="Private restacant As String = d5.GetString(\"PE";
_restacant = _d5.GetString("PE_CANT");
RDebugUtils.currentLine=24379573;
 //BA.debugLineNum = 24379573;BA.debugLine="d5.Close";
_d5.Close();
RDebugUtils.currentLine=24379575;
 //BA.debugLineNum = 24379575;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)";
if (((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))!=(double)(Double.parseDouble("0"))) { 
RDebugUtils.currentLine=24379576;
 //BA.debugLineNum = 24379576;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=24379577;
 //BA.debugLineNum = 24379577;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=24379578;
 //BA.debugLineNum = 24379578;BA.debugLine="Log(\"SI ENTRO A PONER CAJAS BIEN \")";
__c.LogImpl("824379578","SI ENTRO A PONER CAJAS BIEN ",0);
RDebugUtils.currentLine=24379579;
 //BA.debugLineNum = 24379579;BA.debugLine="Log(c2.GetString(\"PE_CAJAS\"))";
__c.LogImpl("824379579",_c2.GetString("PE_CAJAS"),0);
RDebugUtils.currentLine=24379580;
 //BA.debugLineNum = 24379580;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (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 Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=24379581;
 //BA.debugLineNum = 24379581;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=24379583;
 //BA.debugLineNum = 24379583;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=24379585;
 //BA.debugLineNum = 24379585;BA.debugLine="Log(5)";
__c.LogImpl("824379585",BA.NumberToString(5),0);
RDebugUtils.currentLine=24379586;
 //BA.debugLineNum = 24379586;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=24379587;
 //BA.debugLineNum = 24379587;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=24379590;
 //BA.debugLineNum = 24379590;BA.debugLine="Log(6)";
__c.LogImpl("824379590",BA.NumberToString(6),0);
RDebugUtils.currentLine=24379591;
 //BA.debugLineNum = 24379591;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=24379593;
 //BA.debugLineNum = 24379593;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS";
_puc = BA.NumberToString((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC"))));
RDebugUtils.currentLine=24379594;
 //BA.debugLineNum = 24379594;BA.debugLine="LogColor((restacant/Subs.traeConversion(c.Ge";
__c.LogImpl("824379594",BA.NumberToString(((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))))),__c.Colors.Green);
RDebugUtils.currentLine=24379595;
 //BA.debugLineNum = 24379595;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\"";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_puc,(int) (((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))))),(int) ((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
 }else {
RDebugUtils.currentLine=24379597;
 //BA.debugLineNum = 24379597;BA.debugLine="Log(\"NO ENTRO A PONER CAJAS BIEN \")";
__c.LogImpl("824379597","NO ENTRO A PONER CAJAS BIEN ",0);
RDebugUtils.currentLine=24379598;
 //BA.debugLineNum = 24379598;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (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 Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'"))));
RDebugUtils.currentLine=24379599;
 //BA.debugLineNum = 24379599;BA.debugLine="Private resta As String = 0";
_resta = BA.NumberToString(0);
RDebugUtils.currentLine=24379601;
 //BA.debugLineNum = 24379601;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=24379603;
 //BA.debugLineNum = 24379603;BA.debugLine="Log(7)";
__c.LogImpl("824379603",BA.NumberToString(7),0);
RDebugUtils.currentLine=24379604;
 //BA.debugLineNum = 24379604;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=24379605;
 //BA.debugLineNum = 24379605;BA.debugLine="resta =  c3.GetString(\"PE_CANT\")";
_resta = _c3.GetString("PE_CANT");
 }else {
RDebugUtils.currentLine=24379608;
 //BA.debugLineNum = 24379608;BA.debugLine="Log(1)";
__c.LogImpl("824379608",BA.NumberToString(1),0);
RDebugUtils.currentLine=24379609;
 //BA.debugLineNum = 24379609;BA.debugLine="resta = 0";
_resta = BA.NumberToString(0);
 };
RDebugUtils.currentLine=24379611;
 //BA.debugLineNum = 24379611;BA.debugLine="LogColor(resta,Colors.Green)";
__c.LogImpl("824379611",_resta,__c.Colors.Green);
RDebugUtils.currentLine=24379612;
 //BA.debugLineNum = 24379612;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS";
_puc = BA.NumberToString((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC"))));
RDebugUtils.currentLine=24379614;
 //BA.debugLineNum = 24379614;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\"";
__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_puc,(int) (0),(int) ((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
 };
 };
RDebugUtils.currentLine=24379617;
 //BA.debugLineNum = 24379617;BA.debugLine="c2.Close";
_c2.Close();
 }}
;
 }
};
 };
RDebugUtils.currentLine=24379686;
 //BA.debugLineNum = 24379686;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmasc_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_prodmasc_click", false))
	 {return ((String) Debug.delegate(ba, "b_prodmasc_click", null));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null;
anywheresoftware.b4a.objects.collections.List _estetag = null;
String _maxprods = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
String _puc = "";
RDebugUtils.currentLine=25034752;
 //BA.debugLineNum = 25034752;BA.debugLine="Private Sub b_prodMasC_Click";
RDebugUtils.currentLine=25034753;
 //BA.debugLineNum = 25034753;BA.debugLine="etCantHasFocus = False";
__ref._etcanthasfocus /*boolean*/  = __c.False;
RDebugUtils.currentLine=25034755;
 //BA.debugLineNum = 25034755;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
__c.LogImpl("825034755","b_prodMas_Click",__c.Colors.Magenta);
RDebugUtils.currentLine=25034756;
 //BA.debugLineNum = 25034756;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=25034757;
 //BA.debugLineNum = 25034757;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=25034758;
 //BA.debugLineNum = 25034758;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=25034759;
 //BA.debugLineNum = 25034759;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
RDebugUtils.currentLine=25034760;
 //BA.debugLineNum = 25034760;BA.debugLine="LogColor(laCantc.Text&\"--------------------------";
__c.LogImpl("825034760",_lacantc.getText()+"-----------------------------",__c.Colors.Blue);
RDebugUtils.currentLine=25034764;
 //BA.debugLineNum = 25034764;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
RDebugUtils.currentLine=25034765;
 //BA.debugLineNum = 25034765;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta";
__c.LogImpl("825034765","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
RDebugUtils.currentLine=25034766;
 //BA.debugLineNum = 25034766;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
if ((_lacantc.getText()).equals("")) { 
_lacantc.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=25034768;
 //BA.debugLineNum = 25034768;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es";
_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4))))));
RDebugUtils.currentLine=25034769;
 //BA.debugLineNum = 25034769;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)";
__c.LogImpl("825034769",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red);
RDebugUtils.currentLine=25034770;
 //BA.debugLineNum = 25034770;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)";
__c.LogImpl("825034770",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red);
RDebugUtils.currentLine=25034771;
 //BA.debugLineNum = 25034771;BA.debugLine="LogColor($\"++++++++++++++++++++++++++   ${esteTag";
__c.LogImpl("825034771",("++++++++++++++++++++++++++   "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
RDebugUtils.currentLine=25034773;
 //BA.debugLineNum = 25034773;BA.debugLine="Log(maxProds)";
__c.LogImpl("825034773",_maxprods,0);
RDebugUtils.currentLine=25034776;
 //BA.debugLineNum = 25034776;BA.debugLine="Log(esteTag.Get(4))";
__c.LogImpl("825034776",BA.ObjectToString(_estetag.Get((int) (4))),0);
RDebugUtils.currentLine=25034777;
 //BA.debugLineNum = 25034777;BA.debugLine="If esteTag.Get(4) = \"0\" Then";
if ((_estetag.Get((int) (4))).equals((Object)("0"))) { 
 }else {
RDebugUtils.currentLine=25034780;
 //BA.debugLineNum = 25034780;BA.debugLine="If laCantc.Text + 1 <= maxProds Then";
if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { 
RDebugUtils.currentLine=25034781;
 //BA.debugLineNum = 25034781;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)";
__c.LogImpl("825034781",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0);
RDebugUtils.currentLine=25034783;
 //BA.debugLineNum = 25034783;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$";
_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+"")));
RDebugUtils.currentLine=25034784;
 //BA.debugLineNum = 25034784;BA.debugLine="LogColor(esteTag,Colors.Magenta)";
__c.LogImpl("825034784",BA.ObjectToString(_estetag),__c.Colors.Magenta);
RDebugUtils.currentLine=25034786;
 //BA.debugLineNum = 25034786;BA.debugLine="LogColor(laCantc.Text,Colors.Red)";
__c.LogImpl("825034786",_lacantc.getText(),__c.Colors.Red);
RDebugUtils.currentLine=25034789;
 //BA.debugLineNum = 25034789;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI";
__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*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
RDebugUtils.currentLine=25034790;
 //BA.debugLineNum = 25034790;BA.debugLine="If c.RowCount > 0 Then";
if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { 
RDebugUtils.currentLine=25034791;
 //BA.debugLineNum = 25034791;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
RDebugUtils.currentLine=25034792;
 //BA.debugLineNum = 25034792;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=25034793;
 //BA.debugLineNum = 25034793;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=25034794;
 //BA.debugLineNum = 25034794;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS";
_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC"))));
RDebugUtils.currentLine=25034796;
 //BA.debugLineNum = 25034796;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)+(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= (IFNULL(PE_CAJAS,0)+1)*'"+__c.SmartStringFormatter("",(Object)(_puc))+"', PE_CAJAS= IFNULL(PE_CAJAS,0) + 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
RDebugUtils.currentLine=25034797;
 //BA.debugLineNum = 25034797;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=25034798;
 //BA.debugLineNum = 25034798;BA.debugLine="Log(\"aqui2\")";
__c.LogImpl("825034798","aqui2",0);
 };
 }else {
RDebugUtils.currentLine=25034801;
 //BA.debugLineNum = 25034801;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
RDebugUtils.currentLine=25034802;
 //BA.debugLineNum = 25034802;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=25034803;
 //BA.debugLineNum = 25034803;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=25034804;
 //BA.debugLineNum = 25034804;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS";
_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC"))));
RDebugUtils.currentLine=25034805;
 //BA.debugLineNum = 25034805;BA.debugLine="Log(puc)";
__c.LogImpl("825034805",_puc,0);
RDebugUtils.currentLine=25034808;
 //BA.debugLineNum = 25034808;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDID";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,1,1,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2)))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),_puc,_puc,BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)}));
RDebugUtils.currentLine=25034809;
 //BA.debugLineNum = 25034809;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 };
 };
 };
 };
RDebugUtils.currentLine=25034815;
 //BA.debugLineNum = 25034815;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmenos_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_prodmenos_click", false))
	 {return ((String) Debug.delegate(ba, "b_prodmenos_click", null));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null;
anywheresoftware.b4a.objects.collections.List _estetag = null;
String _minimoadesc = "";
anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
float _preciou = 0f;
RDebugUtils.currentLine=24903680;
 //BA.debugLineNum = 24903680;BA.debugLine="Sub b_prodMenos_Click";
RDebugUtils.currentLine=24903681;
 //BA.debugLineNum = 24903681;BA.debugLine="etCantHasFocus = False";
__ref._etcanthasfocus /*boolean*/  = __c.False;
RDebugUtils.currentLine=24903682;
 //BA.debugLineNum = 24903682;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
__c.LogImpl("824903682","etCantHasFocus="+BA.ObjectToString(__ref._etcanthasfocus /*boolean*/ ),0);
RDebugUtils.currentLine=24903683;
 //BA.debugLineNum = 24903683;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
__c.LogImpl("824903683","b_prodMenos_Click",__c.Colors.Magenta);
RDebugUtils.currentLine=24903684;
 //BA.debugLineNum = 24903684;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=24903685;
 //BA.debugLineNum = 24903685;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=24903686;
 //BA.debugLineNum = 24903686;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=24903687;
 //BA.debugLineNum = 24903687;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)";
_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacant = _pnl.GetView((int) (2)).GetView((int) (3));
RDebugUtils.currentLine=24903689;
 //BA.debugLineNum = 24903689;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
RDebugUtils.currentLine=24903690;
 //BA.debugLineNum = 24903690;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
__c.LogImpl("824903690","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
RDebugUtils.currentLine=24903692;
 //BA.debugLineNum = 24903692;BA.debugLine="Private minimoadesc As String";
_minimoadesc = "";
RDebugUtils.currentLine=24903693;
 //BA.debugLineNum = 24903693;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
RDebugUtils.currentLine=24903694;
 //BA.debugLineNum = 24903694;BA.debugLine="If minimos.RowCount > 0 Then";
if (_minimos.getRowCount()>0) { 
RDebugUtils.currentLine=24903695;
 //BA.debugLineNum = 24903695;BA.debugLine="minimos.Position = 0";
_minimos.setPosition((int) (0));
RDebugUtils.currentLine=24903696;
 //BA.debugLineNum = 24903696;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN";
_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA");
 }else {
RDebugUtils.currentLine=24903698;
 //BA.debugLineNum = 24903698;BA.debugLine="minimoadesc = \"1\"";
_minimoadesc = "1";
 };
RDebugUtils.currentLine=24903700;
 //BA.debugLineNum = 24903700;BA.debugLine="minimos.Close";
_minimos.Close();
RDebugUtils.currentLine=24903702;
 //BA.debugLineNum = 24903702;BA.debugLine="minimoadesc = \"1\"";
_minimoadesc = "1";
RDebugUtils.currentLine=24903703;
 //BA.debugLineNum = 24903703;BA.debugLine="If laCant.Text > 0 Then";
if ((double)(Double.parseDouble(_lacant.getText()))>0) { 
RDebugUtils.currentLine=24903738;
 //BA.debugLineNum = 24903738;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=24903739;
 //BA.debugLineNum = 24903739;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-(1*minimoadesc)";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-(1*(double)(Double.parseDouble(_minimoadesc)))))+"")));
RDebugUtils.currentLine=24903740;
 //BA.debugLineNum = 24903740;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0";
if ((double)(Double.parseDouble(_lacant.getText()))<0) { 
_lacant.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=24903741;
 //BA.debugLineNum = 24903741;BA.debugLine="Log(\"NO ES promo\")";
__c.LogImpl("824903741","NO ES promo",0);
RDebugUtils.currentLine=24903746;
 //BA.debugLineNum = 24903746;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
RDebugUtils.currentLine=24903747;
 //BA.debugLineNum = 24903747;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=24903748;
 //BA.debugLineNum = 24903748;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=24903749;
 //BA.debugLineNum = 24903749;BA.debugLine="If c3.GetString(\"PE_CANT\")> minimoadesc Then";
if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>(double)(Double.parseDouble(_minimoadesc))) { 
RDebugUtils.currentLine=24903750;
 //BA.debugLineNum = 24903750;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
RDebugUtils.currentLine=24903751;
 //BA.debugLineNum = 24903751;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=24903752;
 //BA.debugLineNum = 24903752;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=24903754;
 //BA.debugLineNum = 24903754;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
 };
 }else 
{RDebugUtils.currentLine=24903756;
 //BA.debugLineNum = 24903756;BA.debugLine="Else If c3.GetString(\"PE_CANT\") = minimoadesc T";
if ((_c3.GetString("PE_CANT")).equals(_minimoadesc)) { 
RDebugUtils.currentLine=24903757;
 //BA.debugLineNum = 24903757;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})));
RDebugUtils.currentLine=24903758;
 //BA.debugLineNum = 24903758;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) { 
RDebugUtils.currentLine=24903759;
 //BA.debugLineNum = 24903759;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
RDebugUtils.currentLine=24903762;
 //BA.debugLineNum = 24903762;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
 };
 }}
;
 };
RDebugUtils.currentLine=24903769;
 //BA.debugLineNum = 24903769;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 };
RDebugUtils.currentLine=24903772;
 //BA.debugLineNum = 24903772;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
RDebugUtils.currentLine=24903773;
 //BA.debugLineNum = 24903773;BA.debugLine="Log(\"PU: \" & preciou)";
__c.LogImpl("824903773","PU: "+BA.NumberToString(_preciou),0);
RDebugUtils.currentLine=24903784;
 //BA.debugLineNum = 24903784;BA.debugLine="End Sub";
return "";
}
public String  _b_prodmenosc_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_prodmenosc_click", false))
	 {return ((String) Debug.delegate(ba, "b_prodmenosc_click", null));}
int _index = 0;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null;
anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null;
anywheresoftware.b4a.objects.collections.List _estetag = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null;
float _preciou = 0f;
RDebugUtils.currentLine=25100288;
 //BA.debugLineNum = 25100288;BA.debugLine="Private Sub b_prodMenosC_Click";
RDebugUtils.currentLine=25100289;
 //BA.debugLineNum = 25100289;BA.debugLine="etCantHasFocus = False";
__ref._etcanthasfocus /*boolean*/  = __c.False;
RDebugUtils.currentLine=25100290;
 //BA.debugLineNum = 25100290;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
__c.LogImpl("825100290","etCantHasFocus="+BA.ObjectToString(__ref._etcanthasfocus /*boolean*/ ),0);
RDebugUtils.currentLine=25100291;
 //BA.debugLineNum = 25100291;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
__c.LogImpl("825100291","b_prodMenos_Click",__c.Colors.Magenta);
RDebugUtils.currentLine=25100292;
 //BA.debugLineNum = 25100292;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
RDebugUtils.currentLine=25100293;
 //BA.debugLineNum = 25100293;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index);
RDebugUtils.currentLine=25100294;
 //BA.debugLineNum = 25100294;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)";
_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_pnl = _pnl0.GetView((int) (0));
RDebugUtils.currentLine=25100295;
 //BA.debugLineNum = 25100295;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3";
_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
RDebugUtils.currentLine=25100297;
 //BA.debugLineNum = 25100297;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
RDebugUtils.currentLine=25100298;
 //BA.debugLineNum = 25100298;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get";
__c.LogImpl("825100298","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
RDebugUtils.currentLine=25100302;
 //BA.debugLineNum = 25100302;BA.debugLine="If laCantc.Text > 0 Then";
if ((double)(Double.parseDouble(_lacantc.getText()))>0) { 
RDebugUtils.currentLine=25100305;
 //BA.debugLineNum = 25100305;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
RDebugUtils.currentLine=25100306;
 //BA.debugLineNum = 25100306;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) { 
RDebugUtils.currentLine=25100307;
 //BA.debugLineNum = 25100307;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
RDebugUtils.currentLine=25100308;
 //BA.debugLineNum = 25100308;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) { 
RDebugUtils.currentLine=25100309;
 //BA.debugLineNum = 25100309;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
 }else 
{RDebugUtils.currentLine=25100310;
 //BA.debugLineNum = 25100310;BA.debugLine="Else If c3.GetString(\"PE_CAJAS\") = 1 Then";
if ((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) { 
RDebugUtils.currentLine=25100311;
 //BA.debugLineNum = 25100311;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'"));
 }}
;
 };
RDebugUtils.currentLine=25100314;
 //BA.debugLineNum = 25100314;BA.debugLine="Log(\"entre al if o algo asi \")";
__c.LogImpl("825100314","entre al if o algo asi ",0);
RDebugUtils.currentLine=25100315;
 //BA.debugLineNum = 25100315;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
if ((_lacantc.getText()).equals("")) { 
_lacantc.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=25100316;
 //BA.debugLineNum = 25100316;BA.debugLine="laCantc.Text = laCantc.Text - 1";
_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1));
RDebugUtils.currentLine=25100317;
 //BA.debugLineNum = 25100317;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0";
if ((double)(Double.parseDouble(_lacantc.getText()))<0) { 
_lacantc.setText(BA.ObjectToCharSequence(0));};
RDebugUtils.currentLine=25100318;
 //BA.debugLineNum = 25100318;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
 }else 
{RDebugUtils.currentLine=25100320;
 //BA.debugLineNum = 25100320;BA.debugLine="Else If laCantc.Text = 0 Then";
if ((_lacantc.getText()).equals(BA.NumberToString(0))) { 
 }}
;
RDebugUtils.currentLine=25100324;
 //BA.debugLineNum = 25100324;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
RDebugUtils.currentLine=25100325;
 //BA.debugLineNum = 25100325;BA.debugLine="Log(\"PU: \" & preciou)";
__c.LogImpl("825100325","PU: "+BA.NumberToString(_preciou),0);
RDebugUtils.currentLine=25100326;
 //BA.debugLineNum = 25100326;BA.debugLine="End Sub";
return "";
}
public String  _b_regresar_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_regresar_click", false))
	 {return ((String) Debug.delegate(ba, "b_regresar_click", null));}
RDebugUtils.currentLine=24510464;
 //BA.debugLineNum = 24510464;BA.debugLine="Sub b_regresar_Click";
RDebugUtils.currentLine=24510465;
 //BA.debugLineNum = 24510465;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=24510466;
 //BA.debugLineNum = 24510466;BA.debugLine="End Sub";
return "";
}
public String  _b_revversar_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b_revversar_click", false))
	 {return ((String) Debug.delegate(ba, "b_revversar_click", null));}
RDebugUtils.currentLine=25231360;
 //BA.debugLineNum = 25231360;BA.debugLine="Private Sub b_revversar_Click";
RDebugUtils.currentLine=25231361;
 //BA.debugLineNum = 25231361;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS se";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0,  HVD_RECHAZOCANT = 0  WHERE HVD_cliente in (Select CUENTA from cuentaa)"));
RDebugUtils.currentLine=25231362;
 //BA.debugLineNum = 25231362;BA.debugLine="B4XPage_Appear";
__ref._b4xpage_appear /*String*/ (null);
RDebugUtils.currentLine=25231363;
 //BA.debugLineNum = 25231363;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem(reparto_izca.keymon.lat.c_productos __ref,String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,int _consecutivo) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "createlistitem", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_text,_preciou,_inv,_inv2,_width,_height,_img,_prodid,_bc,_tc,_promo,_cliente_original,_consecutivo}));}
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
anywheresoftware.b4a.objects.CSBuilder _cs = null;
RDebugUtils.currentLine=24772608;
 //BA.debugLineNum = 24772608;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri";
RDebugUtils.currentLine=24772609;
 //BA.debugLineNum = 24772609;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=24772610;
 //BA.debugLineNum = 24772610;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=24772611;
 //BA.debugLineNum = 24772611;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=24772612;
 //BA.debugLineNum = 24772612;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
RDebugUtils.currentLine=24772613;
 //BA.debugLineNum = 24772613;BA.debugLine="p.LoadLayout(\"prodItem2\")";
_p.LoadLayout("prodItem2",ba);
RDebugUtils.currentLine=24772614;
 //BA.debugLineNum = 24772614;BA.debugLine="p_prods.Color = bc";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(_bc);
RDebugUtils.currentLine=24772615;
 //BA.debugLineNum = 24772615;BA.debugLine="l_prodX.TextColor = tc";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(_tc);
RDebugUtils.currentLine=24772616;
 //BA.debugLineNum = 24772616;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+"");
RDebugUtils.currentLine=24772617;
 //BA.debugLineNum = 24772617;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \"   $\"";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+"   $"+_preciou));
RDebugUtils.currentLine=24772618;
 //BA.debugLineNum = 24772618;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=24772619;
 //BA.debugLineNum = 24772619;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+"   $"+_preciou)).PopAll().getObject()));
 };
RDebugUtils.currentLine=24772621;
 //BA.debugLineNum = 24772621;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs")));
RDebugUtils.currentLine=24772624;
 //BA.debugLineNum = 24772624;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\"";
__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo)));
RDebugUtils.currentLine=24772625;
 //BA.debugLineNum = 24772625;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo)));
RDebugUtils.currentLine=24772626;
 //BA.debugLineNum = 24772626;BA.debugLine="p_prods.Tag = l_pCant.tag";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTag(__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getTag());
RDebugUtils.currentLine=24772628;
 //BA.debugLineNum = 24772628;BA.debugLine="l_pCant.Text = inv";
__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_inv));
RDebugUtils.currentLine=24772632;
 //BA.debugLineNum = 24772632;BA.debugLine="l_pCant.BringToFront";
__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront();
RDebugUtils.currentLine=24772633;
 //BA.debugLineNum = 24772633;BA.debugLine="et_pCant.SendToBack";
__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .SendToBack();
RDebugUtils.currentLine=24772634;
 //BA.debugLineNum = 24772634;BA.debugLine="p_botMasMenC.Visible = False";
__ref._p_botmasmenc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24772635;
 //BA.debugLineNum = 24772635;BA.debugLine="l_cajas.Visible = False";
__ref._l_cajas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24772637;
 //BA.debugLineNum = 24772637;BA.debugLine="Return p";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
RDebugUtils.currentLine=24772638;
 //BA.debugLineNum = 24772638;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.objects.PanelWrapper  _createlistitem2(reparto_izca.keymon.lat.c_productos __ref,String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,int _consecutivo) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "createlistitem2", false))
	 {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_text,_preciou,_inv,_inv2,_width,_height,_img,_prodid,_bc,_tc,_promo,_cliente_original,_consecutivo}));}
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
anywheresoftware.b4a.objects.CSBuilder _cs = null;
RDebugUtils.currentLine=24838144;
 //BA.debugLineNum = 24838144;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str";
RDebugUtils.currentLine=24838145;
 //BA.debugLineNum = 24838145;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
RDebugUtils.currentLine=24838146;
 //BA.debugLineNum = 24838146;BA.debugLine="Private cs As CSBuilder";
_cs = new anywheresoftware.b4a.objects.CSBuilder();
RDebugUtils.currentLine=24838147;
 //BA.debugLineNum = 24838147;BA.debugLine="cs.Initialize";
_cs.Initialize();
RDebugUtils.currentLine=24838148;
 //BA.debugLineNum = 24838148;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)";
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
RDebugUtils.currentLine=24838149;
 //BA.debugLineNum = 24838149;BA.debugLine="p.LoadLayout(\"prodItem2\")";
_p.LoadLayout("prodItem2",ba);
RDebugUtils.currentLine=24838150;
 //BA.debugLineNum = 24838150;BA.debugLine="p_prods.Color = bc";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(_bc);
RDebugUtils.currentLine=24838151;
 //BA.debugLineNum = 24838151;BA.debugLine="l_prodX.TextColor = tc";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(_tc);
RDebugUtils.currentLine=24838152;
 //BA.debugLineNum = 24838152;BA.debugLine="precioU = $\"$1.2{precioU}\"$";
_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+"");
RDebugUtils.currentLine=24838153;
 //BA.debugLineNum = 24838153;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \"   $\"";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+"   $"+_preciou));
RDebugUtils.currentLine=24838154;
 //BA.debugLineNum = 24838154;BA.debugLine="If promo <> \"1\" And precioU = 0 Then";
if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { 
RDebugUtils.currentLine=24838155;
 //BA.debugLineNum = 24838155;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+"   $"+_preciou)).PopAll().getObject()));
 };
RDebugUtils.currentLine=24838158;
 //BA.debugLineNum = 24838158;BA.debugLine="Log(inv&\" inventario 1\")";
__c.LogImpl("824838158",BA.NumberToString(_inv)+" inventario 1",0);
RDebugUtils.currentLine=24838159;
 //BA.debugLineNum = 24838159;BA.debugLine="Log(inv2&\" inventario 2\")";
__c.LogImpl("824838159",BA.NumberToString(_inv2)+" inventario 2",0);
RDebugUtils.currentLine=24838160;
 //BA.debugLineNum = 24838160;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs")));
RDebugUtils.currentLine=24838162;
 //BA.debugLineNum = 24838162;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo)));
RDebugUtils.currentLine=24838163;
 //BA.debugLineNum = 24838163;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)";
__ref._et_pcantc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo)));
RDebugUtils.currentLine=24838164;
 //BA.debugLineNum = 24838164;BA.debugLine="p_prods.Tag = l_pCantC.tag";
__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTag(__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getTag());
RDebugUtils.currentLine=24838166;
 //BA.debugLineNum = 24838166;BA.debugLine="l_pCantC.Text = NumberFormat2(inv,0,0,0,False)";
__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_inv,(int) (0),(int) (0),(int) (0),__c.False)));
RDebugUtils.currentLine=24838170;
 //BA.debugLineNum = 24838170;BA.debugLine="l_pCantC.BringToFront";
__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront();
RDebugUtils.currentLine=24838171;
 //BA.debugLineNum = 24838171;BA.debugLine="et_pCantC.SendToBack";
__ref._et_pcantc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .SendToBack();
RDebugUtils.currentLine=24838172;
 //BA.debugLineNum = 24838172;BA.debugLine="p_botMasMen.Visible = False";
__ref._p_botmasmen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24838173;
 //BA.debugLineNum = 24838173;BA.debugLine="l_piezas.Visible = False";
__ref._l_piezas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24838175;
 //BA.debugLineNum = 24838175;BA.debugLine="Return p";
if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject()));
RDebugUtils.currentLine=24838176;
 //BA.debugLineNum = 24838176;BA.debugLine="End Sub";
return null;
}
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper  _b4xpage_closerequest(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false))
	 {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref);
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_productos parent,reparto_izca.keymon.lat.c_productos __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
reparto_izca.keymon.lat.c_productos __ref;
reparto_izca.keymon.lat.c_productos parent;

@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="c_productos";

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.ReturnFromResumableSub(this,null);return;}
case 0:
//C
this.state = -1;
RDebugUtils.currentLine=24576003;
 //BA.debugLineNum = 24576003;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
RDebugUtils.currentLine=24576005;
 //BA.debugLineNum = 24576005;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
RDebugUtils.currentLine=24576006;
 //BA.debugLineNum = 24576006;BA.debugLine="End Sub";
if (true) break;

            }
        }
    }
}
public String  _b4xpage_created(reparto_izca.keymon.lat.c_productos __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
	 {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=24313856;
 //BA.debugLineNum = 24313856;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=24313857;
 //BA.debugLineNum = 24313857;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/  = _root1;
RDebugUtils.currentLine=24313858;
 //BA.debugLineNum = 24313858;BA.debugLine="B4XPages.SetTitle(Me, \"Productos\")";
_b4xpages._settitle /*String*/ (ba,this,(Object)("Productos"));
RDebugUtils.currentLine=24313860;
 //BA.debugLineNum = 24313860;BA.debugLine="g.Initialize(\"GPS\")";
__ref._g /*anywheresoftware.b4a.gps.GPS*/ .Initialize("GPS");
RDebugUtils.currentLine=24313861;
 //BA.debugLineNum = 24313861;BA.debugLine="Root.LoadLayout(\"detalleVenta\")";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("detalleVenta",ba);
RDebugUtils.currentLine=24313862;
 //BA.debugLineNum = 24313862;BA.debugLine="b_borra.Visible = False";
__ref._b_borra /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False);
RDebugUtils.currentLine=24313863;
 //BA.debugLineNum = 24313863;BA.debugLine="Titulo.Text = \"Pedido\"";
__ref._titulo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Pedido"));
RDebugUtils.currentLine=24313864;
 //BA.debugLineNum = 24313864;BA.debugLine="End Sub";
return "";
}
public String  _class_globals(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
RDebugUtils.currentLine=24182784;
 //BA.debugLineNum = 24182784;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=24182785;
 //BA.debugLineNum = 24182785;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=24182786;
 //BA.debugLineNum = 24182786;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=24182787;
 //BA.debugLineNum = 24182787;BA.debugLine="Dim g As GPS";
_g = new anywheresoftware.b4a.gps.GPS();
RDebugUtils.currentLine=24182788;
 //BA.debugLineNum = 24182788;BA.debugLine="Dim clie_id As String";
_clie_id = "";
RDebugUtils.currentLine=24182789;
 //BA.debugLineNum = 24182789;BA.debugLine="Dim sDate,sTime As String";
_sdate = "";
_stime = "";
RDebugUtils.currentLine=24182790;
 //BA.debugLineNum = 24182790;BA.debugLine="Dim usuario As String";
_usuario = "";
RDebugUtils.currentLine=24182791;
 //BA.debugLineNum = 24182791;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
RDebugUtils.currentLine=24182793;
 //BA.debugLineNum = 24182793;BA.debugLine="Dim b_regresar As Button";
_b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=24182794;
 //BA.debugLineNum = 24182794;BA.debugLine="Dim ListView1 As ListView";
_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=24182795;
 //BA.debugLineNum = 24182795;BA.debugLine="Dim L_CANT As Label";
_l_cant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182796;
 //BA.debugLineNum = 24182796;BA.debugLine="Dim L_TOTAL As Label";
_l_total = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182797;
 //BA.debugLineNum = 24182797;BA.debugLine="Dim b_borra As Button";
_b_borra = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=24182798;
 //BA.debugLineNum = 24182798;BA.debugLine="Dim Existe As String";
_existe = "";
RDebugUtils.currentLine=24182799;
 //BA.debugLineNum = 24182799;BA.debugLine="Dim result As String";
_result = "";
RDebugUtils.currentLine=24182801;
 //BA.debugLineNum = 24182801;BA.debugLine="Dim cuantos As String";
_cuantos = "";
RDebugUtils.currentLine=24182802;
 //BA.debugLineNum = 24182802;BA.debugLine="Dim nombre_prod As String";
_nombre_prod = "";
RDebugUtils.currentLine=24182803;
 //BA.debugLineNum = 24182803;BA.debugLine="Dim cuantos_pedido As String";
_cuantos_pedido = "";
RDebugUtils.currentLine=24182804;
 //BA.debugLineNum = 24182804;BA.debugLine="Private Titulo As Label";
_titulo = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182805;
 //BA.debugLineNum = 24182805;BA.debugLine="Private P1 As Panel";
_p1 = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=24182806;
 //BA.debugLineNum = 24182806;BA.debugLine="Private lv2 As ListView";
_lv2 = new anywheresoftware.b4a.objects.ListViewWrapper();
RDebugUtils.currentLine=24182807;
 //BA.debugLineNum = 24182807;BA.debugLine="Private p_principal As Panel";
_p_principal = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=24182808;
 //BA.debugLineNum = 24182808;BA.debugLine="Dim clv_pedido As CustomListView";
_clv_pedido = new b4a.example3.customlistview();
RDebugUtils.currentLine=24182809;
 //BA.debugLineNum = 24182809;BA.debugLine="Private p_prods As Panel";
_p_prods = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=24182810;
 //BA.debugLineNum = 24182810;BA.debugLine="Private l_prodX As Label";
_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182811;
 //BA.debugLineNum = 24182811;BA.debugLine="Private l_pCant As Label";
_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182812;
 //BA.debugLineNum = 24182812;BA.debugLine="Private et_pCant As EditText";
_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=24182813;
 //BA.debugLineNum = 24182813;BA.debugLine="Dim bmp As Bitmap";
_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
RDebugUtils.currentLine=24182814;
 //BA.debugLineNum = 24182814;BA.debugLine="Dim etCantHasFocus As Boolean = False";
_etcanthasfocus = __c.False;
RDebugUtils.currentLine=24182815;
 //BA.debugLineNum = 24182815;BA.debugLine="Dim totalProds As Int = 0";
_totalprods = (int) (0);
RDebugUtils.currentLine=24182816;
 //BA.debugLineNum = 24182816;BA.debugLine="Dim totalCompra As Int = 0";
_totalcompra = (int) (0);
RDebugUtils.currentLine=24182817;
 //BA.debugLineNum = 24182817;BA.debugLine="Dim prodsMap As Map";
_prodsmap = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=24182818;
 //BA.debugLineNum = 24182818;BA.debugLine="Dim reconstruirPedido As Boolean = False";
_reconstruirpedido = __c.False;
RDebugUtils.currentLine=24182819;
 //BA.debugLineNum = 24182819;BA.debugLine="Dim promoABorrar As String";
_promoaborrar = "";
RDebugUtils.currentLine=24182820;
 //BA.debugLineNum = 24182820;BA.debugLine="Private b_guardar As Button";
_b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=24182821;
 //BA.debugLineNum = 24182821;BA.debugLine="Private b_prodMas As Button";
_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=24182822;
 //BA.debugLineNum = 24182822;BA.debugLine="Private b_prodMenos As Button";
_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=24182823;
 //BA.debugLineNum = 24182823;BA.debugLine="Private b_prodMenosC As Button";
_b_prodmenosc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=24182824;
 //BA.debugLineNum = 24182824;BA.debugLine="Private l_pCantC As Label";
_l_pcantc = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182825;
 //BA.debugLineNum = 24182825;BA.debugLine="Private et_pCantC As EditText";
_et_pcantc = new anywheresoftware.b4a.objects.EditTextWrapper();
RDebugUtils.currentLine=24182826;
 //BA.debugLineNum = 24182826;BA.debugLine="Private b_prodMasC As Button";
_b_prodmasc = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=24182827;
 //BA.debugLineNum = 24182827;BA.debugLine="Private p_botMasMenC As Panel";
_p_botmasmenc = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=24182828;
 //BA.debugLineNum = 24182828;BA.debugLine="Private p_botMasMen As Panel";
_p_botmasmen = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=24182829;
 //BA.debugLineNum = 24182829;BA.debugLine="Private b_revversar As Button";
_b_revversar = new anywheresoftware.b4a.objects.ButtonWrapper();
RDebugUtils.currentLine=24182830;
 //BA.debugLineNum = 24182830;BA.debugLine="Private Label2 As Label";
_label2 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182831;
 //BA.debugLineNum = 24182831;BA.debugLine="Private Label3 As Label";
_label3 = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182832;
 //BA.debugLineNum = 24182832;BA.debugLine="Private l_piezas As Label";
_l_piezas = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182833;
 //BA.debugLineNum = 24182833;BA.debugLine="Private l_cajas As Label";
_l_cajas = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182835;
 //BA.debugLineNum = 24182835;BA.debugLine="Private l_cajas As Label";
_l_cajas = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182836;
 //BA.debugLineNum = 24182836;BA.debugLine="Private l_piezas As Label";
_l_piezas = new anywheresoftware.b4a.objects.LabelWrapper();
RDebugUtils.currentLine=24182837;
 //BA.debugLineNum = 24182837;BA.debugLine="End Sub";
return "";
}
public String  _cuentaprods(reparto_izca.keymon.lat.c_productos __ref,String _accion) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "cuentaprods", false))
	 {return ((String) Debug.delegate(ba, "cuentaprods", new Object[] {_accion}));}
RDebugUtils.currentLine=25296896;
 //BA.debugLineNum = 25296896;BA.debugLine="Sub cuentaProds(accion As String)";
RDebugUtils.currentLine=25297058;
 //BA.debugLineNum = 25297058;BA.debugLine="End Sub";
return "";
}
public String  _gps_locationchanged(reparto_izca.keymon.lat.c_productos __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "gps_locationchanged", false))
	 {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));}
RDebugUtils.currentLine=24444928;
 //BA.debugLineNum = 24444928;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
RDebugUtils.currentLine=24444931;
 //BA.debugLineNum = 24444931;BA.debugLine="End Sub";
return "";
}
public String  _l_pcant_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "l_pcant_click", false))
	 {return ((String) Debug.delegate(ba, "l_pcant_click", null));}
RDebugUtils.currentLine=25427968;
 //BA.debugLineNum = 25427968;BA.debugLine="Private Sub l_pCant_Click";
RDebugUtils.currentLine=25427970;
 //BA.debugLineNum = 25427970;BA.debugLine="End Sub";
return "";
}
public String  _l_pcantc_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "l_pcantc_click", false))
	 {return ((String) Debug.delegate(ba, "l_pcantc_click", null));}
RDebugUtils.currentLine=25165824;
 //BA.debugLineNum = 25165824;BA.debugLine="Private Sub l_pCantC_Click";
RDebugUtils.currentLine=25165826;
 //BA.debugLineNum = 25165826;BA.debugLine="End Sub";
return "";
}
public String  _listview1_itemlongclick(reparto_izca.keymon.lat.c_productos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "listview1_itemlongclick", false))
	 {return ((String) Debug.delegate(ba, "listview1_itemlongclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=24641536;
 //BA.debugLineNum = 24641536;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
RDebugUtils.currentLine=24641580;
 //BA.debugLineNum = 24641580;BA.debugLine="End Sub";
return "";
}
public String  _lv2_itemclick(reparto_izca.keymon.lat.c_productos __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "lv2_itemclick", false))
	 {return ((String) Debug.delegate(ba, "lv2_itemclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=24707072;
 //BA.debugLineNum = 24707072;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec";
RDebugUtils.currentLine=24707133;
 //BA.debugLineNum = 24707133;BA.debugLine="End Sub";
return "";
}
public String  _p_prods_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_productos";
if (Debug.shouldDelegate(ba, "p_prods_click", false))
	 {return ((String) Debug.delegate(ba, "p_prods_click", null));}
RDebugUtils.currentLine=25493504;
 //BA.debugLineNum = 25493504;BA.debugLine="Sub p_prods_Click";
RDebugUtils.currentLine=25493505;
 //BA.debugLineNum = 25493505;BA.debugLine="Log(Sender.As(Panel).tag)";
__c.LogImpl("825493505",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
RDebugUtils.currentLine=25493506;
 //BA.debugLineNum = 25493506;BA.debugLine="End Sub";
return "";
}
}