v: 5.10.24

Se hicieron invisibles normales de la venta, se agregaron 2 botones mas, uno indica que tieene venta y el otro que no tiene, tambien al boton que indica que tiene venta se le agrega una pequeña ventana para agregar la venta que se le indique.
This commit is contained in:
IsR0d
2024-10-07 10:14:24 -06:00
parent 7fe1d3059d
commit 65319638b4
1220 changed files with 160744 additions and 132 deletions

View File

@@ -0,0 +1,442 @@
package keymon.lat.medicomed;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;
public class b4xcombobox 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, "keymon.lat.medicomed.b4xcombobox");
if (htSubs == null) {
ba.loadHtSubs(this.getClass());
htSubs = ba.htSubs;
}
}
if (BA.isShellModeRuntimeCheck(ba))
this.getClass().getMethod("_class_globals", keymon.lat.medicomed.b4xcombobox.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 String _meventname = "";
public Object _mcallback = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public int _lastselectedindex = 0;
public anywheresoftware.b4a.objects.SpinnerWrapper _cmbbox = null;
public int _delaybeforechangeevent = 0;
public int _delayindex = 0;
public Object _tag = null;
public String _b4icancelbutton = "";
public b4a.example.dateutils _dateutils = null;
public keymon.lat.medicomed.main _main = null;
public keymon.lat.medicomed.starter _starter = null;
public keymon.lat.medicomed.subs _subs = null;
public keymon.lat.medicomed.appupdater _appupdater = null;
public keymon.lat.medicomed.mapa_rutas _mapa_rutas = null;
public keymon.lat.medicomed.tracker _tracker = null;
public keymon.lat.medicomed.newinst2 _newinst2 = null;
public keymon.lat.medicomed.b4xpages _b4xpages = null;
public keymon.lat.medicomed.b4xcollections _b4xcollections = null;
public keymon.lat.medicomed.httputils2service _httputils2service = null;
public keymon.lat.medicomed.xuiviewsutils _xuiviewsutils = null;
public String _base_resize(keymon.lat.medicomed.b4xcombobox __ref,double _width,double _height) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "base_resize", true))
{return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));}
RDebugUtils.currentLine=47906816;
//BA.debugLineNum = 47906816;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
RDebugUtils.currentLine=47906817;
//BA.debugLineNum = 47906817;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width";
__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));
RDebugUtils.currentLine=47906818;
//BA.debugLineNum = 47906818;BA.debugLine="End Sub";
return "";
}
public String _class_globals(keymon.lat.medicomed.b4xcombobox __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
RDebugUtils.currentLine=47710208;
//BA.debugLineNum = 47710208;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=47710209;
//BA.debugLineNum = 47710209;BA.debugLine="Private mEventName As String 'ignore";
_meventname = "";
RDebugUtils.currentLine=47710210;
//BA.debugLineNum = 47710210;BA.debugLine="Private mCallBack As Object 'ignore";
_mcallback = new Object();
RDebugUtils.currentLine=47710211;
//BA.debugLineNum = 47710211;BA.debugLine="Public mBase As B4XView";
_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=47710212;
//BA.debugLineNum = 47710212;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=47710213;
//BA.debugLineNum = 47710213;BA.debugLine="Private LastSelectedIndex As Int";
_lastselectedindex = 0;
RDebugUtils.currentLine=47710217;
//BA.debugLineNum = 47710217;BA.debugLine="Public cmbBox As Spinner";
_cmbbox = new anywheresoftware.b4a.objects.SpinnerWrapper();
RDebugUtils.currentLine=47710223;
//BA.debugLineNum = 47710223;BA.debugLine="Public DelayBeforeChangeEvent As Int";
_delaybeforechangeevent = 0;
RDebugUtils.currentLine=47710225;
//BA.debugLineNum = 47710225;BA.debugLine="Private DelayIndex As Int";
_delayindex = 0;
RDebugUtils.currentLine=47710226;
//BA.debugLineNum = 47710226;BA.debugLine="Public Tag As Object";
_tag = new Object();
RDebugUtils.currentLine=47710227;
//BA.debugLineNum = 47710227;BA.debugLine="Public B4iCancelButton As String = \"Cancel\"";
_b4icancelbutton = "Cancel";
RDebugUtils.currentLine=47710228;
//BA.debugLineNum = 47710228;BA.debugLine="End Sub";
return "";
}
public String _cmbbox_itemclick(keymon.lat.medicomed.b4xcombobox __ref,int _position,Object _value) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "cmbbox_itemclick", true))
{return ((String) Debug.delegate(ba, "cmbbox_itemclick", new Object[] {_position,_value}));}
RDebugUtils.currentLine=48496640;
//BA.debugLineNum = 48496640;BA.debugLine="Private Sub CmbBox_ItemClick (Position As Int, Val";
RDebugUtils.currentLine=48496641;
//BA.debugLineNum = 48496641;BA.debugLine="RaiseEvent";
__ref._raiseevent /*void*/ (null);
RDebugUtils.currentLine=48496642;
//BA.debugLineNum = 48496642;BA.debugLine="End Sub";
return "";
}
public void _raiseevent(keymon.lat.medicomed.b4xcombobox __ref) throws Exception{
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "raiseevent", true))
{Debug.delegate(ba, "raiseevent", null); return;}
ResumableSub_RaiseEvent rsub = new ResumableSub_RaiseEvent(this,__ref);
rsub.resume(ba, null);
}
public static class ResumableSub_RaiseEvent extends BA.ResumableSub {
public ResumableSub_RaiseEvent(keymon.lat.medicomed.b4xcombobox parent,keymon.lat.medicomed.b4xcombobox __ref) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
keymon.lat.medicomed.b4xcombobox __ref;
keymon.lat.medicomed.b4xcombobox parent;
int _index = 0;
int _myindex = 0;
@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="b4xcombobox";
while (true) {
switch (state) {
case -1:
return;
case 0:
//C
this.state = 1;
RDebugUtils.currentLine=48431105;
//BA.debugLineNum = 48431105;BA.debugLine="Dim index As Int = getSelectedIndex";
_index = __ref._getselectedindex /*int*/ (null);
RDebugUtils.currentLine=48431106;
//BA.debugLineNum = 48431106;BA.debugLine="If LastSelectedIndex = index Then Return";
if (true) break;
case 1:
//if
this.state = 6;
if (__ref._lastselectedindex /*int*/ ==_index) {
this.state = 3;
;}if (true) break;
case 3:
//C
this.state = 6;
if (true) return ;
if (true) break;
case 6:
//C
this.state = 7;
;
RDebugUtils.currentLine=48431107;
//BA.debugLineNum = 48431107;BA.debugLine="If DelayBeforeChangeEvent > 0 Then";
if (true) break;
case 7:
//if
this.state = 16;
if (__ref._delaybeforechangeevent /*int*/ >0) {
this.state = 9;
}if (true) break;
case 9:
//C
this.state = 10;
RDebugUtils.currentLine=48431108;
//BA.debugLineNum = 48431108;BA.debugLine="DelayIndex = DelayIndex + 1";
__ref._delayindex /*int*/ = (int) (__ref._delayindex /*int*/ +1);
RDebugUtils.currentLine=48431109;
//BA.debugLineNum = 48431109;BA.debugLine="Dim MyIndex As Int = DelayIndex";
_myindex = __ref._delayindex /*int*/ ;
RDebugUtils.currentLine=48431110;
//BA.debugLineNum = 48431110;BA.debugLine="Sleep(DelayBeforeChangeEvent)";
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xcombobox", "raiseevent"),__ref._delaybeforechangeevent /*int*/ );
this.state = 21;
return;
case 21:
//C
this.state = 10;
;
RDebugUtils.currentLine=48431111;
//BA.debugLineNum = 48431111;BA.debugLine="If MyIndex <> DelayIndex Then Return";
if (true) break;
case 10:
//if
this.state = 15;
if (_myindex!=__ref._delayindex /*int*/ ) {
this.state = 12;
;}if (true) break;
case 12:
//C
this.state = 15;
if (true) return ;
if (true) break;
case 15:
//C
this.state = 16;
;
if (true) break;
case 16:
//C
this.state = 17;
;
RDebugUtils.currentLine=48431113;
//BA.debugLineNum = 48431113;BA.debugLine="LastSelectedIndex = index";
__ref._lastselectedindex /*int*/ = _index;
RDebugUtils.currentLine=48431114;
//BA.debugLineNum = 48431114;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Select";
if (true) break;
case 17:
//if
this.state = 20;
if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_SelectedIndexChanged",(int) (1))) {
this.state = 19;
}if (true) break;
case 19:
//C
this.state = 20;
RDebugUtils.currentLine=48431115;
//BA.debugLineNum = 48431115;BA.debugLine="CallSub2(mCallBack, mEventName & \"_SelectedIndex";
parent.__c.CallSubNew2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_SelectedIndexChanged",(Object)(_index));
if (true) break;
case 20:
//C
this.state = -1;
;
RDebugUtils.currentLine=48431117;
//BA.debugLineNum = 48431117;BA.debugLine="End Sub";
if (true) break;
}
}
}
}
public String _designercreateview(keymon.lat.medicomed.b4xcombobox __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "designercreateview", true))
{return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));}
anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
RDebugUtils.currentLine=47841280;
//BA.debugLineNum = 47841280;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
RDebugUtils.currentLine=47841281;
//BA.debugLineNum = 47841281;BA.debugLine="mBase = Base";
__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base));
RDebugUtils.currentLine=47841282;
//BA.debugLineNum = 47841282;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag();
RDebugUtils.currentLine=47841282;
//BA.debugLineNum = 47841282;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this);
RDebugUtils.currentLine=47841283;
//BA.debugLineNum = 47841283;BA.debugLine="Dim xlbl As B4XView = Lbl";
_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
RDebugUtils.currentLine=47841290;
//BA.debugLineNum = 47841290;BA.debugLine="cmbBox.Initialize(\"cmbBox\")";
__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .Initialize(ba,"cmbBox");
RDebugUtils.currentLine=47841291;
//BA.debugLineNum = 47841291;BA.debugLine="cmbBox.TextSize = xlbl.TextSize";
__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .setTextSize(_xlbl.getTextSize());
RDebugUtils.currentLine=47841292;
//BA.debugLineNum = 47841292;BA.debugLine="mBase.AddView(cmbBox, 0, 0, mBase.Width, mBase.He";
__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
RDebugUtils.currentLine=47841301;
//BA.debugLineNum = 47841301;BA.debugLine="End Sub";
return "";
}
public String _getitem(keymon.lat.medicomed.b4xcombobox __ref,int _index) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "getitem", true))
{return ((String) Debug.delegate(ba, "getitem", new Object[] {_index}));}
RDebugUtils.currentLine=48365568;
//BA.debugLineNum = 48365568;BA.debugLine="Public Sub GetItem(Index As Int) As String";
RDebugUtils.currentLine=48365572;
//BA.debugLineNum = 48365572;BA.debugLine="Return cmbBox.GetItem(Index)";
if (true) return __ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .GetItem(_index);
RDebugUtils.currentLine=48365576;
//BA.debugLineNum = 48365576;BA.debugLine="End Sub";
return "";
}
public int _getselectedindex(keymon.lat.medicomed.b4xcombobox __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "getselectedindex", true))
{return ((Integer) Debug.delegate(ba, "getselectedindex", null));}
RDebugUtils.currentLine=48168960;
//BA.debugLineNum = 48168960;BA.debugLine="Public Sub getSelectedIndex As Int";
RDebugUtils.currentLine=48168962;
//BA.debugLineNum = 48168962;BA.debugLine="Return cmbBox.SelectedIndex";
if (true) return __ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .getSelectedIndex();
RDebugUtils.currentLine=48168966;
//BA.debugLineNum = 48168966;BA.debugLine="End Sub";
return 0;
}
public String _getselecteditem(keymon.lat.medicomed.b4xcombobox __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "getselecteditem", true))
{return ((String) Debug.delegate(ba, "getselecteditem", null));}
int _i = 0;
RDebugUtils.currentLine=48300032;
//BA.debugLineNum = 48300032;BA.debugLine="Public Sub getSelectedItem As String";
RDebugUtils.currentLine=48300033;
//BA.debugLineNum = 48300033;BA.debugLine="Dim i As Int = getSelectedIndex";
_i = __ref._getselectedindex /*int*/ (null);
RDebugUtils.currentLine=48300034;
//BA.debugLineNum = 48300034;BA.debugLine="If i = -1 Then Return \"\"";
if (_i==-1) {
if (true) return "";};
RDebugUtils.currentLine=48300035;
//BA.debugLineNum = 48300035;BA.debugLine="Return GetItem(i)";
if (true) return __ref._getitem /*String*/ (null,_i);
RDebugUtils.currentLine=48300036;
//BA.debugLineNum = 48300036;BA.debugLine="End Sub";
return "";
}
public int _getsize(keymon.lat.medicomed.b4xcombobox __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "getsize", true))
{return ((Integer) Debug.delegate(ba, "getsize", null));}
RDebugUtils.currentLine=48037888;
//BA.debugLineNum = 48037888;BA.debugLine="Public Sub getSize As Int";
RDebugUtils.currentLine=48037892;
//BA.debugLineNum = 48037892;BA.debugLine="Return cmbBox.Size";
if (true) return __ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .getSize();
RDebugUtils.currentLine=48037896;
//BA.debugLineNum = 48037896;BA.debugLine="End Sub";
return 0;
}
public int _indexof(keymon.lat.medicomed.b4xcombobox __ref,String _item) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "indexof", true))
{return ((Integer) Debug.delegate(ba, "indexof", new Object[] {_item}));}
RDebugUtils.currentLine=48103424;
//BA.debugLineNum = 48103424;BA.debugLine="Public Sub IndexOf(Item As String) As Int";
RDebugUtils.currentLine=48103428;
//BA.debugLineNum = 48103428;BA.debugLine="Return cmbBox.IndexOf(Item)";
if (true) return __ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .IndexOf(_item);
RDebugUtils.currentLine=48103432;
//BA.debugLineNum = 48103432;BA.debugLine="End Sub";
return 0;
}
public String _initialize(keymon.lat.medicomed.b4xcombobox __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "initialize", true))
{return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));}
RDebugUtils.currentLine=47775744;
//BA.debugLineNum = 47775744;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
RDebugUtils.currentLine=47775745;
//BA.debugLineNum = 47775745;BA.debugLine="mEventName = EventName";
__ref._meventname /*String*/ = _eventname;
RDebugUtils.currentLine=47775746;
//BA.debugLineNum = 47775746;BA.debugLine="mCallBack = Callback";
__ref._mcallback /*Object*/ = _callback;
RDebugUtils.currentLine=47775747;
//BA.debugLineNum = 47775747;BA.debugLine="LastSelectedIndex = -1";
__ref._lastselectedindex /*int*/ = (int) (-1);
RDebugUtils.currentLine=47775748;
//BA.debugLineNum = 47775748;BA.debugLine="If xui.IsB4J Then DelayBeforeChangeEvent = 500";
if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) {
__ref._delaybeforechangeevent /*int*/ = (int) (500);};
RDebugUtils.currentLine=47775749;
//BA.debugLineNum = 47775749;BA.debugLine="End Sub";
return "";
}
public String _setitems(keymon.lat.medicomed.b4xcombobox __ref,anywheresoftware.b4a.objects.collections.List _items) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "setitems", true))
{return ((String) Debug.delegate(ba, "setitems", new Object[] {_items}));}
RDebugUtils.currentLine=47972352;
//BA.debugLineNum = 47972352;BA.debugLine="Public Sub SetItems(Items As List)";
RDebugUtils.currentLine=47972357;
//BA.debugLineNum = 47972357;BA.debugLine="cmbBox.Clear";
__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .Clear();
RDebugUtils.currentLine=47972358;
//BA.debugLineNum = 47972358;BA.debugLine="cmbBox.AddAll(Items)";
__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .AddAll(_items);
RDebugUtils.currentLine=47972365;
//BA.debugLineNum = 47972365;BA.debugLine="If Items.Size > 0 Then setSelectedIndex(0)";
if (_items.getSize()>0) {
__ref._setselectedindex /*String*/ (null,(int) (0));};
RDebugUtils.currentLine=47972366;
//BA.debugLineNum = 47972366;BA.debugLine="End Sub";
return "";
}
public String _setselectedindex(keymon.lat.medicomed.b4xcombobox __ref,int _i) throws Exception{
__ref = this;
RDebugUtils.currentModule="b4xcombobox";
if (Debug.shouldDelegate(ba, "setselectedindex", true))
{return ((String) Debug.delegate(ba, "setselectedindex", new Object[] {_i}));}
RDebugUtils.currentLine=48234496;
//BA.debugLineNum = 48234496;BA.debugLine="Public Sub setSelectedIndex(i As Int)";
RDebugUtils.currentLine=48234497;
//BA.debugLineNum = 48234497;BA.debugLine="LastSelectedIndex = i";
__ref._lastselectedindex /*int*/ = _i;
RDebugUtils.currentLine=48234499;
//BA.debugLineNum = 48234499;BA.debugLine="cmbBox.SelectedIndex = i";
__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .setSelectedIndex(_i);
RDebugUtils.currentLine=48234508;
//BA.debugLineNum = 48234508;BA.debugLine="End Sub";
return "";
}
}