Version: 4:11:02

Se arrglo el resumen dia, ahora puedes entrar sin necesidad de hacer algun pedido sin que truene, se muestra la cantidad de clientes visitados sin importar si tienen o no tienen venta y tambien se le agrego la cantidad de clientes que si tienen venta.
This commit is contained in:
IsR0d
2024-11-04 12:36:27 -06:00
parent 65319638b4
commit f9f3ff7d6e
545 changed files with 22807 additions and 103664 deletions

View File

@@ -10,7 +10,7 @@ public class c_updateavailable extends B4AClass.ImplB4AClass implements BA.SubDe
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.c_updateavailable");
ba = new BA(_ba, this, htSubs, "keymon.lat.medicomed.c_updateavailable");
if (htSubs == null) {
ba.loadHtSubs(this.getClass());
htSubs = ba.htSubs;
@@ -23,14 +23,7 @@ public class c_updateavailable extends B4AClass.ImplB4AClass implements BA.SubDe
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.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper _root = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public b4a.example.dateutils _dateutils = null;
@@ -45,42 +38,20 @@ 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 Object _initialize(keymon.lat.medicomed.c_updateavailable __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="c_updateavailable";
if (Debug.shouldDelegate(ba, "initialize", false))
{return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));}
RDebugUtils.currentLine=26673152;
//BA.debugLineNum = 26673152;BA.debugLine="Public Sub Initialize As Object";
RDebugUtils.currentLine=26673153;
//BA.debugLineNum = 26673153;BA.debugLine="Return Me";
if (true) return this;
RDebugUtils.currentLine=26673154;
//BA.debugLineNum = 26673154;BA.debugLine="End Sub";
return null;
}
public void _b4xpage_appear(keymon.lat.medicomed.c_updateavailable __ref) throws Exception{
RDebugUtils.currentModule="c_updateavailable";
if (Debug.shouldDelegate(ba, "b4xpage_appear", false))
{Debug.delegate(ba, "b4xpage_appear", null); return;}
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this,__ref);
public void _b4xpage_appear() throws Exception{
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this);
rsub.resume(ba, null);
}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(keymon.lat.medicomed.c_updateavailable parent,keymon.lat.medicomed.c_updateavailable __ref) {
public ResumableSub_B4XPage_Appear(keymon.lat.medicomed.c_updateavailable parent) {
this.parent = parent;
this.__ref = __ref;
this.__ref = parent;
}
keymon.lat.medicomed.c_updateavailable __ref;
keymon.lat.medicomed.c_updateavailable parent;
int _result = 0;
anywheresoftware.b4a.objects.IntentWrapper _in = null;
@Override
public void resume(BA ba, Object[] result) throws Exception{
RDebugUtils.currentModule="c_updateavailable";
while (true) {
try {
@@ -92,8 +63,7 @@ return;
case 0:
//C
this.state = 1;
RDebugUtils.currentLine=26804225;
//BA.debugLineNum = 26804225;BA.debugLine="Try";
//BA.debugLineNum = 19;BA.debugLine="Try";
if (true) break;
case 1:
@@ -107,14 +77,13 @@ case 3:
//C
this.state = 4;
this.catchState = 9;
RDebugUtils.currentLine=26804226;
//BA.debugLineNum = 26804226;BA.debugLine="Do While Not(CanRequestPackageInstalls)";
//BA.debugLineNum = 20;BA.debugLine="Do While Not(CanRequestPackageInstalls)";
if (true) break;
case 4:
//do while
this.state = 7;
while (parent.__c.Not(__ref._canrequestpackageinstalls /*boolean*/ (null))) {
while (parent.__c.Not(parent._canrequestpackageinstalls())) {
this.state = 6;
if (true) break;
}
@@ -123,27 +92,22 @@ if (true) break;
case 6:
//C
this.state = 4;
RDebugUtils.currentLine=26804227;
//BA.debugLineNum = 26804227;BA.debugLine="MsgboxAsync($\"Por favor permita que ${Applicati";
//BA.debugLineNum = 21;BA.debugLine="MsgboxAsync($\"Por favor permita que ${Applicati";
parent.__c.MsgboxAsync(BA.ObjectToCharSequence(("Por favor permita que "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.Application.getPackageName()))+" instale actualizaciones")),BA.ObjectToCharSequence("Instalar actualización"),ba);
RDebugUtils.currentLine=26804228;
//BA.debugLineNum = 26804228;BA.debugLine="Wait For Msgbox_Result(Result As Int)";
parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_updateavailable", "b4xpage_appear"), null);
//BA.debugLineNum = 22;BA.debugLine="Wait For Msgbox_Result(Result As Int)";
parent.__c.WaitFor("msgbox_result", ba, this, null);
this.state = 16;
return;
case 16:
//C
this.state = 4;
_result = (Integer) result[1];
_result = (Integer) result[0];
;
RDebugUtils.currentLine=26804229;
//BA.debugLineNum = 26804229;BA.debugLine="Dim in As Intent";
//BA.debugLineNum = 23;BA.debugLine="Dim in As Intent";
_in = new anywheresoftware.b4a.objects.IntentWrapper();
RDebugUtils.currentLine=26804230;
//BA.debugLineNum = 26804230;BA.debugLine="in.Initialize(\"android.settings.\", \"package:\" &";
//BA.debugLineNum = 24;BA.debugLine="in.Initialize(\"android.settings.\", \"package:\" &";
_in.Initialize("android.settings.","package:"+parent.__c.Application.getPackageName());
RDebugUtils.currentLine=26804231;
//BA.debugLineNum = 26804231;BA.debugLine="StartActivity(in)";
//BA.debugLineNum = 25;BA.debugLine="StartActivity(in)";
parent.__c.StartActivity(ba,(Object)(_in.getObject()));
if (true) break;
@@ -157,14 +121,12 @@ case 9:
//C
this.state = 10;
this.catchState = 0;
RDebugUtils.currentLine=26804234;
//BA.debugLineNum = 26804234;BA.debugLine="Log(\"updateAvailable() Error - \" & LastException";
parent.__c.LogImpl("326804234","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0);
//BA.debugLineNum = 28;BA.debugLine="Log(\"updateAvailable() Error - \" & LastException";
parent.__c.LogImpl("359768842","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0);
if (true) break;
if (true) break;
;
RDebugUtils.currentLine=26804236;
//BA.debugLineNum = 26804236;BA.debugLine="If appUpdater.newApp.update Then";
//BA.debugLineNum = 30;BA.debugLine="If appUpdater.newApp.update Then";
case 10:
//if
@@ -179,25 +141,22 @@ this.state = 14;
case 12:
//C
this.state = 15;
RDebugUtils.currentLine=26804237;
//BA.debugLineNum = 26804237;BA.debugLine="ofreceActualizacion";
__ref._ofreceactualizacion /*String*/ (null);
//BA.debugLineNum = 31;BA.debugLine="ofreceActualizacion";
parent._ofreceactualizacion();
if (true) break;
case 14:
//C
this.state = 15;
RDebugUtils.currentLine=26804239;
//BA.debugLineNum = 26804239;BA.debugLine="sinActualizacion";
__ref._sinactualizacion /*String*/ (null);
//BA.debugLineNum = 33;BA.debugLine="sinActualizacion";
parent._sinactualizacion();
if (true) break;
case 15:
//C
this.state = -1;
;
RDebugUtils.currentLine=26804241;
//BA.debugLineNum = 26804241;BA.debugLine="End Sub";
//BA.debugLineNum = 35;BA.debugLine="End Sub";
if (true) break;
}}
catch (Exception e0) {
@@ -211,109 +170,81 @@ ba.setLastException(e0);}
}
}
}
public boolean _canrequestpackageinstalls(keymon.lat.medicomed.c_updateavailable __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_updateavailable";
if (Debug.shouldDelegate(ba, "canrequestpackageinstalls", false))
{return ((Boolean) Debug.delegate(ba, "canrequestpackageinstalls", null));}
public void _msgbox_result(int _result) throws Exception{
}
public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
//BA.debugLineNum = 12;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
//BA.debugLineNum = 13;BA.debugLine="Root = Root1";
_root = _root1;
//BA.debugLineNum = 15;BA.debugLine="Root.Color = Colors.Transparent";
_root.setColor(__c.Colors.Transparent);
//BA.debugLineNum = 16;BA.debugLine="End Sub";
return "";
}
public boolean _canrequestpackageinstalls() throws Exception{
anywheresoftware.b4j.object.JavaObject _ctxt = null;
anywheresoftware.b4j.object.JavaObject _packagemanager = null;
RDebugUtils.currentLine=26869760;
//BA.debugLineNum = 26869760;BA.debugLine="public Sub CanRequestPackageInstalls As Boolean";
RDebugUtils.currentLine=26869762;
//BA.debugLineNum = 26869762;BA.debugLine="Dim ctxt As JavaObject";
//BA.debugLineNum = 43;BA.debugLine="public Sub CanRequestPackageInstalls As Boolean";
//BA.debugLineNum = 45;BA.debugLine="Dim ctxt As JavaObject";
_ctxt = new anywheresoftware.b4j.object.JavaObject();
RDebugUtils.currentLine=26869763;
//BA.debugLineNum = 26869763;BA.debugLine="ctxt.InitializeContext";
//BA.debugLineNum = 46;BA.debugLine="ctxt.InitializeContext";
_ctxt.InitializeContext(ba);
RDebugUtils.currentLine=26869764;
//BA.debugLineNum = 26869764;BA.debugLine="Dim PackageManager As JavaObject = ctxt.RunMethod";
//BA.debugLineNum = 47;BA.debugLine="Dim PackageManager As JavaObject = ctxt.RunMethod";
_packagemanager = new anywheresoftware.b4j.object.JavaObject();
_packagemanager = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_ctxt.RunMethod("getPackageManager",(Object[])(__c.Null))));
RDebugUtils.currentLine=26869765;
//BA.debugLineNum = 26869765;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag";
//BA.debugLineNum = 48;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag";
if (true) return BA.ObjectToBoolean(_packagemanager.RunMethod("canRequestPackageInstalls",(Object[])(__c.Null)));
RDebugUtils.currentLine=26869766;
//BA.debugLineNum = 26869766;BA.debugLine="End Sub";
//BA.debugLineNum = 49;BA.debugLine="End Sub";
return false;
}
public String _ofreceactualizacion(keymon.lat.medicomed.c_updateavailable __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_updateavailable";
if (Debug.shouldDelegate(ba, "ofreceactualizacion", false))
{return ((String) Debug.delegate(ba, "ofreceactualizacion", null));}
RDebugUtils.currentLine=26935296;
//BA.debugLineNum = 26935296;BA.debugLine="Sub ofreceActualizacion";
RDebugUtils.currentLine=26935297;
//BA.debugLineNum = 26935297;BA.debugLine="If Msgbox2(appUpdater.newApp.newMsg,\"Actualizació";
public String _class_globals() throws Exception{
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
//BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
//BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
//BA.debugLineNum = 4;BA.debugLine="End Sub";
return "";
}
public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
innerInitialize(_ba);
//BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object";
//BA.debugLineNum = 8;BA.debugLine="Return Me";
if (true) return this;
//BA.debugLineNum = 9;BA.debugLine="End Sub";
return null;
}
public String _ofreceactualizacion() throws Exception{
//BA.debugLineNum = 51;BA.debugLine="Sub ofreceActualizacion";
//BA.debugLineNum = 52;BA.debugLine="If Msgbox2(appUpdater.newApp.newMsg,\"Actualizació";
if (__c.Msgbox2(BA.ObjectToCharSequence(_appupdater._newapp /*keymon.lat.medicomed.appupdater._mnewversion*/ .newMsg /*String*/ ),BA.ObjectToCharSequence("Actualización disponible"),"Si","","No",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) {
RDebugUtils.currentLine=26935299;
//BA.debugLineNum = 26935299;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")";
//BA.debugLineNum = 54;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")";
__c.CallSubDelayed(ba,(Object)(_appupdater.getObject()),"download_newApk");
};
RDebugUtils.currentLine=26935302;
//BA.debugLineNum = 26935302;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ (null);
RDebugUtils.currentLine=26935303;
//BA.debugLineNum = 26935303;BA.debugLine="StartActivity(Main)";
//BA.debugLineNum = 57;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ ();
//BA.debugLineNum = 58;BA.debugLine="StartActivity(Main)";
__c.StartActivity(ba,(Object)(_main.getObject()));
RDebugUtils.currentLine=26935305;
//BA.debugLineNum = 26935305;BA.debugLine="B4XPages.ShowPage(\"Login\")";
//BA.debugLineNum = 60;BA.debugLine="B4XPages.ShowPage(\"Login\")";
_b4xpages._showpage /*String*/ (ba,"Login");
RDebugUtils.currentLine=26935306;
//BA.debugLineNum = 26935306;BA.debugLine="End Sub";
//BA.debugLineNum = 61;BA.debugLine="End Sub";
return "";
}
public String _sinactualizacion(keymon.lat.medicomed.c_updateavailable __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_updateavailable";
if (Debug.shouldDelegate(ba, "sinactualizacion", false))
{return ((String) Debug.delegate(ba, "sinactualizacion", null));}
RDebugUtils.currentLine=27000832;
//BA.debugLineNum = 27000832;BA.debugLine="Sub sinActualizacion";
RDebugUtils.currentLine=27000833;
//BA.debugLineNum = 27000833;BA.debugLine="Msgbox(appUpdater.newApp.okMsg, \"Aplicación al co";
public String _sinactualizacion() throws Exception{
//BA.debugLineNum = 63;BA.debugLine="Sub sinActualizacion";
//BA.debugLineNum = 64;BA.debugLine="Msgbox(appUpdater.newApp.okMsg, \"Aplicación al co";
__c.Msgbox(BA.ObjectToCharSequence(_appupdater._newapp /*keymon.lat.medicomed.appupdater._mnewversion*/ .okMsg /*String*/ ),BA.ObjectToCharSequence("Aplicación al corriente"),ba);
RDebugUtils.currentLine=27000835;
//BA.debugLineNum = 27000835;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ (null);
RDebugUtils.currentLine=27000836;
//BA.debugLineNum = 27000836;BA.debugLine="B4XPages.ShowPage(\"Login\")";
//BA.debugLineNum = 66;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
_b4xpages._mainpage /*keymon.lat.medicomed.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ ();
//BA.debugLineNum = 67;BA.debugLine="B4XPages.ShowPage(\"Login\")";
_b4xpages._showpage /*String*/ (ba,"Login");
RDebugUtils.currentLine=27000837;
//BA.debugLineNum = 27000837;BA.debugLine="End Sub";
//BA.debugLineNum = 68;BA.debugLine="End Sub";
return "";
}
public String _b4xpage_created(keymon.lat.medicomed.c_updateavailable __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_updateavailable";
if (Debug.shouldDelegate(ba, "b4xpage_created", false))
{return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));}
RDebugUtils.currentLine=26738688;
//BA.debugLineNum = 26738688;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
RDebugUtils.currentLine=26738689;
//BA.debugLineNum = 26738689;BA.debugLine="Root = Root1";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1;
RDebugUtils.currentLine=26738691;
//BA.debugLineNum = 26738691;BA.debugLine="Root.Color = Colors.Transparent";
__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__c.Colors.Transparent);
RDebugUtils.currentLine=26738692;
//BA.debugLineNum = 26738692;BA.debugLine="End Sub";
return "";
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
BA.senderHolder.set(sender);
if (BA.fastSubCompare(sub, "B4XPAGE_CREATED"))
return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]);
return BA.SubDelegator.SubNotFound;
}
public String _class_globals(keymon.lat.medicomed.c_updateavailable __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="c_updateavailable";
RDebugUtils.currentLine=26607616;
//BA.debugLineNum = 26607616;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=26607617;
//BA.debugLineNum = 26607617;BA.debugLine="Private Root As B4XView 'ignore";
_root = new anywheresoftware.b4a.objects.B4XViewWrapper();
RDebugUtils.currentLine=26607618;
//BA.debugLineNum = 26607618;BA.debugLine="Private xui As XUI 'ignore";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=26607619;
//BA.debugLineNum = 26607619;BA.debugLine="End Sub";
return "";
}
}