Version: 5.05.24_V2

Se le cambio el servidor
This commit is contained in:
IsR0d
2025-05-26 09:10:10 -06:00
parent 4267cd6e8f
commit 6161a81ba5
499 changed files with 741 additions and 742 deletions

View File

@@ -43,10 +43,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -48,10 +48,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -150,10 +150,10 @@ public b4a.example.dateutils _dateutils = null;
public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -273,7 +273,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 163;BA.debugLine="Log(\"Descargando actualización\")";
anywheresoftware.b4a.keywords.Common.LogImpl("21376259","Descargando actualización",0);
anywheresoftware.b4a.keywords.Common.LogImpl("01376259","Descargando actualización",0);
//BA.debugLineNum = 164;BA.debugLine="B4XPages.ShowPage(\"login\")";
parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"login");
//BA.debugLineNum = 165;BA.debugLine="Starter.muestraProgreso = 1";
@@ -347,7 +347,7 @@ this.state = 10;
case 10:
//C
this.state = 13;
anywheresoftware.b4a.keywords.Common.LogImpl("21376275","APK dir: "+parent._sharedfolder,0);
anywheresoftware.b4a.keywords.Common.LogImpl("01376275","APK dir: "+parent._sharedfolder,0);
if (true) break;
case 13:
@@ -417,7 +417,7 @@ _usefileprovider = anywheresoftware.b4a.keywords.Common.False;
_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
};
//BA.debugLineNum = 251;BA.debugLine="Log($\"Using FileProvider? ${UseFileProvider}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("21769484",("Using FileProvider? "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("01769484",("Using FileProvider? "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
//BA.debugLineNum = 252;BA.debugLine="End Sub";
return "";
}
@@ -452,7 +452,7 @@ if (true) return _fp.RunMethod("getUriForFile",new Object[]{(Object)(_context.ge
}
catch (Exception e14) {
processBA.setLastException(e14); //BA.debugLineNum = 269;BA.debugLine="Log(\"FileProvider::GetFileUri - error - \" & Last";
anywheresoftware.b4a.keywords.Common.LogImpl("21835022","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("01835022","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
//BA.debugLineNum = 270;BA.debugLine="Return \"\"";
if (true) return (Object)("");
};
@@ -489,7 +489,7 @@ return "";
public static String _service_create() throws Exception{
//BA.debugLineNum = 105;BA.debugLine="Sub Service_Create";
//BA.debugLineNum = 106;BA.debugLine="Log(\"appUpdater(), Service_Create\")";
anywheresoftware.b4a.keywords.Common.LogImpl("21179649","appUpdater(), Service_Create",0);
anywheresoftware.b4a.keywords.Common.LogImpl("01179649","appUpdater(), Service_Create",0);
//BA.debugLineNum = 107;BA.debugLine="newApp.Initialize";
_newapp.Initialize();
//BA.debugLineNum = 108;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT";
@@ -504,7 +504,7 @@ return "";
public static String _service_destroy() throws Exception{
//BA.debugLineNum = 235;BA.debugLine="Sub Service_Destroy";
//BA.debugLineNum = 236;BA.debugLine="Log(\"appUpdater(), Service_Destroy\")";
anywheresoftware.b4a.keywords.Common.LogImpl("21703937","appUpdater(), Service_Destroy",0);
anywheresoftware.b4a.keywords.Common.LogImpl("01703937","appUpdater(), Service_Destroy",0);
//BA.debugLineNum = 237;BA.debugLine="End Sub";
return "";
}
@@ -536,11 +536,11 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 114;BA.debugLine="Log(\"appUpdater(), Service_Start\")";
anywheresoftware.b4a.keywords.Common.LogImpl("21245185","appUpdater(), Service_Start",0);
anywheresoftware.b4a.keywords.Common.LogImpl("01245185","appUpdater(), Service_Start",0);
//BA.debugLineNum = 116;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Buscando actua";
parent.mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Buscando actualización");
//BA.debugLineNum = 117;BA.debugLine="Log(\"Buscando actualización\")";
anywheresoftware.b4a.keywords.Common.LogImpl("21245188","Buscando actualización",0);
anywheresoftware.b4a.keywords.Common.LogImpl("01245188","Buscando actualización",0);
//BA.debugLineNum = 118;BA.debugLine="fileProvider_init";
_fileprovider_init();
//BA.debugLineNum = 119;BA.debugLine="Wait For (Download(Me, lnk)) JobDone (j As HttpJo";
@@ -592,7 +592,7 @@ parent._newapp.okMsg /*String*/ = _app[(int) (2)];
//BA.debugLineNum = 127;BA.debugLine="newApp.version = app(0) 'Version actual";
parent._newapp.version /*String*/ = _app[(int) (0)];
//BA.debugLineNum = 129;BA.debugLine="Log($\"Application.VersionName=${Application.Ver";
anywheresoftware.b4a.keywords.Common.LogImpl("21245200",("Application.VersionName="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()))+", newApp="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._newapp))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("01245200",("Application.VersionName="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()))+", newApp="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._newapp))+""),0);
//BA.debugLineNum = 132;BA.debugLine="If newApp.version = Application.VersionName Th";
if (true) break;
@@ -609,7 +609,7 @@ this.state = 10;
//BA.debugLineNum = 133;BA.debugLine="newApp.update = False";
parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 134;BA.debugLine="Log(\"No new app\")";
anywheresoftware.b4a.keywords.Common.LogImpl("21245205","No new app",0);
anywheresoftware.b4a.keywords.Common.LogImpl("01245205","No new app",0);
//BA.debugLineNum = 135;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable");
//BA.debugLineNum = 137;BA.debugLine="CreateNotification2(\"Aplicacion al corriente\",";
@@ -631,7 +631,7 @@ this.state = 13;
//BA.debugLineNum = 140;BA.debugLine="newApp.update = True";
parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 141;BA.debugLine="Log(\"New app true\")";
anywheresoftware.b4a.keywords.Common.LogImpl("21245212","New app true",0);
anywheresoftware.b4a.keywords.Common.LogImpl("01245212","New app true",0);
//BA.debugLineNum = 142;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable");
if (true) break;
@@ -647,7 +647,7 @@ case 15:
this.state = 16;
this.catchState = 0;
//BA.debugLineNum = 147;BA.debugLine="Log(\"appUpdater(), Job Failed, error \" & LastE";
anywheresoftware.b4a.keywords.Common.LogImpl("21245218","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("01245218","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
if (true) break;
if (true) break;
@@ -662,7 +662,7 @@ case 18:
//C
this.state = 19;
//BA.debugLineNum = 150;BA.debugLine="Log(\"appUpdater(), Job Failed \" & lnk)";
anywheresoftware.b4a.keywords.Common.LogImpl("21245221","appUpdater(), Job Failed "+parent._lnk,0);
anywheresoftware.b4a.keywords.Common.LogImpl("01245221","appUpdater(), Job Failed "+parent._lnk,0);
if (true) break;
case 19:

View File

@@ -31,10 +31,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -45,10 +45,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -31,10 +31,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -179,7 +179,7 @@ byte[] _afterindex = null;
if (_index>=_mlength) {
//BA.debugLineNum = 45;BA.debugLine="If Index > mLength Then Log(\"Index too large\")";
if (_index>_mlength) {
__c.LogImpl("923396354","Index too large",0);};
__c.LogImpl("932899074","Index too large",0);};
//BA.debugLineNum = 46;BA.debugLine="Append(Data)";
_append(_data);
}else {
@@ -221,7 +221,7 @@ public String _set(int _index,byte[] _data) throws Exception{
if (_index>=_mlength) {
//BA.debugLineNum = 58;BA.debugLine="If Index > mLength Then Log(\"Index too large\")";
if (_index>_mlength) {
__c.LogImpl("923461890","Index too large",0);};
__c.LogImpl("932964610","Index too large",0);};
//BA.debugLineNum = 59;BA.debugLine="Append(Data)";
_append(_data);
}else {

View File

@@ -33,10 +33,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -16,10 +16,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -46,10 +46,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -39,10 +39,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -29,10 +29,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -67,10 +67,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -58,10 +58,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -61,10 +61,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -355,7 +355,7 @@ if (_passwordmode && _multiline) {
//BA.debugLineNum = 90;BA.debugLine="Multiline = False";
_multiline = __c.False;
//BA.debugLineNum = 91;BA.debugLine="Log(\"Multiline not supported with password mode.";
__c.LogImpl("939976984","Multiline not supported with password mode.",0);
__c.LogImpl("949479704","Multiline not supported with password mode.",0);
};
//BA.debugLineNum = 93;BA.debugLine="CreateTextFieldAll(PasswordMode, PassedLabel.Font";
_createtextfieldall(_passwordmode,_passedlabel.getFont(),_xui.PaintOrColorToColor((Object)(_lbl.getTextColor())));

View File

@@ -33,10 +33,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -40,10 +40,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -272,7 +272,7 @@ _imageviewheight = (float) (_mbitmap.getHeight());
break; }
default: {
//BA.debugLineNum = 104;BA.debugLine="Log(\"Invalid resize mode: \" & mResizeMode)";
__c.LogImpl("942336283","Invalid resize mode: "+_mresizemode,0);
__c.LogImpl("951839003","Invalid resize mode: "+_mresizemode,0);
break; }
}
;

View File

@@ -40,10 +40,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -39,10 +39,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -39,10 +39,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -33,10 +33,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -128,10 +128,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -152,9 +152,9 @@ if (_a.getRowCount()>0) {
_a.setPosition((int) (0));
};
//BA.debugLineNum = 1162;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
__c.LogImpl("27077896",_a.GetString("ID_ALMACEN"),0);
__c.LogImpl("07077896",_a.GetString("ID_ALMACEN"),0);
//BA.debugLineNum = 1163;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))";
__c.LogImpl("27077897",_f.GetString("CAT_CL_RUTA"),0);
__c.LogImpl("07077897",_f.GetString("CAT_CL_RUTA"),0);
//BA.debugLineNum = 1170;BA.debugLine="f.Close";
_f.Close();
//BA.debugLineNum = 1171;BA.debugLine="a.Close";
@@ -256,7 +256,7 @@ this.state = -1;
//BA.debugLineNum = 1251;BA.debugLine="Dim FileName As String = \"kmt.db\"";
_filename = "kmt.db";
//BA.debugLineNum = 1253;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)";
parent.__c.LogImpl("27340037","xxxxxx:"+parent._provider._sharedfolder /*String*/ ,0);
parent.__c.LogImpl("07340037","xxxxxx:"+parent._provider._sharedfolder /*String*/ ,0);
//BA.debugLineNum = 1254;BA.debugLine="Sleep(1000)";
parent.__c.Sleep(ba,this,(int) (1000));
this.state = 1;
@@ -656,9 +656,9 @@ case 17:
this.state = 18;
;
//BA.debugLineNum = 1117;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))";
parent.__c.LogImpl("27012390",parent._a.GetString("ID_ALMACEN"),0);
parent.__c.LogImpl("07012390",parent._a.GetString("ID_ALMACEN"),0);
//BA.debugLineNum = 1118;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))";
parent.__c.LogImpl("27012391",parent._f.GetString("CAT_CL_RUTA"),0);
parent.__c.LogImpl("07012391",parent._f.GetString("CAT_CL_RUTA"),0);
//BA.debugLineNum = 1119;BA.debugLine="If inputText <> 0 Then";
if (true) break;
@@ -715,7 +715,7 @@ parent._f.Close();
//BA.debugLineNum = 1129;BA.debugLine="a.Close";
parent._a.Close();
//BA.debugLineNum = 1130;BA.debugLine="Log(\"Processed item \" & i)";
parent.__c.LogImpl("27012403","Processed item "+BA.NumberToString(_i),0);
parent.__c.LogImpl("07012403","Processed item "+BA.NumberToString(_i),0);
if (true) break;
if (true) break;
@@ -724,7 +724,7 @@ case 28:
this.state = 31;
;
//BA.debugLineNum = 1132;BA.debugLine="Log(\"Finished processing all items\")";
parent.__c.LogImpl("27012405","Finished processing all items",0);
parent.__c.LogImpl("07012405","Finished processing all items",0);
//BA.debugLineNum = 1133;BA.debugLine="P_CIEGO.Visible = False";
parent._p_ciego.setVisible(parent.__c.False);
//BA.debugLineNum = 1134;BA.debugLine="et_buspc.Text = \"\"";
@@ -781,7 +781,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 314;BA.debugLine="Log(recarga)";
parent.__c.LogImpl("25177345",parent._recarga,0);
parent.__c.LogImpl("05177345",parent._recarga,0);
//BA.debugLineNum = 315;BA.debugLine="If Starter.muestraProgreso = 1 Then";
if (true) break;
@@ -810,13 +810,13 @@ _ph = new anywheresoftware.b4a.phone.Phone();
//BA.debugLineNum = 320;BA.debugLine="Dim DeviceID As String = ph.GetSettings(\"android_";
_deviceid = _ph.GetSettings("android_id").toUpperCase();
//BA.debugLineNum = 321;BA.debugLine="LogColor($\"////////////////// DeviceID: ${Devic";
parent.__c.LogImpl("25177352",("////////////////// DeviceID: "+parent.__c.SmartStringFormatter("",(Object)(_deviceid))+" ////////////////// "),parent.__c.Colors.Blue);
parent.__c.LogImpl("05177352",("////////////////// DeviceID: "+parent.__c.SmartStringFormatter("",(Object)(_deviceid))+" ////////////////// "),parent.__c.Colors.Blue);
//BA.debugLineNum = 322;BA.debugLine="DBReqServer = Starter.DBReqServer";
parent._dbreqserver = parent._starter._dbreqserver /*String*/ ;
//BA.debugLineNum = 323;BA.debugLine="reqManager.Initialize(Me, Starter.DBReqServer)";
parent._reqmanager._initialize /*String*/ (ba,parent,parent._starter._dbreqserver /*String*/ );
//BA.debugLineNum = 324;BA.debugLine="Log(\"|\"&Starter.DBReqServer&\"|\")";
parent.__c.LogImpl("25177355","|"+parent._starter._dbreqserver /*String*/ +"|",0);
parent.__c.LogImpl("05177355","|"+parent._starter._dbreqserver /*String*/ +"|",0);
//BA.debugLineNum = 325;BA.debugLine="tgl.Initialize()";
parent._tgl.Initialize(ba);
//BA.debugLineNum = 326;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
@@ -870,7 +870,7 @@ case 11:
//C
this.state = 18;
//BA.debugLineNum = 334;BA.debugLine="LogColor($\"No hay fecha: ${c.GetString(\"CUANTOS\"";
parent.__c.LogImpl("25177365",("No hay fecha: "+parent.__c.SmartStringFormatter("",(Object)(parent._c.GetString("CUANTOS")))+""),parent.__c.Colors.Red);
parent.__c.LogImpl("05177365",("No hay fecha: "+parent.__c.SmartStringFormatter("",(Object)(parent._c.GetString("CUANTOS")))+""),parent.__c.Colors.Red);
//BA.debugLineNum = 335;BA.debugLine="cmd.Initialize";
parent._cmd.Initialize();
//BA.debugLineNum = 336;BA.debugLine="cmd.Name = \"select_fecha\"";
@@ -962,7 +962,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 756;BA.debugLine="Log(\"closreq\")";
parent.__c.LogImpl("25373953","closreq",0);
parent.__c.LogImpl("05373953","closreq",0);
//BA.debugLineNum = 757;BA.debugLine="Sleep(0)";
parent.__c.Sleep(ba,this,(int) (0));
this.state = 14;
@@ -1040,7 +1040,7 @@ case 12:
//C
this.state = 13;
//BA.debugLineNum = 773;BA.debugLine="Log(\"ExitApplication\")";
parent.__c.LogImpl("25373970","ExitApplication",0);
parent.__c.LogImpl("05373970","ExitApplication",0);
//BA.debugLineNum = 774;BA.debugLine="ExitApplication";
parent.__c.ExitApplication();
if (true) break;
@@ -1173,7 +1173,7 @@ this.state = 4;
//BA.debugLineNum = 171;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
parent.__c.File.Copy(parent.__c.File.getDirAssets(),"kmt.db",parent._ruta,"kmt.db");
//BA.debugLineNum = 172;BA.debugLine="LogColor(\"copiamos kmt.db de \"&File.DirAssets &";
parent.__c.LogImpl("25111850","copiamos kmt.db de "+parent.__c.File.getDirAssets()+" a "+parent._ruta,parent.__c.Colors.Green);
parent.__c.LogImpl("05111850","copiamos kmt.db de "+parent.__c.File.getDirAssets()+" a "+parent._ruta,parent.__c.Colors.Green);
if (true) break;
case 4:
@@ -1324,7 +1324,7 @@ parent._rutapreventa = BA.NumberToString(0);
//BA.debugLineNum = 251;BA.debugLine="p_appUpdate.Visible = False";
parent._p_appupdate.setVisible(parent.__c.False);
//BA.debugLineNum = 253;BA.debugLine="LogColor(\"Revisa permisos Phone_State\", Colors.Gr";
parent.__c.LogImpl("25111931","Revisa permisos Phone_State",parent.__c.Colors.Green);
parent.__c.LogImpl("05111931","Revisa permisos Phone_State",parent.__c.Colors.Green);
//BA.debugLineNum = 254;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION);
//BA.debugLineNum = 255;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
@@ -1353,14 +1353,14 @@ case 11:
//C
this.state = 14;
//BA.debugLineNum = 257;BA.debugLine="Log(\"Con permisos de ubicacion\")";
parent.__c.LogImpl("25111935","Con permisos de ubicacion",0);
parent.__c.LogImpl("05111935","Con permisos de ubicacion",0);
if (true) break;
case 13:
//C
this.state = 14;
//BA.debugLineNum = 259;BA.debugLine="Log(\"SIN permisos de ubicacion\")";
parent.__c.LogImpl("25111937","SIN permisos de ubicacion",0);
parent.__c.LogImpl("05111937","SIN permisos de ubicacion",0);
if (true) break;
case 14:
@@ -1395,14 +1395,14 @@ case 17:
//C
this.state = 20;
//BA.debugLineNum = 264;BA.debugLine="Log(\"Con permisos de ubicacion\")";
parent.__c.LogImpl("25111942","Con permisos de ubicacion",0);
parent.__c.LogImpl("05111942","Con permisos de ubicacion",0);
if (true) break;
case 19:
//C
this.state = 20;
//BA.debugLineNum = 266;BA.debugLine="Log(\"SIN permisos de ubicacion\")";
parent.__c.LogImpl("25111944","SIN permisos de ubicacion",0);
parent.__c.LogImpl("05111944","SIN permisos de ubicacion",0);
if (true) break;
case 20:
@@ -1976,7 +1976,7 @@ anywheresoftware.b4a.phone.Phone _pp = null;
int _id = 0;
//BA.debugLineNum = 384;BA.debugLine="Sub Entrar_Click";
//BA.debugLineNum = 385;BA.debugLine="Log(\"|\" & Starter.DBReqServer)";
__c.LogImpl("25242881","|"+_starter._dbreqserver /*String*/ ,0);
__c.LogImpl("05242881","|"+_starter._dbreqserver /*String*/ ,0);
//BA.debugLineNum = 386;BA.debugLine="Dim r As Reflector";
_r = new anywheresoftware.b4a.agraham.reflection.Reflection();
//BA.debugLineNum = 387;BA.debugLine="Dim Api As Int";
@@ -1992,7 +1992,7 @@ if (__c.File.Exists(__c.File.getDirInternal(),"__id")) {
//BA.debugLineNum = 393;BA.debugLine="IMEI = File.ReadString(File.DirInternal, \"__id";
_imei = __c.File.ReadString(__c.File.getDirInternal(),"__id");
//BA.debugLineNum = 394;BA.debugLine="Log(1&\"-\"&IMEI)";
__c.LogImpl("25242890",BA.NumberToString(1)+"-"+_imei,0);
__c.LogImpl("05242890",BA.NumberToString(1)+"-"+_imei,0);
}else {
//BA.debugLineNum = 396;BA.debugLine="Dim id As Int";
_id = 0;
@@ -2003,7 +2003,7 @@ __c.File.WriteString(__c.File.getDirInternal(),"__id",BA.NumberToString(_id));
//BA.debugLineNum = 399;BA.debugLine="IMEI = id";
_imei = BA.NumberToString(_id);
//BA.debugLineNum = 400;BA.debugLine="Log(2&\"-\"&IMEI)";
__c.LogImpl("25242896",BA.NumberToString(2)+"-"+_imei,0);
__c.LogImpl("05242896",BA.NumberToString(2)+"-"+_imei,0);
};
}else {
//BA.debugLineNum = 404;BA.debugLine="IMEI = r.GetStaticField(\"android.os.Build\", \"SE";
@@ -2125,7 +2125,7 @@ _cmd.Name /*String*/ = "select_usuario_MEDI_10_V2";
//BA.debugLineNum = 472;BA.debugLine="cmd.Parameters = Array As Object(user.Text.Tri";
_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_user.getText().trim()),(Object)(_pass.getText().trim())};
//BA.debugLineNum = 473;BA.debugLine="Log(\"Mandamos: \"&user.Text&\"|\"& pass.Text)";
__c.LogImpl("25242969","Mandamos: "+_user.getText()+"|"+_pass.getText(),0);
__c.LogImpl("05242969","Mandamos: "+_user.getText()+"|"+_pass.getText(),0);
//BA.debugLineNum = 474;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario_10\")";
_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("usuario_10"));
};
@@ -2163,7 +2163,7 @@ _clv_pick_ciego._clear();
//BA.debugLineNum = 952;BA.debugLine="q_buscar = \"%\" & et_buspc.Text & \"%\"";
_q_buscar = "%"+_et_buspc.getText()+"%";
//BA.debugLineNum = 953;BA.debugLine="Log(q_buscar)";
__c.LogImpl("26684679",_q_buscar,0);
__c.LogImpl("06684679",_q_buscar,0);
//BA.debugLineNum = 954;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2($\"select CAT";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID , ifnull(PC_CANT,0) AS PC_CANT FROM CAT_GUNAPROD INNER JOIN PICK_CIEGO ON PC_ID_PROD = CAT_GP_ID AND PC_NOM_PROD = CAT_GP_NOMBRE WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{_q_buscar,_q_buscar})));
//BA.debugLineNum = 955;BA.debugLine="If c.RowCount > 0 Then";
@@ -2252,13 +2252,13 @@ public String _i_engrane_click() throws Exception{
_lv_server.Clear();
//BA.debugLineNum = 885;BA.debugLine="ime.HideKeyboard";
_ime.HideKeyboard(ba);
//BA.debugLineNum = 886;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.lat:1781\")";
_lv_server.AddSingleLine(BA.ObjectToCharSequence("http://keymon.lat:1781"));
//BA.debugLineNum = 886;BA.debugLine="lv_server.AddSingleLine(\"Http://192.99.93.204:178";
_lv_server.AddSingleLine(BA.ObjectToCharSequence("Http://192.99.93.204:1781"));
//BA.debugLineNum = 888;BA.debugLine="If user.Text = \"KMTS1\" Then lv_server.AddSingleLi";
if ((_user.getText()).equals("KMTS1")) {
_lv_server.AddSingleLine(BA.ObjectToCharSequence("http://10.0.0.205:1781"));};
//BA.debugLineNum = 890;BA.debugLine="Log($\"|${Starter.DBReqServer}|\"$)";
__c.LogImpl("26094855",("|"+__c.SmartStringFormatter("",(Object)(_starter._dbreqserver /*String*/ ))+"|"),0);
__c.LogImpl("06094855",("|"+__c.SmartStringFormatter("",(Object)(_starter._dbreqserver /*String*/ ))+"|"),0);
//BA.debugLineNum = 892;BA.debugLine="et_server.Text = Starter.DBReqServer";
_et_server.setText(BA.ObjectToCharSequence(_starter._dbreqserver /*String*/ ));
//BA.debugLineNum = 893;BA.debugLine="Subs.panelVisible(p_appUpdate,0,0)";
@@ -2298,7 +2298,7 @@ String _imei_base = "";
String _valido = "";
//BA.debugLineNum = 487;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 488;BA.debugLine="Log(\"JOBDONE MAINPAGE\")";
__c.LogImpl("25308417","JOBDONE MAINPAGE",0);
__c.LogImpl("05308417","JOBDONE MAINPAGE",0);
//BA.debugLineNum = 489;BA.debugLine="If B4XPages.MainPage.reqManager.reqsList.IsInitia";
if (_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*medicomed.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) {
//BA.debugLineNum = 490;BA.debugLine="If B4XPages.MainPage.reqManager.reqsList.IndexOf";
@@ -2306,18 +2306,18 @@ if (_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager
//BA.debugLineNum = 491;BA.debugLine="B4XPages.MainPage.reqManager.reqsList.RemoveAt(";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*medicomed.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*medicomed.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_job._tag /*Object*/ ));
//BA.debugLineNum = 492;BA.debugLine="LogColor($\">>>>>> Quitamos ${Job.tag}\"$, Colors";
__c.LogImpl("25308421",(">>>>>> Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+""),__c.Colors.Blue);
__c.LogImpl("05308421",(">>>>>> Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+""),__c.Colors.Blue);
};
//BA.debugLineNum = 494;BA.debugLine="LogColor(\">>>>>> \" & B4XPages.MainPage.reqManage";
__c.LogImpl("25308423",">>>>>> "+BA.NumberToString(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*medicomed.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize())+" - "+BA.ObjectToString(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*medicomed.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ ),__c.Colors.Blue);
__c.LogImpl("05308423",">>>>>> "+BA.NumberToString(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*medicomed.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize())+" - "+BA.ObjectToString(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*medicomed.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ ),__c.Colors.Blue);
};
//BA.debugLineNum = 496;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) {
//BA.debugLineNum = 497;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Job.Error";
__c.LogImpl("25308426","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Red);
__c.LogImpl("05308426","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Red);
}else {
//BA.debugLineNum = 499;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("25308428","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
__c.LogImpl("05308428","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
//BA.debugLineNum = 500;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) {
//BA.debugLineNum = 501;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J";
@@ -2360,7 +2360,7 @@ final int groupLen24 = group24.getSize()
for (; index24 < groupLen24;index24++){
_k = BA.ObjectToString(group24.Get(index24));
//BA.debugLineNum = 513;BA.debugLine="Log(\"select_fechat: \" & k & \": \" & records(r";
__c.LogImpl("25308442","select_fechat: "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
__c.LogImpl("05308442","select_fechat: "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -2408,9 +2408,9 @@ _records = (Object[])(group43.Get(index43));
//BA.debugLineNum = 596;BA.debugLine="Dim CUENTA As String = records(result.Columns";
_cuenta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUENTA"))))]);
//BA.debugLineNum = 597;BA.debugLine="Log(CUENTA)";
__c.LogImpl("25308526",_cuenta,0);
__c.LogImpl("05308526",_cuenta,0);
//BA.debugLineNum = 598;BA.debugLine="Log(id)";
__c.LogImpl("25308527",_id,0);
__c.LogImpl("05308527",_id,0);
//BA.debugLineNum = 599;BA.debugLine="If CUENTA = 0 Then";
if ((_cuenta).equals(BA.NumberToString(0))) {
}else if((double)(Double.parseDouble(_cuenta))>0) {
@@ -2464,7 +2464,7 @@ _id_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns
//BA.debugLineNum = 649;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu";
_imei_base = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]);
//BA.debugLineNum = 650;BA.debugLine="Log(records(result.Columns.Get(\"CAT_LO_IDTELE";
__c.LogImpl("25308579",BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]),0);
__c.LogImpl("05308579",BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]),0);
}
};
//BA.debugLineNum = 652;BA.debugLine="paso1 = 1";
@@ -2472,7 +2472,7 @@ _paso1 = BA.NumberToString(1);
//BA.debugLineNum = 653;BA.debugLine="ToastMessageShow(name, False)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_name),__c.False);
//BA.debugLineNum = 654;BA.debugLine="Log(\"////////////////////////// \"&name)";
__c.LogImpl("25308583","////////////////////////// "+_name,0);
__c.LogImpl("05308583","////////////////////////// "+_name,0);
};
};
//BA.debugLineNum = 658;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
@@ -2498,7 +2498,7 @@ _imei_base = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns
}
};
//BA.debugLineNum = 666;BA.debugLine="Log(\"|\"&name&\"|\")";
__c.LogImpl("25308595","|"+_name+"|",0);
__c.LogImpl("05308595","|"+_name+"|",0);
//BA.debugLineNum = 667;BA.debugLine="paso1 = 1";
_paso1 = BA.NumberToString(1);
//BA.debugLineNum = 668;BA.debugLine="IMEI_BASE = \"\"";
@@ -2510,7 +2510,7 @@ _imei = "";
//BA.debugLineNum = 698;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) {
//BA.debugLineNum = 699;BA.debugLine="Log(\"JOBDONE PRINCIPAL MAINPAGE\")";
__c.LogImpl("25308628","JOBDONE PRINCIPAL MAINPAGE",0);
__c.LogImpl("05308628","JOBDONE PRINCIPAL MAINPAGE",0);
//BA.debugLineNum = 700;BA.debugLine="For Each records() As Object In result.Rows";
{
final anywheresoftware.b4a.BA.IterableList group93 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
@@ -2524,7 +2524,7 @@ _valido = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*a
//BA.debugLineNum = 702;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) {
//BA.debugLineNum = 703;BA.debugLine="Log(VALIDO)";
__c.LogImpl("25308632",_valido,0);
__c.LogImpl("05308632",_valido,0);
};
}
};
@@ -2533,7 +2533,7 @@ __c.LogImpl("25308632",_valido,0);
_job._release /*String*/ ();
};
//BA.debugLineNum = 710;BA.debugLine="Log($\"Paso1 = ${paso1} - Name: ${name} - IMEI: ${";
__c.LogImpl("25308639",("Paso1 = "+__c.SmartStringFormatter("",(Object)(_paso1))+" - Name: "+__c.SmartStringFormatter("",(Object)(_name))+" - IMEI: "+__c.SmartStringFormatter("",(Object)(_imei))+" - IMEI_BASE: "+__c.SmartStringFormatter("",(Object)(_imei_base))+""),0);
__c.LogImpl("05308639",("Paso1 = "+__c.SmartStringFormatter("",(Object)(_paso1))+" - Name: "+__c.SmartStringFormatter("",(Object)(_name))+" - IMEI: "+__c.SmartStringFormatter("",(Object)(_imei))+" - IMEI_BASE: "+__c.SmartStringFormatter("",(Object)(_imei_base))+""),0);
//BA.debugLineNum = 711;BA.debugLine="If paso1 = 1 Then";
if ((_paso1).equals(BA.NumberToString(1))) {
//BA.debugLineNum = 712;BA.debugLine="If IMEI = \"\" Then";

View File

@@ -31,10 +31,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -19,10 +19,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xcollections _b4xcollections = null;

View File

@@ -29,10 +29,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -42,10 +42,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -199,7 +199,7 @@ _idtolower = _id.toLowerCase();
//BA.debugLineNum = 143;BA.debugLine="If IdToB4XPage.ContainsKey(IdToLower) Then";
if (_idtob4xpage._containskey /*boolean*/ ((Object)(_idtolower))) {
//BA.debugLineNum = 144;BA.debugLine="Log($\"Page with this id already exists: ${IdToLo";
__c.LogImpl("928114947",("Page with this id already exists: "+__c.SmartStringFormatter("",(Object)(_idtolower))+"!"),0);
__c.LogImpl("937617667",("Page with this id already exists: "+__c.SmartStringFormatter("",(Object)(_idtolower))+"!"),0);
//BA.debugLineNum = 145;BA.debugLine="Return";
if (true) return "";
};
@@ -314,7 +314,7 @@ _screenorientation = (int)(BA.ObjectToNumber(_act.GetField("screenOrientation"))
//BA.debugLineNum = 116;BA.debugLine="If screenOrientation = -1 Then";
if (_screenorientation==-1) {
//BA.debugLineNum = 117;BA.debugLine="LogColor(\"#SupportedOrientations attribute mus";
__c.LogImpl("927983893","#SupportedOrientations attribute must be set to landscape or portrait.",_xui.Color_Red);
__c.LogImpl("937486613","#SupportedOrientations attribute must be set to landscape or portrait.",_xui.Color_Red);
};
};
}
@@ -371,12 +371,12 @@ if (true) return "";};
//BA.debugLineNum = 212;BA.debugLine="If xui.IsB4i And GetTopPage <> pi Then";
if (_xui.getIsB4i() && (_gettoppage()).equals(_pi) == false) {
//BA.debugLineNum = 213;BA.debugLine="Log(\"Only top page can be closed\")";
__c.LogImpl("928377092","Only top page can be closed",0);
__c.LogImpl("937879812","Only top page can be closed",0);
//BA.debugLineNum = 214;BA.debugLine="Return";
if (true) return "";
}else if(_xui.getIsB4i() && _mstackofpageids._getsize /*int*/ ()==1) {
//BA.debugLineNum = 216;BA.debugLine="Log(\"First page cannot be closed\")";
__c.LogImpl("928377095","First page cannot be closed",0);
__c.LogImpl("937879815","First page cannot be closed",0);
//BA.debugLineNum = 217;BA.debugLine="Return";
if (true) return "";
};
@@ -591,9 +591,9 @@ _pi = (medicomed.keymon.com.mx.b4xpagesmanager._b4xpageinfo)(_idtob4xpage._get /
//BA.debugLineNum = 400;BA.debugLine="If pi = Null Then";
if (_pi== null) {
//BA.debugLineNum = 401;BA.debugLine="Log(\"Error: page id not found: \" & id)";
__c.LogImpl("929032451","Error: page id not found: "+_id,0);
__c.LogImpl("938535171","Error: page id not found: "+_id,0);
//BA.debugLineNum = 402;BA.debugLine="Log(\"Ids: \" & IdToB4XPage.Keys) 'ignore";
__c.LogImpl("929032452","Ids: "+BA.ObjectToString(_idtob4xpage._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ()),0);
__c.LogImpl("938535172","Ids: "+BA.ObjectToString(_idtob4xpage._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ()),0);
};
//BA.debugLineNum = 404;BA.debugLine="Return pi";
if (true) return _pi;
@@ -728,7 +728,7 @@ _addpageandcreate("MainPage",(Object)(_mainpage));
//BA.debugLineNum = 85;BA.debugLine="If LogEvents = False Then";
if (_logevents==__c.False) {
//BA.debugLineNum = 86;BA.debugLine="Log(\"Call B4XPages.GetManager.LogEvents = True t";
__c.LogImpl("927918363","Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.",0);
__c.LogImpl("937421083","Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.",0);
};
//BA.debugLineNum = 88;BA.debugLine="If NonMainPageWasAdded Then";
if (_nonmainpagewasadded) {
@@ -749,7 +749,7 @@ if (_logevents) {
//BA.debugLineNum = 642;BA.debugLine="Dim msg As String = $\"*** ${pi.Id}: ${ev} ${Stac";
_msg = ("*** "+__c.SmartStringFormatter("",(Object)(_pi.Id /*String*/ ))+": "+__c.SmartStringFormatter("",(Object)(_ev))+" "+__c.SmartStringFormatter("",(Object)(_stackstring))+"");
//BA.debugLineNum = 643;BA.debugLine="Log(msg)";
__c.LogImpl("930146563",_msg,0);
__c.LogImpl("939649283",_msg,0);
};
//BA.debugLineNum = 645;BA.debugLine="End Sub";
return "";
@@ -801,7 +801,7 @@ __c.CallSubDelayed3(ba,_targetpage.B4XPage /*Object*/ ,_subname,_params[(int) (0
break; }
default: {
//BA.debugLineNum = 562;BA.debugLine="Log(\"Too many parameters\")";
__c.LogImpl("929622286","Too many parameters",0);
__c.LogImpl("939125006","Too many parameters",0);
break; }
}
;
@@ -842,7 +842,7 @@ if (true) return __c.CallSubNew3(ba,_targetpage.B4XPage /*Object*/ ,_subname,_pa
break; }
default: {
//BA.debugLineNum = 580;BA.debugLine="Log(\"Too many parameters\")";
__c.LogImpl("929687822","Too many parameters",0);
__c.LogImpl("939190542","Too many parameters",0);
break; }
}
;

View File

@@ -55,10 +55,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -49,10 +49,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -47,10 +47,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -391,7 +391,7 @@ _count = (int) (_count+1);
}
};
//BA.debugLineNum = 227;BA.debugLine="Log(\"Index time: \" & (DateTime.Now - startTime) &";
__c.LogImpl("948103455","Index time: "+BA.NumberToString((__c.DateTime.getNow()-_starttime))+" ms ("+BA.NumberToString(_items.getSize())+" Items)",0);
__c.LogImpl("957606175","Index time: "+BA.NumberToString((__c.DateTime.getNow()-_starttime))+" ms ("+BA.NumberToString(_items.getSize())+" Items)",0);
//BA.debugLineNum = 228;BA.debugLine="AllItems = Items";
_allitems = _items;
//BA.debugLineNum = 229;BA.debugLine="Return Array(prefixList, substringList, AllItems)";

View File

@@ -50,10 +50,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -30,10 +30,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -41,10 +41,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -47,10 +47,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -35,10 +35,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -37,10 +37,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -43,10 +43,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -67,7 +67,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 204;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 205;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("261734918",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
__c.LogImpl("014942214",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
};
}
catch (Exception e9) {
@@ -75,14 +75,14 @@ __c.LogImpl("261734918",("Columna \""+__c.SmartStringFormatter("",(Object)(_colu
try { //BA.debugLineNum = 210;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 211;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("261734924",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
__c.LogImpl("014942220",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
}
catch (Exception e13) {
ba.setLastException(e13); //BA.debugLineNum = 213;BA.debugLine="Log(LastException)";
__c.LogImpl("261734926",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("014942222",BA.ObjectToString(__c.LastException(ba)),0);
};
//BA.debugLineNum = 215;BA.debugLine="Log(2)";
__c.LogImpl("261734928",BA.NumberToString(2),0);
__c.LogImpl("014942224",BA.NumberToString(2),0);
};
//BA.debugLineNum = 217;BA.debugLine="End Sub";
return "";
@@ -97,7 +97,7 @@ _inivenno = __c.False;
if (_dentrodegeocerca) {
_precision = (int) (1);};
//BA.debugLineNum = 135;BA.debugLine="LogColor($\">>>>>>>>>>>> EN VENTA : ${enVenta}";
__c.LogImpl("261472775",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
__c.LogImpl("014680071",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
//BA.debugLineNum = 136;BA.debugLine="motivoNoVenta = \"\"";
_motivonoventa = "";
//BA.debugLineNum = 137;BA.debugLine="motivoNoVisita = \"\"";
@@ -111,7 +111,7 @@ _mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.
//BA.debugLineNum = 141;BA.debugLine="enVenta = False";
_enventa = __c.False;
//BA.debugLineNum = 142;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Colors";
__c.LogImpl("261472782",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
__c.LogImpl("014680078",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
//BA.debugLineNum = 143;BA.debugLine="iniciamosVenta";
_iniciamosventa();
//BA.debugLineNum = 144;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE PEDIDO SET PE";
@@ -138,7 +138,7 @@ _mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.
//BA.debugLineNum = 156;BA.debugLine="enVenta = True";
_enventa = __c.True;
//BA.debugLineNum = 157;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color";
__c.LogImpl("261472797",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
__c.LogImpl("014680093",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
}else if(_contadoriniciarventa==1 && _inivenno==__c.False && (_motivonoventa).equals("NO VENTA")) {
//BA.debugLineNum = 160;BA.debugLine="IniVenNO = True";
_inivenno = __c.True;
@@ -147,7 +147,7 @@ _mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.
//BA.debugLineNum = 162;BA.debugLine="enVenta = True";
_enventa = __c.True;
//BA.debugLineNum = 163;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color";
__c.LogImpl("261472803",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
__c.LogImpl("014680099",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
}else if(_contadoriniciarventa>1) {
//BA.debugLineNum = 165;BA.debugLine="p_transparenteInicioFin2.Visible = False";
_p_transparenteiniciofin2.setVisible(__c.False);
@@ -156,7 +156,7 @@ _p_transparenteiniciofin2.setVisible(__c.False);
//BA.debugLineNum = 168;BA.debugLine="p_transparenteInicioFin2.Visible = False";
_p_transparenteiniciofin2.setVisible(__c.False);
//BA.debugLineNum = 169;BA.debugLine="LogColor($\">>>>>>>>>>>> EN VENTA : ${enVenta}";
__c.LogImpl("261472809",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
__c.LogImpl("014680105",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
//BA.debugLineNum = 170;BA.debugLine="End Sub";
return "";
}
@@ -177,7 +177,7 @@ return "";
public String _cargamospanel() throws Exception{
//BA.debugLineNum = 173;BA.debugLine="private Sub cargamosPanel";
//BA.debugLineNum = 174;BA.debugLine="Log(p_transparenteInicioFin2.IsInitialized)";
__c.LogImpl("261538305",BA.ObjectToString(_p_transparenteiniciofin2.IsInitialized()),0);
__c.LogImpl("014745601",BA.ObjectToString(_p_transparenteiniciofin2.IsInitialized()),0);
//BA.debugLineNum = 176;BA.debugLine="If Not(p_transparenteInicioFin2.IsInitialized) Th";
if (__c.Not(_p_transparenteiniciofin2.IsInitialized())) {
//BA.debugLineNum = 178;BA.debugLine="Root2.LoadLayout(\"inicioFinVenta\")";
@@ -242,7 +242,7 @@ return "";
public String _iniciofin() throws Exception{
//BA.debugLineNum = 112;BA.debugLine="Sub inicioFin";
//BA.debugLineNum = 113;BA.debugLine="LogColor($\">>>>>>>>>>>> XX EN VENTA : ${enVenta";
__c.LogImpl("261407233",(">>>>>>>>>>>> XX EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
__c.LogImpl("014614529",(">>>>>>>>>>>> XX EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
//BA.debugLineNum = 115;BA.debugLine="If enVenta = False Then";
if (_enventa==__c.False) {
//BA.debugLineNum = 116;BA.debugLine="p_transparenteInicioFin2.BringToFront";
@@ -283,18 +283,18 @@ public String _jobdone(medicomed.keymon.com.mx.httpjob _job) throws Exception{
medicomed.keymon.com.mx.dbrequestmanager._dbresult _result = null;
//BA.debugLineNum = 224;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 225;BA.debugLine="Log(\"JOBDONE BITACORA\")";
__c.LogImpl("261865985","JOBDONE BITACORA",0);
__c.LogImpl("015073281","JOBDONE BITACORA",0);
//BA.debugLineNum = 226;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) {
//BA.debugLineNum = 227;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo";
_result = _reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job);
//BA.debugLineNum = 228;BA.debugLine="Log($\"Tag: ${RESULT.tag}, success=${Job.Success}";
__c.LogImpl("261865988",("Tag: "+__c.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+__c.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0);
__c.LogImpl("015073284",("Tag: "+__c.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+__c.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0);
};
//BA.debugLineNum = 231;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) {
//BA.debugLineNum = 233;BA.debugLine="LogColor(\"Error: \" & Job.ErrorMessage, Colors.re";
__c.LogImpl("261865993","Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
__c.LogImpl("015073289","Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
}else {
};
//BA.debugLineNum = 237;BA.debugLine="End Sub";
@@ -307,7 +307,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _e = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
//BA.debugLineNum = 37;BA.debugLine="Sub mandaBitacora(fechab As String, usuariob As St";
//BA.debugLineNum = 38;BA.debugLine="Log(motivoNoVisitab)";
__c.LogImpl("261210625",_motivonovisitab,0);
__c.LogImpl("014417921",_motivonovisitab,0);
//BA.debugLineNum = 40;BA.debugLine="Private cmd As DBCommand";
_cmd = new medicomed.keymon.com.mx.dbrequestmanager._dbcommand();
//BA.debugLineNum = 41;BA.debugLine="cmd.Initialize";
@@ -350,7 +350,7 @@ if (_e.getRowCount()>0) {
//BA.debugLineNum = 59;BA.debugLine="e.Position = 0";
_e.setPosition((int) (0));
//BA.debugLineNum = 60;BA.debugLine="Log(\"ACTUALIZA BITACORA\")";
__c.LogImpl("261210647","ACTUALIZA BITACORA",0);
__c.LogImpl("014417943","ACTUALIZA BITACORA",0);
//BA.debugLineNum = 61;BA.debugLine="If eventob = \"Termina Venta\" Then";
if ((_eventob).equals("Termina Venta")) {
//BA.debugLineNum = 62;BA.debugLine="db.ExecNonQuery($\"update BITACORAGPS set finb";

View File

@@ -178,10 +178,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -426,13 +426,13 @@ _h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 2462;BA.debugLine="h.Position = 0";
_h.setPosition((int) (0));
//BA.debugLineNum = 2463;BA.debugLine="Log(h.GetString(\"CUENTA\"))";
__c.LogImpl("215925252",_h.GetString("CUENTA"),0);
__c.LogImpl("018415620",_h.GetString("CUENTA"),0);
//BA.debugLineNum = 2464;BA.debugLine="j = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT a_a";
_j = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono AS CUANTOS FROM ABONOS WHERE a_cliente = ?",new String[]{_h.GetString("CUENTA")})));
//BA.debugLineNum = 2465;BA.debugLine="j.position = 0";
_j.setPosition((int) (0));
//BA.debugLineNum = 2466;BA.debugLine="Log(j.RowCount)";
__c.LogImpl("215925255",BA.NumberToString(_j.getRowCount()),0);
__c.LogImpl("018415623",BA.NumberToString(_j.getRowCount()),0);
//BA.debugLineNum = 2467;BA.debugLine="If j.RowCount = 0 Then";
if (_j.getRowCount()==0) {
//BA.debugLineNum = 2469;BA.debugLine="p_abono.Visible = True";
@@ -458,13 +458,13 @@ _d.setPosition(_i);
//BA.debugLineNum = 2478;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA";
_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_d.GetString("NOTA"),"$ "+_d.GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i));
//BA.debugLineNum = 2479;BA.debugLine="Log(d.GetString(\"NOTA\"))";
__c.LogImpl("215925268",_d.GetString("NOTA"),0);
__c.LogImpl("018415636",_d.GetString("NOTA"),0);
//BA.debugLineNum = 2480;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))";
__c.LogImpl("215925269",_d.GetString("SALDO_PENDIENTE"),0);
__c.LogImpl("018415637",_d.GetString("SALDO_PENDIENTE"),0);
//BA.debugLineNum = 2481;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")";
_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(_d.GetString("SALDO_PENDIENTE"))));
//BA.debugLineNum = 2482;BA.debugLine="Log(total)";
__c.LogImpl("215925271",_total,0);
__c.LogImpl("018415639",_total,0);
}
};
//BA.debugLineNum = 2484;BA.debugLine="l_montoabonostotal.Text = total";
@@ -555,7 +555,7 @@ if ((_imprimirsolo).equals(BA.NumberToString(1)) == false) {
_imprimirsolo = BA.NumberToString(0);
};
//BA.debugLineNum = 1190;BA.debugLine="Log(imprimirsolo)";
__c.LogImpl("214286852",_imprimirsolo,0);
__c.LogImpl("016777220",_imprimirsolo,0);
//BA.debugLineNum = 1191;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT * FROM PEDIDO WHERE PE_FOLIO = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)",new String[]{"PREVENTA_48"})));
//BA.debugLineNum = 1192;BA.debugLine="If c.RowCount > 0 Then";
@@ -662,7 +662,7 @@ _b_ventaabordo.setVisible(__c.False);
//BA.debugLineNum = 273;BA.debugLine="If Subs.hayPedido Then 'Si hay pedido, deshabilit";
if (_subs._haypedido /*boolean*/ (ba)) {
//BA.debugLineNum = 274;BA.debugLine="Log(\">>>>> HAY PEDIDO\")";
__c.LogImpl("212910613",">>>>> HAY PEDIDO",0);
__c.LogImpl("015400981",">>>>> HAY PEDIDO",0);
//BA.debugLineNum = 275;BA.debugLine="Tels.Enabled = False";
_tels.setEnabled(__c.False);
}else {
@@ -909,14 +909,14 @@ _printer1._disconnect /*String*/ ();
//BA.debugLineNum = 442;BA.debugLine="Printer1.Connect";
_printer1._connect /*boolean*/ ();
//BA.debugLineNum = 443;BA.debugLine="Log(\"2\")";
__c.LogImpl("212910782","2",0);
__c.LogImpl("015401150","2",0);
};
//BA.debugLineNum = 446;BA.debugLine="pre_act = Subs.traeTotalClientepreventaparacredit";
_pre_act = (float) (_subs._traetotalclientepreventaparacredito /*double*/ (ba,_la_cuenta.getText()));
//BA.debugLineNum = 447;BA.debugLine="Log(la_cuenta.Text)";
__c.LogImpl("212910786",_la_cuenta.getText(),0);
__c.LogImpl("015401154",_la_cuenta.getText(),0);
//BA.debugLineNum = 448;BA.debugLine="LogColor(Subs.traeTotalClientepreventaparacredito";
__c.LogImpl("212910787",BA.NumberToString(_subs._traetotalclientepreventaparacredito /*double*/ (ba,_la_cuenta.getText())),__c.Colors.Blue);
__c.LogImpl("015401155",BA.NumberToString(_subs._traetotalclientepreventaparacredito /*double*/ (ba,_la_cuenta.getText())),__c.Colors.Blue);
//BA.debugLineNum = 485;BA.debugLine="If la_cuenta.Text = \"0\" Then";
if ((_la_cuenta.getText()).equals("0")) {
//BA.debugLineNum = 486;BA.debugLine="gest.Text = \"Abordo\"";
@@ -954,7 +954,7 @@ _b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*Stri
_gps_locationchanged(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation());
};
//BA.debugLineNum = 514;BA.debugLine="Log(imprimirsolo)";
__c.LogImpl("212910853",_imprimirsolo,0);
__c.LogImpl("015401221",_imprimirsolo,0);
//BA.debugLineNum = 515;BA.debugLine="End Sub";
return "";
}
@@ -1099,7 +1099,7 @@ case 23:
//C
this.state = 24;
//BA.debugLineNum = 640;BA.debugLine="LogColor(\"Hay Venta\", Colors.Red)";
parent.__c.LogImpl("213238294","Hay Venta",parent.__c.Colors.Red);
parent.__c.LogImpl("015728662","Hay Venta",parent.__c.Colors.Red);
//BA.debugLineNum = 641;BA.debugLine="Private resultado1 As Int = Msgbox2($\"Va sali";
_resultado1 = parent.__c.Msgbox2(BA.ObjectToCharSequence(("Va salir sin haber guardado la venta, si continua, la venta se BORRARA."+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"¿Esta seguro que desea continuar?")),BA.ObjectToCharSequence("SE VA A BORRAR LA VENTA"),"Borrar Venta","Guardar Venta","",(android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png").getObject()),ba);
//BA.debugLineNum = 642;BA.debugLine="If resultado1 = DialogResponse.POSITIVE Then";
@@ -1118,7 +1118,7 @@ case 26:
//C
this.state = 29;
//BA.debugLineNum = 643;BA.debugLine="Log(\"Borrra venta\")";
parent.__c.LogImpl("213238297","Borrra venta",0);
parent.__c.LogImpl("015728665","Borrra venta",0);
//BA.debugLineNum = 644;BA.debugLine="Subs.borraPedidoClienteActual";
parent._subs._borrapedidoclienteactual /*String*/ (ba);
//BA.debugLineNum = 645;BA.debugLine="ToastMessageShow(\"Venta Borrada\", False)";
@@ -1131,7 +1131,7 @@ case 28:
//C
this.state = 29;
//BA.debugLineNum = 649;BA.debugLine="Log(\"Pedido guardado\")";
parent.__c.LogImpl("213238303","Pedido guardado",0);
parent.__c.LogImpl("015728671","Pedido guardado",0);
//BA.debugLineNum = 650;BA.debugLine="Guardar_Click";
parent._guardar_click();
//BA.debugLineNum = 651;BA.debugLine="ToastMessageShow(\"Venta Guardada\", False)";
@@ -1366,7 +1366,7 @@ parent._s.Close();
//BA.debugLineNum = 222;BA.debugLine="bitacora.Initialize(\"bitacora\", \"bitacora\", Root,";
parent._bitacora._initialize /*Object*/ (ba,(Object)("bitacora"),"bitacora",parent._root,parent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ ,parent._reqmanager);
//BA.debugLineNum = 223;BA.debugLine="LogColor(\"---------->Iniciamos Permisos\",Colors.B";
parent.__c.LogImpl("212845101","---------->Iniciamos Permisos",parent.__c.Colors.Blue);
parent.__c.LogImpl("015335469","---------->Iniciamos Permisos",parent.__c.Colors.Blue);
//BA.debugLineNum = 224;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")";
parent._btadmin.Initialize(ba,"BlueTeeth");
//BA.debugLineNum = 226;BA.debugLine="cmp20.Initialize(\"Printer\")";
@@ -1789,7 +1789,7 @@ return null;
public String _cuest_preguntacontestada(anywheresoftware.b4a.objects.collections.Map _m) throws Exception{
//BA.debugLineNum = 2511;BA.debugLine="Sub cuest_preguntaContestada(m As Map)";
//BA.debugLineNum = 2513;BA.debugLine="Log(m)";
__c.LogImpl("216056322",BA.ObjectToString(_m),0);
__c.LogImpl("018546690",BA.ObjectToString(_m),0);
//BA.debugLineNum = 2516;BA.debugLine="m.Get(\"panel\").As(Panel).RemoveView 'Quitamos le";
((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_m.Get((Object)("panel"))))).RemoveView();
//BA.debugLineNum = 2517;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
@@ -1806,7 +1806,7 @@ case 0: {
//BA.debugLineNum = 2523;BA.debugLine="If m.Get(\"respuesta\") = \"No, está enrejado o no";
if ((_m.Get((Object)("respuesta"))).equals((Object)("No, está enrejado o no se tiene acceso"))) {
//BA.debugLineNum = 2524;BA.debugLine="Log(\"Tiendajon / Ventana / Kiosko\")";
__c.LogImpl("216056333","Tiendajon / Ventana / Kiosko",0);
__c.LogImpl("018546701","Tiendajon / Ventana / Kiosko",0);
//BA.debugLineNum = 2525;BA.debugLine="ToastMessageShow(\"Tiendajon / Ventana / Kiosko";
__c.ToastMessageShow(BA.ObjectToCharSequence("Tiendajon / Ventana / Kiosko"),__c.False);
//BA.debugLineNum = 2526;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
@@ -1820,7 +1820,7 @@ case 1: {
//BA.debugLineNum = 2531;BA.debugLine="If m.Get(\"respuesta\") = \"Si tiene al menos 2 pa";
if ((_m.Get((Object)("respuesta"))).equals((Object)("Si tiene al menos 2 pasillos con acceso directo a la mercancía"))) {
//BA.debugLineNum = 2532;BA.debugLine="Log(\"Mini-Super\")";
__c.LogImpl("216056341","Mini-Super",0);
__c.LogImpl("018546709","Mini-Super",0);
//BA.debugLineNum = 2533;BA.debugLine="ToastMessageShow(\"Mini-Super\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Mini-Super"),__c.False);
//BA.debugLineNum = 2534;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
@@ -1832,11 +1832,11 @@ _cuest._agregapregunta /*String*/ ("3","¿Cuenta con enfriador horizontal para v
break; }
case 2: {
//BA.debugLineNum = 2539;BA.debugLine="Log(\"|\"&m.Get(\"respuesta\")&\"|\")";
__c.LogImpl("216056348","|"+BA.ObjectToString(_m.Get((Object)("respuesta")))+"|",0);
__c.LogImpl("018546716","|"+BA.ObjectToString(_m.Get((Object)("respuesta")))+"|",0);
//BA.debugLineNum = 2540;BA.debugLine="If m.Get(\"respuesta\") = \"Si\" Then";
if ((_m.Get((Object)("respuesta"))).equals((Object)("Si"))) {
//BA.debugLineNum = 2541;BA.debugLine="Log(\"Miscelanea\")";
__c.LogImpl("216056350","Miscelanea",0);
__c.LogImpl("018546718","Miscelanea",0);
//BA.debugLineNum = 2542;BA.debugLine="ToastMessageShow(\"Miscelanea\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Miscelanea"),__c.False);
//BA.debugLineNum = 2543;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
@@ -1850,7 +1850,7 @@ case 3: {
//BA.debugLineNum = 2548;BA.debugLine="If m.Get(\"respuesta\") = \"No\" Then";
if ((_m.Get((Object)("respuesta"))).equals((Object)("No"))) {
//BA.debugLineNum = 2549;BA.debugLine="Log(\"Abarrotera\")";
__c.LogImpl("216056358","Abarrotera",0);
__c.LogImpl("018546726","Abarrotera",0);
//BA.debugLineNum = 2550;BA.debugLine="ToastMessageShow(\"Abarrotera\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Abarrotera"),__c.False);
//BA.debugLineNum = 2551;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
@@ -1862,7 +1862,7 @@ _cuest._agregapregunta /*String*/ ("5","¿Cual venta especializada?",anywheresof
break; }
case 4: {
//BA.debugLineNum = 2556;BA.debugLine="Log(m.Get(\"respuesta\"))";
__c.LogImpl("216056365",BA.ObjectToString(_m.Get((Object)("respuesta"))),0);
__c.LogImpl("018546733",BA.ObjectToString(_m.Get((Object)("respuesta"))),0);
//BA.debugLineNum = 2557;BA.debugLine="ToastMessageShow(m.Get(\"respuesta\"), False)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_m.Get((Object)("respuesta"))),__c.False);
//BA.debugLineNum = 2562;BA.debugLine="cuest.agregaPregunta(\"6\", \"¿Cuenta con caja de";
@@ -1870,15 +1870,15 @@ _cuest._agregapregunta /*String*/ ("6","¿Cuenta con caja de salida para cobro c
break; }
case 5: {
//BA.debugLineNum = 2565;BA.debugLine="Log(m.Get(\"respuesta\"))";
__c.LogImpl("216056374",BA.ObjectToString(_m.Get((Object)("respuesta"))),0);
__c.LogImpl("018546742",BA.ObjectToString(_m.Get((Object)("respuesta"))),0);
//BA.debugLineNum = 2566;BA.debugLine="ToastMessageShow(m.Get(\"respuesta\"), False)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_m.Get((Object)("respuesta"))),__c.False);
//BA.debugLineNum = 2567;BA.debugLine="Log(\">>>>>>>>>> \" & cuest.encuestaIniciada)";
__c.LogImpl("216056376",">>>>>>>>>> "+BA.ObjectToString(_cuest._encuestainiciada /*boolean*/ ),0);
__c.LogImpl("018546744",">>>>>>>>>> "+BA.ObjectToString(_cuest._encuestainiciada /*boolean*/ ),0);
//BA.debugLineNum = 2568;BA.debugLine="cuest.encuestaIniciada = False";
_cuest._encuestainiciada /*boolean*/ = __c.False;
//BA.debugLineNum = 2569;BA.debugLine="Log(\">>>>>>>>>> \" & cuest.encuestaIniciada)";
__c.LogImpl("216056378",">>>>>>>>>> "+BA.ObjectToString(_cuest._encuestainiciada /*boolean*/ ),0);
__c.LogImpl("018546746",">>>>>>>>>> "+BA.ObjectToString(_cuest._encuestainiciada /*boolean*/ ),0);
//BA.debugLineNum = 2572;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
break; }
@@ -1899,7 +1899,7 @@ public String _gest_click() throws Exception{
//BA.debugLineNum = 572;BA.debugLine="Starter.BanderaActualizar = \"1\"";
_starter._banderaactualizar /*String*/ = "1";
//BA.debugLineNum = 573;BA.debugLine="Log(\"---------> Estoy en boton 24HRS:\"&Starter.Ba";
__c.LogImpl("213107202","---------> Estoy en boton 24HRS:"+_starter._banderaactualizar /*String*/ ,0);
__c.LogImpl("015597570","---------> Estoy en boton 24HRS:"+_starter._banderaactualizar /*String*/ ,0);
//BA.debugLineNum = 574;BA.debugLine="If la_cuenta.Text = \"0\" Then";
if ((_la_cuenta.getText()).equals("0")) {
//BA.debugLineNum = 575;BA.debugLine="B4XPages.MainPage.tipo_venta = \"ABORDO\"";
@@ -1927,7 +1927,7 @@ _b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*Stri
//BA.debugLineNum = 521;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude());
//BA.debugLineNum = 522;BA.debugLine="Log(\"Coords set to: \" & B4XPages.MainPage.lat_gp";
__c.LogImpl("212976133","Coords set to: "+_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ +" and "+_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,0);
__c.LogImpl("015466501","Coords set to: "+_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ +" and "+_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,0);
};
//BA.debugLineNum = 525;BA.debugLine="If m_lat.Length < 5 Then";
if (_m_lat.length()<5) {
@@ -1938,7 +1938,7 @@ _l2 = new anywheresoftware.b4a.gps.LocationWrapper();
//BA.debugLineNum = 531;BA.debugLine="l1.Initialize2(B4XPages.MainPage.lat_gps, B4XPage";
_l1.Initialize2(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ );
//BA.debugLineNum = 532;BA.debugLine="Log($\"Coordenadas de la tienda - lat:${m_lat}, lo";
__c.LogImpl("212976143",("Coordenadas de la tienda - lat:"+__c.SmartStringFormatter("",(Object)(_m_lat))+", lon:"+__c.SmartStringFormatter("",(Object)(_m_lon))+""),0);
__c.LogImpl("015466511",("Coordenadas de la tienda - lat:"+__c.SmartStringFormatter("",(Object)(_m_lat))+", lon:"+__c.SmartStringFormatter("",(Object)(_m_lon))+""),0);
//BA.debugLineNum = 533;BA.debugLine="l2.Initialize2(m_lat, m_lon)";
_l2.Initialize2(_m_lat,_m_lon);
//BA.debugLineNum = 535;BA.debugLine="BT_QR.Enabled = True";
@@ -1991,9 +1991,9 @@ public String _guadaventa2() throws Exception{
int _cbfactura = 0;
//BA.debugLineNum = 976;BA.debugLine="Sub GUADAVENTA2";
//BA.debugLineNum = 977;BA.debugLine="Log(B4XPages.MainPage.recarga)";
__c.LogImpl("213697025",_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/ ,0);
__c.LogImpl("016187393",_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/ ,0);
//BA.debugLineNum = 978;BA.debugLine="Log(\"----> Entramos a guardara venta 2 <-------\")";
__c.LogImpl("213697026","----> Entramos a guardara venta 2 <-------",0);
__c.LogImpl("016187394","----> Entramos a guardara venta 2 <-------",0);
//BA.debugLineNum = 979;BA.debugLine="If B4XPages.MainPage.recarga = \"0\" Then";
if ((_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._recarga /*String*/ ).equals("0")) {
//BA.debugLineNum = 980;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
@@ -2077,7 +2077,7 @@ _subs._actualizatet /*String*/ (ba,_la_cuenta.getText());
//BA.debugLineNum = 1029;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
//BA.debugLineNum = 1031;BA.debugLine="Log(\"para mostrar que aqui me quedo \")";
__c.LogImpl("213697079","para mostrar que aqui me quedo ",0);
__c.LogImpl("016187447","para mostrar que aqui me quedo ",0);
//BA.debugLineNum = 1034;BA.debugLine="B4XPages.MainPage.productos.reiniciarlistaProds";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._productos /*medicomed.keymon.com.mx.c_productos*/ ._reiniciarlistaprods /*boolean*/ = __c.True;
//BA.debugLineNum = 1035;BA.debugLine="B4XPages.MainPage.productos.prodsMap.Initialize";
@@ -2200,48 +2200,48 @@ _c.setPosition((int) (0));
//BA.debugLineNum = 696;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) {
//BA.debugLineNum = 697;BA.debugLine="Log(\"1\")";
__c.LogImpl("213434893","1",0);
__c.LogImpl("015925261","1",0);
//BA.debugLineNum = 698;BA.debugLine="If la_cuenta.Text <> 0 Then";
if ((_la_cuenta.getText()).equals(BA.NumberToString(0)) == false) {
//BA.debugLineNum = 699;BA.debugLine="Log(\"2\")";
__c.LogImpl("213434895","2",0);
__c.LogImpl("015925263","2",0);
//BA.debugLineNum = 700;BA.debugLine="Credi = B4XPages.MainPage.skmt.ExecQuery(\"Sele";
_credi = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO FROM kmt_info Where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) and CAT_CL_CODIGO NOT IN (SELECT CLIENTE FROM ABONOSP) UNION Select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO FROM kmt_info Where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) and CAT_CL_CODIGO NOT IN (SELECT CLIENTE FROM ABONOSP)")));
//BA.debugLineNum = 702;BA.debugLine="If Credi.RowCount > 0 Then";
if (_credi.getRowCount()>0) {
//BA.debugLineNum = 703;BA.debugLine="Log(\"3\")";
__c.LogImpl("213434899","3",0);
__c.LogImpl("015925267","3",0);
//BA.debugLineNum = 704;BA.debugLine="Credi.Position = 0";
_credi.setPosition((int) (0));
//BA.debugLineNum = 705;BA.debugLine="If Credi.GetString(\"CAT_CL_BCREDITO\") = \"1\" T";
if ((_credi.GetString("CAT_CL_BCREDITO")).equals("1")) {
//BA.debugLineNum = 706;BA.debugLine="Log(\"4\")";
__c.LogImpl("213434902","4",0);
__c.LogImpl("015925270","4",0);
//BA.debugLineNum = 707;BA.debugLine="If l_total.Text <> \"null\" Then";
if ((_l_total.getText()).equals("null") == false) {
//BA.debugLineNum = 708;BA.debugLine="Log(\"5\")";
__c.LogImpl("213434904","5",0);
__c.LogImpl("015925272","5",0);
//BA.debugLineNum = 709;BA.debugLine="If pre_act <> Starter.pre_viejo Then";
if (_pre_act!=_starter._pre_viejo /*float*/ ) {
//BA.debugLineNum = 710;BA.debugLine="Log(\"6\")";
__c.LogImpl("213434906","6",0);
__c.LogImpl("015925274","6",0);
//BA.debugLineNum = 726;BA.debugLine="GuardaVenta";
_guardaventa();
}else if(_pre_act==_starter._pre_viejo /*float*/ ) {
//BA.debugLineNum = 733;BA.debugLine="Log(\"7\")";
__c.LogImpl("213434929","7",0);
__c.LogImpl("015925297","7",0);
//BA.debugLineNum = 734;BA.debugLine="GuardaVenta";
_guardaventa();
};
}else if((_l_total.getText()).equals("null")) {
//BA.debugLineNum = 737;BA.debugLine="Log(\"8\")";
__c.LogImpl("213434933","8",0);
__c.LogImpl("015925301","8",0);
//BA.debugLineNum = 738;BA.debugLine="GuardaVenta";
_guardaventa();
};
}else if((_credi.GetString("CAT_CL_BCREDITO")).equals("0")) {
//BA.debugLineNum = 743;BA.debugLine="Log(\"9\")";
__c.LogImpl("213434939","9",0);
__c.LogImpl("015925307","9",0);
//BA.debugLineNum = 744;BA.debugLine="GuardaVenta";
_guardaventa();
};
@@ -2260,43 +2260,43 @@ if ((_l_total.getText()).equals("null") == false) {
//BA.debugLineNum = 752;BA.debugLine="If pre_act <> Starter.pre_viejo Then";
if (_pre_act!=_starter._pre_viejo /*float*/ ) {
//BA.debugLineNum = 768;BA.debugLine="Log(\"10\")";
__c.LogImpl("213434964","10",0);
__c.LogImpl("015925332","10",0);
//BA.debugLineNum = 769;BA.debugLine="GuardaVenta";
_guardaventa();
}else if(_pre_act==_starter._pre_viejo /*float*/ ) {
//BA.debugLineNum = 772;BA.debugLine="Log(\"11\")";
__c.LogImpl("213434968","11",0);
__c.LogImpl("015925336","11",0);
//BA.debugLineNum = 773;BA.debugLine="GuardaVenta";
_guardaventa();
};
}else if((_l_total.getText()).equals("null")) {
//BA.debugLineNum = 776;BA.debugLine="Log(\"11\")";
__c.LogImpl("213434972","11",0);
__c.LogImpl("015925340","11",0);
//BA.debugLineNum = 777;BA.debugLine="GuardaVenta";
_guardaventa();
};
}else {
//BA.debugLineNum = 780;BA.debugLine="Log(\"12\")";
__c.LogImpl("213434976","12",0);
__c.LogImpl("015925344","12",0);
//BA.debugLineNum = 781;BA.debugLine="GuardaVenta";
_guardaventa();
};
}else {
//BA.debugLineNum = 784;BA.debugLine="Log(\"13\")";
__c.LogImpl("213434980","13",0);
__c.LogImpl("015925348","13",0);
//BA.debugLineNum = 785;BA.debugLine="GuardaVenta";
_guardaventa();
};
};
}else if((_la_cuenta.getText()).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 790;BA.debugLine="Log(\"14\")";
__c.LogImpl("213434986","14",0);
__c.LogImpl("015925354","14",0);
//BA.debugLineNum = 791;BA.debugLine="GuardaVenta";
_guardaventa();
};
}else if((_c.GetString("CUANTOS")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 794;BA.debugLine="Log(\"15\")";
__c.LogImpl("213434990","15",0);
__c.LogImpl("015925358","15",0);
//BA.debugLineNum = 798;BA.debugLine="GuardaVenta";
_guardaventa();
};
@@ -2317,7 +2317,7 @@ _comprarar = BA.NumberToString(0);
_comprarar = _l_total.getText();
};
//BA.debugLineNum = 870;BA.debugLine="LogColor(comprarar,Colors.Green)";
__c.LogImpl("213631495",_comprarar,__c.Colors.Green);
__c.LogImpl("016121863",_comprarar,__c.Colors.Green);
//BA.debugLineNum = 871;BA.debugLine="If comprarar = Starter.pre_viejo Then";
if ((_comprarar).equals(BA.NumberToString(_starter._pre_viejo /*float*/ ))) {
//BA.debugLineNum = 872;BA.debugLine="If bitacora.enVenta Then";
@@ -2331,7 +2331,7 @@ _bitacora._iniciofin /*String*/ ();
//BA.debugLineNum = 876;BA.debugLine="banderaimp = 0";
_banderaimp = (int) (0);
//BA.debugLineNum = 877;BA.debugLine="Log(\"2.1\")";
__c.LogImpl("213631502","2.1",0);
__c.LogImpl("016121870","2.1",0);
}else {
//BA.debugLineNum = 879;BA.debugLine="GUADAVENTA2";
_guadaventa2();
@@ -2340,7 +2340,7 @@ _b4xpages._showpage /*String*/ (ba,"Principal");
//BA.debugLineNum = 881;BA.debugLine="banderaimp = 0";
_banderaimp = (int) (0);
//BA.debugLineNum = 882;BA.debugLine="Log(\"2.2\")";
__c.LogImpl("213631507","2.2",0);
__c.LogImpl("016121875","2.2",0);
};
}else {
//BA.debugLineNum = 972;BA.debugLine="GUADAVENTA2";
@@ -2416,7 +2416,7 @@ case 3:
//C
this.state = 4;
//BA.debugLineNum = 2642;BA.debugLine="Log(\"Conectando a impresora ...\")";
parent.__c.LogImpl("216187405","Conectando a impresora ...",0);
parent.__c.LogImpl("018677773","Conectando a impresora ...",0);
//BA.debugLineNum = 2643;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
//BA.debugLineNum = 2644;BA.debugLine="Private cont As Int = 0";
@@ -2445,7 +2445,7 @@ case 49:
this.state = 7;
;
//BA.debugLineNum = 2647;BA.debugLine="Log(\"++++++ \" & cont)";
parent.__c.LogImpl("216187410","++++++ "+BA.NumberToString(_cont),0);
parent.__c.LogImpl("018677778","++++++ "+BA.NumberToString(_cont),0);
//BA.debugLineNum = 2648;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
//BA.debugLineNum = 2649;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de";
@@ -2510,7 +2510,7 @@ case 21:
//C
this.state = 22;
//BA.debugLineNum = 2655;BA.debugLine="Log(\"conectando 2\")";
parent.__c.LogImpl("216187418","conectando 2",0);
parent.__c.LogImpl("018677786","conectando 2",0);
//BA.debugLineNum = 2656;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
//BA.debugLineNum = 2657;BA.debugLine="Private cont As Int = 0";
@@ -2539,7 +2539,7 @@ case 51:
this.state = 25;
;
//BA.debugLineNum = 2660;BA.debugLine="Log(\"****** \" & cont)";
parent.__c.LogImpl("216187423","****** "+BA.NumberToString(_cont),0);
parent.__c.LogImpl("018677791","****** "+BA.NumberToString(_cont),0);
//BA.debugLineNum = 2661;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
//BA.debugLineNum = 2662;BA.debugLine="If cont = 2 Then Printer1.Connect";
@@ -2844,7 +2844,7 @@ _t.Close();
//BA.debugLineNum = 1230;BA.debugLine="Dim IMEI_BASE As String = Starter.IMEI_BASE";
_imei_base = parent._starter._imei_base /*String*/ ;
//BA.debugLineNum = 1231;BA.debugLine="Log(\"IMEI_BASE desde otra clase: \" & IMEI_BASE)";
parent.__c.LogImpl("214417938","IMEI_BASE desde otra clase: "+_imei_base,0);
parent.__c.LogImpl("016908306","IMEI_BASE desde otra clase: "+_imei_base,0);
//BA.debugLineNum = 1233;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ..."));
//BA.debugLineNum = 1234;BA.debugLine="Printer1.DisConnect";
@@ -2865,7 +2865,7 @@ case 7:
//C
this.state = 8;
//BA.debugLineNum = 1236;BA.debugLine="Log(\"Conectando a impresora ...\")";
parent.__c.LogImpl("214417943","Conectando a impresora ...",0);
parent.__c.LogImpl("016908311","Conectando a impresora ...",0);
//BA.debugLineNum = 1237;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
//BA.debugLineNum = 1238;BA.debugLine="Private cont As Int = 0";
@@ -2957,7 +2957,7 @@ case 25:
//C
this.state = 26;
//BA.debugLineNum = 1248;BA.debugLine="Log(\"conectando 2\")";
parent.__c.LogImpl("214417955","conectando 2",0);
parent.__c.LogImpl("016908323","conectando 2",0);
//BA.debugLineNum = 1249;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
//BA.debugLineNum = 1250;BA.debugLine="Private cont As Int = 0";
@@ -2986,7 +2986,7 @@ case 118:
this.state = 29;
;
//BA.debugLineNum = 1253;BA.debugLine="Log(\"****** \" & cont)";
parent.__c.LogImpl("214417960","****** "+BA.NumberToString(_cont),0);
parent.__c.LogImpl("016908328","****** "+BA.NumberToString(_cont),0);
//BA.debugLineNum = 1254;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
//BA.debugLineNum = 1255;BA.debugLine="If cont = 2 Then Printer1.Connect";
@@ -3318,7 +3318,7 @@ case 72:
this.state = 73;
;
//BA.debugLineNum = 1319;BA.debugLine="Log(k1)";
parent.__c.LogImpl("214418026",parent._k1,0);
parent.__c.LogImpl("016908394",parent._k1,0);
//BA.debugLineNum = 1320;BA.debugLine="Printer1.WriteString(s.GETSTRING(\"PE_CANT\")&";
parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+"Piezas"+parent._blanco+parent._k1+parent._blanco+parent._k2+_elinefeed);
//BA.debugLineNum = 1321;BA.debugLine="TAMANO = 0";
@@ -3424,7 +3424,7 @@ this.state = 92;
//BA.debugLineNum = 1338;BA.debugLine="Printer1.WriteString(\"* \"& s.GetString(\"PE_PR";
parent._printer1._writestring /*String*/ ("* "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
//BA.debugLineNum = 1339;BA.debugLine="Log(\"promo\")";
parent.__c.LogImpl("214418046","promo",0);
parent.__c.LogImpl("016908414","promo",0);
if (true) break;
case 87:
@@ -3846,7 +3846,7 @@ case 7:
//C
this.state = 8;
//BA.debugLineNum = 1464;BA.debugLine="Log(\"Conectando a impresora ...\")";
parent.__c.LogImpl("214483481","Conectando a impresora ...",0);
parent.__c.LogImpl("016973849","Conectando a impresora ...",0);
//BA.debugLineNum = 1465;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
//BA.debugLineNum = 1466;BA.debugLine="Private cont As Int = 0";
@@ -3875,7 +3875,7 @@ case 109:
this.state = 11;
;
//BA.debugLineNum = 1469;BA.debugLine="Log(\"++++++ \" & cont)";
parent.__c.LogImpl("214483486","++++++ "+BA.NumberToString(_cont),0);
parent.__c.LogImpl("016973854","++++++ "+BA.NumberToString(_cont),0);
//BA.debugLineNum = 1470;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
//BA.debugLineNum = 1471;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de";
@@ -3940,7 +3940,7 @@ case 25:
//C
this.state = 26;
//BA.debugLineNum = 1477;BA.debugLine="Log(\"conectando 2\")";
parent.__c.LogImpl("214483494","conectando 2",0);
parent.__c.LogImpl("016973862","conectando 2",0);
//BA.debugLineNum = 1478;BA.debugLine="Printer1.Connect";
parent._printer1._connect /*boolean*/ ();
//BA.debugLineNum = 1479;BA.debugLine="Private cont As Int = 0";
@@ -3969,7 +3969,7 @@ case 111:
this.state = 29;
;
//BA.debugLineNum = 1482;BA.debugLine="Log(\"****** \" & cont)";
parent.__c.LogImpl("214483499","****** "+BA.NumberToString(_cont),0);
parent.__c.LogImpl("016973867","****** "+BA.NumberToString(_cont),0);
//BA.debugLineNum = 1483;BA.debugLine="cont = cont + 1";
_cont = (int) (_cont+1);
//BA.debugLineNum = 1484;BA.debugLine="If cont = 2 Then Printer1.Connect";
@@ -4384,7 +4384,7 @@ this.state = 89;
//BA.debugLineNum = 1679;BA.debugLine="Printer1.WriteString(\"* \"& s.GetString(\"PE_PR";
parent._printer1._writestring /*String*/ ("* "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed);
//BA.debugLineNum = 1680;BA.debugLine="Log(\"promo\")";
parent.__c.LogImpl("214483697","promo",0);
parent.__c.LogImpl("016974065","promo",0);
if (true) break;
case 84:
@@ -4739,7 +4739,7 @@ _records = (Object[])(group21.Get(index21));
//BA.debugLineNum = 2257;BA.debugLine="piezasexiste = records(resultado.Columns.Get(";
_piezasexiste = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT(*)"))))]));
//BA.debugLineNum = 2258;BA.debugLine="Log(piezasexiste)";
__c.LogImpl("215597604",BA.NumberToString(_piezasexiste),0);
__c.LogImpl("018087972",BA.NumberToString(_piezasexiste),0);
//BA.debugLineNum = 2259;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
//BA.debugLineNum = 2260;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
@@ -4807,7 +4807,7 @@ _records = (Object[])(group55.Get(index55));
//BA.debugLineNum = 2310;BA.debugLine="piezasexiste = records(resultado.Columns.Get(";
_piezasexiste = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT(*)"))))]));
//BA.debugLineNum = 2311;BA.debugLine="Log(piezasexiste)";
__c.LogImpl("215597657",BA.NumberToString(_piezasexiste),0);
__c.LogImpl("018088025",BA.NumberToString(_piezasexiste),0);
//BA.debugLineNum = 2312;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
//BA.debugLineNum = 2313;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
@@ -4865,7 +4865,7 @@ _cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
//BA.debugLineNum = 2373;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+18));
//BA.debugLineNum = 2374;BA.debugLine="Log($\"Cliente2:${cliente}\"$)";
__c.LogImpl("215597720",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
__c.LogImpl("018088088",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
//BA.debugLineNum = 2375;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group90 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
@@ -4883,7 +4883,7 @@ final int groupLen91 = group91.getSize()
for (; index91 < groupLen91;index91++){
_k = BA.ObjectToString(group91.Get(index91));
//BA.debugLineNum = 2377;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("215597723",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
__c.LogImpl("018088091",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -4903,7 +4903,7 @@ _cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
//BA.debugLineNum = 2389;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+9));
//BA.debugLineNum = 2390;BA.debugLine="Log($\"Cliente2:${cliente}\"$)";
__c.LogImpl("215597736",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
__c.LogImpl("018088104",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
//BA.debugLineNum = 2391;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group104 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
@@ -4921,7 +4921,7 @@ final int groupLen105 = group105.getSize()
for (; index105 < groupLen105;index105++){
_k = BA.ObjectToString(group105.Get(index105));
//BA.debugLineNum = 2393;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("215597739",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
__c.LogImpl("018088107",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -4939,15 +4939,15 @@ if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("insert_cuestionario
//BA.debugLineNum = 2404;BA.debugLine="Private pars() As String = Regex.Split(\"_\", re";
_pars = __c.Regex.Split("_",(BA.ObjectToString(_resultado.Tag /*Object*/ )));
//BA.debugLineNum = 2405;BA.debugLine="Log($\"${resultado.tag}|${pars(0)}\"$)";
__c.LogImpl("215597751",(""+__c.SmartStringFormatter("",_resultado.Tag /*Object*/ )+"|"+__c.SmartStringFormatter("",(Object)(_pars[(int) (0)]))+""),0);
__c.LogImpl("018088119",(""+__c.SmartStringFormatter("",_resultado.Tag /*Object*/ )+"|"+__c.SmartStringFormatter("",(Object)(_pars[(int) (0)]))+""),0);
//BA.debugLineNum = 2406;BA.debugLine="Log($\"${pars(1)}\"$)";
__c.LogImpl("215597752",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (1)]))+""),0);
__c.LogImpl("018088120",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (1)]))+""),0);
//BA.debugLineNum = 2407;BA.debugLine="Log($\"${pars(2)}\"$)";
__c.LogImpl("215597753",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (2)]))+""),0);
__c.LogImpl("018088121",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (2)]))+""),0);
//BA.debugLineNum = 2408;BA.debugLine="Log($\"${pars(3)}\"$)";
__c.LogImpl("215597754",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (3)]))+""),0);
__c.LogImpl("018088122",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (3)]))+""),0);
//BA.debugLineNum = 2409;BA.debugLine="Log($\"${pars(4)}\"$)";
__c.LogImpl("215597755",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (4)]))+""),0);
__c.LogImpl("018088123",(""+__c.SmartStringFormatter("",(Object)(_pars[(int) (4)]))+""),0);
//BA.debugLineNum = 2410;BA.debugLine="Private cliente As String = pars(2)";
_cliente = _pars[(int) (2)];
//BA.debugLineNum = 2411;BA.debugLine="Private idPreg As String = pars(3)";
@@ -4955,7 +4955,7 @@ _idpreg = _pars[(int) (3)];
//BA.debugLineNum = 2412;BA.debugLine="Private idResp As String = pars(4)";
_idresp = _pars[(int) (4)];
//BA.debugLineNum = 2413;BA.debugLine="Log($\"Cliente2:${cliente}, preg:${idPreg}, res";
__c.LogImpl("215597759",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+", preg:"+__c.SmartStringFormatter("",(Object)(_idpreg))+", res:"+__c.SmartStringFormatter("",(Object)(_idresp))+""),0);
__c.LogImpl("018088127",("Cliente2:"+__c.SmartStringFormatter("",(Object)(_cliente))+", preg:"+__c.SmartStringFormatter("",(Object)(_idpreg))+", res:"+__c.SmartStringFormatter("",(Object)(_idresp))+""),0);
//BA.debugLineNum = 2414;BA.debugLine="For Each records() As Object In resultado.Rows";
{
final anywheresoftware.b4a.BA.IterableList group125 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
@@ -4973,7 +4973,7 @@ final int groupLen126 = group126.getSize()
for (; index126 < groupLen126;index126++){
_k = BA.ObjectToString(group126.Get(index126));
//BA.debugLineNum = 2416;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("215597762",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
__c.LogImpl("018088130",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -5000,7 +5000,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _ab = null;
int _i = 0;
//BA.debugLineNum = 2032;BA.debugLine="Sub mandaPendientes";
//BA.debugLineNum = 2034;BA.debugLine="Log(\">>>>>>> MANDA PENDIENTES\")";
__c.LogImpl("215335426",">>>>>>> MANDA PENDIENTES",0);
__c.LogImpl("017825794",">>>>>>> MANDA PENDIENTES",0);
//BA.debugLineNum = 2035;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
//BA.debugLineNum = 2036;BA.debugLine="Dim PCMonto As String";
@@ -5011,7 +5011,7 @@ if ((_usuario).equals("KMTS1") == false) {
_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null"))));
//BA.debugLineNum = 2074;BA.debugLine="Log(ab.RowCount)";
__c.LogImpl("215335466",BA.NumberToString(_ab.getRowCount()),0);
__c.LogImpl("017825834",BA.NumberToString(_ab.getRowCount()),0);
//BA.debugLineNum = 2075;BA.debugLine="If ab.RowCount > 0 Then";
if (_ab.getRowCount()>0) {
//BA.debugLineNum = 2076;BA.debugLine="For i=0 To ab.RowCount -1";
@@ -5033,7 +5033,7 @@ _cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_ab.GetString("a_usuario")
//BA.debugLineNum = 2082;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPe";
_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"")));
//BA.debugLineNum = 2083;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_c";
__c.LogImpl("215335475",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0);
__c.LogImpl("017825843",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0);
}
};
};
@@ -5049,7 +5049,7 @@ String _pcmonto = "";
int _i = 0;
//BA.debugLineNum = 2142;BA.debugLine="Sub mandaPendientesrecarga";
//BA.debugLineNum = 2144;BA.debugLine="Log(\">>>>>>> MANDA PENDIENTES\")";
__c.LogImpl("215400962",">>>>>>> MANDA PENDIENTES",0);
__c.LogImpl("017891330",">>>>>>> MANDA PENDIENTES",0);
//BA.debugLineNum = 2145;BA.debugLine="Dim PCNoArts As String";
_pcnoarts = "";
//BA.debugLineNum = 2146;BA.debugLine="Dim PCMonto As String";
@@ -5065,7 +5065,7 @@ _d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 2151;BA.debugLine="c = skmt.ExecQuery(\"SELECT * FROM PEDIDO_CLIENTE";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT * FROM PEDIDO_CLIENTE where PC_ENVIO_OK = 0 AND PC_CLIENTE = 1")));
//BA.debugLineNum = 2152;BA.debugLine="Log($\"Pedido_Cliente PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("215400970",("Pedido_Cliente PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
__c.LogImpl("017891338",("Pedido_Cliente PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
//BA.debugLineNum = 2153;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 2154;BA.debugLine="For i = 0 To c.RowCount - 1";
@@ -5077,7 +5077,7 @@ for (;_i <= limit11 ;_i = _i + step11 ) {
//BA.debugLineNum = 2155;BA.debugLine="c.Position = i";
_c.setPosition(_i);
//BA.debugLineNum = 2156;BA.debugLine="Log($\"${c.GetString(\"PC_CLIENTE\")}|${c.GetStri";
__c.LogImpl("215400974",(""+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_CLIENTE")))+"|"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_FECHA")))+"|"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_ENVIO_OK")))+"|"),0);
__c.LogImpl("017891342",(""+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_CLIENTE")))+"|"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_FECHA")))+"|"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_ENVIO_OK")))+"|"),0);
//BA.debugLineNum = 2157;BA.debugLine="Dim cmd As DBCommand";
_cmd = new medicomed.keymon.com.mx.dbrequestmanager._dbcommand();
//BA.debugLineNum = 2158;BA.debugLine="cmd.Initialize";
@@ -5100,7 +5100,7 @@ _f.Close();
//BA.debugLineNum = 2169;BA.debugLine="c = skmt.ExecQuery($\"SELECT PE_ENVIO_OK, PE_CEDI";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery(("SELECT PE_ENVIO_OK, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO, PE_CANTC, PE_BCAJAS FROM PEDIDO where PE_ENVIO_OK <> 1 AND PE_FOLIO = 'RECARGA'"))));
//BA.debugLineNum = 2170;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("215400988",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
__c.LogImpl("017891356",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
//BA.debugLineNum = 2171;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 2172;BA.debugLine="For i=0 To c.RowCount -1";
@@ -5122,7 +5122,7 @@ _cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_CEDIS")),
//BA.debugLineNum = 2178;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";
_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_pedidosPendientes_prods_"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CLIENTE")))+"_"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+"")));
//BA.debugLineNum = 2179;BA.debugLine="Log($\">>>> INS_PEDIDO= ${C.GetString(\"PE_CEDI";
__c.LogImpl("215400997",(">>>> INS_PEDIDO= "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CEDIS")))+","+__c.SmartStringFormatter("",(Object)(_almacen))+","+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_COSTO_TOT")))+","+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_COSTOU")))+","+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PRONOMBRE")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CLIENTE")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_FECHA")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_USUARIO")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_RUTA")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_COSTO_SIN")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_DESC")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_FOLIO")))+", "+__c.SmartStringFormatter("",(Object)(_pcnoarts))+", "+__c.SmartStringFormatter("",(Object)(_pcmonto))+""),0);
__c.LogImpl("017891365",(">>>> INS_PEDIDO= "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CEDIS")))+","+__c.SmartStringFormatter("",(Object)(_almacen))+","+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_COSTO_TOT")))+","+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_COSTOU")))+","+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PRONOMBRE")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CLIENTE")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_FECHA")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_USUARIO")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_RUTA")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_COSTO_SIN")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_DESC")))+", "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_FOLIO")))+", "+__c.SmartStringFormatter("",(Object)(_pcnoarts))+", "+__c.SmartStringFormatter("",(Object)(_pcmonto))+""),0);
}
};
};
@@ -5196,14 +5196,14 @@ _skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",any
//BA.debugLineNum = 1847;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(CA";
_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP"),(Object)(_starter._mac_impresora /*String*/ )}));
//BA.debugLineNum = 1848;BA.debugLine="LogColor(\"Impresora conectada\", Colors.Green)";
__c.LogImpl("214548998","Impresora conectada",__c.Colors.Green);
__c.LogImpl("017039366","Impresora conectada",__c.Colors.Green);
//BA.debugLineNum = 1850;BA.debugLine="impresoraConectada = True";
_impresoraconectada = __c.True;
//BA.debugLineNum = 1851;BA.debugLine="siimprimio = 1";
_siimprimio = BA.NumberToString(1);
}else {
//BA.debugLineNum = 1855;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors";
__c.LogImpl("214549005","Error conectando la impresora",__c.Colors.Red);
__c.LogImpl("017039373","Error conectando la impresora",__c.Colors.Red);
//BA.debugLineNum = 1856;BA.debugLine="errorImpresora = errorImpresora + 1";
_errorimpresora = (int) (_errorimpresora+1);
//BA.debugLineNum = 1857;BA.debugLine="If errorImpresora > 1 Then";
@@ -5399,14 +5399,14 @@ if (true) break;
public String _sc_timedout(boolean _timedout) throws Exception{
//BA.debugLineNum = 1159;BA.debugLine="Sub sc_timedout(timedOut As Boolean)";
//BA.debugLineNum = 1160;BA.debugLine="Log(\"timedOut \" & timedOut)";
__c.LogImpl("214024705","timedOut "+BA.ObjectToString(_timedout),0);
__c.LogImpl("016515073","timedOut "+BA.ObjectToString(_timedout),0);
//BA.debugLineNum = 1161;BA.debugLine="End Sub";
return "";
}
public String _sc_usercancelled(boolean _usercancelled) throws Exception{
//BA.debugLineNum = 1163;BA.debugLine="Sub sc_usercancelled(userCancelled As Boolean)";
//BA.debugLineNum = 1164;BA.debugLine="Log(\"userCancelled \" & userCancelled)";
__c.LogImpl("214090241","userCancelled "+BA.ObjectToString(_usercancelled),0);
__c.LogImpl("016580609","userCancelled "+BA.ObjectToString(_usercancelled),0);
//BA.debugLineNum = 1165;BA.debugLine="End Sub";
return "";
}

View File

@@ -58,10 +58,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -74,7 +74,7 @@ anywheresoftware.b4a.objects.LabelWrapper _label1 = null;
anywheresoftware.b4a.objects.LabelWrapper _label2 = null;
//BA.debugLineNum = 410;BA.debugLine="Private Sub b_buscar_Click";
//BA.debugLineNum = 411;BA.debugLine="Log(CHECK)";
__c.LogImpl("29633793",BA.NumberToString(_check),0);
__c.LogImpl("09633793",BA.NumberToString(_check),0);
//BA.debugLineNum = 412;BA.debugLine="If CHECK = 0 Then";
if (_check==0) {
//BA.debugLineNum = 413;BA.debugLine="l_baseodia.Text = \"Clientes de base de datos\"";
@@ -124,7 +124,7 @@ if (_d.getRowCount()>0) {
//BA.debugLineNum = 436;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
//BA.debugLineNum = 437;BA.debugLine="LogColor(d.GetString(\"CAT_CL_BCREDITO\"),Colors";
__c.LogImpl("29633819",_d.GetString("CAT_CL_BCREDITO"),__c.Colors.Blue);
__c.LogImpl("09633819",_d.GetString("CAT_CL_BCREDITO"),__c.Colors.Blue);
//BA.debugLineNum = 438;BA.debugLine="If d.GetString(\"CAT_CL_BCREDITO\") = \"1\" Then";
if ((_d.GetString("CAT_CL_BCREDITO")).equals("1")) {
//BA.debugLineNum = 439;BA.debugLine="CREDITO.Visible = False";
@@ -224,7 +224,7 @@ if (_d.getRowCount()>0) {
//BA.debugLineNum = 490;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
//BA.debugLineNum = 491;BA.debugLine="LogColor(d.GetString(\"CAT_CL_BCREDITO\"),Colors";
__c.LogImpl("29633873",_d.GetString("CAT_CL_BCREDITO"),__c.Colors.Blue);
__c.LogImpl("09633873",_d.GetString("CAT_CL_BCREDITO"),__c.Colors.Blue);
//BA.debugLineNum = 492;BA.debugLine="If d.GetString(\"CAT_CL_BCREDITO\") = \"1\" Then";
if ((_d.GetString("CAT_CL_BCREDITO")).equals("1")) {
//BA.debugLineNum = 493;BA.debugLine="CREDITO.Visible = False";
@@ -587,7 +587,7 @@ if (_d.getRowCount()>0) {
//BA.debugLineNum = 276;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
//BA.debugLineNum = 277;BA.debugLine="LogColor(d.GetString(\"CAT_CL_BCREDITO\"),Colors";
__c.LogImpl("29175112",_d.GetString("CAT_CL_BCREDITO"),__c.Colors.Blue);
__c.LogImpl("09175112",_d.GetString("CAT_CL_BCREDITO"),__c.Colors.Blue);
//BA.debugLineNum = 278;BA.debugLine="If d.GetString(\"CAT_CL_BCREDITO\") = \"1\" Then";
if ((_d.GetString("CAT_CL_BCREDITO")).equals("1")) {
//BA.debugLineNum = 279;BA.debugLine="CREDITO.Visible = False";
@@ -868,11 +868,11 @@ _subs._guardaclientehorainicio /*String*/ (ba,BA.ObjectToString(_value));
//BA.debugLineNum = 185;BA.debugLine="If B4XPages.MainPage.cliente.bitacora.IsInitiali";
if (_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*medicomed.keymon.com.mx.c_cliente*/ ._bitacora /*medicomed.keymon.com.mx.c_bitacora*/ .IsInitialized /*boolean*/ ()) {
//BA.debugLineNum = 186;BA.debugLine="Log(\"VAMOS A CLIENTE CON ENVENTA = FALSO\")";
__c.LogImpl("29044014","VAMOS A CLIENTE CON ENVENTA = FALSO",0);
__c.LogImpl("09044014","VAMOS A CLIENTE CON ENVENTA = FALSO",0);
//BA.debugLineNum = 187;BA.debugLine="B4XPages.MainPage.cliente.bitacora.iniciamosVen";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*medicomed.keymon.com.mx.c_cliente*/ ._bitacora /*medicomed.keymon.com.mx.c_bitacora*/ ._iniciamosventa /*String*/ ();
//BA.debugLineNum = 188;BA.debugLine="Log(B4XPages.MainPage.cliente.bitacora.enVenta)";
__c.LogImpl("29044016",BA.ObjectToString(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*medicomed.keymon.com.mx.c_cliente*/ ._bitacora /*medicomed.keymon.com.mx.c_bitacora*/ ._enventa /*boolean*/ ),0);
__c.LogImpl("09044016",BA.ObjectToString(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*medicomed.keymon.com.mx.c_cliente*/ ._bitacora /*medicomed.keymon.com.mx.c_bitacora*/ ._enventa /*boolean*/ ),0);
};
//BA.debugLineNum = 191;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
@@ -980,7 +980,7 @@ return "";
public String _sc_noscan() throws Exception{
//BA.debugLineNum = 333;BA.debugLine="Sub sc_noScan";
//BA.debugLineNum = 334;BA.debugLine="Log(\"nothing returned from the scan !!!!!\")";
__c.LogImpl("29371649","nothing returned from the scan !!!!!",0);
__c.LogImpl("09371649","nothing returned from the scan !!!!!",0);
//BA.debugLineNum = 335;BA.debugLine="End Sub";
return "";
}

View File

@@ -39,10 +39,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -63,7 +63,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 162;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 163;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("210420230",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
__c.LogImpl("010420230",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
};
}
catch (Exception e9) {
@@ -71,11 +71,11 @@ __c.LogImpl("210420230",("Columna \""+__c.SmartStringFormatter("",(Object)(_colu
try { //BA.debugLineNum = 167;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 168;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("210420235",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
__c.LogImpl("010420235",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
}
catch (Exception e13) {
ba.setLastException(e13); //BA.debugLineNum = 170;BA.debugLine="Log(LastException)";
__c.LogImpl("210420237",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("010420237",BA.ObjectToString(__c.LastException(ba)),0);
};
};
//BA.debugLineNum = 173;BA.debugLine="End Sub";

View File

@@ -49,10 +49,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -31,10 +31,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -57,10 +57,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -261,7 +261,7 @@ _vamoaver.Add((Object)(_folio));
};
};
//BA.debugLineNum = 107;BA.debugLine="Log($\"EXISTE: ${Existe}\"$)";
__c.LogImpl("212058673",("EXISTE: "+__c.SmartStringFormatter("",(Object)(_existe))+""),0);
__c.LogImpl("019398705",("EXISTE: "+__c.SmartStringFormatter("",(Object)(_existe))+""),0);
//BA.debugLineNum = 110;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select sum(";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) ")));
//BA.debugLineNum = 111;BA.debugLine="If c.RowCount > 0 Then";
@@ -269,7 +269,7 @@ if (_c.getRowCount()>0) {
//BA.debugLineNum = 112;BA.debugLine="C.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 113;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr";
__c.LogImpl("212058679",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
__c.LogImpl("019398711",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
//BA.debugLineNum = 114;BA.debugLine="L_CANT.Text = c.GetString(\"PC_NOART\")";
_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART")));
//BA.debugLineNum = 115;BA.debugLine="L_TOTAL.Text = c.GetString(\"PC_MONTO\")";
@@ -352,7 +352,7 @@ public String _borra_click() throws Exception{
int _i = 0;
//BA.debugLineNum = 149;BA.debugLine="Sub borra_Click";
//BA.debugLineNum = 150;BA.debugLine="Log(\"Entre al btn borrar\")";
__c.LogImpl("212386305","Entre al btn borrar",0);
__c.LogImpl("019726337","Entre al btn borrar",0);
//BA.debugLineNum = 151;BA.debugLine="result = Msgbox2(\"Seguro que desa borrar el pedi";
_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa borrar el pedido?"),BA.ObjectToCharSequence("Cancelar pedido"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
//BA.debugLineNum = 152;BA.debugLine="If result = DialogResponse.POSITIVE Then";
@@ -360,7 +360,7 @@ if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 153;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PE_PR";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) ")));
//BA.debugLineNum = 154;BA.debugLine="Log($\"select PE_PROID,PE_CANT FROM PEDIDO where";
__c.LogImpl("212386309",("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa)"),0);
__c.LogImpl("019726341",("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa)"),0);
//BA.debugLineNum = 155;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 156;BA.debugLine="For i=0 To c.RowCount -1";
@@ -472,7 +472,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _y = null;
int _j = 0;
//BA.debugLineNum = 169;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
//BA.debugLineNum = 170;BA.debugLine="Log(Value)";
__c.LogImpl("212451841",BA.ObjectToString(_value),0);
__c.LogImpl("019791873",BA.ObjectToString(_value),0);
//BA.debugLineNum = 171;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
//BA.debugLineNum = 172;BA.debugLine="Private nom As String = \"\"";
@@ -499,68 +499,68 @@ if (true) break;
//BA.debugLineNum = 182;BA.debugLine="nom = nom.Trim";
_nom = _nom.trim();
//BA.debugLineNum = 183;BA.debugLine="Log(nom)";
__c.LogImpl("212451854",_nom,0);
__c.LogImpl("019791886",_nom,0);
//BA.debugLineNum = 184;BA.debugLine="Private cedis As String = X(X.Length-1)";
_cedis = _x[(int) (_x.length-1)];
//BA.debugLineNum = 185;BA.debugLine="Log(cedis)";
__c.LogImpl("212451856",_cedis,0);
__c.LogImpl("019791888",_cedis,0);
//BA.debugLineNum = 186;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar este a";
_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
//BA.debugLineNum = 187;BA.debugLine="If result = DialogResponse.POSITIVE Then";
if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 188;BA.debugLine="Log(\"|\" &nom & \"|\")";
__c.LogImpl("212451859","|"+_nom+"|",0);
__c.LogImpl("019791891","|"+_nom+"|",0);
//BA.debugLineNum = 189;BA.debugLine="Log(\"|\" & cedis & \"|\")";
__c.LogImpl("212451860","|"+_cedis+"|",0);
__c.LogImpl("019791892","|"+_cedis+"|",0);
//BA.debugLineNum = 190;BA.debugLine="Log(\"|\" & Subs.traeCliente & \"|\")";
__c.LogImpl("212451861","|"+_subs._traecliente /*String*/ (ba)+"|",0);
__c.LogImpl("019791893","|"+_subs._traecliente /*String*/ (ba)+"|",0);
//BA.debugLineNum = 191;BA.debugLine="Private y As Cursor =B4XPages.MainPage.skmt.Exec";
_y = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_y = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom.trim()))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' "))));
//BA.debugLineNum = 192;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO FROM PED";
__c.LogImpl("212451863",("select PE_PROID,PE_CANT, PE_FOLIO FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' "),0);
__c.LogImpl("019791895",("select PE_PROID,PE_CANT, PE_FOLIO FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' "),0);
//BA.debugLineNum = 193;BA.debugLine="Log(y.RowCount)";
__c.LogImpl("212451864",BA.NumberToString(_y.getRowCount()),0);
__c.LogImpl("019791896",BA.NumberToString(_y.getRowCount()),0);
//BA.debugLineNum = 194;BA.debugLine="y.Position=0";
_y.setPosition((int) (0));
//BA.debugLineNum = 195;BA.debugLine="Log(\"Esto es Folio: \" & y.GetString(\"PE_FOLIO\"))";
__c.LogImpl("212451866","Esto es Folio: "+_y.GetString("PE_FOLIO"),0);
__c.LogImpl("019791898","Esto es Folio: "+_y.GetString("PE_FOLIO"),0);
//BA.debugLineNum = 196;BA.debugLine="If y.GetString(\"PE_FOLIO\") = \"PREVENTA\" Then";
if ((_y.GetString("PE_FOLIO")).equals("PREVENTA")) {
//BA.debugLineNum = 197;BA.debugLine="Log(\"CAT_GUNAPROD2\")";
__c.LogImpl("212451868","CAT_GUNAPROD2",0);
__c.LogImpl("019791900","CAT_GUNAPROD2",0);
//BA.debugLineNum = 198;BA.debugLine="Log(Position)";
__c.LogImpl("212451869",BA.NumberToString(_position),0);
__c.LogImpl("019791901",BA.NumberToString(_position),0);
//BA.debugLineNum = 199;BA.debugLine="Log(Value)";
__c.LogImpl("212451870",BA.ObjectToString(_value),0);
__c.LogImpl("019791902",BA.ObjectToString(_value),0);
//BA.debugLineNum = 200;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\"";
_starter._tabla /*String*/ = "CAT_GUNAPROD2";
}else {
//BA.debugLineNum = 202;BA.debugLine="Log(\"CAT_GUNAPROD\")";
__c.LogImpl("212451873","CAT_GUNAPROD",0);
__c.LogImpl("019791905","CAT_GUNAPROD",0);
//BA.debugLineNum = 203;BA.debugLine="Log(Position)";
__c.LogImpl("212451874",BA.NumberToString(_position),0);
__c.LogImpl("019791906",BA.NumberToString(_position),0);
//BA.debugLineNum = 204;BA.debugLine="Log(Value)";
__c.LogImpl("212451875",BA.ObjectToString(_value),0);
__c.LogImpl("019791907",BA.ObjectToString(_value),0);
//BA.debugLineNum = 205;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
_starter._tabla /*String*/ = "CAT_GUNAPROD";
};
//BA.debugLineNum = 208;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_y.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_y.GetString("PE_CANT")))*-1)}));
//BA.debugLineNum = 209;BA.debugLine="Log(cedis)";
__c.LogImpl("212451880",_cedis,0);
__c.LogImpl("019791912",_cedis,0);
//BA.debugLineNum = 210;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("212451881",_subs._traealmacen /*String*/ (ba),0);
__c.LogImpl("019791913",_subs._traealmacen /*String*/ (ba),0);
//BA.debugLineNum = 211;BA.debugLine="If cedis <> Subs.traeAlmacen Then";
if ((_cedis).equals(_subs._traealmacen /*String*/ (ba)) == false) {
//BA.debugLineNum = 212;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_PRONOMBRE = ? and PE_CEDIS = ?)",new String[]{_nom,_cedis})));
//BA.debugLineNum = 213;BA.debugLine="Log(j3.RowCount)";
__c.LogImpl("212451884",BA.NumberToString(_j3.getRowCount()),0);
__c.LogImpl("019791916",BA.NumberToString(_j3.getRowCount()),0);
//BA.debugLineNum = 214;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 215;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("212451886","Soy promo",0);
__c.LogImpl("019791918","Soy promo",0);
//BA.debugLineNum = 216;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step46 = 1;
@@ -568,17 +568,17 @@ final int limit46 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit46 ;_j = _j + step46 ) {
//BA.debugLineNum = 217;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("212451888","aqui tronare?",0);
__c.LogImpl("019791920","aqui tronare?",0);
//BA.debugLineNum = 219;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 220;BA.debugLine="Log(j3.GetString(\"PE_CANT\"))";
__c.LogImpl("212451891",_j3.GetString("PE_CANT"),0);
__c.LogImpl("019791923",_j3.GetString("PE_CANT"),0);
//BA.debugLineNum = 221;BA.debugLine="Log($\"update ${Starter.tabla} set CAT_GP_ALMA";
__c.LogImpl("212451892",("update "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" set CAT_GP_ALMACEN = CAT_GP_ALMACEN + '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+"' where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'"),0);
__c.LogImpl("019791924",("update "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" set CAT_GP_ALMACEN = CAT_GP_ALMACEN + '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+"' where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'"),0);
//BA.debugLineNum = 222;BA.debugLine="If y.GetString(\"PE_FOLIO\") = \"PREVENTA\" Then";
if ((_y.GetString("PE_FOLIO")).equals("PREVENTA")) {
//BA.debugLineNum = 223;BA.debugLine="Log(\"Esto es Folio: \" & y.GetString(\"PE_FOLI";
__c.LogImpl("212451894","Esto es Folio: "+_y.GetString("PE_FOLIO")+" <<<<<<<<<<<<<<<<<<<<<<<<",0);
__c.LogImpl("019791926","Esto es Folio: "+_y.GetString("PE_FOLIO")+" <<<<<<<<<<<<<<<<<<<<<<<<",0);
//BA.debugLineNum = 224;BA.debugLine="Starter.skmt.ExecNonQuery($\"update CAT_GUNAP";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update CAT_GUNAPROD set CAT_GP_ALMACEN = CAT_GP_ALMACEN + "+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'"));
//BA.debugLineNum = 225;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete";
@@ -596,21 +596,21 @@ _b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywher
_j3.Close();
}else {
//BA.debugLineNum = 235;BA.debugLine="Log(y.GetString(\"PE_CANT\"))";
__c.LogImpl("212451906",_y.GetString("PE_CANT"),0);
__c.LogImpl("019791938",_y.GetString("PE_CANT"),0);
//BA.debugLineNum = 236;BA.debugLine="Log(y.Getstring(\"PE_PROID\"))";
__c.LogImpl("212451907",_y.GetString("PE_PROID"),0);
__c.LogImpl("019791939",_y.GetString("PE_PROID"),0);
//BA.debugLineNum = 237;BA.debugLine="Log(\"Esto no es promo\")";
__c.LogImpl("212451908","Esto no es promo",0);
__c.LogImpl("019791940","Esto no es promo",0);
//BA.debugLineNum = 238;BA.debugLine="Log(\"Nombre: \" & nom & \"Cedis: \" & cedis & \"Fol";
__c.LogImpl("212451909","Nombre: "+_nom+"Cedis: "+_cedis+"Folio: "+_y.GetString("PE_FOLIO"),0);
__c.LogImpl("019791941","Nombre: "+_nom+"Cedis: "+_cedis+"Folio: "+_y.GetString("PE_FOLIO"),0);
//BA.debugLineNum = 239;BA.debugLine="Log(\"Esto es Folio: \" & y.GetString(\"PE_FOLIO\")";
__c.LogImpl("212451910","Esto es Folio: "+_y.GetString("PE_FOLIO")+" <<<<<<<<<<<<<<<<<<<<<<<<",0);
__c.LogImpl("019791942","Esto es Folio: "+_y.GetString("PE_FOLIO")+" <<<<<<<<<<<<<<<<<<<<<<<<",0);
//BA.debugLineNum = 240;BA.debugLine="If y.GetString(\"PE_FOLIO\") = \"PREVENTA\" Then";
if ((_y.GetString("PE_FOLIO")).equals("PREVENTA")) {
//BA.debugLineNum = 241;BA.debugLine="Log(\"Esto es Folio: \" & y.GetString(\"PE_FOLIO\"";
__c.LogImpl("212451912","Esto es Folio: "+_y.GetString("PE_FOLIO")+" <<<<<<<<<<<<<<<<<<<<<<<<",0);
__c.LogImpl("019791944","Esto es Folio: "+_y.GetString("PE_FOLIO")+" <<<<<<<<<<<<<<<<<<<<<<<<",0);
//BA.debugLineNum = 242;BA.debugLine="Log(\"Entre? <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<";
__c.LogImpl("212451913","Entre? <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",0);
__c.LogImpl("019791945","Entre? <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",0);
//BA.debugLineNum = 243;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update C";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update CAT_GUNAPROD set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_y.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_y.GetString("PE_PROID")))+"'"));
//BA.debugLineNum = 244;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete f";

View File

@@ -53,10 +53,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -261,7 +261,7 @@ __c.DateTime.setTimeFormat("HH:mm:ss");
//BA.debugLineNum = 136;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"update PEDI";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update PEDIDO_INICIO_FINAL set PIF_HORA_FINAL = ? where PIF_CLIENTE = ? and PIF_HORA_FINAL = 0",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__c.DateTime.getNow()),(Object)(_cuenta)}));
//BA.debugLineNum = 137;BA.debugLine="LogColor($\"actualizamos \"${cuenta}, hora_final=$";
__c.LogImpl("262521403",("actualizamos \""+__c.SmartStringFormatter("",(Object)(_cuenta))+", hora_final="+__c.SmartStringFormatter("",(Object)(__c.DateTime.getNow()))+""),__c.Colors.Red);
__c.LogImpl("020381755",("actualizamos \""+__c.SmartStringFormatter("",(Object)(_cuenta))+", hora_final="+__c.SmartStringFormatter("",(Object)(__c.DateTime.getNow()))+""),__c.Colors.Red);
//BA.debugLineNum = 140;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTime.";
_bitacora._mandabitacora /*String*/ (_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_usuario,_subs._traealmacen /*String*/ (ba),_subs._traerutabitacora /*String*/ (ba),"NO VENTA",_subs._traecliente /*String*/ (ba),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(2),_motivo,BA.ObjectToString(_r_1.getChecked()));
//BA.debugLineNum = 142;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
@@ -284,14 +284,14 @@ Object[] _records = null;
String _k = "";
//BA.debugLineNum = 163;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 164;BA.debugLine="Log(Job.Success)";
__c.LogImpl("262652417",BA.ObjectToString(_job._success /*boolean*/ ),0);
__c.LogImpl("020512769",BA.ObjectToString(_job._success /*boolean*/ ),0);
//BA.debugLineNum = 165;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) {
//BA.debugLineNum = 166;BA.debugLine="ToastMessageShow(\"Error: \" & Job.ErrorMessage, Tr";
__c.ToastMessageShow(BA.ObjectToCharSequence("Error: "+_job._errormessage /*String*/ ),__c.True);
}else {
//BA.debugLineNum = 168;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job)";
__c.LogImpl("262652421","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
__c.LogImpl("020512773","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
//BA.debugLineNum = 169;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) {
//BA.debugLineNum = 170;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJob";
@@ -303,7 +303,7 @@ _cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
//BA.debugLineNum = 173;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_\"";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+9));
//BA.debugLineNum = 174;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
__c.LogImpl("262652427",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
__c.LogImpl("020512779",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
//BA.debugLineNum = 175;BA.debugLine="Starter.skmt.ExecNonQuery($\"update NOVENTA set";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update NOVENTA set NV_ENVIO_OK = '1' where NV_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"'"));
//BA.debugLineNum = 176;BA.debugLine="For Each records() As Object In resultado.Rows";
@@ -323,7 +323,7 @@ final int groupLen14 = group14.getSize()
for (; index14 < groupLen14;index14++){
_k = BA.ObjectToString(group14.Get(index14));
//BA.debugLineNum = 178;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & records";
__c.LogImpl("262652431",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
__c.LogImpl("020512783",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -343,7 +343,7 @@ medicomed.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
//BA.debugLineNum = 148;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FR";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM NOVENTA where ifnull(NV_ENVIO_OK, 0) <> 1")));
//BA.debugLineNum = 149;BA.debugLine="Log($\"NO VENTA PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("262586884",("NO VENTA PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
__c.LogImpl("020447236",("NO VENTA PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
//BA.debugLineNum = 150;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 151;BA.debugLine="For i=0 To c.RowCount -1";

View File

@@ -80,10 +80,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -313,7 +313,7 @@ case 7:
//C
this.state = 10;
//BA.debugLineNum = 67;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("27864330","Con permisos para escritura",0);
parent.__c.LogImpl("07864330","Con permisos para escritura",0);
if (true) break;
case 9:
@@ -355,7 +355,7 @@ case 13:
//C
this.state = 16;
//BA.debugLineNum = 74;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("27864337","Con permisos para escritura",0);
parent.__c.LogImpl("07864337","Con permisos para escritura",0);
if (true) break;
case 15:
@@ -633,7 +633,7 @@ _sdate = __c.DateTime.Date(__c.DateTime.getNow());
//BA.debugLineNum = 191;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
//BA.debugLineNum = 192;BA.debugLine="Log($\" //////////// Date: ${sDate} - Tim";
__c.LogImpl("28126479",(" //////////// Date: "+__c.SmartStringFormatter("",(Object)(_sdate))+" - Time: "+__c.SmartStringFormatter("",(Object)(_stime))+" ////////////////"),0);
__c.LogImpl("08126479",(" //////////// Date: "+__c.SmartStringFormatter("",(Object)(_sdate))+" - Time: "+__c.SmartStringFormatter("",(Object)(_stime))+" ////////////////"),0);
//BA.debugLineNum = 193;BA.debugLine="Private hora As String = sTime.SubString2(";
_hora = _stime.substring((int) (0),(int) (2));
//BA.debugLineNum = 194;BA.debugLine="Private mins As String = sTime.SubString2(";
@@ -643,7 +643,7 @@ _segs = _stime.substring((int) (4));
//BA.debugLineNum = 196;BA.debugLine="sTime = hora & \":\" & mins & \":\" & segs";
_stime = _hora+":"+_mins+":"+_segs;
//BA.debugLineNum = 197;BA.debugLine="Log(\"////////////// sTime: \"&sTime&\" /////";
__c.LogImpl("28126484","////////////// sTime: "+_stime+" ////////////////",0);
__c.LogImpl("08126484","////////////// sTime: "+_stime+" ////////////////",0);
//BA.debugLineNum = 198;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA FROM kmt_info")));
//BA.debugLineNum = 199;BA.debugLine="c.Position = 0";
@@ -653,7 +653,7 @@ _no_ruta = _c.GetString("CAT_CL_RUTA");
//BA.debugLineNum = 201;BA.debugLine="no_cliente = \"N\" & sTime & no_ruta";
_no_cliente = "N"+_stime+_no_ruta;
//BA.debugLineNum = 202;BA.debugLine="Log(\"++ ++ no_cliente = \"&no_cliente)";
__c.LogImpl("28126489","++ ++ no_cliente = "+_no_cliente,0);
__c.LogImpl("08126489","++ ++ no_cliente = "+_no_cliente,0);
//BA.debugLineNum = 203;BA.debugLine="c.Close";
_c.Close();
//BA.debugLineNum = 204;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO km";

View File

@@ -81,10 +81,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -1012,7 +1012,7 @@ _h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 442;BA.debugLine="h.Position=0";
_h.setPosition((int) (0));
//BA.debugLineNum = 443;BA.debugLine="Log(111)";
__c.LogImpl("263111247",BA.NumberToString(111),0);
__c.LogImpl("020971599",BA.NumberToString(111),0);
//BA.debugLineNum = 444;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSER";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)((double)(Double.parseDouble(_precio_cero))*(double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_precio_cero),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_h.GetString("CAT_GP_NOMBRE")),(Object)(_f.GetString("CAT_DP_IDPROD")),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 445;BA.debugLine="h.Close";
@@ -1026,7 +1026,7 @@ _f.Close();
//BA.debugLineNum = 450;BA.debugLine="e.Close";
_e.Close();
//BA.debugLineNum = 451;BA.debugLine="Log(222)";
__c.LogImpl("263111255",BA.NumberToString(222),0);
__c.LogImpl("020971607",BA.NumberToString(222),0);
//BA.debugLineNum = 452;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 453;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"update c";
@@ -1094,7 +1094,7 @@ _h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 485;BA.debugLine="h.Position=0";
_h.setPosition((int) (0));
//BA.debugLineNum = 486;BA.debugLine="Log(333)";
__c.LogImpl("263111290",BA.NumberToString(333),0);
__c.LogImpl("020971642",BA.NumberToString(333),0);
//BA.debugLineNum = 487;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PRECIO")))*(double)(Double.parseDouble(_cantidad.getText()))*(double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))),(Object)(_f.GetString("CAT_DP_PRECIO")),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_h.GetString("CAT_GP_NOMBRE")),(Object)(_f.GetString("CAT_DP_IDPROD")),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 488;BA.debugLine="h.Close";
@@ -1107,7 +1107,7 @@ _f.Close();
//BA.debugLineNum = 492;BA.debugLine="e.Close";
_e.Close();
//BA.debugLineNum = 493;BA.debugLine="Log(444)";
__c.LogImpl("263111297",BA.NumberToString(444),0);
__c.LogImpl("020971649",BA.NumberToString(444),0);
//BA.debugLineNum = 494;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 495;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"update cat";
@@ -1156,7 +1156,7 @@ _c.setPosition((int) (0));
//BA.debugLineNum = 517;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
//BA.debugLineNum = 518;BA.debugLine="Log(555)";
__c.LogImpl("263111322",BA.NumberToString(555),0);
__c.LogImpl("020971674",BA.NumberToString(555),0);
//BA.debugLineNum = 519;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_COSTO_SIN,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)((double)(Double.parseDouble(_cantidad.getText()))*(double)(Double.parseDouble(_l_precio.getText()))),(Object)(_l_precio.getText()),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_preciosin),(Object)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 520;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"update cat";

View File

@@ -255,10 +255,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -325,7 +325,7 @@ return "";
public String _b_mapa_click() throws Exception{
//BA.debugLineNum = 2171;BA.debugLine="Sub b_mapa_Click";
//BA.debugLineNum = 2172;BA.debugLine="Log(\"mapClic\")";
__c.LogImpl("22818049","mapClic",0);
__c.LogImpl("02818049","mapClic",0);
//BA.debugLineNum = 2173;BA.debugLine="B4XPages.GetPage(\"Mapas\")";
_b4xpages._getpage /*Object*/ (ba,"Mapas");
//BA.debugLineNum = 2174;BA.debugLine="End Sub";
@@ -769,7 +769,7 @@ _cmd.Initialize();
//BA.debugLineNum = 394;BA.debugLine="cmd.Name = \"select_fecha\"";
_cmd.Name /*String*/ = "select_fecha";
//BA.debugLineNum = 395;BA.debugLine="Log( Starter.DBReqServer)";
__c.LogImpl("22359315",_starter._dbreqserver /*String*/ ,0);
__c.LogImpl("02359315",_starter._dbreqserver /*String*/ ,0);
//BA.debugLineNum = 396;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fecha\")";
_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("fecha"));
//BA.debugLineNum = 397;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'ignore";
@@ -1391,11 +1391,11 @@ _fecha2 = __c.Regex.Split("/",_fecha);
//BA.debugLineNum = 864;BA.debugLine="Dim dia As String = fecha2(1)";
_dia = _fecha2[(int) (1)];
//BA.debugLineNum = 865;BA.debugLine="Log(dia)";
__c.LogImpl("22490376",_dia,0);
__c.LogImpl("02490376",_dia,0);
//BA.debugLineNum = 866;BA.debugLine="Dim dia2 As String = DateTime.GetDayOfMonth(Date";
_dia2 = BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow()));
//BA.debugLineNum = 867;BA.debugLine="Log(dia & \" , \" & dia2)";
__c.LogImpl("22490378",_dia+" , "+_dia2,0);
__c.LogImpl("02490378",_dia+" , "+_dia2,0);
//BA.debugLineNum = 868;BA.debugLine="If dia < dia2 Then";
if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) {
//BA.debugLineNum = 869;BA.debugLine="pedidodiaanterior = True";
@@ -1727,7 +1727,7 @@ if ((_starter._marcacel /*String*/ ).equals("Sony") == false) {
__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias"),__c.True);};
}else {
//BA.debugLineNum = 1140;BA.debugLine="Log(\"XXXX\")";
__c.LogImpl("22490651","XXXX",0);
__c.LogImpl("02490651","XXXX",0);
//BA.debugLineNum = 1141;BA.debugLine="MsgboxAsync(\"Para poder cargar día no puedes ten";
__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder cargar día no puedes tener venta del día anterior. Por favor haz FIN DIA e intenta nuevamente."),BA.ObjectToCharSequence("Atención"),ba);
};
@@ -2240,7 +2240,7 @@ return "";
public String _connecta_click() throws Exception{
//BA.debugLineNum = 2097;BA.debugLine="Sub connecta_Click";
//BA.debugLineNum = 2098;BA.debugLine="Log( Starter.DBReqServer)";
__c.LogImpl("22686977",_starter._dbreqserver /*String*/ ,0);
__c.LogImpl("02686977",_starter._dbreqserver /*String*/ ,0);
//BA.debugLineNum = 2099;BA.debugLine="reqManager.Initialize(Me, Starter.DBReqServer)";
_reqmanager._initialize /*String*/ (ba,this,_starter._dbreqserver /*String*/ );
//BA.debugLineNum = 2100;BA.debugLine="ime.HideKeyboard";
@@ -2356,7 +2356,7 @@ _e_ruta.setSelectionStart(_e_ruta.getText().length());
}
catch (Exception e9) {
ba.setLastException(e9); //BA.debugLineNum = 2673;BA.debugLine="Log(LastException)";
__c.LogImpl("23932171",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("03932171",BA.ObjectToString(__c.LastException(ba)),0);
};
};
//BA.debugLineNum = 2676;BA.debugLine="End Sub";
@@ -2713,7 +2713,7 @@ String _folio = "";
String _idcliente = "";
//BA.debugLineNum = 1145;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 1146;BA.debugLine="Log(\"JOBDONE PRINCIPAL\")";
__c.LogImpl("22555905","JOBDONE PRINCIPAL",0);
__c.LogImpl("02555905","JOBDONE PRINCIPAL",0);
//BA.debugLineNum = 1147;BA.debugLine="If reqManager.reqsList.IsInitialized Then 'Si ten";
if (_reqmanager._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) {
//BA.debugLineNum = 1148;BA.debugLine="If reqManager.reqsList.IndexOf(Job.tag) <> -1 Th";
@@ -2721,26 +2721,26 @@ if (_reqmanager._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .Ind
//BA.debugLineNum = 1149;BA.debugLine="reqManager.reqsList.RemoveAt(reqManager.reqsLis";
_reqmanager._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(_reqmanager._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_job._tag /*Object*/ ));
//BA.debugLineNum = 1150;BA.debugLine="LogColor($\">>>>>> Quitamos ${Job.tag}\"$, Colors";
__c.LogImpl("22555909",(">>>>>> Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+""),__c.Colors.Blue);
__c.LogImpl("02555909",(">>>>>> Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+""),__c.Colors.Blue);
};
//BA.debugLineNum = 1152;BA.debugLine="LogColor(\">>>>>> \" & reqManager.reqsList.Size &";
__c.LogImpl("22555911",">>>>>> "+BA.NumberToString(_reqmanager._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize())+" - "+BA.ObjectToString(_reqmanager._reqslist /*anywheresoftware.b4a.objects.collections.List*/ ),__c.Colors.Blue);
__c.LogImpl("02555911",">>>>>> "+BA.NumberToString(_reqmanager._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize())+" - "+BA.ObjectToString(_reqmanager._reqslist /*anywheresoftware.b4a.objects.collections.List*/ ),__c.Colors.Blue);
};
//BA.debugLineNum = 1154;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) {
//BA.debugLineNum = 1155;BA.debugLine="Log(\"ERROR\")";
__c.LogImpl("22555914","ERROR",0);
__c.LogImpl("02555914","ERROR",0);
//BA.debugLineNum = 1156;BA.debugLine="LogColor(\"Error: \" & reqManager.HandleJob(Job).t";
__c.LogImpl("22555915","Error: "+BA.ObjectToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Red);
__c.LogImpl("02555915","Error: "+BA.ObjectToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Red);
//BA.debugLineNum = 1157;BA.debugLine="Log(\"ex\")";
__c.LogImpl("22555916","ex",0);
__c.LogImpl("02555916","ex",0);
//BA.debugLineNum = 1158;BA.debugLine="Log(2)";
__c.LogImpl("22555917",BA.NumberToString(2),0);
__c.LogImpl("02555917",BA.NumberToString(2),0);
}else {
//BA.debugLineNum = 1162;BA.debugLine="Log(3)";
__c.LogImpl("22555921",BA.NumberToString(3),0);
__c.LogImpl("02555921",BA.NumberToString(3),0);
//BA.debugLineNum = 1163;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("22555922","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.RGB((int) (0),(int) (160),(int) (0)));
__c.LogImpl("02555922","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.RGB((int) (0),(int) (160),(int) (0)));
//BA.debugLineNum = 1165;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) {
//BA.debugLineNum = 1166;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(J";
@@ -2756,7 +2756,7 @@ final int groupLen20 = group20.getSize()
for (; index20 < groupLen20;index20++){
_records = (Object[])(group20.Get(index20));
//BA.debugLineNum = 1169;BA.debugLine="Log(\"==========================REGISTROS=\"&RE";
__c.LogImpl("22555928","==========================REGISTROS="+BA.ObjectToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ),0);
__c.LogImpl("02555928","==========================REGISTROS="+BA.ObjectToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ),0);
//BA.debugLineNum = 1170;BA.debugLine="For Each k As String In RESULT.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group22 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
@@ -2766,7 +2766,7 @@ final int groupLen22 = group22.getSize()
for (; index22 < groupLen22;index22++){
_k = BA.ObjectToString(group22.Get(index22));
//BA.debugLineNum = 1171;BA.debugLine="Log(RESULT.Tag & \": \" & k & \": \" & records(R";
__c.LogImpl("22555930",BA.ObjectToString(_result.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
__c.LogImpl("02555930",BA.ObjectToString(_result.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -2783,7 +2783,7 @@ final int groupLen28 = group28.getSize()
for (; index28 < groupLen28;index28++){
_records = (Object[])(group28.Get(index28));
//BA.debugLineNum = 1177;BA.debugLine="Log(\"==========================REGISTROS=\"&RE";
__c.LogImpl("22555936","==========================REGISTROS="+BA.ObjectToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ),0);
__c.LogImpl("02555936","==========================REGISTROS="+BA.ObjectToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ),0);
//BA.debugLineNum = 1178;BA.debugLine="For Each k As String In RESULT.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group30 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
@@ -2793,7 +2793,7 @@ final int groupLen30 = group30.getSize()
for (; index30 < groupLen30;index30++){
_k = BA.ObjectToString(group30.Get(index30));
//BA.debugLineNum = 1179;BA.debugLine="Log(RESULT.Tag & \": \" & k & \": \" & records(R";
__c.LogImpl("22555938",BA.ObjectToString(_result.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
__c.LogImpl("02555938",BA.ObjectToString(_result.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -2816,11 +2816,11 @@ _n = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywhe
}
};
//BA.debugLineNum = 1188;BA.debugLine="LogColor(\"**************************\"&n, Color";
__c.LogImpl("22555947","**************************"+_n,__c.Colors.Green);
__c.LogImpl("02555947","**************************"+_n,__c.Colors.Green);
//BA.debugLineNum = 1189;BA.debugLine="If n = \"OKActivo\" Then";
if ((_n).equals("OKActivo")) {
//BA.debugLineNum = 1190;BA.debugLine="Log(\"Usuario guardado en BD es 'Valido'\")";
__c.LogImpl("22555949","Usuario guardado en BD es 'Valido'",0);
__c.LogImpl("02555949","Usuario guardado en BD es 'Valido'",0);
}else if((_n).equals("OKExpirado")) {
//BA.debugLineNum = 1192;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administra";
__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba);
@@ -2838,7 +2838,7 @@ __c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToC
_b4xpages._showpage /*String*/ (ba,"B4XMainPage");
};
//BA.debugLineNum = 1201;BA.debugLine="Log(\"***************** \"&n)";
__c.LogImpl("22555960","***************** "+_n,0);
__c.LogImpl("02555960","***************** "+_n,0);
};
};
//BA.debugLineNum = 1205;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
@@ -3003,7 +3003,7 @@ _records = (Object[])(group130.Get(index130));
//BA.debugLineNum = 1287;BA.debugLine="piezasexiste = records(resultado.Columns.Get(";
_piezasexiste = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT(*)"))))]));
//BA.debugLineNum = 1288;BA.debugLine="Log(piezasexiste)";
__c.LogImpl("22556047",BA.NumberToString(_piezasexiste),0);
__c.LogImpl("02556047",BA.NumberToString(_piezasexiste),0);
//BA.debugLineNum = 1289;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
//BA.debugLineNum = 1290;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
@@ -3647,7 +3647,7 @@ _cat_gp_almacen = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_resu
//BA.debugLineNum = 1753;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
_cat_gp_tipoprod = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_TIPOPROD"))))]));
//BA.debugLineNum = 1754;BA.debugLine="Log(\"XXXXXXXX gunaprodps XXXXXXXX \" & record";
__c.LogImpl("22556513","XXXXXXXX gunaprodps XXXXXXXX "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))])+"|"+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]),0);
__c.LogImpl("02556513","XXXXXXXX gunaprodps XXXXXXXX "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_ID"))))])+"|"+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_IMP1"))))]),0);
//BA.debugLineNum = 1755;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod)}));
//BA.debugLineNum = 1756;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
@@ -3661,7 +3661,7 @@ _pb2.setProgress((int) (30));
//BA.debugLineNum = 1760;BA.debugLine="S_CP.Text = \"CARGANDO\"";
_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));
//BA.debugLineNum = 1761;BA.debugLine="Log(\"C4\")";
__c.LogImpl("22556520","C4",0);
__c.LogImpl("02556520","C4",0);
}else if(_pb2.getProgress()==30) {
//BA.debugLineNum = 1763;BA.debugLine="PB2.Progress = 60";
_pb2.setProgress((int) (60));
@@ -3671,7 +3671,7 @@ _pb2.setProgress((int) (100));
//BA.debugLineNum = 1766;BA.debugLine="S_CP.Text = \"LISTO\"";
_s_cp.setText(BA.ObjectToCharSequence("LISTO"));
//BA.debugLineNum = 1767;BA.debugLine="Log(\"3\")";
__c.LogImpl("22556526","3",0);
__c.LogImpl("02556526","3",0);
};
//BA.debugLineNum = 1769;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
if ((_starter._marcacel /*String*/ ).equals("Sony") == false) {
@@ -3992,7 +3992,7 @@ _pb2.setProgress((int) (100));
//BA.debugLineNum = 1936;BA.debugLine="S_CP.Text = \"REVISANDO ...\"";
_s_cp.setText(BA.ObjectToCharSequence("REVISANDO ..."));
//BA.debugLineNum = 1937;BA.debugLine="Log(\"5\")";
__c.LogImpl("22556696","5",0);
__c.LogImpl("02556696","5",0);
};
};
//BA.debugLineNum = 1941;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
@@ -4046,9 +4046,9 @@ _result = _reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbr
//BA.debugLineNum = 1963;BA.debugLine="If RESULT.Tag = \"ruta\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) {
//BA.debugLineNum = 1964;BA.debugLine="Log(\"JOBDONE PRINCIPAL RUTA\")";
__c.LogImpl("22556723","JOBDONE PRINCIPAL RUTA",0);
__c.LogImpl("02556723","JOBDONE PRINCIPAL RUTA",0);
//BA.debugLineNum = 1965;BA.debugLine="Log(RESULT.Rows.Size)";
__c.LogImpl("22556724",BA.NumberToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
__c.LogImpl("02556724",BA.NumberToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
//BA.debugLineNum = 1966;BA.debugLine="For Each records() As Object In RESULT.Rows";
{
final anywheresoftware.b4a.BA.IterableList group626 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
@@ -4060,7 +4060,7 @@ _records = (Object[])(group626.Get(index626));
//BA.debugLineNum = 1967;BA.debugLine="Dim VALIDO As String = records(RESULT.Columns";
_valido = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("VALIDO"))))]);
//BA.debugLineNum = 1968;BA.debugLine="Log(\"|\"&VALIDO)";
__c.LogImpl("22556727","|"+_valido,0);
__c.LogImpl("02556727","|"+_valido,0);
//BA.debugLineNum = 1969;BA.debugLine="If VALIDO = \"OK\" Then";
if ((_valido).equals("OK")) {
//BA.debugLineNum = 1970;BA.debugLine="cargar.Visible = True";
@@ -4184,7 +4184,7 @@ _result = _reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbr
//BA.debugLineNum = 2057;BA.debugLine="If RESULT.Tag = \"test\" Then 'query tag";
if ((_result.Tag /*Object*/ ).equals((Object)("test"))) {
//BA.debugLineNum = 2058;BA.debugLine="Log(\">>>>>>>>>>>>> TEST\")";
__c.LogImpl("22556817",">>>>>>>>>>>>> TEST",0);
__c.LogImpl("02556817",">>>>>>>>>>>>> TEST",0);
//BA.debugLineNum = 2059;BA.debugLine="Subs.logJobDoneResultados(RESULT)";
_subs._logjobdoneresultados /*String*/ (ba,_result);
};
@@ -4193,7 +4193,7 @@ _result = _reqmanager._handlejob /*medicomed.keymon.com.mx.dbrequestmanager._dbr
//BA.debugLineNum = 2063;BA.debugLine="If RESULT.Tag = \"clientes_cuestionario\" Then";
if ((_result.Tag /*Object*/ ).equals((Object)("clientes_cuestionario"))) {
//BA.debugLineNum = 2064;BA.debugLine="Log(\"Entramos a clientes_cuestionario - Regs:\"";
__c.LogImpl("22556823","Entramos a clientes_cuestionario - Regs:"+BA.NumberToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
__c.LogImpl("02556823","Entramos a clientes_cuestionario - Regs:"+BA.NumberToString(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
//BA.debugLineNum = 2065;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_CUE";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CUESTIONARIO");
//BA.debugLineNum = 2066;BA.debugLine="For Each records() As Object In RESULT.Rows";
@@ -4591,7 +4591,7 @@ _d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 2575;BA.debugLine="d.Position = 0";
_d.setPosition((int) (0));
//BA.debugLineNum = 2582;BA.debugLine="Log(\"|\"&d.GetString(\"MONTO_DIA\")&\"|\")";
__c.LogImpl("23539079","|"+_d.GetString("MONTO_DIA")+"|",0);
__c.LogImpl("03539079","|"+_d.GetString("MONTO_DIA")+"|",0);
//BA.debugLineNum = 2584;BA.debugLine="L_PRIO.Text = d.GetString(\"MONTO_DIA\")";
_l_prio.setText(BA.ObjectToCharSequence(_d.GetString("MONTO_DIA")));
//BA.debugLineNum = 2585;BA.debugLine="d.Close";
@@ -4840,7 +4840,7 @@ _cmd.Name /*String*/ = "insert_clientesnuevos_MEDI_V2";
//BA.debugLineNum = 694;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CN_ID")),(Object)(_c.GetString("CN_FECHA")),(Object)(_c.GetString("CN_USER")),(Object)(_c.GetString("CN_LAT")),(Object)(_c.GetString("CN_LON")),(Object)(_c.GetString("CN_NOMBRE")),(Object)(_c.GetString("CN_DIRECCION")),(Object)(_almacen),(Object)(_c.GetString("CN_RUTA")),(Object)("En espera"),(Object)(_c.GetString("CN_GIRO")),(Object)(_dialetra),(Object)(_c.GetString("CN_SOLICITA")),(Object)(_c.GetString("CN_COLONIA")),(Object)(_c.GetString("CN_TELEFONO")),(Object)(_c.GetString("CN_REFERENCIA")),(Object)(_c.GetString("CN_HR_INICIO")),(Object)(_c.GetString("CN_HR_FIN"))};
//BA.debugLineNum = 695;BA.debugLine="Log($\"CN_ID: ${c.GetString(\"CN_ID\")}, FECHA: $";
__c.LogImpl("22424962",("CN_ID: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_ID")))+", FECHA: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_FECHA")))+", Usuario: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_USER")))+", Latitud: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_LAT")))+", Longitud: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_LON")))+", Nombre_ "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_NOMBRE")))+", Direccion: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_DIRECCION")))+", Almacen: "+__c.SmartStringFormatter("",(Object)(_almacen))+", Ruta: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_RUTA")))+", En espera, Giro: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_GIRO")))+", DiaLetra: "+__c.SmartStringFormatter("",(Object)(_dialetra))+", Solicita: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_SOLICITA")))+", Colonia: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_COLONIA")))+", Telefono: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_TELEFONO")))+", Referencia: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_REFERENCIA")))+", HrInicio: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_HR_INICIO")))+", HrFinal: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_HR_FIN")))+""),0);
__c.LogImpl("02424962",("CN_ID: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_ID")))+", FECHA: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_FECHA")))+", Usuario: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_USER")))+", Latitud: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_LAT")))+", Longitud: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_LON")))+", Nombre_ "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_NOMBRE")))+", Direccion: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_DIRECCION")))+", Almacen: "+__c.SmartStringFormatter("",(Object)(_almacen))+", Ruta: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_RUTA")))+", En espera, Giro: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_GIRO")))+", DiaLetra: "+__c.SmartStringFormatter("",(Object)(_dialetra))+", Solicita: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_SOLICITA")))+", Colonia: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_COLONIA")))+", Telefono: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_TELEFONO")))+", Referencia: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_REFERENCIA")))+", HrInicio: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_HR_INICIO")))+", HrFinal: "+__c.SmartStringFormatter("",(Object)(_c.GetString("CN_HR_FIN")))+""),0);
//BA.debugLineNum = 696;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_clientes";
_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_clientesn"));
}
@@ -4881,7 +4881,7 @@ _cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PC_CLIENTE")
//BA.debugLineNum = 728;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedidos\")";
_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_pedidos"));
//BA.debugLineNum = 729;BA.debugLine="Log(\">>>>>> INSERT PEDIDO_CLIENTE\")";
__c.LogImpl("22424996",">>>>>> INSERT PEDIDO_CLIENTE",0);
__c.LogImpl("02424996",">>>>>> INSERT PEDIDO_CLIENTE",0);
}
};
};
@@ -4914,7 +4914,7 @@ _cmd.Initialize();
//BA.debugLineNum = 745;BA.debugLine="cmd.Name = \"insert_pedido_MEDI_V2\" 'CON TOTALE";
_cmd.Name /*String*/ = "insert_pedido_MEDI_V2";
//BA.debugLineNum = 746;BA.debugLine="Log(c.GetString(\"PE_CEDIS\")&\", \"&ALMACEN&\", \"&";
__c.LogImpl("22425013",_c.GetString("PE_CEDIS")+", "+_almacen+", "+_c.GetString("PE_COSTO_TOT")+", "+_c.GetString("PE_COSTOU")+", "+_c.GetString("PE_CANT")+", "+_c.GetString("PE_PRONOMBRE")+", "+_c.GetString("PE_PROID")+", "+_c.GetString("PE_CLIENTE")+", "+_c.GetString("PE_FECHA")+", "+_c.GetString("PE_USUARIO")+", "+_subs._traeruta2 /*String*/ (ba,_c.GetString("PE_CLIENTE"))+", "+_c.GetString("PE_COSTO_SIN")+", "+_c.GetString("PE_DESC")+", "+_c.GetString("PE_FOLIO")+", "+_almacen,0);
__c.LogImpl("02425013",_c.GetString("PE_CEDIS")+", "+_almacen+", "+_c.GetString("PE_COSTO_TOT")+", "+_c.GetString("PE_COSTOU")+", "+_c.GetString("PE_CANT")+", "+_c.GetString("PE_PRONOMBRE")+", "+_c.GetString("PE_PROID")+", "+_c.GetString("PE_CLIENTE")+", "+_c.GetString("PE_FECHA")+", "+_c.GetString("PE_USUARIO")+", "+_subs._traeruta2 /*String*/ (ba,_c.GetString("PE_CLIENTE"))+", "+_c.GetString("PE_COSTO_SIN")+", "+_c.GetString("PE_DESC")+", "+_c.GetString("PE_FOLIO")+", "+_almacen,0);
//BA.debugLineNum = 747;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_COSTO_TOT")),(Object)(_c.GetString("PE_COSTOU")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_subs._traeruta2 /*String*/ (ba,_c.GetString("PE_CLIENTE"))),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO")),(Object)(_c.GetString("PE_CANTC")),(Object)(_c.GetString("PE_BCAJAS")),(Object)(_c.GetString("PE_IMPRESO"))};
//BA.debugLineNum = 748;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_pedidosP";

View File

@@ -113,10 +113,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -136,13 +136,13 @@ public String _b_continuar_click() throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
//BA.debugLineNum = 896;BA.debugLine="Private Sub b_continuar_Click";
//BA.debugLineNum = 897;BA.debugLine="Log(\"b_continuar_Click\")";
__c.LogImpl("217694721","b_continuar_Click",0);
__c.LogImpl("013041665","b_continuar_Click",0);
//BA.debugLineNum = 898;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 900;BA.debugLine="Log($\"prodsMap=${prodsMap}\"$)";
__c.LogImpl("217694724",("prodsMap="+__c.SmartStringFormatter("",(Object)(_prodsmap.getObject()))+""),0);
__c.LogImpl("013041668",("prodsMap="+__c.SmartStringFormatter("",(Object)(_prodsmap.getObject()))+""),0);
//BA.debugLineNum = 907;BA.debugLine="Log(\"promos-inv, prods-inv, cat-vis\")";
__c.LogImpl("217694731","promos-inv, prods-inv, cat-vis",0);
__c.LogImpl("013041675","promos-inv, prods-inv, cat-vis",0);
//BA.debugLineNum = 908;BA.debugLine="lv_promos.Visible = False";
_lv_promos.setVisible(__c.False);
//BA.debugLineNum = 909;BA.debugLine="clv_prods_ll.AsView.Visible = False";
@@ -154,7 +154,7 @@ _lv_tipo.setVisible(__c.False);
//BA.debugLineNum = 912;BA.debugLine="lv_catalogos.Visible = True";
_lv_catalogos.setVisible(__c.True);
//BA.debugLineNum = 913;BA.debugLine="Log(\"Continuar\")";
__c.LogImpl("217694737","Continuar",0);
__c.LogImpl("013041681","Continuar",0);
//BA.debugLineNum = 914;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
_m = new anywheresoftware.b4a.objects.collections.Map();
_m = _subs._traetotalesclienteactual /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
@@ -222,7 +222,7 @@ _inv = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywher
//BA.debugLineNum = 640;BA.debugLine="Private existencias As String = clv_prods_ll.GetV";
_existencias = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("almacen")));
//BA.debugLineNum = 641;BA.debugLine="Log($\"Existencias: ${existencias}\"$)";
__c.LogImpl("217367056",("Existencias: "+__c.SmartStringFormatter("",(Object)(_existencias))+""),0);
__c.LogImpl("012714000",("Existencias: "+__c.SmartStringFormatter("",(Object)(_existencias))+""),0);
//BA.debugLineNum = 642;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = \"0\" ' Inic";
if ((_lacant.getText()).equals("")) {
_lacant.setText(BA.ObjectToCharSequence("0"));};
@@ -242,7 +242,7 @@ _inv = BA.NumberToString((double)(Double.parseDouble(_inv))-_sumaminima);
_lacant.setText(BA.ObjectToCharSequence(__c.NumberFormat2((((int)(Double.parseDouble(_lacant.getText())))+_sumaminima),(int) (1),(int) (0),(int) (0),__c.False)));
}else {
//BA.debugLineNum = 655;BA.debugLine="Log(\"No hay inventario suficiente para realizar";
__c.LogImpl("217367070","No hay inventario suficiente para realizar la suma.",0);
__c.LogImpl("012714014","No hay inventario suficiente para realizar la suma.",0);
};
//BA.debugLineNum = 658;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
_nombrex = _subs._traeprodnombre /*String*/ (ba,_id);
@@ -255,7 +255,7 @@ _panelcajas.setVisible(__c.False);
_panelcajas.setVisible(__c.True);
};
//BA.debugLineNum = 668;BA.debugLine="LogColor(laCant.Text, Colors.Red)";
__c.LogImpl("217367083",_lacant.getText(),__c.Colors.Red);
__c.LogImpl("012714027",_lacant.getText(),__c.Colors.Red);
//BA.debugLineNum = 671;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,((int)(Double.parseDouble(_lacant.getText()))),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
//BA.debugLineNum = 672;BA.debugLine="cuentaProds";
@@ -283,12 +283,12 @@ if (((float)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) a
//BA.debugLineNum = 684;BA.debugLine="Private maxcajas As Int = 0";
_maxcajas = (int) (0);
//BA.debugLineNum = 685;BA.debugLine="Log(\"cajas a 0\")";
__c.LogImpl("217367100","cajas a 0",0);
__c.LogImpl("012714044","cajas a 0",0);
}else {
//BA.debugLineNum = 687;BA.debugLine="Private maxcajas As Int = invActualizado / clv_";
_maxcajas = (int) ((double)(Double.parseDouble(_invactualizado))/(double)(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("conversion")))));
//BA.debugLineNum = 688;BA.debugLine="Log(\"cajas no a 0\")";
__c.LogImpl("217367103","cajas no a 0",0);
__c.LogImpl("012714047","cajas no a 0",0);
};
//BA.debugLineNum = 691;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.Red)";
if (2==2) {
@@ -353,7 +353,7 @@ _precio = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anyw
//BA.debugLineNum = 559;BA.debugLine="Private inv As String = clv_prods_ll.GetValue(ind";
_inv = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("almacen")));
//BA.debugLineNum = 560;BA.debugLine="Log($\"Existencias: ${inv}\"$)";
__c.LogImpl("217301519",("Existencias: "+__c.SmartStringFormatter("",(Object)(_inv))+""),0);
__c.LogImpl("012648463",("Existencias: "+__c.SmartStringFormatter("",(Object)(_inv))+""),0);
//BA.debugLineNum = 561;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = \"0\" ' Inic";
if ((_lacant.getText()).equals("")) {
_lacant.setText(BA.ObjectToCharSequence("0"));};
@@ -373,7 +373,7 @@ _inv = BA.NumberToString((double)(Double.parseDouble(_inv))+_restaminima);
_lacant.setText(BA.ObjectToCharSequence(__c.NumberFormat2((_cantidadactual-_restaminima),(int) (1),(int) (0),(int) (0),__c.False)));
}else {
//BA.debugLineNum = 574;BA.debugLine="Log(\"No es posible reducir más, cantidad mínima";
__c.LogImpl("217301533","No es posible reducir más, cantidad mínima alcanzada.",0);
__c.LogImpl("012648477","No es posible reducir más, cantidad mínima alcanzada.",0);
};
//BA.debugLineNum = 577;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
_nombrex = _subs._traeprodnombre /*String*/ (ba,_id);
@@ -386,7 +386,7 @@ _panelcajas.setVisible(__c.False);
_panelcajas.setVisible(__c.True);
};
//BA.debugLineNum = 587;BA.debugLine="LogColor(laCant.Text, Colors.Red)";
__c.LogImpl("217301546",_lacant.getText(),__c.Colors.Red);
__c.LogImpl("012648490",_lacant.getText(),__c.Colors.Red);
//BA.debugLineNum = 589;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,((int)(Double.parseDouble(_lacant.getText()))),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
//BA.debugLineNum = 590;BA.debugLine="cuentaProds";
@@ -414,12 +414,12 @@ if (((float)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) a
//BA.debugLineNum = 602;BA.debugLine="Private maxcajas As Int = 0";
_maxcajas = (int) (0);
//BA.debugLineNum = 603;BA.debugLine="Log(\"cajas a 0\")";
__c.LogImpl("217301562","cajas a 0",0);
__c.LogImpl("012648506","cajas a 0",0);
}else {
//BA.debugLineNum = 605;BA.debugLine="Private maxcajas As Int = invActualizado / clv_";
_maxcajas = (int) ((double)(Double.parseDouble(_invactualizado))/(double)(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("conversion")))));
//BA.debugLineNum = 606;BA.debugLine="Log(\"cajas no a 0\")";
__c.LogImpl("217301565","cajas no a 0",0);
__c.LogImpl("012648509","cajas no a 0",0);
};
//BA.debugLineNum = 609;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.Red)";
if (2==2) {
@@ -432,12 +432,12 @@ if (_maxcajas>0) {
//BA.debugLineNum = 613;BA.debugLine="panelcajas.Visible = True";
_panelcajas.setVisible(__c.True);
//BA.debugLineNum = 614;BA.debugLine="Log(\"eSTOY AQUI<---------\")";
__c.LogImpl("217301573","eSTOY AQUI<---------",0);
__c.LogImpl("012648517","eSTOY AQUI<---------",0);
}else {
//BA.debugLineNum = 616;BA.debugLine="panelcajas.Visible = False";
_panelcajas.setVisible(__c.False);
//BA.debugLineNum = 617;BA.debugLine="Log(\"------>eSTOY AQUI2\")";
__c.LogImpl("217301576","------>eSTOY AQUI2",0);
__c.LogImpl("012648520","------>eSTOY AQUI2",0);
};
}else if((double)(Double.parseDouble(_lacant.getText()))>0) {
//BA.debugLineNum = 620;BA.debugLine="panelcajas.Visible = False";
@@ -505,12 +505,12 @@ _b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._promos /*medic
//BA.debugLineNum = 995;BA.debugLine="clv_prods_ll.Clear";
_clv_prods_ll._clear();
//BA.debugLineNum = 996;BA.debugLine="Log(\"Positivo\")";
__c.LogImpl("218153482","Positivo",0);
__c.LogImpl("013500426","Positivo",0);
//BA.debugLineNum = 997;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
}else {
//BA.debugLineNum = 999;BA.debugLine="Log(\"NO Positivo\")";
__c.LogImpl("218153485","NO Positivo",0);
__c.LogImpl("013500429","NO Positivo",0);
//BA.debugLineNum = 1000;BA.debugLine="p_vistaPreviaTrans.Visible = False";
_p_vistapreviatrans.setVisible(__c.False);
};
@@ -696,7 +696,7 @@ case 6:
this.state = 7;
;
//BA.debugLineNum = 145;BA.debugLine="LogColor(\"------------------------>\"&B4XPages.Mai";
parent.__c.LogImpl("216711686","------------------------>"+parent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,parent.__c.Colors.Yellow);
parent.__c.LogImpl("012058630","------------------------>"+parent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,parent.__c.Colors.Yellow);
//BA.debugLineNum = 146;BA.debugLine="clienteId = Subs.traeCliente";
parent._clienteid = parent._subs._traecliente /*String*/ (ba);
//BA.debugLineNum = 147;BA.debugLine="rutaUsuario = Subs.traeRuta(Subs.traeCliente)";
@@ -842,7 +842,7 @@ this.state = 23;
//BA.debugLineNum = 189;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select CA";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),new String[]{"PROMOS","PROMOS"})));
//BA.debugLineNum = 190;BA.debugLine="LogColor($\"select CAT_GP_ID, CAT_GP_NOMBRE, CAT_";
parent.__c.LogImpl("216711731",("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),parent.__c.Colors.Cyan);
parent.__c.LogImpl("012058675",("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),parent.__c.Colors.Cyan);
//BA.debugLineNum = 192;BA.debugLine="Private hayPromos As Boolean = False";
_haypromos = parent.__c.False;
//BA.debugLineNum = 193;BA.debugLine="If c2.RowCount > 0 Then";
@@ -861,7 +861,7 @@ case 25:
//C
this.state = 26;
//BA.debugLineNum = 194;BA.debugLine="Log(\"Esto es un conteo --->\"&c2.RowCount) 'Isaa";
parent.__c.LogImpl("216711735","Esto es un conteo --->"+BA.NumberToString(parent._c2.getRowCount()),0);
parent.__c.LogImpl("012058679","Esto es un conteo --->"+BA.NumberToString(parent._c2.getRowCount()),0);
//BA.debugLineNum = 195;BA.debugLine="For i=0 To c2.RowCount -1";
if (true) break;
@@ -892,7 +892,7 @@ this.state = 29;
//BA.debugLineNum = 196;BA.debugLine="c2.Position = i";
parent._c2.setPosition(_i);
//BA.debugLineNum = 197;BA.debugLine="Log(\"Esto es i----->\"& i)'Isaac";
parent.__c.LogImpl("216711738","Esto es i----->"+BA.NumberToString(_i),0);
parent.__c.LogImpl("012058682","Esto es i----->"+BA.NumberToString(_i),0);
//BA.debugLineNum = 198;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
_tm = new anywheresoftware.b4a.objects.collections.Map();
_tm = parent._subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,parent._c2.GetString("CAT_GP_ID"),parent._clienteid);
@@ -925,7 +925,7 @@ case 33:
this.state = 34;
;
//BA.debugLineNum = 203;BA.debugLine="Log(hayPromos)";
parent.__c.LogImpl("216711744",BA.ObjectToString(_haypromos),0);
parent.__c.LogImpl("012058688",BA.ObjectToString(_haypromos),0);
//BA.debugLineNum = 204;BA.debugLine="If hayPromos Then lv_catalogos.AddSingleLine(\"P";
if (true) break;
@@ -952,7 +952,7 @@ case 41:
//C
this.state = 42;
//BA.debugLineNum = 206;BA.debugLine="Log(\"NO HAY PROMOS\")";
parent.__c.LogImpl("216711747","NO HAY PROMOS",0);
parent.__c.LogImpl("012058691","NO HAY PROMOS",0);
if (true) break;
case 42:
@@ -1285,7 +1285,7 @@ for (;_i <= limit18 ;_i = _i + step18 ) {
//BA.debugLineNum = 119;BA.debugLine="c.Position=i";
_c.setPosition(_i);
//BA.debugLineNum = 120;BA.debugLine="Log(\"ENTRE AQUI EN PROMOS create\")";
__c.LogImpl("216646166","ENTRE AQUI EN PROMOS create",0);
__c.LogImpl("011993110","ENTRE AQUI EN PROMOS create",0);
//BA.debugLineNum = 121;BA.debugLine="lv_tipo.AddSingleLine(c.GetString(\"CAT_GP_TIPO\"";
_lv_tipo.AddSingleLine(BA.ObjectToCharSequence(_c.GetString("CAT_GP_TIPO")));
}
@@ -1424,7 +1424,7 @@ this.state = -1;
_p = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_p = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_DP_CONVERSION1, CAT_DP_PRECIO4, PE_BCAJAS, CAT_DP_CANT_MIN_VENTA from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_NOMBRE like '%"+parent.__c.SmartStringFormatter("",(Object)(_new))+"%' AND CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' and CAT_GP_CLASIF IN ("+parent.__c.SmartStringFormatter("",(Object)(_marcas))+") AND CAT_GP_CLASIF <> 'ALEN PROMOCIONES' union all select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_DP_CONVERSION1, CAT_DP_PRECIO4 , PE_BCAJAS, CAT_DP_CANT_MIN_VENTA from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and CAT_GP_CLASIF IN ("+parent.__c.SmartStringFormatter("",(Object)(_marcas))+") AND CAT_GP_CLASIF <> 'ALEN PROMOCIONES' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2"))));
//BA.debugLineNum = 1290;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
parent.__c.LogImpl("218546709","Llamamos LlenaProdsLL",0);
parent.__c.LogImpl("013893653","Llamamos LlenaProdsLL",0);
//BA.debugLineNum = 1291;BA.debugLine="LlenaProdsLL(p)";
parent._llenaprodsll(_p);
//BA.debugLineNum = 1310;BA.debugLine="End Sub";
@@ -1719,7 +1719,7 @@ if (((float)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) a
//BA.debugLineNum = 1228;BA.debugLine="Private maxcajas As Int = 0";
_maxcajas = (int) (0);
//BA.debugLineNum = 1229;BA.debugLine="Log(\"cajas a 0\")";
__c.LogImpl("218481237","cajas a 0",0);
__c.LogImpl("013828181","cajas a 0",0);
}else {
//BA.debugLineNum = 1231;BA.debugLine="Private maxcajas As Int = clv_prods_ll.GetVal";
_maxcajas = (int) ((double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("almacen"))))/(double)(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("conversion")))));
@@ -1739,11 +1739,11 @@ _p_botmasmenc.setVisible(__c.False);
//BA.debugLineNum = 1246;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"almac";
if ((double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("almacen"))))<(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("conversion"))))) {
//BA.debugLineNum = 1247;BA.debugLine="Log(clv_prods_ll.GetValue(i).As(Map).Get(\"can";
__c.LogImpl("218481255",BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("cant"))),0);
__c.LogImpl("013828199",BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("cant"))),0);
//BA.debugLineNum = 1248;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant";
if (((int)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("cant")))))==0) {
//BA.debugLineNum = 1249;BA.debugLine="Log(\"Aqui debemos ponerlo invisible\")";
__c.LogImpl("218481257","Aqui debemos ponerlo invisible",0);
__c.LogImpl("013828201","Aqui debemos ponerlo invisible",0);
//BA.debugLineNum = 1250;BA.debugLine="p_botMasMenc.Visible = False";
_p_botmasmenc.setVisible(__c.False);
}else {
@@ -1767,7 +1767,7 @@ return null;
public String _cuentaprods() throws Exception{
//BA.debugLineNum = 813;BA.debugLine="Sub cuentaProds";
//BA.debugLineNum = 815;BA.debugLine="Log(\"===========================\")";
__c.LogImpl("217563650","===========================",0);
__c.LogImpl("012910594","===========================",0);
//BA.debugLineNum = 816;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(PE_COSTO_TOT) as total, sum(PE_CANT) as cant from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_clienteid))+"'"))));
@@ -1794,7 +1794,7 @@ anywheresoftware.b4a.objects.B4XViewWrapper _lacant2 = null;
String _id = "";
//BA.debugLineNum = 696;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
//BA.debugLineNum = 697;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma";
__c.LogImpl("217432577",("focus changed="+__c.SmartStringFormatter("",(Object)(_hasfocus))+""),__c.Colors.Magenta);
__c.LogImpl("012779521",("focus changed="+__c.SmartStringFormatter("",(Object)(_hasfocus))+""),__c.Colors.Magenta);
//BA.debugLineNum = 698;BA.debugLine="If et_pCant.Text = \"\" Then et_pCant.Text = \"0\"";
if ((_et_pcant.getText()).equals("")) {
_et_pcant.setText(BA.ObjectToCharSequence("0"));};
@@ -1820,7 +1820,7 @@ _lacant.setText(BA.ObjectToCharSequence("0"));};
//BA.debugLineNum = 706;BA.debugLine="etCantHasFocus = HasFocus";
_etcanthasfocus = _hasfocus;
//BA.debugLineNum = 707;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("217432587",_lacant.getText(),__c.Colors.Red);
__c.LogImpl("012779531",_lacant.getText(),__c.Colors.Red);
//BA.debugLineNum = 708;BA.debugLine="If laCant2.IsInitialized Then";
if (_lacant2.IsInitialized()) {
//BA.debugLineNum = 709;BA.debugLine="totalcajasmaspiezas = laCant.Text + laCant2.Text";
@@ -1857,7 +1857,7 @@ int _maxcajas = 0;
//BA.debugLineNum = 722;BA.debugLine="If etCantHasFocus = True Then";
if (_etcanthasfocus==__c.True) {
//BA.debugLineNum = 723;BA.debugLine="LogColor($\"txt changed: ${Old}|${New}, hasfocus=";
__c.LogImpl("217498116",("txt changed: "+__c.SmartStringFormatter("",(Object)(_old))+"|"+__c.SmartStringFormatter("",(Object)(_new))+", hasfocus="+__c.SmartStringFormatter("",(Object)(_etcanthasfocus))+""),__c.Colors.Magenta);
__c.LogImpl("012845060",("txt changed: "+__c.SmartStringFormatter("",(Object)(_old))+"|"+__c.SmartStringFormatter("",(Object)(_new))+", hasfocus="+__c.SmartStringFormatter("",(Object)(_etcanthasfocus))+""),__c.Colors.Magenta);
//BA.debugLineNum = 724;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(";
_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 725;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(inde";
@@ -1906,7 +1906,7 @@ _new = BA.NumberToString(0);};
if ((_lacant.getText()).equals("")) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 748;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("217498141",_lacant.getText(),__c.Colors.Red);
__c.LogImpl("012845085",_lacant.getText(),__c.Colors.Red);
//BA.debugLineNum = 750;BA.debugLine="If New > 0 Then";
if ((double)(Double.parseDouble(_new))>0) {
//BA.debugLineNum = 751;BA.debugLine="panelcajas.Visible = False";
@@ -1918,7 +1918,7 @@ _panelcajas.setVisible(__c.True);
//BA.debugLineNum = 762;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant.Text <";
if (__c.Not((_old).equals("0") && (_new).equals("")) && _lacant.getText()!= null && (_lacant.getText()).equals("") == false && _etcanthasfocus) {
//BA.debugLineNum = 763;BA.debugLine="Log(\"actualizamos producto\")";
__c.LogImpl("217498156","actualizamos producto",0);
__c.LogImpl("012845100","actualizamos producto",0);
//BA.debugLineNum = 764;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio";
_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,(int)(Double.parseDouble(_lacant.getText())),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0));
//BA.debugLineNum = 765;BA.debugLine="cuentaProds";
@@ -1940,7 +1940,7 @@ _o.setPosition((int) (0));
//BA.debugLineNum = 785;BA.debugLine="invActualizado = Subs.traeinventario(id)";
_invactualizado = _subs._traeinventario /*String*/ (ba,_id);
//BA.debugLineNum = 786;BA.debugLine="Log(Subs.traeinventario(id))";
__c.LogImpl("217498179",_subs._traeinventario /*String*/ (ba,_id),0);
__c.LogImpl("012845123",_subs._traeinventario /*String*/ (ba,_id),0);
//BA.debugLineNum = 789;BA.debugLine="If New = \"\" Then New = 0";
if ((_new).equals("")) {
_new = BA.NumberToString(0);};
@@ -1949,12 +1949,12 @@ if (((float)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) a
//BA.debugLineNum = 791;BA.debugLine="Private maxcajas As Int = 0";
_maxcajas = (int) (0);
//BA.debugLineNum = 792;BA.debugLine="Log(\"cajas a 0\")";
__c.LogImpl("217498185","cajas a 0",0);
__c.LogImpl("012845129","cajas a 0",0);
}else {
//BA.debugLineNum = 794;BA.debugLine="Private maxcajas As Int = invActualizado/clv_p";
_maxcajas = (int) ((double)(Double.parseDouble(_invactualizado))/(double)(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("conversion")))));
//BA.debugLineNum = 795;BA.debugLine="Log(\"cajas no a 0\")";
__c.LogImpl("217498188","cajas no a 0",0);
__c.LogImpl("012845132","cajas no a 0",0);
};
//BA.debugLineNum = 797;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(nombr";
_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+(_subs._traeinventario /*String*/ (ba,_id)))).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence((" $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Max. Cajas: "+__c.SmartStringFormatter("",(Object)(_maxcajas))+""))).PopAll().getObject()));
@@ -1986,7 +1986,7 @@ anywheresoftware.b4a.objects.B4XViewWrapper _lacant2 = null;
String _id = "";
//BA.debugLineNum = 1591;BA.debugLine="Private Sub et_pCantc_FocusChanged (HasFocus As Bo";
//BA.debugLineNum = 1592;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma";
__c.LogImpl("218743297",("focus changed="+__c.SmartStringFormatter("",(Object)(_hasfocus))+""),__c.Colors.Magenta);
__c.LogImpl("014090241",("focus changed="+__c.SmartStringFormatter("",(Object)(_hasfocus))+""),__c.Colors.Magenta);
//BA.debugLineNum = 1593;BA.debugLine="If et_pCantc.Text = \"\" Then et_pCantc.Text = \"0\"";
if ((_et_pcantc.getText()).equals("")) {
_et_pcantc.setText(BA.ObjectToCharSequence("0"));};
@@ -2081,12 +2081,12 @@ _preciocaja = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map)
//BA.debugLineNum = 1636;BA.debugLine="invTotal = Subs.traeinventario(id)";
_invtotal = (int)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)));
//BA.debugLineNum = 1637;BA.debugLine="Log(\"inventario total \"& invTotal)";
__c.LogImpl("218808855","inventario total "+BA.NumberToString(_invtotal),0);
__c.LogImpl("014155799","inventario total "+BA.NumberToString(_invtotal),0);
//BA.debugLineNum = 1638;BA.debugLine="If(New = \"\" Or New = Null Or New = \"-\") Then New";
if (((_new).equals("") || _new== null || (_new).equals("-"))) {
_new = BA.NumberToString(0);};
//BA.debugLineNum = 1640;BA.debugLine="Log(($\"new*conversion ${New * conversion} > ${i";
__c.LogImpl("218808858",(("new*conversion "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_new))*(double)(Double.parseDouble(_conversion))))+" > "+__c.SmartStringFormatter("",(Object)(_invtotal))+" = "+__c.SmartStringFormatter("",(Object)((((double)(Double.parseDouble(_new))*(double)(Double.parseDouble(_conversion)))>_invtotal)))+"")),0);
__c.LogImpl("014155802",(("new*conversion "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_new))*(double)(Double.parseDouble(_conversion))))+" > "+__c.SmartStringFormatter("",(Object)(_invtotal))+" = "+__c.SmartStringFormatter("",(Object)((((double)(Double.parseDouble(_new))*(double)(Double.parseDouble(_conversion)))>_invtotal)))+"")),0);
//BA.debugLineNum = 1641;BA.debugLine="If((New * conversion) > invTotal) Then";
if ((((double)(Double.parseDouble(_new))*(double)(Double.parseDouble(_conversion)))>_invtotal)) {
//BA.debugLineNum = 1643;BA.debugLine="Sender.As(EditText).text = 0";
@@ -2096,10 +2096,10 @@ _new = BA.NumberToString(0);
//BA.debugLineNum = 1646;BA.debugLine="pnl.GetView(2).Visible = True";
_pnl.GetView((int) (2)).setVisible(__c.True);
//BA.debugLineNum = 1647;BA.debugLine="Log(\"ponemos en 0\")";
__c.LogImpl("218808865","ponemos en 0",0);
__c.LogImpl("014155809","ponemos en 0",0);
};
//BA.debugLineNum = 1651;BA.debugLine="Log(\"inventario total despues de max \"& invTotal";
__c.LogImpl("218808869","inventario total despues de max "+BA.NumberToString(_invtotal),0);
__c.LogImpl("014155813","inventario total despues de max "+BA.NumberToString(_invtotal),0);
//BA.debugLineNum = 1653;BA.debugLine="If New = \"\" Then New = 0";
if ((_new).equals("")) {
_new = BA.NumberToString(0);};
@@ -2109,7 +2109,7 @@ _lacant2.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 1657;BA.debugLine="If New > 0 Then";
if ((double)(Double.parseDouble(_new))>0) {
//BA.debugLineNum = 1658;BA.debugLine="Log(\"lo ocultamos\")";
__c.LogImpl("218808876","lo ocultamos",0);
__c.LogImpl("014155820","lo ocultamos",0);
//BA.debugLineNum = 1659;BA.debugLine="panelpiezas.Visible = False";
_panelpiezas.setVisible(__c.False);
}else if((_new).equals(BA.NumberToString(0))) {
@@ -2117,15 +2117,15 @@ _panelpiezas.setVisible(__c.False);
_panelpiezas.setVisible(__c.True);
};
//BA.debugLineNum = 1669;BA.debugLine="Log(\"InvTotal: \" & invTotal)";
__c.LogImpl("218808887","InvTotal: "+BA.NumberToString(_invtotal),0);
__c.LogImpl("014155831","InvTotal: "+BA.NumberToString(_invtotal),0);
//BA.debugLineNum = 1671;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant2.Text";
if (__c.Not((_old).equals("0") && (_new).equals("")) && _lacant2.getText()!= null && (_lacant2.getText()).equals("") == false && _etcanthasfocus) {
//BA.debugLineNum = 1672;BA.debugLine="If invTotal - (laCant2.Text * conversion) >= 0";
if (_invtotal-((double)(Double.parseDouble(_lacant2.getText()))*(double)(Double.parseDouble(_conversion)))>=0) {
//BA.debugLineNum = 1673;BA.debugLine="LogColor(\"validacion inventariio \" & (invTotal";
__c.LogImpl("218808891","validacion inventariio "+BA.NumberToString((_invtotal-((double)(Double.parseDouble(_lacant2.getText()))*(double)(Double.parseDouble(_conversion))))),__c.Colors.Blue);
__c.LogImpl("014155835","validacion inventariio "+BA.NumberToString((_invtotal-((double)(Double.parseDouble(_lacant2.getText()))*(double)(Double.parseDouble(_conversion))))),__c.Colors.Blue);
//BA.debugLineNum = 1674;BA.debugLine="Log(\"actualizamos producto\")";
__c.LogImpl("218808892","actualizamos producto",0);
__c.LogImpl("014155836","actualizamos producto",0);
//BA.debugLineNum = 1675;BA.debugLine="Subs.actualizaProducto2(Subs.traeAlmacen, pre";
_subs._actualizaproducto2 /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_preciocaja,(int) (((double)(Double.parseDouble(_lacant2.getText()))*(double)(Double.parseDouble(_conversion)))),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,_lacant2.getText(),BA.NumberToString(1));
//BA.debugLineNum = 1676;BA.debugLine="cuentaProds";
@@ -2136,11 +2136,11 @@ _totalcajaspermi = (int) (_invtotal/(double)(double)(Double.parseDouble(_convers
//BA.debugLineNum = 1679;BA.debugLine="laCant2.Text = totalcajaspermi";
_lacant2.setText(BA.ObjectToCharSequence(_totalcajaspermi));
//BA.debugLineNum = 1680;BA.debugLine="Log(\"cajas permitidas total por guerra \"& tota";
__c.LogImpl("218808898","cajas permitidas total por guerra "+BA.NumberToString(_totalcajaspermi),0);
__c.LogImpl("014155842","cajas permitidas total por guerra "+BA.NumberToString(_totalcajaspermi),0);
};
};
//BA.debugLineNum = 1683;BA.debugLine="LogColor(\"la cant2 \" & laCant2.Text,Colors.Green";
__c.LogImpl("218808901","la cant2 "+_lacant2.getText(),__c.Colors.Green);
__c.LogImpl("014155845","la cant2 "+_lacant2.getText(),__c.Colors.Green);
//BA.debugLineNum = 1696;BA.debugLine="If 1 = 1 Then";
if (1==1) {
//BA.debugLineNum = 1697;BA.debugLine="Private cs As CSBuilder";
@@ -2157,7 +2157,7 @@ _o.setPosition((int) (0));
//BA.debugLineNum = 1703;BA.debugLine="invActualizado = Subs.traeinventario(id)";
_invactualizado = _subs._traeinventario /*String*/ (ba,_id);
//BA.debugLineNum = 1704;BA.debugLine="Log(Subs.traeinventario(id))";
__c.LogImpl("218808922",_subs._traeinventario /*String*/ (ba,_id),0);
__c.LogImpl("014155866",_subs._traeinventario /*String*/ (ba,_id),0);
//BA.debugLineNum = 1707;BA.debugLine="If New = \"\" Then New = 0";
if ((_new).equals("")) {
_new = BA.NumberToString(0);};
@@ -2166,12 +2166,12 @@ if (((float)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) a
//BA.debugLineNum = 1709;BA.debugLine="Private maxcajas2 As Int = 0";
_maxcajas2 = (int) (0);
//BA.debugLineNum = 1710;BA.debugLine="Log(\"cajas a 0\")";
__c.LogImpl("218808928","cajas a 0",0);
__c.LogImpl("014155872","cajas a 0",0);
}else {
//BA.debugLineNum = 1712;BA.debugLine="Private maxcajas2 As Int = invActualizado/clv_";
_maxcajas2 = (int) ((double)(Double.parseDouble(_invactualizado))/(double)(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("conversion")))));
//BA.debugLineNum = 1713;BA.debugLine="Log(\"cajas no a 0\")";
__c.LogImpl("218808931","cajas no a 0",0);
__c.LogImpl("014155875","cajas no a 0",0);
};
//BA.debugLineNum = 1715;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(nombr";
_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+(_subs._traeinventario /*String*/ (ba,_id)))).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence((" $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Max. Cajas: "+__c.SmartStringFormatter("",(Object)(_maxcajas2))+""))).PopAll().getObject()));
@@ -2215,14 +2215,14 @@ _cant1 = _p.GetView((int) (2)).GetView((int) (2));
//BA.debugLineNum = 1139;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S";
_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 1141;BA.debugLine="Log(cant1.Text)";
__c.LogImpl("218415623",_cant1.getText(),0);
__c.LogImpl("013762567",_cant1.getText(),0);
//BA.debugLineNum = 1142;BA.debugLine="End Sub";
return "";
}
public String _l_prodx_longclick() throws Exception{
//BA.debugLineNum = 919;BA.debugLine="Private Sub l_prodX_LongClick";
//BA.debugLineNum = 920;BA.debugLine="Log(\"longclic = \"&Sender.as(Label).tag)";
__c.LogImpl("217760257","longclic = "+BA.ObjectToString(((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(__c.Sender(ba)))).getTag()),0);
__c.LogImpl("013107201","longclic = "+BA.ObjectToString(((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(__c.Sender(ba)))).getTag()),0);
//BA.debugLineNum = 921;BA.debugLine="l_info.Text = Sender.as(Label).tag";
_l_info.setText(BA.ObjectToCharSequence(((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(__c.Sender(ba)))).getTag()));
//BA.debugLineNum = 922;BA.debugLine="l_info.Visible = True";
@@ -2251,7 +2251,7 @@ anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
int _pr = 0;
//BA.debugLineNum = 1312;BA.debugLine="Sub LlenaProdsLL(p As ResultSet)";
//BA.debugLineNum = 1313;BA.debugLine="Log(\"Iniciamos LlenaProdsLL\")";
__c.LogImpl("218612225","Iniciamos LlenaProdsLL",0);
__c.LogImpl("013959169","Iniciamos LlenaProdsLL",0);
//BA.debugLineNum = 1314;BA.debugLine="listaProds.Initialize";
_listaprods.Initialize();
//BA.debugLineNum = 1315;BA.debugLine="If hayPedido Then 'Si hay pedido obtenemos las ca";
@@ -2264,7 +2264,7 @@ _cantsmap.Initialize();
_pe = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_pe = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct PE_PROID, PE_CANT, PE_CANTC, PE_BCAJAS from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_clienteid))+"' and PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ))+"'"))));
//BA.debugLineNum = 1320;BA.debugLine="LogColor(\"||||||||||||||||||||||||||>\"&B4XPages.";
__c.LogImpl("218612232","||||||||||||||||||||||||||>"+_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,__c.Colors.Yellow);
__c.LogImpl("013959176","||||||||||||||||||||||||||>"+_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,__c.Colors.Yellow);
//BA.debugLineNum = 1322;BA.debugLine="Do While pe.NextRow";
while (_pe.NextRow()) {
//BA.debugLineNum = 1323;BA.debugLine="Private cant As Int = 0";
@@ -2278,7 +2278,7 @@ _cantsmap.Put((Object)(_pe.GetString("PE_PROID")),(Object)(_pe.GetString("PE_CAN
_cantsmap.Put((Object)(_pe.GetString("PE_PROID")),(Object)(_pe.GetString("PE_CANTC")));
};
//BA.debugLineNum = 1329;BA.debugLine="Log(clienteId &\"|||||\"&pe.GetString(\"PE_PROID\")";
__c.LogImpl("218612241",_clienteid+"|||||"+_pe.GetString("PE_PROID")+"|||||"+_pe.GetString("PE_CANT"),0);
__c.LogImpl("013959185",_clienteid+"|||||"+_pe.GetString("PE_PROID")+"|||||"+_pe.GetString("PE_CANT"),0);
}
;
//BA.debugLineNum = 1331;BA.debugLine="pe.Close";
@@ -2288,7 +2288,7 @@ _pe.Close();
if (_p.IsInitialized()) {
}else {
//BA.debugLineNum = 1338;BA.debugLine="LogColor(Starter.tabla,Colors.blue)";
__c.LogImpl("218612250",_starter._tabla /*String*/ ,__c.Colors.Blue);
__c.LogImpl("013959194",_starter._tabla /*String*/ ,__c.Colors.Blue);
//BA.debugLineNum = 1341;BA.debugLine="Dim marcas As String = \"\"";
_marcas = "";
//BA.debugLineNum = 1342;BA.debugLine="Dim m As Cursor = B4XPages.MainPage.skmt.ExecQue";
@@ -2312,7 +2312,7 @@ _cant = (int) (0);
//BA.debugLineNum = 1353;BA.debugLine="If hayPedido And cantsMap.ContainsKey(p.GetStrin";
if (_haypedido && _cantsmap.ContainsKey((Object)(_p.GetString("CAT_GP_ID")))) {
//BA.debugLineNum = 1354;BA.debugLine="Log(p.GetString(\"CAT_GP_ID\"))";
__c.LogImpl("218612266",_p.GetString("CAT_GP_ID"),0);
__c.LogImpl("013959210",_p.GetString("CAT_GP_ID"),0);
//BA.debugLineNum = 1355;BA.debugLine="cant = cantsMap.Get(p.GetString(\"CAT_GP_ID\"))";
_cant = (int)(BA.ObjectToNumber(_cantsmap.Get((Object)(_p.GetString("CAT_GP_ID")))));
};
@@ -2554,7 +2554,7 @@ parent._busca.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 333;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
_cliente = (medicomed.keymon.com.mx.c_cliente)(parent._b4xpages._getpage /*Object*/ (ba,"Cliente"));
//BA.debugLineNum = 334;BA.debugLine="Log($\"value=${Value}\"$)";
parent.__c.LogImpl("216908292",("value="+parent.__c.SmartStringFormatter("",_value)+""),0);
parent.__c.LogImpl("012255236",("value="+parent.__c.SmartStringFormatter("",_value)+""),0);
//BA.debugLineNum = 335;BA.debugLine="If Value = \"PROMOS\" And cliente.cuenta <> \"N\" The";
if (true) break;
@@ -2602,7 +2602,7 @@ case 8:
//C
this.state = 11;
//BA.debugLineNum = 344;BA.debugLine="LogColor(\"Promos\", Colors.red)";
parent.__c.LogImpl("216908302","Promos",parent.__c.Colors.Red);
parent.__c.LogImpl("012255246","Promos",parent.__c.Colors.Red);
//BA.debugLineNum = 345;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select C";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD = ? AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) ) ORDER BY 1"),new String[]{BA.ObjectToString(_value),parent._marca,parent._tipo})));
if (true) break;
@@ -2611,7 +2611,7 @@ case 10:
//C
this.state = 11;
//BA.debugLineNum = 347;BA.debugLine="LogColor(\"Catalogo\", Colors.red)";
parent.__c.LogImpl("216908305","Catalogo",parent.__c.Colors.Red);
parent.__c.LogImpl("012255249","Catalogo",parent.__c.Colors.Red);
//BA.debugLineNum = 348;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery($\"select CAT";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD <> 'PROMOS' "))));
if (true) break;
@@ -2637,7 +2637,7 @@ parent._lv_promos.setVisible(parent.__c.False);
//BA.debugLineNum = 353;BA.debugLine="lfila.text = \"CATALOGO\"";
parent._lfila.setText(BA.ObjectToCharSequence("CATALOGO"));
//BA.debugLineNum = 354;BA.debugLine="Log(\"PGS\")";
parent.__c.LogImpl("216908312","PGS",0);
parent.__c.LogImpl("012255256","PGS",0);
//BA.debugLineNum = 355;BA.debugLine="ProgressDialogShow(\"Cargando catalogo ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Cargando catalogo ..."));
//BA.debugLineNum = 356;BA.debugLine="Sleep(100)";
@@ -2655,9 +2655,9 @@ parent._llenacatalogo(BA.ObjectToString(parent.__c.False));
//BA.debugLineNum = 359;BA.debugLine="clv_prods_ll.AsView.Visible = True";
parent._clv_prods_ll._asview().setVisible(parent.__c.True);
//BA.debugLineNum = 360;BA.debugLine="Log(\"PGH\")";
parent.__c.LogImpl("216908318","PGH",0);
parent.__c.LogImpl("012255262","PGH",0);
//BA.debugLineNum = 361;BA.debugLine="LogColor(\"TIEMPO DE PROCESO DEL CATALOGO: \" & ((";
parent.__c.LogImpl("216908319","TIEMPO DE PROCESO DEL CATALOGO: "+BA.NumberToString(((parent.__c.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),parent.__c.Colors.Red);
parent.__c.LogImpl("012255263","TIEMPO DE PROCESO DEL CATALOGO: "+BA.NumberToString(((parent.__c.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),parent.__c.Colors.Red);
//BA.debugLineNum = 362;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
//BA.debugLineNum = 363;BA.debugLine="c2.Close";
@@ -2823,7 +2823,7 @@ _stime = "";
_clie_id = "";
_usuario = "";
//BA.debugLineNum = 1016;BA.debugLine="Log(Value)";
__c.LogImpl("218284546",BA.ObjectToString(_value),0);
__c.LogImpl("013631490",BA.ObjectToString(_value),0);
//BA.debugLineNum = 1017;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
//BA.debugLineNum = 1019;BA.debugLine="Private nom As String = \"\"";
@@ -2850,11 +2850,11 @@ if (true) break;
//BA.debugLineNum = 1029;BA.debugLine="nom = nom.Trim";
_nom = _nom.trim();
//BA.debugLineNum = 1030;BA.debugLine="Log(nom)";
__c.LogImpl("218284560",_nom,0);
__c.LogImpl("013631504",_nom,0);
//BA.debugLineNum = 1031;BA.debugLine="Private cedis As String = X(X.Length-1)";
_cedis = _x[(int) (_x.length-1)];
//BA.debugLineNum = 1032;BA.debugLine="Log(cedis)";
__c.LogImpl("218284562",_cedis,0);
__c.LogImpl("013631506",_cedis,0);
//BA.debugLineNum = 1034;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar este a";
_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
//BA.debugLineNum = 1035;BA.debugLine="If result = DialogResponse.POSITIVE Then";
@@ -2864,29 +2864,29 @@ _c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 1037;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 1038;BA.debugLine="Log(vamoaver.Get(Position))";
__c.LogImpl("218284568",BA.ObjectToString(_vamoaver.Get(_position)),0);
__c.LogImpl("013631512",BA.ObjectToString(_vamoaver.Get(_position)),0);
//BA.debugLineNum = 1039;BA.debugLine="If vamoaver.Get(Position) = \"VENTA\" Then";
if ((_vamoaver.Get(_position)).equals((Object)("VENTA"))) {
//BA.debugLineNum = 1040;BA.debugLine="Log(\"CAT_GUNAPROD2\")";
__c.LogImpl("218284570","CAT_GUNAPROD2",0);
__c.LogImpl("013631514","CAT_GUNAPROD2",0);
//BA.debugLineNum = 1041;BA.debugLine="Log(Position)";
__c.LogImpl("218284571",BA.NumberToString(_position),0);
__c.LogImpl("013631515",BA.NumberToString(_position),0);
//BA.debugLineNum = 1042;BA.debugLine="Log(Value)";
__c.LogImpl("218284572",BA.ObjectToString(_value),0);
__c.LogImpl("013631516",BA.ObjectToString(_value),0);
//BA.debugLineNum = 1043;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\"";
_starter._tabla /*String*/ = "CAT_GUNAPROD2";
}else {
//BA.debugLineNum = 1045;BA.debugLine="Log(\"CAT_GUNAPROD\")";
__c.LogImpl("218284575","CAT_GUNAPROD",0);
__c.LogImpl("013631519","CAT_GUNAPROD",0);
//BA.debugLineNum = 1046;BA.debugLine="Log(Position)";
__c.LogImpl("218284576",BA.NumberToString(_position),0);
__c.LogImpl("013631520",BA.NumberToString(_position),0);
//BA.debugLineNum = 1047;BA.debugLine="Log(Value)";
__c.LogImpl("218284577",BA.ObjectToString(_value),0);
__c.LogImpl("013631521",BA.ObjectToString(_value),0);
//BA.debugLineNum = 1048;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
_starter._tabla /*String*/ = "CAT_GUNAPROD";
};
//BA.debugLineNum = 1050;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("218284580",_subs._traealmacen /*String*/ (ba),0);
__c.LogImpl("013631524",_subs._traealmacen /*String*/ (ba),0);
//BA.debugLineNum = 1053;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_c.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_c.GetString("PE_CANT")))*-1)}));
//BA.debugLineNum = 1056;BA.debugLine="If cedis <> Subs.traeAlmacen Then";
@@ -2894,11 +2894,11 @@ if ((_cedis).equals(_subs._traealmacen /*String*/ (ba)) == false) {
//BA.debugLineNum = 1057;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_PRONOMBRE = ? and PE_CEDIS = ?)",new String[]{_nom,_cedis})));
//BA.debugLineNum = 1058;BA.debugLine="Log(j3.RowCount)";
__c.LogImpl("218284588",BA.NumberToString(_j3.getRowCount()),0);
__c.LogImpl("013631532",BA.NumberToString(_j3.getRowCount()),0);
//BA.debugLineNum = 1059;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 1060;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("218284590","Soy promo",0);
__c.LogImpl("013631534","Soy promo",0);
//BA.debugLineNum = 1061;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step41 = 1;
@@ -2906,13 +2906,13 @@ final int limit41 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit41 ;_j = _j + step41 ) {
//BA.debugLineNum = 1062;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("218284592","aqui tronare?",0);
__c.LogImpl("013631536","aqui tronare?",0);
//BA.debugLineNum = 1064;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 1065;BA.debugLine="Log(j3.GetString(\"PE_CANT\"))";
__c.LogImpl("218284595",_j3.GetString("PE_CANT"),0);
__c.LogImpl("013631539",_j3.GetString("PE_CANT"),0);
//BA.debugLineNum = 1066;BA.debugLine="Log($\"update ${Starter.tabla} set CAT_GP_ALMA";
__c.LogImpl("218284596",("update "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" set CAT_GP_ALMACEN = CAT_GP_ALMACEN + '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+"' where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'"),0);
__c.LogImpl("013631540",("update "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" set CAT_GP_ALMACEN = CAT_GP_ALMACEN + '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+"' where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'"),0);
//BA.debugLineNum = 1067;BA.debugLine="If vamoaver.Get(Position) = \"PREVENTA_CREDITO";
if ((_vamoaver.Get(_position)).equals((Object)("PREVENTA_CREDITO"))) {
//BA.debugLineNum = 1068;BA.debugLine="Starter.skmt.ExecNonQuery($\"update CAT_GUNAP";
@@ -2932,9 +2932,9 @@ _b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywher
_j3.Close();
}else {
//BA.debugLineNum = 1078;BA.debugLine="Log(c.GetString(\"PE_CANT\"))";
__c.LogImpl("218284608",_c.GetString("PE_CANT"),0);
__c.LogImpl("013631552",_c.GetString("PE_CANT"),0);
//BA.debugLineNum = 1079;BA.debugLine="Log(c.Getstring(\"PE_PROID\"))";
__c.LogImpl("218284609",_c.GetString("PE_PROID"),0);
__c.LogImpl("013631553",_c.GetString("PE_PROID"),0);
//BA.debugLineNum = 1080;BA.debugLine="If vamoaver.Get(Position) = \"PREVENTA_CREDITO\"";
if ((_vamoaver.Get(_position)).equals((Object)("PREVENTA_CREDITO"))) {
//BA.debugLineNum = 1081;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update C";
@@ -2975,7 +2975,7 @@ _c.setPosition((int) (0));
//BA.debugLineNum = 1101;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) {
//BA.debugLineNum = 1102;BA.debugLine="Log(\"aqui5\")";
__c.LogImpl("218284632","aqui5",0);
__c.LogImpl("013631576","aqui5",0);
//BA.debugLineNum = 1103;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)");
//BA.debugLineNum = 1104;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in";
@@ -2988,7 +2988,7 @@ _b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywher
_h = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )")));
//BA.debugLineNum = 1108;BA.debugLine="Log($\"select sum(PE_CANT) as PC_NOART, sum (PE_";
__c.LogImpl("218284638",("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"),0);
__c.LogImpl("013631582",("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"),0);
//BA.debugLineNum = 1109;BA.debugLine="h.Position=0";
_h.setPosition((int) (0));
//BA.debugLineNum = 1110;BA.debugLine="l_cant.Text = h.GetString(\"PC_NOART\")";
@@ -2999,7 +2999,7 @@ _l_total2.setText(BA.ObjectToCharSequence(_h.GetString("PC_MONTO")));
_h.Close();
}else {
//BA.debugLineNum = 1114;BA.debugLine="Log(\"aqui6\")";
__c.LogImpl("218284644","aqui6",0);
__c.LogImpl("013631588","aqui6",0);
//BA.debugLineNum = 1115;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)");
//BA.debugLineNum = 1116;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt";
@@ -3067,7 +3067,7 @@ public String _lv_promos_itemlongclick(int _position,Object _value) throws Exce
String _id = "";
//BA.debugLineNum = 929;BA.debugLine="Private Sub lv_promos_ItemLongClick (Position As I";
//BA.debugLineNum = 930;BA.debugLine="Log(\"Promo longclic = \"&Value)";
__c.LogImpl("217891329","Promo longclic = "+BA.ObjectToString(_value),0);
__c.LogImpl("013238273","Promo longclic = "+BA.ObjectToString(_value),0);
//BA.debugLineNum = 931;BA.debugLine="Private id As String = \"\"";
_id = "";
//BA.debugLineNum = 932;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer";

View File

@@ -84,10 +84,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -155,7 +155,7 @@ _tpr = BA.NumberToString(0);
_prodsfijostot = (float) (_prodsfijostot+((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_tpr))));
//BA.debugLineNum = 244;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)";
if (_thislog) {
__c.LogImpl("263897628","|"+_tpi+"|"+_p,0);};
__c.LogImpl("021757980","|"+_tpi+"|"+_p,0);};
//BA.debugLineNum = 245;BA.debugLine="Private ntpi As Int = tpi * et_promoCant.text";
_ntpi = (int) ((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_et_promocant.getText())));
//BA.debugLineNum = 246;BA.debugLine="If addListItem And tpi > 0 Then lv_prodsFijos.Ad";
@@ -182,7 +182,7 @@ medicomed.keymon.com.mx.c_productos _prodspage = null;
//BA.debugLineNum = 557;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 558;BA.debugLine="Log(\"============================================";
__c.LogImpl("264749570","====================================================================",0);
__c.LogImpl("022609922","====================================================================",0);
//BA.debugLineNum = 559;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
{
final int step3 = 1;
@@ -254,7 +254,7 @@ _lacant = _pnl.GetView((int) (2)).GetView((int) (4));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
//BA.debugLineNum = 332;BA.debugLine="Log(esteTag)";
__c.LogImpl("264159755",BA.ObjectToString(_estetag),0);
__c.LogImpl("022020107",BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 333;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then";
if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) {
//BA.debugLineNum = 334;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text+1}\"$";
@@ -424,7 +424,7 @@ _prodsvarreq = (int) (_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getT
//BA.debugLineNum = 520;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text";
_prodsvarreq2 = (int) (_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText()))));
//BA.debugLineNum = 521;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
__c.LogImpl("264618505",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
__c.LogImpl("022478857",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
};
//BA.debugLineNum = 523;BA.debugLine="If et_promoCant.text > maxCantPromos Then et_prom";
if ((double)(Double.parseDouble(_et_promocant.getText()))>_maxcantpromos) {
@@ -454,7 +454,7 @@ _prodsvarreq = (int) (_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getT
//BA.debugLineNum = 507;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text.";
_prodsvarreq2 = (int) (_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText()))));
//BA.debugLineNum = 508;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr";
__c.LogImpl("264552970",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
__c.LogImpl("022413322",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
//BA.debugLineNum = 509;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 510;BA.debugLine="End Sub";
@@ -467,7 +467,7 @@ String _pn = "";
//BA.debugLineNum = 528;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 529;BA.debugLine="Log(\"============================================";
__c.LogImpl("264684034","====================================================================",0);
__c.LogImpl("022544386","====================================================================",0);
//BA.debugLineNum = 530;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
{
final int step3 = 1;
@@ -763,7 +763,7 @@ _pf = (int) (0) ;
for (;_pf <= limit10 ;_pf = _pf + step10 ) {
//BA.debugLineNum = 428;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get";
if (_thislog) {
__c.LogImpl("264421903",(""+__c.SmartStringFormatter("",(Object)(_tcpf))+" + "+__c.SmartStringFormatter("",_prodscants.Get(_pf))+" * "+__c.SmartStringFormatter("",_prodsprecios.Get(_pf))+" = "+__c.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf))))))+""),0);};
__c.LogImpl("022282255",(""+__c.SmartStringFormatter("",(Object)(_tcpf))+" + "+__c.SmartStringFormatter("",_prodscants.Get(_pf))+" * "+__c.SmartStringFormatter("",_prodsprecios.Get(_pf))+" = "+__c.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf))))))+""),0);};
//BA.debugLineNum = 429;BA.debugLine="tcpf = tcpf + (prodsPrecios.Get(pf) * prodsCants";
_tcpf = (float) (_tcpf+((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf)))));
}
@@ -806,7 +806,7 @@ if ((double)(Double.parseDouble(_cant1.getText()))>0) {
_totalcompra = (float) (_totalcompra+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant1.getText()))));
//BA.debugLineNum = 447;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma";
if (_thislog) {
__c.LogImpl("264421922",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
__c.LogImpl("022282274",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 448;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
_prodsids2.Add(_estetag.Get((int) (2)));
//BA.debugLineNum = 449;BA.debugLine="prodsCants2.Add(cant1.Text)";
@@ -851,7 +851,7 @@ if ((double)(Double.parseDouble(_cant2.getText()))>0) {
_totalcompra = (float) (_totalcompra+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant2.getText()))));
//BA.debugLineNum = 467;BA.debugLine="If thisLog Then Log($\"Cant: ${cant2.Text}, Suma";
if (_thislog) {
__c.LogImpl("264421942",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
__c.LogImpl("022282294",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 468;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
_prodsids2.Add(_estetag.Get((int) (2)));
//BA.debugLineNum = 469;BA.debugLine="prodsCants2.Add(cant2.Text)";
@@ -867,7 +867,7 @@ _l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormat
};
//BA.debugLineNum = 476;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},";
if (_thislog) {
__c.LogImpl("264421951",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);};
__c.LogImpl("022282303",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 477;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+"")));
//BA.debugLineNum = 478;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
@@ -886,17 +886,17 @@ _b_continuar.setVisible(__c.True);
};
//BA.debugLineNum = 488;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr";
if (_thislog) {
__c.LogImpl("264421963",(""+__c.SmartStringFormatter("",(Object)(_prodsids.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios.getObject()))+""),__c.Colors.Blue);};
__c.LogImpl("022282315",(""+__c.SmartStringFormatter("",(Object)(_prodsids.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios.getObject()))+""),__c.Colors.Blue);};
//BA.debugLineNum = 489;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p";
if (_thislog) {
__c.LogImpl("264421964",(""+__c.SmartStringFormatter("",(Object)(_prodsids2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios2.getObject()))+""),__c.Colors.Magenta);};
__c.LogImpl("022282316",(""+__c.SmartStringFormatter("",(Object)(_prodsids2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios2.getObject()))+""),__c.Colors.Magenta);};
//BA.debugLineNum = 491;BA.debugLine="End Sub";
return "";
}
public String _et_pcant_focuschanged(boolean _hasfocus) throws Exception{
//BA.debugLineNum = 493;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
//BA.debugLineNum = 494;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)";
__c.LogImpl("264487425","focus changed",__c.Colors.Magenta);
__c.LogImpl("022347777","focus changed",__c.Colors.Magenta);
//BA.debugLineNum = 495;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 496;BA.debugLine="End Sub";
@@ -954,10 +954,10 @@ _invdisppromo = new anywheresoftware.b4a.objects.collections.Map();
_invdisppromo = _subs._traemosinventariodisponibleparapromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_promo);
//BA.debugLineNum = 93;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) {
__c.LogImpl("263832073","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
__c.LogImpl("021692425","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
//BA.debugLineNum = 94;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) {
__c.LogImpl("263832074","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
__c.LogImpl("021692426","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
//BA.debugLineNum = 95;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable";
_maxcantpromos = _subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp);
//BA.debugLineNum = 96;BA.debugLine="et_promoCant.Text = 1";
@@ -970,10 +970,10 @@ _cs = new anywheresoftware.b4a.objects.CSBuilder();
_cs.Initialize();
//BA.debugLineNum = 100;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) {
__c.LogImpl("263832080",BA.ObjectToString(_mp),0);};
__c.LogImpl("021692432",BA.ObjectToString(_mp),0);};
//BA.debugLineNum = 101;BA.debugLine="If thisLog Then Log(prodsPromo)";
if (_thislog) {
__c.LogImpl("263832081",BA.ObjectToString(_prodspromo),0);};
__c.LogImpl("021692433",BA.ObjectToString(_prodspromo),0);};
//BA.debugLineNum = 102;BA.debugLine="Private listaPV As List = mp.Get(\"prodsVariables\"";
_listapv = new anywheresoftware.b4a.objects.collections.List();
_listapv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables"))));
@@ -998,7 +998,7 @@ _pv2 = new anywheresoftware.b4a.objects.collections.List();
_pv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables2"))));
//BA.debugLineNum = 116;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) {
__c.LogImpl("263832096",BA.ObjectToString(_mp),0);};
__c.LogImpl("021692448",BA.ObjectToString(_mp),0);};
//BA.debugLineNum = 117;BA.debugLine="tpf = 0";
_tpf = (int) (0);
//BA.debugLineNum = 118;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")";
@@ -1055,20 +1055,20 @@ _lv_prodsfijos.Clear();
_agregafijosalista(_mp,__c.True);
//BA.debugLineNum = 146;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod";
if (_thislog) {
__c.LogImpl("263832126","Total prods fijos = "+BA.NumberToString(_prodsfijostot),0);};
__c.LogImpl("021692478","Total prods fijos = "+BA.NumberToString(_prodsfijostot),0);};
//BA.debugLineNum = 148;BA.debugLine="l_totProds.text = $\"Productos: ${tpf}\"$";
_l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(_tpf))+"")));
//BA.debugLineNum = 149;BA.debugLine="l_total.Text = $\"Total: $$1.2{prodsFijosTot}\"$";
_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_prodsfijostot))+"")));
//BA.debugLineNum = 155;BA.debugLine="If thisLog Then Log($\"PV1: ${pv.Size}, ${pv}\"$)";
if (_thislog) {
__c.LogImpl("263832135",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);};
__c.LogImpl("021692487",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);};
//BA.debugLineNum = 156;BA.debugLine="If thisLog Then Log($\"PV2: ${pv2.Size}, ${pv2}\"$)";
if (_thislog) {
__c.LogImpl("263832136",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);};
__c.LogImpl("021692488",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);};
//BA.debugLineNum = 157;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)";
if (_thislog) {
__c.LogImpl("263832137","invDisp="+BA.ObjectToString(_invdisppromo),0);};
__c.LogImpl("021692489","invDisp="+BA.ObjectToString(_invdisppromo),0);};
//BA.debugLineNum = 158;BA.debugLine="clv_prodsVariabes.Clear";
_clv_prodsvariabes._clear();
//BA.debugLineNum = 159;BA.debugLine="clv_prodsVariabes2.Clear";
@@ -1092,7 +1092,7 @@ _thisprod = new anywheresoftware.b4a.objects.collections.Map();
_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p))));
//BA.debugLineNum = 170;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) {
__c.LogImpl("263832150",BA.ObjectToString(_thisprod),0);};
__c.LogImpl("021692502",BA.ObjectToString(_thisprod),0);};
//BA.debugLineNum = 171;BA.debugLine="clv_prodsVariabes.Add(CreateListItem(Subs.traeP";
_clv_prodsvariabes._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),_clv_prodsvariabes._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p));
};
@@ -1117,7 +1117,7 @@ _thisprod = new anywheresoftware.b4a.objects.collections.Map();
_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p))));
//BA.debugLineNum = 189;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) {
__c.LogImpl("263832169",BA.ObjectToString(_thisprod),0);};
__c.LogImpl("021692521",BA.ObjectToString(_thisprod),0);};
//BA.debugLineNum = 190;BA.debugLine="clv_prodsVariabes2.Add(CreateListItem2(Subs.tra";
_clv_prodsvariabes2._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),_clv_prodsvariabes2._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p));
};

View File

@@ -36,10 +36,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -60,7 +60,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 134;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 135;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("265339398",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
__c.LogImpl("023199750",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
};
}
catch (Exception e9) {
@@ -68,11 +68,11 @@ __c.LogImpl("265339398",("Columna \""+__c.SmartStringFormatter("",(Object)(_colu
try { //BA.debugLineNum = 139;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
_b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 140;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("265339403",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
__c.LogImpl("023199755",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
}
catch (Exception e13) {
ba.setLastException(e13); //BA.debugLineNum = 142;BA.debugLine="Log(LastException)";
__c.LogImpl("265339405",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("023199757",BA.ObjectToString(__c.LastException(ba)),0);
};
};
//BA.debugLineNum = 145;BA.debugLine="End Sub";
@@ -92,7 +92,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 152;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 153;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("265404934",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
__c.LogImpl("023265286",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
};
}
catch (Exception e9) {
@@ -100,11 +100,11 @@ __c.LogImpl("265404934",("Columna \""+__c.SmartStringFormatter("",(Object)(_colu
try { //BA.debugLineNum = 157;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 158;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("265404939",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
__c.LogImpl("023265291",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
}
catch (Exception e13) {
ba.setLastException(e13); //BA.debugLineNum = 160;BA.debugLine="Log(LastException)";
__c.LogImpl("265404941",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("023265293",BA.ObjectToString(__c.LastException(ba)),0);
};
};
//BA.debugLineNum = 163;BA.debugLine="End Sub";
@@ -189,7 +189,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 41;BA.debugLine="rkmt.ExecNonQuery($\"ALTER TABLE pedidos ADD COL";
_rkmt.ExecNonQuery(("ALTER TABLE pedidos ADD COLUMN pe_envio_ok INT"));
//BA.debugLineNum = 42;BA.debugLine="Log($\"Columna \"pe_envio_ok INT\", agregada a \"pe";
__c.LogImpl("264880670",("Columna \"pe_envio_ok INT\", agregada a \"pedidos}\"."),0);
__c.LogImpl("022741022",("Columna \"pe_envio_ok INT\", agregada a \"pedidos}\"."),0);
};
}
catch (Exception e27) {
@@ -197,11 +197,11 @@ __c.LogImpl("264880670",("Columna \"pe_envio_ok INT\", agregada a \"pedidos}\"."
try { //BA.debugLineNum = 46;BA.debugLine="rkmt.ExecNonQuery($\"ALTER TABLE pedidos ADD COL";
_rkmt.ExecNonQuery(("ALTER TABLE pedidos ADD COLUMN pe_envio_ok INT"));
//BA.debugLineNum = 47;BA.debugLine="Log($\"Columna \"pe_envio_ok INT\", agregada a \"pe";
__c.LogImpl("264880675",("Columna \"pe_envio_ok INT\", agregada a \"pedidos\".."),0);
__c.LogImpl("022741027",("Columna \"pe_envio_ok INT\", agregada a \"pedidos\".."),0);
}
catch (Exception e31) {
ba.setLastException(e31); //BA.debugLineNum = 49;BA.debugLine="Log(LastException)";
__c.LogImpl("264880677",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("022741029",BA.ObjectToString(__c.LastException(ba)),0);
};
};
//BA.debugLineNum = 52;BA.debugLine="rkmt.ExecNonQuery($\"create table if not exists in";

View File

@@ -41,10 +41,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -65,7 +65,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 422;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 423;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("267633158",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
__c.LogImpl("025493510",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
};
}
catch (Exception e9) {
@@ -73,11 +73,11 @@ __c.LogImpl("267633158",("Columna \""+__c.SmartStringFormatter("",(Object)(_colu
try { //BA.debugLineNum = 427;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 428;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("267633163",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
__c.LogImpl("025493515",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
}
catch (Exception e13) {
ba.setLastException(e13); //BA.debugLineNum = 430;BA.debugLine="Log(LastException)";
__c.LogImpl("267633165",BA.ObjectToString(__c.LastException(getActivityBA())),0);
__c.LogImpl("025493517",BA.ObjectToString(__c.LastException(getActivityBA())),0);
};
};
//BA.debugLineNum = 433;BA.debugLine="End Sub";
@@ -86,7 +86,7 @@ return "";
public String _borralogdb() throws Exception{
//BA.debugLineNum = 247;BA.debugLine="Sub borraLogDB 'ignore";
//BA.debugLineNum = 248;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)";
__c.LogImpl("266715649","Borramos BD de log",__c.Colors.Magenta);
__c.LogImpl("024576001","Borramos BD de log",__c.Colors.Magenta);
//BA.debugLineNum = 249;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")";
_kmt.ExecNonQuery("delete from bitacora");
//BA.debugLineNum = 250;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
@@ -234,11 +234,11 @@ __c.ToastMessageShow(BA.ObjectToCharSequence("BD copiada!"),__c.False);
__c.ToastMessageShow(BA.ObjectToCharSequence("No se pudo hacer la copia: "+BA.ObjectToString(__c.LastException(getActivityBA()))),__c.True);
};
//BA.debugLineNum = 332;BA.debugLine="Log(\"rootExternal=\"&p)";
__c.LogImpl("266912281","rootExternal="+_p,0);
__c.LogImpl("024772633","rootExternal="+_p,0);
//BA.debugLineNum = 333;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
__c.LogImpl("266912282","File.DirInternal="+__c.File.getDirInternal(),0);
__c.LogImpl("024772634","File.DirInternal="+__c.File.getDirInternal(),0);
//BA.debugLineNum = 334;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
__c.LogImpl("266912283","File.DirInternal="+__c.File.getDirInternal(),0);
__c.LogImpl("024772635","File.DirInternal="+__c.File.getDirInternal(),0);
}else {
//BA.debugLineNum = 336;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),__c.False);
@@ -358,7 +358,7 @@ _h = __c.DateTime.Date(__c.DateTime.getNow())+"000000";
//BA.debugLineNum = 210;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d";
__c.DateTime.setDateFormat(_origformat);
//BA.debugLineNum = 211;BA.debugLine="Log(\"Hoy=\"&h)";
__c.LogImpl("266453509","Hoy="+_h,0);
__c.LogImpl("024313861","Hoy="+_h,0);
//BA.debugLineNum = 212;BA.debugLine="Return h";
if (true) return _h;
//BA.debugLineNum = 213;BA.debugLine="End Sub";
@@ -408,16 +408,16 @@ __c.DateTime.setDateFormat(_origformat);
if (true) return _ticks;
}else {
//BA.debugLineNum = 287;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '";
__c.LogImpl("266781196","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0);
__c.LogImpl("024641548","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0);
//BA.debugLineNum = 288;BA.debugLine="Return 0";
if (true) return (long) (0);
};
}
catch (Exception e16) {
ba.setLastException(e16); //BA.debugLineNum = 291;BA.debugLine="Log(LastException)";
__c.LogImpl("266781200",BA.ObjectToString(__c.LastException(getActivityBA())),0);
__c.LogImpl("024641552",BA.ObjectToString(__c.LastException(getActivityBA())),0);
//BA.debugLineNum = 292;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p";
__c.LogImpl("266781201",("Fecha dada: "+__c.SmartStringFormatter("",(Object)(_fkmt))+", Parte Fecha: "+__c.SmartStringFormatter("",(Object)(_partefecha))+", Parte Hora: "+__c.SmartStringFormatter("",(Object)(_partehora))+""),__c.Colors.Red);
__c.LogImpl("024641553",("Fecha dada: "+__c.SmartStringFormatter("",(Object)(_fkmt))+", Parte Fecha: "+__c.SmartStringFormatter("",(Object)(_partefecha))+", Parte Hora: "+__c.SmartStringFormatter("",(Object)(_partehora))+""),__c.Colors.Red);
//BA.debugLineNum = 293;BA.debugLine="Return 0";
if (true) return (long) (0);
};
@@ -499,7 +499,7 @@ public String _guardainfoenbd(String _coords) throws Exception{
String[] _latlon = null;
//BA.debugLineNum = 160;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore";
//BA.debugLineNum = 161;BA.debugLine="Log(\"Guardamos ubicacion en BD - \"&coords)";
__c.LogImpl("266256897","Guardamos ubicacion en BD - "+_coords,0);
__c.LogImpl("024117249","Guardamos ubicacion en BD - "+_coords,0);
//BA.debugLineNum = 162;BA.debugLine="Try";
try { //BA.debugLineNum = 163;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord";
_latlon = __c.Regex.Split("\\|",_coords);
@@ -508,13 +508,13 @@ if (_latlon.length<2) {
_latlon = __c.Regex.Split(",",_coords);};
//BA.debugLineNum = 165;BA.debugLine="If subsLogs Then Log(\"LatLon=\"&latlon)";
if (_subslogs) {
__c.LogImpl("266256901","LatLon="+BA.ObjectToString(_latlon),0);};
__c.LogImpl("024117253","LatLon="+BA.ObjectToString(_latlon),0);};
//BA.debugLineNum = 166;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(FECHA, L";
_kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(FECHA, LAT, LON) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_latlon[(int) (2)]),(Object)(_latlon[(int) (0)]),(Object)(_latlon[(int) (1)])}));
}
catch (Exception e8) {
ba.setLastException(e8); //BA.debugLineNum = 168;BA.debugLine="LogColor(LastException, Colors.red)";
__c.LogImpl("266256904",BA.ObjectToString(__c.LastException(getActivityBA())),__c.Colors.Red);
__c.LogImpl("024117256",BA.ObjectToString(__c.LastException(getActivityBA())),__c.Colors.Red);
};
//BA.debugLineNum = 170;BA.debugLine="End Sub";
return "";
@@ -529,7 +529,7 @@ if (__c.File.Exists(_ruta,_bdname)==__c.False) {
//BA.debugLineNum = 407;BA.debugLine="File.Copy(File.DirAssets, BDName, ruta, BDName)";
__c.File.Copy(__c.File.getDirAssets(),_bdname,_ruta,_bdname);
//BA.debugLineNum = 408;BA.debugLine="LogColor($\"Copiamos ${BDName} de ${File.DirAsset";
__c.LogImpl("267567620",("Copiamos "+__c.SmartStringFormatter("",(Object)(_bdname))+" de "+__c.SmartStringFormatter("",(Object)(__c.File.getDirAssets()))+" a "+__c.SmartStringFormatter("",(Object)(_ruta))+""),__c.Colors.Green);
__c.LogImpl("025427972",("Copiamos "+__c.SmartStringFormatter("",(Object)(_bdname))+" de "+__c.SmartStringFormatter("",(Object)(__c.File.getDirAssets()))+" a "+__c.SmartStringFormatter("",(Object)(_ruta))+""),__c.Colors.Green);
};
//BA.debugLineNum = 410;BA.debugLine="skmt.Initialize(ruta, BDName, True)";
_skmt.Initialize(_ruta,_bdname,__c.True);
@@ -579,13 +579,13 @@ Object[] _records = null;
String _k = "";
//BA.debugLineNum = 78;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 79;BA.debugLine="LogColor(\"C_SUBS JOBDONE - \" & Job.Success, Color";
__c.LogImpl("265994753","C_SUBS JOBDONE - "+BA.ObjectToString(_job._success /*boolean*/ ),__c.Colors.Red);
__c.LogImpl("023855105","C_SUBS JOBDONE - "+BA.ObjectToString(_job._success /*boolean*/ ),__c.Colors.Red);
//BA.debugLineNum = 80;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) {
//BA.debugLineNum = 81;BA.debugLine="Log($\"Error en el request ${Job.Tag}\"$)";
__c.LogImpl("265994755",("Error en el request "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+""),0);
__c.LogImpl("023855107",("Error en el request "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+""),0);
//BA.debugLineNum = 82;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro";
__c.LogImpl("265994756","** "+BA.ObjectToString(_job._tag /*Object*/ )+" Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
__c.LogImpl("023855108","** "+BA.ObjectToString(_job._tag /*Object*/ )+" Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
//BA.debugLineNum = 83;BA.debugLine="If reqsList.IndexOf(Job.Tag) > -1 Then reqsList.";
if (_reqslist.IndexOf(_job._tag /*Object*/ )>-1) {
_reqslist.RemoveAt(_reqslist.IndexOf(_job._tag /*Object*/ ));};
@@ -618,7 +618,7 @@ final int groupLen13 = group13.getSize()
for (; index13 < groupLen13;index13++){
_k = BA.ObjectToString(group13.Get(index13));
//BA.debugLineNum = 92;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("265994766",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
__c.LogImpl("023855118",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -627,11 +627,11 @@ __c.LogImpl("265994766",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+":
};
};
//BA.debugLineNum = 98;BA.debugLine="Log(reqsList.Size)";
__c.LogImpl("265994772",BA.NumberToString(_reqslist.getSize()),0);
__c.LogImpl("023855124",BA.NumberToString(_reqslist.getSize()),0);
//BA.debugLineNum = 99;BA.debugLine="If reqsList.Size = 0 Then 'Ya no hay DBReqs pendi";
if (_reqslist.getSize()==0) {
//BA.debugLineNum = 100;BA.debugLine="Log(reqError)";
__c.LogImpl("265994774",BA.ObjectToString(_reqerror),0);
__c.LogImpl("023855126",BA.ObjectToString(_reqerror),0);
//BA.debugLineNum = 101;BA.debugLine="If Not(reqError) Then";
if (__c.Not(_reqerror)) {
//BA.debugLineNum = 102;BA.debugLine="envioOk(True)";
@@ -643,7 +643,7 @@ _enviook(__c.False);
//BA.debugLineNum = 106;BA.debugLine="reqError = False";
_reqerror = __c.False;
//BA.debugLineNum = 107;BA.debugLine="Log(\"-= FIN =-\")";
__c.LogImpl("265994781","-= FIN =-",0);
__c.LogImpl("023855133","-= FIN =-",0);
};
//BA.debugLineNum = 109;BA.debugLine="Job.Release";
_job._release /*String*/ ();
@@ -653,7 +653,7 @@ return "";
public String _log2db(String _texto) throws Exception{
//BA.debugLineNum = 216;BA.debugLine="Sub log2DB(texto As String) 'ignore";
//BA.debugLineNum = 217;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te";
__c.LogImpl("266519041",_fechakmt(BA.NumberToString(__c.DateTime.getNow()))+" - log2BD: '"+_texto+"'",__c.Colors.LightGray);
__c.LogImpl("024379393",_fechakmt(BA.NumberToString(__c.DateTime.getNow()))+" - log2BD: '"+_texto+"'",__c.Colors.LightGray);
//BA.debugLineNum = 218;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO bitacora(fecha, te";
_kmt.ExecNonQuery2("INSERT INTO bitacora(fecha, texto) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(BA.NumberToString(__c.DateTime.getNow()))),(Object)(_texto)}));
//BA.debugLineNum = 219;BA.debugLine="End Sub";
@@ -672,7 +672,7 @@ final int groupLen1 = group1.getSize()
for (; index1 < groupLen1;index1++){
_records = (Object[])(group1.Get(index1));
//BA.debugLineNum = 396;BA.debugLine="LogColor($\"====== ${resultado.Tag} - REGISTROS =";
__c.LogImpl("267502082",("====== "+__c.SmartStringFormatter("",_resultado.Tag /*Object*/ )+" - REGISTROS = "+__c.SmartStringFormatter("",(Object)(_resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),__c.Colors.RGB((int) (215),(int) (37),(int) (0)));
__c.LogImpl("025362434",("====== "+__c.SmartStringFormatter("",_resultado.Tag /*Object*/ )+" - REGISTROS = "+__c.SmartStringFormatter("",(Object)(_resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),__c.Colors.RGB((int) (215),(int) (37),(int) (0)));
//BA.debugLineNum = 397;BA.debugLine="For Each k As String In resultado.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group3 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
@@ -682,7 +682,7 @@ final int groupLen3 = group3.getSize()
for (; index3 < groupLen3;index3++){
_k = BA.ObjectToString(group3.Get(index3));
//BA.debugLineNum = 398;BA.debugLine="LogColor(k & \" = \" & records(resultado.Columns.";
__c.LogImpl("267502084",_k+" = "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),__c.Colors.RGB((int) (215),(int) (37),(int) (0)));
__c.LogImpl("025362436",_k+" = "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),__c.Colors.RGB((int) (215),(int) (37),(int) (0)));
}
};
}
@@ -717,7 +717,7 @@ if (true) return __c.False;
}
catch (Exception e8) {
ba.setLastException(e8); //BA.debugLineNum = 242;BA.debugLine="Log(LastException)";
__c.LogImpl("266650123",BA.ObjectToString(__c.LastException(getActivityBA())),0);
__c.LogImpl("024510475",BA.ObjectToString(__c.LastException(getActivityBA())),0);
};
//BA.debugLineNum = 244;BA.debugLine="End Sub";
return false;
@@ -789,7 +789,7 @@ _rm = new medicomed.keymon.com.mx.dbrequestmanager();
//BA.debugLineNum = 47;BA.debugLine="rm.Initialize(Me, traeDBReqServerDeBD(db))";
_rm._initialize /*String*/ (ba,this,_traedbreqserverdebd(_db));
//BA.debugLineNum = 48;BA.debugLine="Log($\"Inicializamos reqManager con ${traeDBReqSer";
__c.LogImpl("265732611",("Inicializamos reqManager con "+__c.SmartStringFormatter("",(Object)(_traedbreqserverdebd(_db)))+""),0);
__c.LogImpl("023592963",("Inicializamos reqManager con "+__c.SmartStringFormatter("",(Object)(_traedbreqserverdebd(_db)))+""),0);
//BA.debugLineNum = 49;BA.debugLine="Return rm";
if (true) return _rm;
//BA.debugLineNum = 50;BA.debugLine="End Sub";
@@ -798,7 +798,7 @@ return null;
public String _reqmanagerreinit() throws Exception{
//BA.debugLineNum = 53;BA.debugLine="Sub reqManagerReInit";
//BA.debugLineNum = 54;BA.debugLine="Log(\"reqManager ReInit\")";
__c.LogImpl("265798145","reqManager ReInit",0);
__c.LogImpl("023658497","reqManager ReInit",0);
//BA.debugLineNum = 55;BA.debugLine="reqManager = reqManagerInit";
_reqmanager = _reqmanagerinit();
//BA.debugLineNum = 56;BA.debugLine="End Sub";

View File

@@ -39,10 +39,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -31,10 +31,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -125,7 +125,7 @@ case 9:
this.state = 10;
this.catchState = 0;
//BA.debugLineNum = 28;BA.debugLine="Log(\"updateAvailable() Error - \" & LastException";
parent.__c.LogImpl("269074954","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0);
parent.__c.LogImpl("026935306","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0);
if (true) break;
if (true) break;
;

View File

@@ -65,10 +65,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -221,7 +221,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 159;BA.debugLine="LogColor(\"---- AppUpdating.DownloadApk\", LogColor";
parent.__c.LogImpl("919922945","---- AppUpdating.DownloadApk",parent._logcolor1);
parent.__c.LogImpl("929425665","---- AppUpdating.DownloadApk",parent._logcolor1);
//BA.debugLineNum = 161;BA.debugLine="If sNewVerApk = \"\" Then";
if (true) break;
@@ -250,7 +250,7 @@ this.state = 6;
case 6:
//C
this.state = 9;
parent.__c.LogImpl("919922949",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
parent.__c.LogImpl("929425669",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
if (true) break;
case 9:
@@ -287,7 +287,7 @@ this.state = 11;
_j = (medicomed.keymon.com.mx.httpjob) result[0];
;
//BA.debugLineNum = 174;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)";
parent.__c.LogImpl("919922960",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
parent.__c.LogImpl("929425680",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
//BA.debugLineNum = 175;BA.debugLine="If j.Success Then";
if (true) break;
@@ -312,7 +312,7 @@ parent.__c.File.Copy2((java.io.InputStream)(_j._getinputstream /*anywheresoftwar
//BA.debugLineNum = 180;BA.debugLine="out.Close";
_out.Close();
//BA.debugLineNum = 181;BA.debugLine="Log($\"Copy2 (saving) ok? TRUE\"$)";
parent.__c.LogImpl("919922967",("Copy2 (saving) ok? TRUE"),0);
parent.__c.LogImpl("929425687",("Copy2 (saving) ok? TRUE"),0);
//BA.debugLineNum = 182;BA.debugLine="sStatusCode = OK_DOWNLOAD";
parent._sstatuscode = parent._ok_download;
//BA.debugLineNum = 183;BA.debugLine="If sVerbose Then Log($\"${TAB}new apk version dow";
@@ -328,7 +328,7 @@ this.state = 16;
case 16:
//C
this.state = 19;
parent.__c.LogImpl("919922969",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
parent.__c.LogImpl("929425689",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
if (true) break;
case 19:
@@ -341,7 +341,7 @@ case 21:
//C
this.state = 22;
//BA.debugLineNum = 185;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
parent.__c.LogImpl("919922971",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("929425691",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
//BA.debugLineNum = 186;BA.debugLine="sStatusCode = ERR_HTTP";
parent._sstatuscode = parent._err_http;
//BA.debugLineNum = 187;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils2";
@@ -357,7 +357,7 @@ this.state = 24;
case 24:
//C
this.state = 27;
parent.__c.LogImpl("919922973",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("929425693",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
if (true) break;
case 27:
@@ -684,14 +684,14 @@ _usefileprovider = __c.False;
_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
};
//BA.debugLineNum = 69;BA.debugLine="Log($\"SDK#: ${p.SdkVersion} - UseFP: ${UseFilePro";
__c.LogImpl("918939925",("SDK#: "+__c.SmartStringFormatter("",(Object)(_p.getSdkVersion()))+" - UseFP: "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+" - SharedFolder: "+__c.SmartStringFormatter("",(Object)(_sharedfolder))+""),0);
__c.LogImpl("928442645",("SDK#: "+__c.SmartStringFormatter("",(Object)(_p.getSdkVersion()))+" - UseFP: "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+" - SharedFolder: "+__c.SmartStringFormatter("",(Object)(_sharedfolder))+""),0);
//BA.debugLineNum = 70;BA.debugLine="End Sub";
return "";
}
public String _installapk(boolean _pstatus) throws Exception{
//BA.debugLineNum = 195;BA.debugLine="Public Sub InstallApk(pstatus As Boolean)";
//BA.debugLineNum = 196;BA.debugLine="LogColor(\"---- AppUpdating.InstallApk\", LogColor1";
__c.LogImpl("919988481","---- AppUpdating.InstallApk",_logcolor1);
__c.LogImpl("929491201","---- AppUpdating.InstallApk",_logcolor1);
//BA.debugLineNum = 197;BA.debugLine="If pstatus Then";
if (_pstatus) {
//BA.debugLineNum = 198;BA.debugLine="SendInstallIntent";
@@ -700,13 +700,13 @@ _sendinstallintent();
_sstatuscode = _ok_install;
//BA.debugLineNum = 200;BA.debugLine="If sVerbose Then Log(TAB & \"user asked to instal";
if (_sverbose) {
__c.LogImpl("919988485",__c.TAB+"user asked to install new apk",0);};
__c.LogImpl("929491205",__c.TAB+"user asked to install new apk",0);};
}else {
//BA.debugLineNum = 202;BA.debugLine="sStatusCode = ERR_NOPERM";
_sstatuscode = _err_noperm;
//BA.debugLineNum = 203;BA.debugLine="If sVerbose Then Log(TAB & \"no permissions from";
if (_sverbose) {
__c.LogImpl("919988488",__c.TAB+"no permissions from user to install new apk",0);};
__c.LogImpl("929491208",__c.TAB+"no permissions from user to install new apk",0);};
};
//BA.debugLineNum = 205;BA.debugLine="Finito";
_finito();
@@ -724,7 +724,7 @@ _curver = "";
_sstatuscode = _err_nopkg;
//BA.debugLineNum = 301;BA.debugLine="If sVerbose Then Log($\"${TAB}missing package nam";
if (_sverbose) {
__c.LogImpl("920250628",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"missing package name for current version check"),0);};
__c.LogImpl("929753348",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"missing package name for current version check"),0);};
}else {
//BA.debugLineNum = 303;BA.debugLine="Dim pm As PackageManager";
_pm = new anywheresoftware.b4a.phone.PackageManagerWrapper();
@@ -734,7 +734,7 @@ _curver = _pm.GetVersionName(_spackagename);
_sstatuscode = _ok_curver;
//BA.debugLineNum = 306;BA.debugLine="If sVerbose Then Log($\"${TAB}Current Version: ${";
if (_sverbose) {
__c.LogImpl("920250633",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"Current Version: "+__c.SmartStringFormatter("",(Object)(_curver))+""),0);};
__c.LogImpl("929753353",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"Current Version: "+__c.SmartStringFormatter("",(Object)(_curver))+""),0);};
};
//BA.debugLineNum = 308;BA.debugLine="Return (sStatusCode == OK_CURVER)";
if (true) return (_sstatuscode==_ok_curver);
@@ -765,7 +765,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 313;BA.debugLine="Log(\"IsValidComplete start\")";
parent.__c.LogImpl("920316161","IsValidComplete start",0);
parent.__c.LogImpl("929818881","IsValidComplete start",0);
//BA.debugLineNum = 314;BA.debugLine="If sNewVerTxt = \"\" Then";
if (true) break;
@@ -798,7 +798,7 @@ this.state = 6;
case 6:
//C
this.state = 9;
parent.__c.LogImpl("920316165",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing info file full path indication"),0);
parent.__c.LogImpl("929818885",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing info file full path indication"),0);
if (true) break;
case 9:
@@ -821,7 +821,7 @@ _j._password /*String*/ = parent._supassword;
//BA.debugLineNum = 324;BA.debugLine="j.Download(sNewVerTxt) 'ex: jobapk.Downlo";
_j._download /*String*/ (parent._snewvertxt);
//BA.debugLineNum = 325;BA.debugLine="Log(\"before\")";
parent.__c.LogImpl("920316173","before",0);
parent.__c.LogImpl("929818893","before",0);
//BA.debugLineNum = 326;BA.debugLine="Wait For (j) JobDone(j As HttpJob)";
parent.__c.WaitFor("jobdone", ba, this, (Object)(_j));
this.state = 61;
@@ -832,7 +832,7 @@ this.state = 12;
_j = (medicomed.keymon.com.mx.httpjob) result[0];
;
//BA.debugLineNum = 327;BA.debugLine="Log(\"after\")";
parent.__c.LogImpl("920316175","after",0);
parent.__c.LogImpl("929818895","after",0);
//BA.debugLineNum = 328;BA.debugLine="If j.Success Then";
if (true) break;
@@ -861,7 +861,7 @@ this.state = 17;
case 17:
//C
this.state = 20;
parent.__c.LogImpl("920316177",("Webserver's info file content: "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_j._getstring /*String*/ ()))+""),0);
parent.__c.LogImpl("929818897",("Webserver's info file content: "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_j._getstring /*String*/ ()))+""),0);
if (true) break;
case 20:
@@ -919,7 +919,7 @@ this.state = 29;
case 29:
//C
this.state = 32;
parent.__c.LogImpl("920316184",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"wrong row format in info file "),0);
parent.__c.LogImpl("929818904",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"wrong row format in info file "),0);
if (true) break;
case 32:
@@ -946,7 +946,7 @@ this.state = 37;
case 37:
//C
this.state = 40;
parent.__c.LogImpl("920316187",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Web version number: "+parent.__c.SmartStringFormatter("",(Object)(parent._webver))+""),0);
parent.__c.LogImpl("929818907",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Web version number: "+parent.__c.SmartStringFormatter("",(Object)(parent._webver))+""),0);
if (true) break;
case 40:
@@ -979,7 +979,7 @@ this.state = 46;
case 46:
//C
this.state = 49;
parent.__c.LogImpl("920316191",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"ERROR: website returned an HTML error page"),0);
parent.__c.LogImpl("929818911",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"ERROR: website returned an HTML error page"),0);
if (true) break;
case 49:
@@ -998,7 +998,7 @@ case 52:
//C
this.state = 53;
//BA.debugLineNum = 346;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
parent.__c.LogImpl("920316194",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("929818914",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
//BA.debugLineNum = 347;BA.debugLine="sStatusCode = ERR_HTTP";
parent._sstatuscode = parent._err_http;
//BA.debugLineNum = 348;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils";
@@ -1014,7 +1014,7 @@ this.state = 55;
case 55:
//C
this.state = 58;
parent.__c.LogImpl("920316196",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("929818916",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
if (true) break;
case 58:
@@ -1050,7 +1050,7 @@ if (true) break;
public String _readcurvn() throws Exception{
//BA.debugLineNum = 143;BA.debugLine="Public Sub ReadCurVN";
//BA.debugLineNum = 144;BA.debugLine="LogColor(\"---- AppUpdating.ReadCurVN\", LogColor1)";
__c.LogImpl("919791873","---- AppUpdating.ReadCurVN",_logcolor1);
__c.LogImpl("929294593","---- AppUpdating.ReadCurVN",_logcolor1);
//BA.debugLineNum = 145;BA.debugLine="IsValidCV 'we don't care about its resu";
_isvalidcv();
//BA.debugLineNum = 146;BA.debugLine="Finito";
@@ -1081,7 +1081,7 @@ case 0:
//C
this.state = -1;
//BA.debugLineNum = 152;BA.debugLine="LogColor(\"---- AppUpdating.ReadWebVN\", LogColor1)";
parent.__c.LogImpl("919857409","---- AppUpdating.ReadWebVN",parent._logcolor1);
parent.__c.LogImpl("929360129","---- AppUpdating.ReadWebVN",parent._logcolor1);
//BA.debugLineNum = 153;BA.debugLine="Wait For(IsvalidWV) Complete (OkWebVer As Boolean";
parent.__c.WaitFor("complete", ba, this, parent._isvalidwv());
this.state = 1;
@@ -1244,7 +1244,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 246;BA.debugLine="LogColor($\"${TAB}-- TryApkUpdate\"$, LogColor1)";
parent.__c.LogImpl("920119553",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"-- TryApkUpdate"),parent._logcolor1);
parent.__c.LogImpl("929622273",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"-- TryApkUpdate"),parent._logcolor1);
//BA.debugLineNum = 248;BA.debugLine="If ((sStatusCode >= 0) And (sStatusCode <> NO_NEW";
if (true) break;
@@ -1278,7 +1278,7 @@ this.state = 4;
_j = (medicomed.keymon.com.mx.httpjob) result[0];
;
//BA.debugLineNum = 256;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)";
parent.__c.LogImpl("920119563",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
parent.__c.LogImpl("929622283",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
//BA.debugLineNum = 257;BA.debugLine="If j.Success Then";
if (true) break;
@@ -1317,7 +1317,7 @@ parent.__c.File.Copy2((java.io.InputStream)(_j._getinputstream /*anywheresoftwar
//BA.debugLineNum = 263;BA.debugLine="out.Close";
_out.Close();
//BA.debugLineNum = 264;BA.debugLine="Log($\"Copy2 (saving) ok? TRUE\"$)";
parent.__c.LogImpl("920119571",("Copy2 (saving) ok? TRUE"),0);
parent.__c.LogImpl("929622291",("Copy2 (saving) ok? TRUE"),0);
//BA.debugLineNum = 265;BA.debugLine="sStatusCode = OK_DOWNLOAD";
parent._sstatuscode = parent._ok_download;
//BA.debugLineNum = 266;BA.debugLine="If sVerbose Then Log($\"${TAB}new apk version d";
@@ -1333,7 +1333,7 @@ this.state = 12;
case 12:
//C
this.state = 15;
parent.__c.LogImpl("920119573",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
parent.__c.LogImpl("929622293",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
if (true) break;
case 15:
@@ -1347,7 +1347,7 @@ case 17:
this.state = 18;
this.catchState = 0;
//BA.debugLineNum = 268;BA.debugLine="Log($\"Copy2 (saving) ok? FALSE\"$)";
parent.__c.LogImpl("920119575",("Copy2 (saving) ok? FALSE"),0);
parent.__c.LogImpl("929622295",("Copy2 (saving) ok? FALSE"),0);
//BA.debugLineNum = 269;BA.debugLine="sStatusCode = ERR_DOWNLOAD";
parent._sstatuscode = parent._err_download;
//BA.debugLineNum = 270;BA.debugLine="If sVerbose Then Log($\"${TAB}failed download o";
@@ -1363,7 +1363,7 @@ this.state = 20;
case 20:
//C
this.state = 23;
parent.__c.LogImpl("920119577",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"failed download of new apk version"),0);
parent.__c.LogImpl("929622297",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"failed download of new apk version"),0);
if (true) break;
case 23:
@@ -1386,7 +1386,7 @@ case 26:
//C
this.state = 27;
//BA.debugLineNum = 274;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
parent.__c.LogImpl("920119581",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("929622301",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
//BA.debugLineNum = 275;BA.debugLine="sStatusCode = ERR_HTTP";
parent._sstatuscode = parent._err_http;
//BA.debugLineNum = 276;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils";
@@ -1402,7 +1402,7 @@ this.state = 29;
case 29:
//C
this.state = 32;
parent.__c.LogImpl("920119583",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("929622303",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
if (true) break;
case 32:
@@ -1449,7 +1449,7 @@ this.state = 39;
case 39:
//C
this.state = 42;
parent.__c.LogImpl("920119590",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"user asked to install new apk"),0);
parent.__c.LogImpl("929622310",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"user asked to install new apk"),0);
if (true) break;
case 42:
@@ -1510,7 +1510,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 211;BA.debugLine="LogColor(\"---- AppUpdating.UpdateApk\", LogColor1)";
parent.__c.LogImpl("920054017","---- AppUpdating.UpdateApk",parent._logcolor1);
parent.__c.LogImpl("929556737","---- AppUpdating.UpdateApk",parent._logcolor1);
//BA.debugLineNum = 212;BA.debugLine="If Not(pstatus) Then";
if (true) break;
@@ -1541,7 +1541,7 @@ this.state = 6;
case 6:
//C
this.state = 9;
parent.__c.LogImpl("920054020",parent.__c.TAB+"no permissions from user to install new apk",0);
parent.__c.LogImpl("929556740",parent.__c.TAB+"no permissions from user to install new apk",0);
if (true) break;
case 9:
@@ -1633,7 +1633,7 @@ this.state = 26;
case 26:
//C
this.state = 29;
parent.__c.LogImpl("920054030",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"no enough available space to download apk"),0);
parent.__c.LogImpl("929556750",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"no enough available space to download apk"),0);
if (true) break;
case 29:
@@ -1675,7 +1675,7 @@ this.state = 36;
case 36:
//C
this.state = 39;
parent.__c.LogImpl("920054035",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Newer version available. Now I try its downloading"),0);
parent.__c.LogImpl("929556755",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Newer version available. Now I try its downloading"),0);
if (true) break;
case 39:
@@ -1710,7 +1710,7 @@ this.state = 45;
case 45:
//C
this.state = 48;
parent.__c.LogImpl("920054038",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
parent.__c.LogImpl("929556758",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
if (true) break;
case 48:
@@ -1749,7 +1749,7 @@ this.state = 55;
case 55:
//C
this.state = 58;
parent.__c.LogImpl("920054043",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0);
parent.__c.LogImpl("929556763",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0);
if (true) break;
case 58:

View File

@@ -45,10 +45,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -280,7 +280,7 @@ _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
_table.Tag /*Object*/ = _job._tag /*Object*/ ;
//BA.debugLineNum = 198;BA.debugLine="If jobTagAnterior <> Job.Tag Then LogColor(\"Handl";
if ((_jobtaganterior).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) {
__c.LogImpl("270189068","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.RGB((int) (171),(int) (70),(int) (0)));};
__c.LogImpl("028049420","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.RGB((int) (171),(int) (70),(int) (0)));};
//BA.debugLineNum = 199;BA.debugLine="jobTagAnterior = Job.Tag 'Mod por CHV - 211109";
_jobtaganterior = BA.ObjectToString(_job._tag /*Object*/ );
//BA.debugLineNum = 200;BA.debugLine="If method = \"query\" Then";
@@ -382,7 +382,7 @@ Object[] _row = null;
Object _record = null;
//BA.debugLineNum = 250;BA.debugLine="Public Sub PrintTable(Table As DBResult)";
//BA.debugLineNum = 251;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C";
__c.LogImpl("270451201","Tag: "+BA.ObjectToString(_table.Tag /*Object*/ )+", Columns: "+BA.NumberToString(_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .getSize())+", Rows: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
__c.LogImpl("028311553","Tag: "+BA.ObjectToString(_table.Tag /*Object*/ )+", Columns: "+BA.NumberToString(_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .getSize())+", Rows: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
//BA.debugLineNum = 252;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
//BA.debugLineNum = 253;BA.debugLine="sb.Initialize";
@@ -400,7 +400,7 @@ _sb.Append(BA.ObjectToString(_col)).Append(__c.TAB);
}
};
//BA.debugLineNum = 257;BA.debugLine="Log(sb.ToString)";
__c.LogImpl("270451207",_sb.ToString(),0);
__c.LogImpl("028311559",_sb.ToString(),0);
//BA.debugLineNum = 258;BA.debugLine="For Each row() As Object In Table.Rows";
{
final anywheresoftware.b4a.BA.IterableList group8 = _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;

View File

@@ -63,10 +63,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -107,7 +107,7 @@ if (__c.SubExists(ba,_callback,_eventname+"_NewData")) {
__c.CallSubNew2(ba,_callback,_eventname+"_NewData",(Object)(_buffer));
};
//BA.debugLineNum = 1159;BA.debugLine="Log(\"Data \" & Buffer(0))";
__c.LogImpl("273990148","Data "+BA.NumberToString(_buffer[(int) (0)]),0);
__c.LogImpl("068419588","Data "+BA.NumberToString(_buffer[(int) (0)]),0);
//BA.debugLineNum = 1160;BA.debugLine="End Sub";
return "";
}
@@ -252,12 +252,12 @@ if (true) return __c.True;
//BA.debugLineNum = 132;BA.debugLine="DisConnect";
_disconnect();
//BA.debugLineNum = 133;BA.debugLine="Log(\"aqui 5\")";
__c.LogImpl("270844449","aqui 5",0);
__c.LogImpl("065273889","aqui 5",0);
};
}
catch (Exception e27) {
ba.setLastException(e27); //BA.debugLineNum = 136;BA.debugLine="Log(LastException)";
__c.LogImpl("270844452",BA.ObjectToString(__c.LastException(getActivityBA())),0);
__c.LogImpl("065273892",BA.ObjectToString(__c.LastException(getActivityBA())),0);
//BA.debugLineNum = 137;BA.debugLine="Return False";
if (true) return __c.False;
};
@@ -426,22 +426,22 @@ _logmsg = ": Fill="+BA.NumberToString(_fill)+" : Points "+BA.NumberToString(_x0)
//BA.debugLineNum = 445;BA.debugLine="If shape = 3 Then";
if (_shape==3) {
//BA.debugLineNum = 446;BA.debugLine="Log(\"Triangle \" & logmsg)";
__c.LogImpl("272155178","Triangle "+_logmsg,0);
__c.LogImpl("066584618","Triangle "+_logmsg,0);
//BA.debugLineNum = 447;BA.debugLine="PlotTriangle(x0, y0, x1, y1, x2, y2, points, fi";
_plottriangle(_x0,_y0,_x1,_y1,_x2,_y2,_points,_fill);
}else if(_shape==2) {
//BA.debugLineNum = 449;BA.debugLine="Log(\"Circle \" & logmsg)";
__c.LogImpl("272155181","Circle "+_logmsg,0);
__c.LogImpl("066584621","Circle "+_logmsg,0);
//BA.debugLineNum = 450;BA.debugLine="PlotCircle(x0, y0, x1, y1, points, fill)";
_plotcircle(_x0,_y0,_x1,_y1,_points,_fill);
}else if(_shape==1) {
//BA.debugLineNum = 452;BA.debugLine="Log(\"Box \" & logmsg)";
__c.LogImpl("272155184","Box "+_logmsg,0);
__c.LogImpl("066584624","Box "+_logmsg,0);
//BA.debugLineNum = 453;BA.debugLine="PlotBox(x0, y0, x1, y1, points, fill)";
_plotbox(_x0,_y0,_x1,_y1,_points,_fill);
}else {
//BA.debugLineNum = 455;BA.debugLine="Log(\"Line \" & logmsg)";
__c.LogImpl("272155187","Line "+_logmsg,0);
__c.LogImpl("066584627","Line "+_logmsg,0);
//BA.debugLineNum = 456;BA.debugLine="PlotLine(x0, y0, x1, y1, points)";
_plotline(_x0,_y0,_x1,_y1,_points);
};
@@ -1952,7 +1952,7 @@ _databytes = _data.getBytes("ASCII");
//BA.debugLineNum = 1078;BA.debugLine="Dim dlow As Int = databytes.Length";
_dlow = _databytes.length;
//BA.debugLineNum = 1079;BA.debugLine="Log(\"Barcode \" & bartype & \", Size \" & dlow & \",";
__c.LogImpl("273793539","Barcode "+_bartype+", Size "+BA.NumberToString(_dlow)+", "+_data,0);
__c.LogImpl("068222979","Barcode "+_bartype+", Size "+BA.NumberToString(_dlow)+", "+_data,0);
//BA.debugLineNum = 1080;BA.debugLine="WriteString(GS & \"k\" & bartype.ToUpperCase.CharAt";
_writestring(_gs+"k"+BA.ObjectToString(_bartype.toUpperCase().charAt((int) (0))));
//BA.debugLineNum = 1081;BA.debugLine="Dim params(1) As Byte";
@@ -1990,7 +1990,7 @@ _dhigh = (int) (_databytes.length/(double)256);
//BA.debugLineNum = 1095;BA.debugLine="Dim dlow As Int = databytes.Length - dhigh*256";
_dlow = (int) (_databytes.length-_dhigh*256);
//BA.debugLineNum = 1096;BA.debugLine="Log(\"QR Code : Size \" & size & \", EC \" & EC & \",";
__c.LogImpl("273859076","QR Code : Size "+BA.NumberToString(_size)+", EC "+_ec+", Scale "+BA.NumberToString(_scale)+", Size "+BA.NumberToString(_dlow)+" "+BA.NumberToString(_dhigh)+" : Data = "+_data,0);
__c.LogImpl("068288516","QR Code : Size "+BA.NumberToString(_size)+", EC "+_ec+", Scale "+BA.NumberToString(_scale)+", Size "+BA.NumberToString(_dlow)+" "+BA.NumberToString(_dhigh)+" : Data = "+_data,0);
//BA.debugLineNum = 1097;BA.debugLine="Dim params(3) As Byte";
_params = new byte[(int) (3)];
;
@@ -2027,7 +2027,7 @@ _astream.Write(_data.getBytes(_encoding));
}
catch (Exception e6) {
ba.setLastException(e6); //BA.debugLineNum = 305;BA.debugLine="Log(\"Printer error : \" & LastException.Message)";
__c.LogImpl("271892998","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0);
__c.LogImpl("066322438","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0);
//BA.debugLineNum = 306;BA.debugLine="AStream_Error";
_astream_error();
};

View File

@@ -31,10 +31,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -180,9 +180,9 @@ _rs.Close();
}
catch (Exception e19) {
ba.setLastException(e19); //BA.debugLineNum = 91;BA.debugLine="Log(\"error extracting information from file prov";
__c.LogImpl("274579989","error extracting information from file provider",0);
__c.LogImpl("069009429","error extracting information from file provider",0);
//BA.debugLineNum = 92;BA.debugLine="Log(LastException)";
__c.LogImpl("274579990",BA.ObjectToString(__c.LastException(getActivityBA())),0);
__c.LogImpl("069009430",BA.ObjectToString(__c.LastException(getActivityBA())),0);
};
//BA.debugLineNum = 94;BA.debugLine="End Sub";
return "";
@@ -259,11 +259,11 @@ _dir = (String) result[1];
_filename = (String) result[2];
;
//BA.debugLineNum = 53;BA.debugLine="Log($\"***************************${CRLF}${Dir}${C";
parent.__c.LogImpl("274383365",("***************************"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_dir))+""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+" "+parent.__c.SmartStringFormatter("",(Object)(_filename))+""),0);
parent.__c.LogImpl("068812805",("***************************"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_dir))+""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+" "+parent.__c.SmartStringFormatter("",(Object)(_filename))+""),0);
//BA.debugLineNum = 54;BA.debugLine="Dim res As LoadResult = CreateLoadResult(Success,";
_res = parent._createloadresult(_success,_dir,_filename);
//BA.debugLineNum = 55;BA.debugLine="Log($\"***************************${CRLF}${res.Fil";
parent.__c.LogImpl("274383367",("***************************"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_res.FileName /*String*/ ))+""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+" "+parent.__c.SmartStringFormatter("",(Object)(_res))+""),0);
parent.__c.LogImpl("068812807",("***************************"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_res.FileName /*String*/ ))+""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+" "+parent.__c.SmartStringFormatter("",(Object)(_res))+""),0);
//BA.debugLineNum = 56;BA.debugLine="If res.Success Then ExtractInformationFromURI(res";
if (true) break;

View File

@@ -32,10 +32,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -41,10 +41,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -127,7 +127,7 @@ _req.InitializeDelete(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 266;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("932243717",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("941746437",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 267;BA.debugLine="req.InitializeDelete(InvalidURL)";
_req.InitializeDelete(_invalidurl);
};
@@ -146,7 +146,7 @@ _req.InitializeDelete(_escapelink(_link,_parameters));
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 277;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("932309253",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("941811973",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 278;BA.debugLine="req.InitializeDelete(escapeLink(InvalidURL, Para";
_req.InitializeDelete(_escapelink(_invalidurl,_parameters));
};
@@ -165,7 +165,7 @@ _req.InitializeGet(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 224;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("932047109",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("941549829",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 225;BA.debugLine="req.InitializeGet(InvalidURL)";
_req.InitializeGet(_invalidurl);
};
@@ -184,7 +184,7 @@ _req.InitializeGet(_escapelink(_link,_parameters));
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 240;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("932112645",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("941615365",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 241;BA.debugLine="req.InitializeGet(escapeLink(InvalidURL, Paramet";
_req.InitializeGet(_escapelink(_invalidurl,_parameters));
};
@@ -308,7 +308,7 @@ _req.InitializeHead(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 124;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("931784965",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("941287685",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 125;BA.debugLine="req.InitializeHead(InvalidURL)";
_req.InitializeHead(_invalidurl);
};
@@ -362,7 +362,7 @@ _req.InitializePatch2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 109;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("931719436",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("941222156",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 110;BA.debugLine="req.InitializePatch2(InvalidURL, Data)";
_req.InitializePatch2(_invalidurl,_data);
};
@@ -388,7 +388,7 @@ _req.InitializePost2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 68;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("931457285",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("940960005",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 69;BA.debugLine="req.InitializePost2(InvalidURL, Data)";
_req.InitializePost2(_invalidurl,_data);
};
@@ -409,7 +409,7 @@ _length = 0;
//BA.debugLineNum = 197;BA.debugLine="If Dir = File.DirAssets Then";
if ((_dir).equals(__c.File.getDirAssets())) {
//BA.debugLineNum = 198;BA.debugLine="Log(\"Cannot send files from the assets folder.\")";
__c.LogImpl("931981576","Cannot send files from the assets folder.",0);
__c.LogImpl("941484296","Cannot send files from the assets folder.",0);
//BA.debugLineNum = 199;BA.debugLine="Return";
if (true) return "";
};
@@ -546,7 +546,7 @@ _req.InitializePut2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 85;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("931588357",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("941091077",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 86;BA.debugLine="req.InitializePut2(InvalidURL, Data)";
_req.InitializePut2(_invalidurl,_data);
};

View File

@@ -53,10 +53,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -70,7 +70,7 @@ _job = (medicomed.keymon.com.mx.httpjob)(_taskidtojob.Get((Object)(_taskid)));
//BA.debugLineNum = 157;BA.debugLine="If job = Null Then";
if (_job== null) {
//BA.debugLineNum = 158;BA.debugLine="Log(\"HttpUtils2Service: job completed multiple t";
anywheresoftware.b4a.keywords.Common.LogImpl("231129606","HttpUtils2Service: job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("040632326","HttpUtils2Service: job completed multiple times - "+BA.NumberToString(_taskid),0);
//BA.debugLineNum = 159;BA.debugLine="Return";
if (true) return "";
};
@@ -89,7 +89,7 @@ public static String _hc_responseerror(anywheresoftware.b4h.okhttp.OkHttpClient
medicomed.keymon.com.mx.httpjob _job = null;
//BA.debugLineNum = 115;BA.debugLine="Sub hc_ResponseError (Response As OkHttpResponse,";
//BA.debugLineNum = 117;BA.debugLine="Log($\"ResponseError. Reason: ${Reason}, Response:";
anywheresoftware.b4a.keywords.Common.LogImpl("231064066",("ResponseError. Reason: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_reason))+", Response: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_response.getErrorResponse()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("040566786",("ResponseError. Reason: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_reason))+", Response: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_response.getErrorResponse()))+""),0);
//BA.debugLineNum = 119;BA.debugLine="Response.Release";
_response.Release();
//BA.debugLineNum = 120;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)";
@@ -97,7 +97,7 @@ _job = (medicomed.keymon.com.mx.httpjob)(_taskidtojob.Get((Object)(_taskid)));
//BA.debugLineNum = 121;BA.debugLine="If job = Null Then";
if (_job== null) {
//BA.debugLineNum = 122;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseError): job c";
anywheresoftware.b4a.keywords.Common.LogImpl("231064071","HttpUtils2Service (hc_ResponseError): job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("040566791","HttpUtils2Service (hc_ResponseError): job completed multiple times - "+BA.NumberToString(_taskid),0);
//BA.debugLineNum = 123;BA.debugLine="Return";
if (true) return "";
};
@@ -123,7 +123,7 @@ _job = (medicomed.keymon.com.mx.httpjob)(_taskidtojob.Get((Object)(_taskid)));
//BA.debugLineNum = 94;BA.debugLine="If job = Null Then";
if (_job== null) {
//BA.debugLineNum = 95;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseSuccess): job";
anywheresoftware.b4a.keywords.Common.LogImpl("230932995","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("040435715","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0);
//BA.debugLineNum = 96;BA.debugLine="Return";
if (true) return "";
};
@@ -185,9 +185,9 @@ anywheresoftware.b4a.keywords.Common.File.Delete(_tempfolder,"~test.test");
}
catch (Exception e6) {
processBA.setLastException(e6); //BA.debugLineNum = 34;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("230605319",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("040108039",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0);
//BA.debugLineNum = 35;BA.debugLine="Log(\"Switching to File.DirInternal\")";
anywheresoftware.b4a.keywords.Common.LogImpl("230605320","Switching to File.DirInternal",0);
anywheresoftware.b4a.keywords.Common.LogImpl("040108040","Switching to File.DirInternal",0);
//BA.debugLineNum = 36;BA.debugLine="TempFolder = File.DirInternal";
_tempfolder = anywheresoftware.b4a.keywords.Common.File.getDirInternal();
};

View File

@@ -34,10 +34,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -341,10 +341,10 @@ public b4a.example.dateutils _dateutils = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -430,10 +430,10 @@ main._process_globals();
starter._process_globals();
appupdater._process_globals();
mapa_rutas._process_globals();
subs._process_globals();
mapa_cliente._process_globals();
notificationservice._process_globals();
pendientes._process_globals();
subs._process_globals();
tracker._process_globals();
newinst2._process_globals();
b4xpages._process_globals();

View File

@@ -32,10 +32,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -122,7 +122,7 @@ return null;
public String _raiseevent() throws Exception{
//BA.debugLineNum = 51;BA.debugLine="Private Sub RaiseEvent";
//BA.debugLineNum = 52;BA.debugLine="Log(\"Calling : \" & mEventName & \"_StorageAvailab";
__c.LogImpl("275104257","Calling : "+_meventname+"_StorageAvailable",0);
__c.LogImpl("069533697","Calling : "+_meventname+"_StorageAvailable",0);
//BA.debugLineNum = 53;BA.debugLine="CallSubDelayed(mCallback, mEventName & \"_StorageA";
__c.CallSubDelayed(ba,_mcallback,_meventname+"_StorageAvailable");
//BA.debugLineNum = 54;BA.debugLine="End Sub";

View File

@@ -363,9 +363,9 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -438,7 +438,7 @@ return "";
public static String _b_regresar_click() throws Exception{
//BA.debugLineNum = 120;BA.debugLine="Private Sub b_regresar_Click";
//BA.debugLineNum = 121;BA.debugLine="Log(\"Pressed\")";
anywheresoftware.b4a.keywords.Common.LogImpl("275890689","Pressed",0);
anywheresoftware.b4a.keywords.Common.LogImpl("070320129","Pressed",0);
//BA.debugLineNum = 122;BA.debugLine="Activity.Finish";
mostCurrent._activity.Finish();
//BA.debugLineNum = 123;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";

View File

@@ -384,10 +384,10 @@ public b4a.example.dateutils _dateutils = null;
public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -484,7 +484,7 @@ this.state = 8;
//BA.debugLineNum = 71;BA.debugLine="StartService(Tracker)";
anywheresoftware.b4a.keywords.Common.StartService(processBA,(Object)(parent.mostCurrent._tracker.getObject()));
//BA.debugLineNum = 72;BA.debugLine="Log(\"Start Tracker\")";
anywheresoftware.b4a.keywords.Common.LogImpl("211206672","Start Tracker",0);
anywheresoftware.b4a.keywords.Common.LogImpl("011206672","Start Tracker",0);
//BA.debugLineNum = 73;BA.debugLine="If MapFragment1.IsGooglePlayServicesAvailable =";
if (true) break;
@@ -885,7 +885,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 137;BA.debugLine="Log(\"ENTRANDO MapFragment1_Ready\")";
anywheresoftware.b4a.keywords.Common.LogImpl("211337729","ENTRANDO MapFragment1_Ready",0);
anywheresoftware.b4a.keywords.Common.LogImpl("011337729","ENTRANDO MapFragment1_Ready",0);
//BA.debugLineNum = 138;BA.debugLine="gmap = MapFragment1.GetMap";
parent.mostCurrent._gmap = parent.mostCurrent._mapfragment1.GetMap();
//BA.debugLineNum = 139;BA.debugLine="gmap.IsInitialized";
@@ -928,7 +928,7 @@ parent._c.IsInitialized();
//BA.debugLineNum = 153;BA.debugLine="c=skmt.ExecQuery(\"select CAT_CL_CODIGO,CAT_CL_NO";
parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO,CAT_CL_NOMBRE,CAT_CL_LAT,CAT_CL_LONG from kmt_info where gestion = 0 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 and CAT_CL_LAT <> ' ' and CAT_CL_LONG <> ' ' and CAT_CL_CODIGO <> 0 and CAT_CL_CODIGO <> 1 AND CAT_CL_CODIGO NOT LIKE '%N%'")));
//BA.debugLineNum = 155;BA.debugLine="Log($\"============== Resultados = ${c.RowCount}\"";
anywheresoftware.b4a.keywords.Common.LogImpl("211337747",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c.getRowCount()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("011337747",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c.getRowCount()))+""),0);
//BA.debugLineNum = 156;BA.debugLine="If c.RowCount > 0 Then";
if (true) break;
@@ -974,7 +974,7 @@ parent._c.setPosition(_i);
//BA.debugLineNum = 161;BA.debugLine="LatitudRu = 0";
parent._latitudru = 0;
//BA.debugLineNum = 162;BA.debugLine="Log(c.GetString(\"CAT_CL_CODIGO\")&\" \"& c.G";
anywheresoftware.b4a.keywords.Common.LogImpl("211337754",parent._c.GetString("CAT_CL_CODIGO")+" "+parent._c.GetString("CAT_CL_LAT"),0);
anywheresoftware.b4a.keywords.Common.LogImpl("011337754",parent._c.GetString("CAT_CL_CODIGO")+" "+parent._c.GetString("CAT_CL_LAT"),0);
//BA.debugLineNum = 163;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then Latitu";
if (true) break;
@@ -1081,7 +1081,7 @@ parent._c2.IsInitialized();
//BA.debugLineNum = 180;BA.debugLine="c2=skmt.ExecQuery(\"select CAT_CL_CODIGO, CAT_CL_";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 and CAT_CL_CODIGO <> 0 and CAT_CL_CODIGO <> 1 UNION select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 and CAT_CL_CODIGO <> 0 and CAT_CL_CODIGO <> 1")));
//BA.debugLineNum = 181;BA.debugLine="Log($\"============== Resultados = ${c2.RowCount}";
anywheresoftware.b4a.keywords.Common.LogImpl("211337773",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c2.getRowCount()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("011337773",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c2.getRowCount()))+""),0);
//BA.debugLineNum = 182;BA.debugLine="For i = 0 To c2.RowCount -1";
if (true) break;
@@ -1172,7 +1172,7 @@ parent._c2.IsInitialized();
//BA.debugLineNum = 197;BA.debugLine="c2=skmt.ExecQuery(\"select CAT_CL_CODIGO, CAT_CL";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 and CAT_CL_CODIGO <> 0 and CAT_CL_CODIGO <> 1")));
//BA.debugLineNum = 198;BA.debugLine="Log($\"============== Resultados = ${c2.RowCount";
anywheresoftware.b4a.keywords.Common.LogImpl("211337790",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c2.getRowCount()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("011337790",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c2.getRowCount()))+""),0);
//BA.debugLineNum = 199;BA.debugLine="For i = 0 To c2.RowCount -1";
if (true) break;
@@ -1270,7 +1270,7 @@ parent._c3.IsInitialized();
//BA.debugLineNum = 217;BA.debugLine="c3=skmt.ExecQuery(\"select CAT_CL_CODIGO, CAT_CL_";
parent._c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info where gestion = 3 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 and CAT_CL_CODIGO <> 0 and CAT_CL_CODIGO <> 1")));
//BA.debugLineNum = 218;BA.debugLine="Log($\"============== Resultados = ${c3.RowCount}";
anywheresoftware.b4a.keywords.Common.LogImpl("211337810",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c3.getRowCount()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("011337810",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c3.getRowCount()))+""),0);
//BA.debugLineNum = 219;BA.debugLine="For i = 0 To c3.RowCount -1";
if (true) break;
@@ -1342,7 +1342,7 @@ parent._c3.IsInitialized();
//BA.debugLineNum = 232;BA.debugLine="c3=skmt.ExecQuery(\"select CAT_CL_CODIGO, CAT_CL";
parent._c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info where gestion = 3 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 and CAT_CL_CODIGO <> 0 and CAT_CL_CODIGO <> 1")));
//BA.debugLineNum = 233;BA.debugLine="Log($\"============== Resultados = ${c3.RowCount";
anywheresoftware.b4a.keywords.Common.LogImpl("211337825",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c3.getRowCount()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("011337825",("============== Resultados = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._c3.getRowCount()))+""),0);
//BA.debugLineNum = 234;BA.debugLine="For i = 0 To c3.RowCount -1";
if (true) break;

View File

@@ -144,10 +144,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
public medicomed.keymon.com.mx.b4xcollections _b4xcollections = null;
@@ -167,7 +167,7 @@ public static String _myappreload() throws Exception{
//BA.debugLineNum = 43;BA.debugLine="Sub MyAppReload";
//BA.debugLineNum = 44;BA.debugLine="If svcVerbose Then Log(\"-- AppUpdating.NewInst2:";
if (_svcverbose) {
anywheresoftware.b4a.keywords.Common.LogImpl("221561345","-- AppUpdating.NewInst2: processing MyAppReload",0);};
anywheresoftware.b4a.keywords.Common.LogImpl("031064065","-- AppUpdating.NewInst2: processing MyAppReload",0);};
//BA.debugLineNum = 45;BA.debugLine="If IsPaused(\"main\") Then";
if (anywheresoftware.b4a.keywords.Common.IsPaused(processBA,(Object)("main"))) {
//BA.debugLineNum = 46;BA.debugLine="StartActivity(\"main\")";
@@ -190,7 +190,7 @@ return "";
public static String _service_create() throws Exception{
//BA.debugLineNum = 13;BA.debugLine="Sub Service_Create";
//BA.debugLineNum = 14;BA.debugLine="LogColor(\"---- AppUpdating.newinst2: service crea";
anywheresoftware.b4a.keywords.Common.LogImpl("221299201","---- AppUpdating.newinst2: service created",_logcolor1);
anywheresoftware.b4a.keywords.Common.LogImpl("030801921","---- AppUpdating.newinst2: service created",_logcolor1);
//BA.debugLineNum = 15;BA.debugLine="pkg = \"\"";
_pkg = "";
//BA.debugLineNum = 16;BA.debugLine="svcVerbose = False";
@@ -206,28 +206,28 @@ return "";
public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
//BA.debugLineNum = 19;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
//BA.debugLineNum = 20;BA.debugLine="LogColor(\"---- AppUpdating.newinst2: service_star";
anywheresoftware.b4a.keywords.Common.LogImpl("221364737","---- AppUpdating.newinst2: service_started",_logcolor1);
anywheresoftware.b4a.keywords.Common.LogImpl("030867457","---- AppUpdating.newinst2: service_started",_logcolor1);
//BA.debugLineNum = 21;BA.debugLine="If svcVerbose Then";
if (_svcverbose) {
//BA.debugLineNum = 22;BA.debugLine="Log($\"${TAB}intent: ${StartingIntent}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("221364739",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"intent: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.getObject()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("030867459",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"intent: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.getObject()))+""),0);
//BA.debugLineNum = 23;BA.debugLine="Log($\"${TAB}action: ${StartingIntent.Action}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("221364740",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"action: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.getAction()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("030867460",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"action: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.getAction()))+""),0);
//BA.debugLineNum = 24;BA.debugLine="Log($\"${TAB}extra: ${StartingIntent.ExtrasToStri";
anywheresoftware.b4a.keywords.Common.LogImpl("221364741",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"extra: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.ExtrasToString()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("030867461",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"extra: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.ExtrasToString()))+""),0);
//BA.debugLineNum = 25;BA.debugLine="Log($\"${TAB}data: ${StartingIntent.GetData}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("221364742",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"data: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.GetData()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("030867462",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"data: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.GetData()))+""),0);
};
//BA.debugLineNum = 27;BA.debugLine="If StartingIntent.Action = \"android.intent.action";
if ((_startingintent.getAction()).equals("android.intent.action.MY_PACKAGE_REPLACED")) {
//BA.debugLineNum = 28;BA.debugLine="If svcVerbose Then Log($\"${TAB}Intent MY_PACKAGE";
if (_svcverbose) {
anywheresoftware.b4a.keywords.Common.LogImpl("221364745",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"Intent MY_PACKAGE_REPLACED received!"),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("030867465",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"Intent MY_PACKAGE_REPLACED received!"),0);};
//BA.debugLineNum = 29;BA.debugLine="pkg = GetPackageName";
_pkg = _getpackagename();
//BA.debugLineNum = 30;BA.debugLine="If svcVerbose Then Log($\"${TAB}package: ${pkg}\"$";
if (_svcverbose) {
anywheresoftware.b4a.keywords.Common.LogImpl("221364747",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"package: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pkg))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("030867467",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"package: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pkg))+""),0);};
//BA.debugLineNum = 31;BA.debugLine="MyAppReload";
_myappreload();
};

View File

@@ -143,9 +143,9 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -407,7 +407,7 @@ this.state = 6;
case 6:
//C
this.state = 9;
anywheresoftware.b4a.keywords.Common.LogImpl("276218371",_sbn.getPackageName(),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("070647811",_sbn.getPackageName(),anywheresoftware.b4a.keywords.Common.Colors.Red);
if (true) break;
case 9:
@@ -427,7 +427,7 @@ this.state = 12;
case 12:
//C
this.state = 15;
anywheresoftware.b4a.keywords.Common.LogImpl("276218372","isGroupWA2: "+BA.ObjectToString(_isgroupwa(_sbn)),anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("070647812","isGroupWA2: "+BA.ObjectToString(_isgroupwa(_sbn)),anywheresoftware.b4a.keywords.Common.Colors.Magenta);
if (true) break;
case 15:
@@ -447,7 +447,7 @@ this.state = 18;
case 18:
//C
this.state = 21;
anywheresoftware.b4a.keywords.Common.LogImpl("276218373","isPersonWA: "+BA.ObjectToString(_ispersonwa(_sbn)),anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("070647813","isPersonWA: "+BA.ObjectToString(_ispersonwa(_sbn)),anywheresoftware.b4a.keywords.Common.Colors.Magenta);
if (true) break;
case 21:
@@ -467,7 +467,7 @@ this.state = 24;
case 24:
//C
this.state = 27;
anywheresoftware.b4a.keywords.Common.LogImpl("276218374",("getGroupName: |"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_getgroupname(_sbn.getTitle())))+"|"),0);
anywheresoftware.b4a.keywords.Common.LogImpl("070647814",("getGroupName: |"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_getgroupname(_sbn.getTitle())))+"|"),0);
if (true) break;
case 27:

View File

@@ -16,9 +16,9 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -49,10 +49,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -50,10 +50,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -41,10 +41,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -164,10 +164,10 @@ public b4a.example.dateutils _dateutils = null;
public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -201,7 +201,7 @@ public static String _btadmin_statechanged(int _newstate,int _oldstate) throws
//BA.debugLineNum = 58;BA.debugLine="Private Sub BTAdmin_StateChanged (NewState As Int,";
//BA.debugLineNum = 59;BA.debugLine="If logger Then Log(\"BT state changed: \" & NewStat";
if (_logger) {
anywheresoftware.b4a.keywords.Common.LogImpl("2458753","BT state changed: "+BA.NumberToString(_newstate),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("0458753","BT state changed: "+BA.NumberToString(_newstate),0);};
//BA.debugLineNum = 60;BA.debugLine="BluetoothState = NewState = BTAdmin.STATE_ON";
_bluetoothstate = _newstate==_btadmin.STATE_ON;
//BA.debugLineNum = 62;BA.debugLine="End Sub";
@@ -214,7 +214,7 @@ medicomed.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null;
_logger = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 92;BA.debugLine="If logger Then LogColor(\"Iniciamos ENVIA_ULTIMA_G";
if (_logger) {
anywheresoftware.b4a.keywords.Common.LogImpl("2851970","Iniciamos ENVIA_ULTIMA_GPS",anywheresoftware.b4a.keywords.Common.Colors.Magenta);};
anywheresoftware.b4a.keywords.Common.LogImpl("0851970","Iniciamos ENVIA_ULTIMA_GPS",anywheresoftware.b4a.keywords.Common.Colors.Magenta);};
//BA.debugLineNum = 93;BA.debugLine="Dim cmd As DBCommand";
_cmd = new medicomed.keymon.com.mx.dbrequestmanager._dbcommand();
//BA.debugLineNum = 97;BA.debugLine="Dim cmd As DBCommand";
@@ -230,7 +230,7 @@ mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (process
_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._montoactual /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientestotal /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientesventa /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientesvisitados /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._lon_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._batt /*int*/ ),(Object)(0),(Object)(0),(Object)(0),(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._almacen /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._rutapreventa /*String*/ )};
//BA.debugLineNum = 102;BA.debugLine="If logger Then Log($\"montoActual: ${B4XPages.Main";
if (_logger) {
anywheresoftware.b4a.keywords.Common.LogImpl("2851980",("montoActual: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._montoactual /*String*/ ))+", cTotal: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientestotal /*String*/ ))+", cVenta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientesventa /*String*/ ))+", cVisitados: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientesvisitados /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._lat_gps /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._lon_gps /*String*/ ))+", Batt: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._batt /*int*/ ))+", 0, 0, 0, Almacen: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._almacen /*String*/ ))+", Ruta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._rutapreventa /*String*/ ))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("0851980",("montoActual: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._montoactual /*String*/ ))+", cTotal: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientestotal /*String*/ ))+", cVenta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientesventa /*String*/ ))+", cVisitados: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._clientesvisitados /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._lat_gps /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._lon_gps /*String*/ ))+", Batt: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._batt /*int*/ ))+", 0, 0, 0, Almacen: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._almacen /*String*/ ))+", Ruta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._rutapreventa /*String*/ ))+""),0);};
//BA.debugLineNum = 103;BA.debugLine="reqManager.ExecuteCommand(cmd, \"inst_visitas\")";
_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_visitas"));
//BA.debugLineNum = 104;BA.debugLine="skmt.ExecNonQuery2(\"Update cat_variables set CAT_";
@@ -277,8 +277,8 @@ _rp = new anywheresoftware.b4a.objects.RuntimePermissions();
_flp = new uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper();
//BA.debugLineNum = 16;BA.debugLine="Dim reqManager As DBRequestManager";
_reqmanager = new medicomed.keymon.com.mx.dbrequestmanager();
//BA.debugLineNum = 17;BA.debugLine="Dim DBReqServer As String = \"http://187.189.244.1";
_dbreqserver = "http://187.189.244.154:1781";
//BA.debugLineNum = 17;BA.debugLine="Dim DBReqServer As String = \"Http://192.99.93.204";
_dbreqserver = "Http://192.99.93.204:1781";
//BA.debugLineNum = 21;BA.debugLine="Dim Timer1 As Timer";
_timer1 = new anywheresoftware.b4a.objects.Timer();
//BA.debugLineNum = 22;BA.debugLine="Dim Interval As Int = 10";
@@ -325,7 +325,7 @@ _dbreqserver = _srv;
//BA.debugLineNum = 136;BA.debugLine="reqManager.Initialize(Me, srv)";
_reqmanager._initialize /*String*/ (processBA,starter.getObject(),_srv);
//BA.debugLineNum = 137;BA.debugLine="LogColor(srv, Colors.red)";
anywheresoftware.b4a.keywords.Common.LogImpl("21048581",_srv,anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("01048581",_srv,anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 138;BA.debugLine="End Sub";
return "";
}
@@ -367,7 +367,7 @@ _dbreqserver = _s._traedbreqserverdebd /*String*/ (_skmt);};
//BA.debugLineNum = 69;BA.debugLine="reqManager.Initialize(Me, DBReqServer)";
_reqmanager._initialize /*String*/ (processBA,starter.getObject(),_dbreqserver);
//BA.debugLineNum = 70;BA.debugLine="Log($\"Starter - |${DBReqServer}|\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("2524294",("Starter - |"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_dbreqserver))+"|"),0);
anywheresoftware.b4a.keywords.Common.LogImpl("0524294",("Starter - |"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_dbreqserver))+"|"),0);
//BA.debugLineNum = 71;BA.debugLine="End Sub";
return "";
}

View File

@@ -42,16 +42,16 @@ int _difcant = 0;
anywheresoftware.b4a.sql.SQL.CursorWrapper _pe = null;
//BA.debugLineNum = 808;BA.debugLine="Sub actualizaProducto(cedis As String, costoU As S";
//BA.debugLineNum = 809;BA.debugLine="Log(\"Entramos a actualiza producto\")";
anywheresoftware.b4a.keywords.Common.LogImpl("258720257","Entramos a actualiza producto",0);
anywheresoftware.b4a.keywords.Common.LogImpl("074776577","Entramos a actualiza producto",0);
//BA.debugLineNum = 810;BA.debugLine="Private c As Cursor=B4XPages.MainPage.skmt.ExecQu";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from pedido where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' AND PE_FOLIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._tipo_venta /*String*/ ))+"'"))));
//BA.debugLineNum = 812;BA.debugLine="LogColor($\"actualizaProducto, c=${clienteId}, p=$";
anywheresoftware.b4a.keywords.Common.LogImpl("258720260",("actualizaProducto, c="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+", p="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", nombre="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_nombre))+", cant="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", cedis="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+", tipo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipoventa))+""),anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("074776580",("actualizaProducto, c="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+", p="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", nombre="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_nombre))+", cant="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", cedis="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+", tipo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipoventa))+""),anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 813;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 814;BA.debugLine="Log(\"----->1<--------------\")";
anywheresoftware.b4a.keywords.Common.LogImpl("258720262","----->1<--------------",0);
anywheresoftware.b4a.keywords.Common.LogImpl("074776582","----->1<--------------",0);
//BA.debugLineNum = 815;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 816;BA.debugLine="Private antCant As Int = 0";
@@ -70,7 +70,7 @@ mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._s
//BA.debugLineNum = 825;BA.debugLine="If cant = 0 Then";
if (_cant==0) {
//BA.debugLineNum = 826;BA.debugLine="Log(\"BORRAMOS PROD\")";
anywheresoftware.b4a.keywords.Common.LogImpl("258720274","BORRAMOS PROD",0);
anywheresoftware.b4a.keywords.Common.LogImpl("074776594","BORRAMOS PROD",0);
//BA.debugLineNum = 827;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete fr";
mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' AND PE_FOLIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._tipo_venta /*String*/ ))+"'"));
//BA.debugLineNum = 828;BA.debugLine="Private pe As Cursor = B4XPages.MainPage.skmt.E";
@@ -84,7 +84,7 @@ mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._s
};
}else {
//BA.debugLineNum = 833;BA.debugLine="Log(\"----->2<--------------\")";
anywheresoftware.b4a.keywords.Common.LogImpl("258720281","----->2<--------------",0);
anywheresoftware.b4a.keywords.Common.LogImpl("074776601","----->2<--------------",0);
//BA.debugLineNum = 835;BA.debugLine="If cant <> 0 Then guardaProductoSinGestion(cedis";
if (_cant!=0) {
_guardaproductosingestion(_ba,_cedis,_costou,BA.NumberToString(_cant),_nombre,_prodid,_clienteid,_fecha,_usuario,_rutav,_preciosin,_tipoventa,_cantc,_bcajas);};
@@ -104,7 +104,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _pe = null;
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from pedido where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' AND PE_FOLIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._tipo_venta /*String*/ ))+"'"))));
//BA.debugLineNum = 856;BA.debugLine="LogColor($\"actualizaProducto, c=${clienteId}, p=$";
anywheresoftware.b4a.keywords.Common.LogImpl("258851331",("actualizaProducto, c="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+", p="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", nombre="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_nombre))+", cant="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", cedis="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+", tipo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipoventa))+""),anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("074907651",("actualizaProducto, c="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+", p="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", nombre="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_nombre))+", cant="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", cedis="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+", tipo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipoventa))+""),anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 858;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 859;BA.debugLine="c.Position=0";
@@ -125,7 +125,7 @@ mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._s
//BA.debugLineNum = 868;BA.debugLine="If cant = 0 Then";
if (_cant==0) {
//BA.debugLineNum = 869;BA.debugLine="Log(\"BORRAMOS PROD\")";
anywheresoftware.b4a.keywords.Common.LogImpl("258851344","BORRAMOS PROD",0);
anywheresoftware.b4a.keywords.Common.LogImpl("074907664","BORRAMOS PROD",0);
//BA.debugLineNum = 870;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete fr";
mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' AND PE_FOLIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._tipo_venta /*String*/ ))+"'"));
//BA.debugLineNum = 871;BA.debugLine="Private pe As Cursor = B4XPages.MainPage.skmt.E";
@@ -202,11 +202,11 @@ mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._s
try { //BA.debugLineNum = 1527;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 1528;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
anywheresoftware.b4a.keywords.Common.LogImpl("260489739",("Columna \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
anywheresoftware.b4a.keywords.Common.LogImpl("076546059",("Columna \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
}
catch (Exception e12) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e12); //BA.debugLineNum = 1530;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("260489741",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("076546061",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
};
};
//BA.debugLineNum = 1533;BA.debugLine="End Sub";
@@ -229,7 +229,7 @@ boolean _res2 = false;
_thislog = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 1108;BA.debugLine="If thisLog Then LogColor(\"Inventario inicial: \"&i";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259441154","Inventario inicial: "+BA.ObjectToString(_inventariosinfijos),anywheresoftware.b4a.keywords.Common.Colors.Gray);};
anywheresoftware.b4a.keywords.Common.LogImpl("075497474","Inventario inicial: "+BA.ObjectToString(_inventariosinfijos),anywheresoftware.b4a.keywords.Common.Colors.Gray);};
//BA.debugLineNum = 1109;BA.debugLine="Private totalProdsVariables As Int = 0";
_totalprodsvariables = (int) (0);
//BA.debugLineNum = 1110;BA.debugLine="Private totalProdsVariables2 As Int = 0";
@@ -256,7 +256,7 @@ _p2 = BA.ObjectToString(_inventariosinfijos.Get((Object)(_t)));
_totalprodsvariables = (int) (_totalprodsvariables+(double)(Double.parseDouble(_p2)));
//BA.debugLineNum = 1122;BA.debugLine="If thisLog Then Log($\"prod ${t}, hay: ${p2}\"$)";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259441168",("prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", hay: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_p2))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075497488",("prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", hay: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_p2))+""),0);};
};
}
};
@@ -276,16 +276,16 @@ _p2 = BA.ObjectToString(_inventariosinfijos.Get((Object)(_t)));
_totalprodsvariables2 = (int) (_totalprodsvariables2+(double)(Double.parseDouble(_p2)));
//BA.debugLineNum = 1130;BA.debugLine="If thisLog Then Log($\"prod ${t}, hay: ${p2}\"$)";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259441176",("prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", hay: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_p2))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075497496",("prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", hay: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_p2))+""),0);};
};
}
};
//BA.debugLineNum = 1133;BA.debugLine="If thisLog Then Log(\"Total prods variables=\" & to";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259441179","Total prods variables="+BA.NumberToString(_totalprodsvariables)+", requeridos="+BA.ObjectToString(_promomap.Get((Object)("prodsVariablesRequeridos"))),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075497499","Total prods variables="+BA.NumberToString(_totalprodsvariables)+", requeridos="+BA.ObjectToString(_promomap.Get((Object)("prodsVariablesRequeridos"))),0);};
//BA.debugLineNum = 1134;BA.debugLine="If thisLog Then Log(\"Total prods variables2=\" & t";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259441180","Total prods variables2="+BA.NumberToString(_totalprodsvariables2)+", requeridos2="+BA.ObjectToString(_promomap.Get((Object)("prodsVariables2Requeridos"))),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075497500","Total prods variables2="+BA.NumberToString(_totalprodsvariables2)+", requeridos2="+BA.ObjectToString(_promomap.Get((Object)("prodsVariables2Requeridos"))),0);};
//BA.debugLineNum = 1135;BA.debugLine="Private res As Boolean = False";
_res = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 1136;BA.debugLine="Private res1 As Boolean = False";
@@ -309,7 +309,7 @@ _res2 = anywheresoftware.b4a.keywords.Common.True;
if (((int)(BA.ObjectToNumber(_promomap.Get((Object)("prodsVariables2Requeridos")))))==0) {
_res2 = anywheresoftware.b4a.keywords.Common.True;};
//BA.debugLineNum = 1150;BA.debugLine="Log(res1&\" ________________________\" & res2)";
anywheresoftware.b4a.keywords.Common.LogImpl("259441196",BA.ObjectToString(_res1)+" ________________________"+BA.ObjectToString(_res2),0);
anywheresoftware.b4a.keywords.Common.LogImpl("075497516",BA.ObjectToString(_res1)+" ________________________"+BA.ObjectToString(_res2),0);
//BA.debugLineNum = 1151;BA.debugLine="If res1 And res2 Then 'Solo si son verdadero los";
if (_res1 && _res2) {
//BA.debugLineNum = 1152;BA.debugLine="res = True";
@@ -328,13 +328,13 @@ public static String _borraarribade100errores(anywheresoftware.b4a.BA _ba) thro
//BA.debugLineNum = 467;BA.debugLine="revisaBD";
_revisabd(_ba);
//BA.debugLineNum = 468;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)";
anywheresoftware.b4a.keywords.Common.LogImpl("257081858","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("073138178","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 469;BA.debugLine="errorLog.ExecNonQuery(\"DELETE FROM errores WHERE";
_errorlog.ExecNonQuery("DELETE FROM errores WHERE fecha NOT in (SELECT fecha FROM errores ORDER BY fecha desc LIMIT 99 )");
//BA.debugLineNum = 470;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")";
_errorlog.ExecNonQuery("vacuum;");
//BA.debugLineNum = 471;BA.debugLine="Log(\"Borramos mas de 100 de errorLog\")";
anywheresoftware.b4a.keywords.Common.LogImpl("257081861","Borramos mas de 100 de errorLog",0);
anywheresoftware.b4a.keywords.Common.LogImpl("073138181","Borramos mas de 100 de errorLog",0);
//BA.debugLineNum = 472;BA.debugLine="End Sub";
return "";
}
@@ -343,20 +343,20 @@ public static String _borraarribade600renglonesbitacora(anywheresoftware.b4a.BA
//BA.debugLineNum = 476;BA.debugLine="revisaBD";
_revisabd(_ba);
//BA.debugLineNum = 477;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)";
anywheresoftware.b4a.keywords.Common.LogImpl("257147394","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("073203714","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 478;BA.debugLine="kmt.ExecNonQuery(\"DELETE FROM bitacora WHERE fech";
_kmt.ExecNonQuery("DELETE FROM bitacora WHERE fecha NOT in (SELECT fecha FROM bitacora ORDER BY fecha desc LIMIT 599 )");
//BA.debugLineNum = 479;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
_kmt.ExecNonQuery("vacuum;");
//BA.debugLineNum = 480;BA.debugLine="Log(\"Borramos mas de 600 de bitacora\")";
anywheresoftware.b4a.keywords.Common.LogImpl("257147397","Borramos mas de 600 de bitacora",0);
anywheresoftware.b4a.keywords.Common.LogImpl("073203717","Borramos mas de 600 de bitacora",0);
//BA.debugLineNum = 481;BA.debugLine="End Sub";
return "";
}
public static String _borralogdb(anywheresoftware.b4a.BA _ba) throws Exception{
//BA.debugLineNum = 350;BA.debugLine="Sub borraLogDB 'ignore";
//BA.debugLineNum = 351;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)";
anywheresoftware.b4a.keywords.Common.LogImpl("256885249","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("072941569","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 352;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")";
_kmt.ExecNonQuery("delete from bitacora");
//BA.debugLineNum = 353;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
@@ -406,7 +406,7 @@ mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("upda
//BA.debugLineNum = 1473;BA.debugLine="Starter.skmt.ExecNonQuery($\"update CAT_GUNAPROD";
mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update CAT_GUNAPROD2 set cat_gp_almacen = cat_gp_almacen + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_CANT")))+" where cat_gp_id = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_PROID")))+"'"));
//BA.debugLineNum = 1474;BA.debugLine="LogColor($\"update ${traeTablaProds(thisC.GetStr";
anywheresoftware.b4a.keywords.Common.LogImpl("260227607",("update "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_thisc.GetString("PE_FOLIO"))))+" set cat_gp_almacen = cat_gp_almacen + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_CANT")))+" where cat_gp_id = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_PROID")))+"'"),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("076283927",("update "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_thisc.GetString("PE_FOLIO"))))+" set cat_gp_almacen = cat_gp_almacen + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_CANT")))+" where cat_gp_id = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_PROID")))+"'"),anywheresoftware.b4a.keywords.Common.Colors.Red);
}
};
};
@@ -485,7 +485,7 @@ _compressed = _gzip.compress(_str);
//BA.debugLineNum = 50;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed";
_base64 = _su.EncodeBase64(_compressed);
//BA.debugLineNum = 51;BA.debugLine="Log($\"Comprimido: ${base64.Length}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("255640070",("Comprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("071696390",("Comprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0);
//BA.debugLineNum = 53;BA.debugLine="Return base64";
if (true) return _base64;
//BA.debugLineNum = 54;BA.debugLine="End Sub";
@@ -534,11 +534,11 @@ anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("B
anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("No se pudo hacer la copia: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba))),anywheresoftware.b4a.keywords.Common.True);
};
//BA.debugLineNum = 581;BA.debugLine="Log(\"rootExternal=\"&p)";
anywheresoftware.b4a.keywords.Common.LogImpl("257475097","rootExternal="+_p,0);
anywheresoftware.b4a.keywords.Common.LogImpl("073531417","rootExternal="+_p,0);
//BA.debugLineNum = 582;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
anywheresoftware.b4a.keywords.Common.LogImpl("257475098","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("073531418","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
//BA.debugLineNum = 583;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
anywheresoftware.b4a.keywords.Common.LogImpl("257475099","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("073531419","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
}else {
//BA.debugLineNum = 585;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),anywheresoftware.b4a.keywords.Common.False);
@@ -561,7 +561,7 @@ anywheresoftware.b4a.objects.collections.Map _m = null;
anywheresoftware.b4a.objects.collections.Map _m2 = null;
//BA.debugLineNum = 494;BA.debugLine="Sub dameErroresJSON(SQL As SQL, maxErrores As Int,";
//BA.debugLineNum = 495;BA.debugLine="Log(\"dameErroresJSON\")";
anywheresoftware.b4a.keywords.Common.LogImpl("257278465","dameErroresJSON",0);
anywheresoftware.b4a.keywords.Common.LogImpl("073334785","dameErroresJSON",0);
//BA.debugLineNum = 496;BA.debugLine="Private j As JSONGenerator";
_j = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator();
//BA.debugLineNum = 497;BA.debugLine="Private lim As String";
@@ -605,7 +605,7 @@ _cur.Close();
//BA.debugLineNum = 514;BA.debugLine="j.Initialize(m2)";
_j.Initialize(_m2);
//BA.debugLineNum = 515;BA.debugLine="Log(j.ToString)";
anywheresoftware.b4a.keywords.Common.LogImpl("257278485",_j.ToString(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("073334805",_j.ToString(),0);
//BA.debugLineNum = 516;BA.debugLine="If comprimido Then";
if (_comprimido) {
//BA.debugLineNum = 517;BA.debugLine="Return compress(j.ToString)";
@@ -637,7 +637,7 @@ _fechainicio = _fechainiciohoy(_ba);
};
//BA.debugLineNum = 147;BA.debugLine="If subsLogs Then Log(\"fechaInicio: \"&fechaInicio&";
if (_subslogs) {
anywheresoftware.b4a.keywords.Common.LogImpl("256098827","fechaInicio: "+_fechainicio+" | rutaHrsAtras="+BA.NumberToString(_rutahrsatras),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("072155147","fechaInicio: "+_fechainicio+" | rutaHrsAtras="+BA.NumberToString(_rutahrsatras),0);};
//BA.debugLineNum = 148;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
//BA.debugLineNum = 149;BA.debugLine="If kmt.IsInitialized = False Then kmt.Initialize(";
@@ -645,7 +645,7 @@ if (_kmt.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) {
_kmt.Initialize(mostCurrent._starter._ruta /*String*/ ,"kmt.db",anywheresoftware.b4a.keywords.Common.True);};
//BA.debugLineNum = 150;BA.debugLine="If subsLogs Then Log(\"select FECHA, LAT, LON from";
if (_subslogs) {
anywheresoftware.b4a.keywords.Common.LogImpl("256098830","select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("072155150","select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints),0);};
//BA.debugLineNum = 151;BA.debugLine="c = kmt.ExecQuery(\"select FECHA, LAT, LON from \"&";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints))));
//BA.debugLineNum = 152;BA.debugLine="c.Position = 0";
@@ -713,7 +713,7 @@ _bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter();
//BA.debugLineNum = 61;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d";
_uncompressed = _bc.StringFromBytes(_decompressedbytes,"UTF8");
//BA.debugLineNum = 62;BA.debugLine="Log($\"Descomprimido: ${uncompressed.Length}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("255705605",("Descomprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("071761925",("Descomprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0);
//BA.debugLineNum = 64;BA.debugLine="Return uncompressed";
if (true) return _uncompressed;
//BA.debugLineNum = 65;BA.debugLine="End Sub";
@@ -754,7 +754,7 @@ _h = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.key
//BA.debugLineNum = 313;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig";
anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
//BA.debugLineNum = 314;BA.debugLine="Log(\"Hoy=\"&h)";
anywheresoftware.b4a.keywords.Common.LogImpl("256623109","Hoy="+_h,0);
anywheresoftware.b4a.keywords.Common.LogImpl("072679429","Hoy="+_h,0);
//BA.debugLineNum = 315;BA.debugLine="Return h";
if (true) return _h;
//BA.debugLineNum = 316;BA.debugLine="End Sub";
@@ -804,16 +804,16 @@ anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
if (true) return _ticks;
}else {
//BA.debugLineNum = 536;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '";
anywheresoftware.b4a.keywords.Common.LogImpl("257344012","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0);
anywheresoftware.b4a.keywords.Common.LogImpl("073400332","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0);
//BA.debugLineNum = 537;BA.debugLine="Return 0";
if (true) return (long) (0);
};
}
catch (Exception e16) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16); //BA.debugLineNum = 540;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("257344016",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("073400336",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
//BA.debugLineNum = 541;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p";
anywheresoftware.b4a.keywords.Common.LogImpl("257344017",("Fecha dada: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fkmt))+", Parte Fecha: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_partefecha))+", Parte Hora: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_partehora))+""),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("073400337",("Fecha dada: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fkmt))+", Parte Fecha: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_partefecha))+", Parte Hora: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_partehora))+""),anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 542;BA.debugLine="Return 0";
if (true) return (long) (0);
};
@@ -924,7 +924,7 @@ public static String _guardainfoenbd(anywheresoftware.b4a.BA _ba,String _coords
String[] _latlon = null;
//BA.debugLineNum = 123;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore";
//BA.debugLineNum = 124;BA.debugLine="Log(\"Guardamos ubicacion en BD - \"&coords)";
anywheresoftware.b4a.keywords.Common.LogImpl("256033281","Guardamos ubicacion en BD - "+_coords,0);
anywheresoftware.b4a.keywords.Common.LogImpl("072089601","Guardamos ubicacion en BD - "+_coords,0);
//BA.debugLineNum = 125;BA.debugLine="Try";
try { //BA.debugLineNum = 126;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord";
_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",_coords);
@@ -933,13 +933,13 @@ if (_latlon.length<2) {
_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split(",",_coords);};
//BA.debugLineNum = 128;BA.debugLine="If subsLogs Then Log(\"LatLon=\"&latlon)";
if (_subslogs) {
anywheresoftware.b4a.keywords.Common.LogImpl("256033285","LatLon="+BA.ObjectToString(_latlon),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("072089605","LatLon="+BA.ObjectToString(_latlon),0);};
//BA.debugLineNum = 129;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(FECHA, L";
_kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(FECHA, LAT, LON) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_latlon[(int) (2)]),(Object)(_latlon[(int) (0)]),(Object)(_latlon[(int) (1)])}));
}
catch (Exception e8) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e8); //BA.debugLineNum = 131;BA.debugLine="LogColor(LastException, Colors.red)";
anywheresoftware.b4a.keywords.Common.LogImpl("256033288",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072089608",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 133;BA.debugLine="End Sub";
return "";
@@ -1035,7 +1035,7 @@ int _x = 0;
//BA.debugLineNum = 485;BA.debugLine="revisaBD";
_revisabd(_ba);
//BA.debugLineNum = 486;BA.debugLine="Log(\"insertamos 50 renglones a errorLog\")";
anywheresoftware.b4a.keywords.Common.LogImpl("257212930","insertamos 50 renglones a errorLog",0);
anywheresoftware.b4a.keywords.Common.LogImpl("073269250","insertamos 50 renglones a errorLog",0);
//BA.debugLineNum = 487;BA.debugLine="For x = 1 To 50";
{
final int step3 = 1;
@@ -1045,7 +1045,7 @@ for (;_x <= limit3 ;_x = _x + step3 ) {
//BA.debugLineNum = 488;BA.debugLine="errorLog.ExecNonQuery2(\"INSERT INTO errores(fech";
_errorlog.ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)("abc")}));
//BA.debugLineNum = 489;BA.debugLine="Log(x)";
anywheresoftware.b4a.keywords.Common.LogImpl("257212933",BA.NumberToString(_x),0);
anywheresoftware.b4a.keywords.Common.LogImpl("073269253",BA.NumberToString(_x),0);
}
};
//BA.debugLineNum = 491;BA.debugLine="End Sub";
@@ -1082,7 +1082,7 @@ if (true) return _json.NextObject();
}
catch (Exception e6) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e6); //BA.debugLineNum = 272;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("256492039",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("072548359",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
//BA.debugLineNum = 273;BA.debugLine="log2DB(\"JSON2Map: \"&LastException)";
_log2db(_ba,"JSON2Map: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)));
//BA.debugLineNum = 274;BA.debugLine="Private m As Map = CreateMap(\"title\":\"Error gene";
@@ -1097,7 +1097,7 @@ return null;
public static String _log2db(anywheresoftware.b4a.BA _ba,String _texto) throws Exception{
//BA.debugLineNum = 319;BA.debugLine="Sub log2DB(texto As String) 'ignore";
//BA.debugLineNum = 320;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te";
anywheresoftware.b4a.keywords.Common.LogImpl("256688641",_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))+" - log2BD: '"+_texto+"'",anywheresoftware.b4a.keywords.Common.Colors.LightGray);
anywheresoftware.b4a.keywords.Common.LogImpl("072744961",_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))+" - log2BD: '"+_texto+"'",anywheresoftware.b4a.keywords.Common.Colors.LightGray);
//BA.debugLineNum = 321;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO bitacora(fecha, te";
_kmt.ExecNonQuery2("INSERT INTO bitacora(fecha, texto) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)(_texto)}));
//BA.debugLineNum = 322;BA.debugLine="End Sub";
@@ -1116,7 +1116,7 @@ final int groupLen1 = group1.getSize()
for (; index1 < groupLen1;index1++){
_records = (Object[])(group1.Get(index1));
//BA.debugLineNum = 1538;BA.debugLine="LogColor($\"====== ${resultado.Tag} - REGISTROS =";
anywheresoftware.b4a.keywords.Common.LogImpl("260555266",("====== "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_resultado.Tag /*Object*/ )+" - REGISTROS = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (215),(int) (37),(int) (0)));
anywheresoftware.b4a.keywords.Common.LogImpl("076611586",("====== "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_resultado.Tag /*Object*/ )+" - REGISTROS = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (215),(int) (37),(int) (0)));
//BA.debugLineNum = 1539;BA.debugLine="For Each k As String In resultado.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group3 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
@@ -1126,7 +1126,7 @@ final int groupLen3 = group3.getSize()
for (; index3 < groupLen3;index3++){
_k = BA.ObjectToString(group3.Get(index3));
//BA.debugLineNum = 1540;BA.debugLine="LogColor(k & \" = \" & records(resultado.Columns.";
anywheresoftware.b4a.keywords.Common.LogImpl("260555268",_k+" = "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (215),(int) (37),(int) (0)));
anywheresoftware.b4a.keywords.Common.LogImpl("076611588",_k+" = "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (215),(int) (37),(int) (0)));
}
};
}
@@ -1176,7 +1176,7 @@ if (true) return anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e8) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e8); //BA.debugLineNum = 345;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("256819723",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("072876043",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
};
//BA.debugLineNum = 347;BA.debugLine="End Sub";
return false;
@@ -1197,7 +1197,7 @@ _notif.setSound(anywheresoftware.b4a.keywords.Common.False);
//BA.debugLineNum = 85;BA.debugLine="notif.AutoCancel = True";
_notif.setAutoCancel(anywheresoftware.b4a.keywords.Common.True);
//BA.debugLineNum = 86;BA.debugLine="Log(\"notiHigh: \"&title)";
anywheresoftware.b4a.keywords.Common.LogImpl("255836679","notiHigh: "+_title,0);
anywheresoftware.b4a.keywords.Common.LogImpl("071892999","notiHigh: "+_title,0);
//BA.debugLineNum = 87;BA.debugLine="notif.SetInfo(title, body, activity)";
_notif.SetInfoNew((_ba.processBA == null ? _ba : _ba.processBA),BA.ObjectToCharSequence(_title),BA.ObjectToCharSequence(_body),_activity);
//BA.debugLineNum = 89;BA.debugLine="notif.Notify(777)";
@@ -1213,7 +1213,7 @@ _notification = new anywheresoftware.b4a.objects.NotificationWrapper();
//BA.debugLineNum = 95;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_";
_notification.Initialize2(_notification.IMPORTANCE_LOW);
//BA.debugLineNum = 96;BA.debugLine="Log(\"notiLowReturn: \"&title)";
anywheresoftware.b4a.keywords.Common.LogImpl("255902211","notiLowReturn: "+_title,0);
anywheresoftware.b4a.keywords.Common.LogImpl("071958531","notiLowReturn: "+_title,0);
//BA.debugLineNum = 97;BA.debugLine="notification.Icon = \"icon\"";
_notification.setIcon("icon");
//BA.debugLineNum = 98;BA.debugLine="notification.Sound = False";
@@ -1277,26 +1277,26 @@ _thislog = anywheresoftware.b4a.keywords.Common.True;
_iniciocontador = BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow());
//BA.debugLineNum = 1202;BA.debugLine="If thisLog Then LogColor($\"********* Iniciamos re";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259637763",("********* Iniciamos revision de Promo "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idpromo))+" *********"),anywheresoftware.b4a.keywords.Common.Colors.Magenta);};
anywheresoftware.b4a.keywords.Common.LogImpl("075694083",("********* Iniciamos revision de Promo "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idpromo))+" *********"),anywheresoftware.b4a.keywords.Common.Colors.Magenta);};
//BA.debugLineNum = 1204;BA.debugLine="Private pm As Map = traePromo(idPromo, cliente)";
_pm = new anywheresoftware.b4a.objects.collections.Map();
_pm = _traepromo(_ba,_idpromo,_cliente);
//BA.debugLineNum = 1205;BA.debugLine="If thisLog Then LogColor(pm, Colors.Blue)";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259637766",BA.ObjectToString(_pm),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075694086",BA.ObjectToString(_pm),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1206;BA.debugLine="If pm.Get(\"resultado\") = \"ok\" Then 'Si encontramo";
if ((_pm.Get((Object)("resultado"))).equals((Object)("ok"))) {
//BA.debugLineNum = 1208;BA.debugLine="If thisLog Then LogColor($\"Promociones permitida";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259637769",("Promociones permitidas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traemaxpromos(_ba,_pm)))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075694089",("Promociones permitidas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traemaxpromos(_ba,_pm)))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1209;BA.debugLine="If thisLog Then Log(\"Promos vendidas: \" & traePr";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259637770","Promos vendidas: "+BA.NumberToString(_traepromosvendidas(_ba,_idpromo,_cliente)),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075694090","Promos vendidas: "+BA.NumberToString(_traepromosvendidas(_ba,_idpromo,_cliente)),0);};
//BA.debugLineNum = 1210;BA.debugLine="If traePromosVendidas(idPromo, cliente) >= traeM";
if (_traepromosvendidas(_ba,_idpromo,_cliente)>=_traemaxpromos(_ba,_pm)) {
//BA.debugLineNum = 1211;BA.debugLine="If thisLog Then LogColor(\"Ya se vendieron las p";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259637772","Ya se vendieron las promos PERMITIDAS para el cliente",anywheresoftware.b4a.keywords.Common.Colors.Red);};
anywheresoftware.b4a.keywords.Common.LogImpl("075694092","Ya se vendieron las promos PERMITIDAS para el cliente",anywheresoftware.b4a.keywords.Common.Colors.Red);};
//BA.debugLineNum = 1212;BA.debugLine="Return CreateMap(\"status\":\"ko\", \"mp\":pm)";
if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("status"),(Object)("ko"),(Object)("mp"),(Object)(_pm.getObject())});
};
@@ -1305,14 +1305,14 @@ _inventariosinfijos = new anywheresoftware.b4a.objects.collections.Map();
_inventariosinfijos = _restafijospromo(_ba,_pm);
//BA.debugLineNum = 1216;BA.debugLine="If thisLog Then LogColor(\"inventariosfijos=\"&inv";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259637777","inventariosfijos="+BA.ObjectToString(_inventariosinfijos),anywheresoftware.b4a.keywords.Common.Colors.Green);};
anywheresoftware.b4a.keywords.Common.LogImpl("075694097","inventariosfijos="+BA.ObjectToString(_inventariosinfijos),anywheresoftware.b4a.keywords.Common.Colors.Green);};
//BA.debugLineNum = 1218;BA.debugLine="If inventarioSinFijos.Get(\"resultado\") = \"ok\" Th";
if ((_inventariosinfijos.Get((Object)("resultado"))).equals((Object)("ok"))) {
//BA.debugLineNum = 1220;BA.debugLine="Private pv As Boolean = alcanzanLosVariablesPa";
_pv = _alcanzanlosvariablesparapromo(_ba,_pm,_inventariosinfijos);
//BA.debugLineNum = 1221;BA.debugLine="If thisLog Then Log(\"Alcanzan los variables? --";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259637782","Alcanzan los variables? --> "+BA.ObjectToString(_pv),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075694102","Alcanzan los variables? --> "+BA.ObjectToString(_pv),0);};
//BA.debugLineNum = 1222;BA.debugLine="If pv Then Return CreateMap(\"status\":\"ok\", \"mp\"";
if (_pv) {
if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("status"),(Object)("ok"),(Object)("mp"),(Object)(_pm.getObject())});}
@@ -1321,13 +1321,13 @@ if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(O
}else {
//BA.debugLineNum = 1224;BA.debugLine="If thisLog Then LogColor(\"NO HAY INVENTARIO SUF";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259637785","NO HAY INVENTARIO SUFICIENTE "+_idpromo,anywheresoftware.b4a.keywords.Common.Colors.Red);};
anywheresoftware.b4a.keywords.Common.LogImpl("075694105","NO HAY INVENTARIO SUFICIENTE "+_idpromo,anywheresoftware.b4a.keywords.Common.Colors.Red);};
//BA.debugLineNum = 1225;BA.debugLine="Return CreateMap(\"status\":\"ko\", \"mp\":pm)";
if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("status"),(Object)("ko"),(Object)("mp"),(Object)(_pm.getObject())});
};
};
//BA.debugLineNum = 1231;BA.debugLine="LogColor(\"TIEMPO DE PROCESO ESTA PROMO: \" & ((Dat";
anywheresoftware.b4a.keywords.Common.LogImpl("259637792","TIEMPO DE PROCESO ESTA PROMO: "+BA.NumberToString(((anywheresoftware.b4a.keywords.Common.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("075694112","TIEMPO DE PROCESO ESTA PROMO: "+BA.NumberToString(((anywheresoftware.b4a.keywords.Common.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 1232;BA.debugLine="End Sub";
return null;
}
@@ -1372,10 +1372,10 @@ _inventariosdisponiblesparaestapromo = new anywheresoftware.b4a.objects.collecti
_inventariosdisponiblesparaestapromo = _traemosinventariodisponibleparapromo(_ba,BA.ObjectToString(_promomap.Get((Object)("id"))));
//BA.debugLineNum = 1073;BA.debugLine="If thisLog Then LogColor(\"InvDisponible: \" & inve";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259375619","InvDisponible: "+BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Red);};
anywheresoftware.b4a.keywords.Common.LogImpl("075431939","InvDisponible: "+BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Red);};
//BA.debugLineNum = 1074;BA.debugLine="If thisLog Then LogColor(\"Inventario inicial ante";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259375620","Inventario inicial antes de FIJOS: "+BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Gray);};
anywheresoftware.b4a.keywords.Common.LogImpl("075431940","Inventario inicial antes de FIJOS: "+BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Gray);};
//BA.debugLineNum = 1075;BA.debugLine="inventariosDisponiblesParaEstaPromo.Put(\"resultad";
_inventariosdisponiblesparaestapromo.Put((Object)("resultado"),(Object)("ko"));
//BA.debugLineNum = 1076;BA.debugLine="Private i As Int";
@@ -1399,17 +1399,17 @@ _p2 = new anywheresoftware.b4a.objects.collections.Map();
_p2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap.Get((Object)(_t))));
//BA.debugLineNum = 1082;BA.debugLine="If thisLog Then Log($\"T: ${t}, prod ${p2.Get(\"id";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259375628",("T: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_p2.Get((Object)("idProducto")))+", piezas: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_p2.Get((Object)("piezas")))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075431948",("T: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_p2.Get((Object)("idProducto")))+", piezas: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_p2.Get((Object)("piezas")))+""),0);};
//BA.debugLineNum = 1083;BA.debugLine="If thisLog Then Log(\"inventariosDisponiblesParaE";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259375629","inventariosDisponiblesParaEstaPromo="+BA.ObjectToString(_inventariosdisponiblesparaestapromo),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075431949","inventariosDisponiblesParaEstaPromo="+BA.ObjectToString(_inventariosdisponiblesparaestapromo),0);};
//BA.debugLineNum = 1084;BA.debugLine="If inventariosDisponiblesParaEstaPromo.ContainsK";
if (_inventariosdisponiblesparaestapromo.ContainsKey((Object)(_t))) {
//BA.debugLineNum = 1085;BA.debugLine="i = inventariosDisponiblesParaEstaPromo.get(t)";
_i = (int)(BA.ObjectToNumber(_inventariosdisponiblesparaestapromo.Get((Object)(_t))));
//BA.debugLineNum = 1086;BA.debugLine="If thisLog Then Log($\"Nuevo inventario de ${t}:";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259375632",("Nuevo inventario de "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+": "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_i))+"-"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijosPiezas"))))).Get(_p))+" = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("1.0",(Object)(_i-(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijosPiezas"))))).Get(_p)))))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075431952",("Nuevo inventario de "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+": "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_i))+"-"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijosPiezas"))))).Get(_p))+" = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("1.0",(Object)(_i-(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijosPiezas"))))).Get(_p)))))+""),0);};
//BA.debugLineNum = 1087;BA.debugLine="inventariosDisponiblesParaEstaPromo.Put(t, $\"${";
_inventariosdisponiblesparaestapromo.Put((Object)(_t),(Object)((""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_i-(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijosPiezas"))))).Get(_p)))))+"")));
//BA.debugLineNum = 1088;BA.debugLine="inventariosDisponiblesParaEstaPromo.Put(\"result";
@@ -1418,7 +1418,7 @@ _inventariosdisponiblesparaestapromo.Put((Object)("resultado"),(Object)("ok"));
//BA.debugLineNum = 1090;BA.debugLine="inventariosDisponiblesParaEstaPromo.Put(\"result";
_inventariosdisponiblesparaestapromo.Put((Object)("resultado"),(Object)("No hay suficiente producto para la promocion."));
//BA.debugLineNum = 1091;BA.debugLine="LogColor(\"Sin suficiente inventario fijo: \" & t";
anywheresoftware.b4a.keywords.Common.LogImpl("259375637","Sin suficiente inventario fijo: "+_t,anywheresoftware.b4a.keywords.Common.Colors.Blue);
anywheresoftware.b4a.keywords.Common.LogImpl("075431957","Sin suficiente inventario fijo: "+_t,anywheresoftware.b4a.keywords.Common.Colors.Blue);
//BA.debugLineNum = 1092;BA.debugLine="Exit";
if (true) break;
};
@@ -1436,7 +1436,7 @@ if (_prodsfijos.getSize()==0) {
_inventariosdisponiblesparaestapromo.Put((Object)("resultado"),(Object)("ok"));};
//BA.debugLineNum = 1100;BA.debugLine="If thisLog Then LogColor(\"Inventario final depues";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259375646","Inventario final depues de FIJOS: "+BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075431966","Inventario final depues de FIJOS: "+BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1101;BA.debugLine="Return inventariosDisponiblesParaEstaPromo";
if (true) return _inventariosdisponiblesparaestapromo;
//BA.debugLineNum = 1102;BA.debugLine="End Sub";
@@ -1449,7 +1449,7 @@ if (anywheresoftware.b4a.keywords.Common.Not(anywheresoftware.b4a.keywords.Commo
//BA.debugLineNum = 194;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", Starter.ruta";
anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"kmt.db",mostCurrent._starter._ruta /*String*/ ,"kmt.db");
//BA.debugLineNum = 195;BA.debugLine="LogColor(\"copiamos kmt.db de \"&File.DirAssets &";
anywheresoftware.b4a.keywords.Common.LogImpl("256360966","copiamos kmt.db de "+anywheresoftware.b4a.keywords.Common.File.getDirAssets()+" a "+mostCurrent._starter._ruta /*String*/ ,anywheresoftware.b4a.keywords.Common.Colors.Green);
anywheresoftware.b4a.keywords.Common.LogImpl("072417286","copiamos kmt.db de "+anywheresoftware.b4a.keywords.Common.File.getDirAssets()+" a "+mostCurrent._starter._ruta /*String*/ ,anywheresoftware.b4a.keywords.Common.Colors.Green);
};
//BA.debugLineNum = 197;BA.debugLine="If Not(kmt.IsInitialized) Then kmt.Initialize(Sta";
if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) {
@@ -1477,9 +1477,9 @@ _kmt.ExecNonQuery("ALTER TABLE PEDIDO_CLIENTE ADD COLUMN PC_ENVIO_OK INTEGER");
}
catch (Exception e18) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e18); //BA.debugLineNum = 211;BA.debugLine="LogColor(\"No pudimos agregar la columna PC_ENVI";
anywheresoftware.b4a.keywords.Common.LogImpl("256360982","No pudimos agregar la columna PC_ENVIO_OK.",anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072417302","No pudimos agregar la columna PC_ENVIO_OK.",anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 212;BA.debugLine="LogColor(LastException, Colors.Red)";
anywheresoftware.b4a.keywords.Common.LogImpl("256360983",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072417303",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
};
//BA.debugLineNum = 216;BA.debugLine="Try 'Si no existe la columna CAT_CL_DIAS_VISITA l";
@@ -1493,9 +1493,9 @@ _kmt.ExecNonQuery("ALTER TABLE kmt_info ADD COLUMN CAT_CL_DIAS_VISITA TEXT");
}
catch (Exception e28) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e28); //BA.debugLineNum = 222;BA.debugLine="LogColor(\"No pudimos agregar la columna CAT_CL_";
anywheresoftware.b4a.keywords.Common.LogImpl("256360993","No pudimos agregar la columna CAT_CL_DIAS_VISITA.",anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072417313","No pudimos agregar la columna CAT_CL_DIAS_VISITA.",anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 223;BA.debugLine="LogColor(LastException, Colors.Red)";
anywheresoftware.b4a.keywords.Common.LogImpl("256360994",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072417314",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
};
//BA.debugLineNum = 227;BA.debugLine="Try 'Si no existe la columna PC_ENVIO_OK la agreg";
@@ -1509,9 +1509,9 @@ _kmt.ExecNonQuery("ALTER TABLE PEDIDO_CLIENTE ADD COLUMN PC_TIEMPO_TIENDA FLOAT"
}
catch (Exception e38) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e38); //BA.debugLineNum = 233;BA.debugLine="LogColor(\"No pudimos agregar la columna PC_TIEM";
anywheresoftware.b4a.keywords.Common.LogImpl("256361004","No pudimos agregar la columna PC_TIEMPO_TIENDA.",anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072417324","No pudimos agregar la columna PC_TIEMPO_TIENDA.",anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 234;BA.debugLine="LogColor(LastException, Colors.Red)";
anywheresoftware.b4a.keywords.Common.LogImpl("256361005",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072417325",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
};
//BA.debugLineNum = 237;BA.debugLine="Try 'Si no existe la columna PC_FACTURA la agrega";
@@ -1525,9 +1525,9 @@ _kmt.ExecNonQuery("ALTER TABLE PEDIDO_CLIENTE ADD COLUMN PC_FACTURA INTEGER");
}
catch (Exception e48) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e48); //BA.debugLineNum = 243;BA.debugLine="LogColor(\"No pudimos agregar la columna PC_FACT";
anywheresoftware.b4a.keywords.Common.LogImpl("256361014","No pudimos agregar la columna PC_FACTURA.",anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072417334","No pudimos agregar la columna PC_FACTURA.",anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 244;BA.debugLine="LogColor(LastException, Colors.Red)";
anywheresoftware.b4a.keywords.Common.LogImpl("256361015",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("072417335",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
};
//BA.debugLineNum = 247;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS bita";
@@ -1546,7 +1546,7 @@ public static String _revisaflp(anywheresoftware.b4a.BA _ba) throws Exception{
boolean _todobienflp = false;
//BA.debugLineNum = 397;BA.debugLine="Sub revisaFLP 'ignore";
//BA.debugLineNum = 398;BA.debugLine="LogColor(\"**** **** Revisamos FLP **** ****\", Col";
anywheresoftware.b4a.keywords.Common.LogImpl("257016321","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
anywheresoftware.b4a.keywords.Common.LogImpl("073072641","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
//BA.debugLineNum = 399;BA.debugLine="Private todoBienFLP As Boolean = True";
_todobienflp = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 400;BA.debugLine="Try";
@@ -1562,7 +1562,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e10) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e10); //BA.debugLineNum = 407;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsInitialized) ---";
anywheresoftware.b4a.keywords.Common.LogImpl("257016330","If Not(Tracker.FLP.IsInitialized) --- "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("073072650","If Not(Tracker.FLP.IsInitialized) --- "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 409;BA.debugLine="Try";
try { //BA.debugLineNum = 410;BA.debugLine="If Tracker.FLP.IsInitialized Then";
@@ -1580,7 +1580,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e21) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e21); //BA.debugLineNum = 419;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsConnected) -->";
anywheresoftware.b4a.keywords.Common.LogImpl("257016342","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("073072662","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 421;BA.debugLine="Try";
try { //BA.debugLineNum = 422;BA.debugLine="If Tracker.FLP.IsConnected And _ Tracker.";
@@ -1595,16 +1595,16 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e30) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e30); //BA.debugLineNum = 430;BA.debugLine="LogColor(\"If FLP.IsConnectctd and FLP.getLKL.I";
anywheresoftware.b4a.keywords.Common.LogImpl("257016353","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("073072673","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
};
//BA.debugLineNum = 433;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin error";
if (_todobienflp) {
anywheresoftware.b4a.keywords.Common.LogImpl("257016356"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
anywheresoftware.b4a.keywords.Common.LogImpl("073072676"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
}
catch (Exception e35) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e35); //BA.debugLineNum = 435;BA.debugLine="LogColor(\"If Tracker.FLP.IsInitialized --> \"&Las";
anywheresoftware.b4a.keywords.Common.LogImpl("257016358","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("073072678","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 438;BA.debugLine="End Sub";
return "";
@@ -1633,13 +1633,13 @@ _t.Add((Object)(_traemaxpromos(_ba,_pm)));
_invfijoxpromo.Initialize();
//BA.debugLineNum = 1285;BA.debugLine="If thisLog Then LogColor($\"pm=${pm}\"$, Colors.Blu";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259768839",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075825159",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1286;BA.debugLine="Private invDispParaPromo As Map = traemosInventar";
_invdispparapromo = new anywheresoftware.b4a.objects.collections.Map();
_invdispparapromo = _traemosinventariodisponibleparapromo(_ba,BA.ObjectToString(_pm.Get((Object)("id"))));
//BA.debugLineNum = 1287;BA.debugLine="If thisLog Then Log($\"invDispParaPromo=${invDispP";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259768841",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075825161",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);};
//BA.debugLineNum = 1288;BA.debugLine="Private prodsFijosPiezas As List = pm.Get(\"prodsF";
_prodsfijospiezas = new anywheresoftware.b4a.objects.collections.List();
_prodsfijospiezas = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsFijosPiezas"))));
@@ -1654,15 +1654,15 @@ _p = (int) (0) ;
for (;_p <= limit12 ;_p = _p + step12 ) {
//BA.debugLineNum = 1291;BA.debugLine="If thisLog Then Log($\"id=${idProdsFijos.Get(p)},";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259768845",("id="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_idprodsfijos.Get(_p))+", inv="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_invdispparapromo.Get(_idprodsfijos.Get(_p)))+", pzas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_prodsfijospiezas.Get(_p))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075825165",("id="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_idprodsfijos.Get(_p))+", inv="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_invdispparapromo.Get(_idprodsfijos.Get(_p)))+", pzas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_prodsfijospiezas.Get(_p))+""),0);};
//BA.debugLineNum = 1292;BA.debugLine="If thisLog Then Log($\"${(invDispParaPromo.Get(id";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259768846",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsfijos.Get(_p))))/(double)(double)(BA.ObjectToNumber(_prodsfijospiezas.Get(_p))))))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075825166",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsfijos.Get(_p))))/(double)(double)(BA.ObjectToNumber(_prodsfijospiezas.Get(_p))))))+""),0);};
//BA.debugLineNum = 1293;BA.debugLine="Private x() As String = Regex.Split(\"\\.\", $\"${(i";
_x = anywheresoftware.b4a.keywords.Common.Regex.Split("\\.",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsfijos.Get(_p))))/(double)(double)(BA.ObjectToNumber(_prodsfijospiezas.Get(_p))))))+""));
//BA.debugLineNum = 1294;BA.debugLine="If thisLog Then Log(x(0))";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259768848",_x[(int) (0)],0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075825168",_x[(int) (0)],0);};
//BA.debugLineNum = 1295;BA.debugLine="t.Add(x(0).As(Int)) 'Solo guardamos la parte del";
_t.Add((Object)(((int)(Double.parseDouble(_x[(int) (0)])))));
}
@@ -1671,13 +1671,13 @@ _t.Add((Object)(((int)(Double.parseDouble(_x[(int) (0)])))));
_t.Sort(anywheresoftware.b4a.keywords.Common.True);
//BA.debugLineNum = 1298;BA.debugLine="If thisLog Then LogColor($\"prodsFijos=${idProdsFi";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259768852",("prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsfijos.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075825172",("prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsfijos.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1299;BA.debugLine="If thisLog Then LogColor($\"prodsFijosPiezasReq=${";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259768853",("prodsFijosPiezasReq="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsfijospiezas.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075825173",("prodsFijosPiezasReq="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsfijospiezas.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1300;BA.debugLine="If thisLog Then LogColor($\"invFijoXpromo=${invFij";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259768854",("invFijoXpromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invfijoxpromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075825174",("invFijoXpromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invfijoxpromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1302;BA.debugLine="Return t.Get(0) 'Regresamos el resultado mas pequ";
if (true) return (int)(BA.ObjectToNumber(_t.Get((int) (0))));
//BA.debugLineNum = 1303;BA.debugLine="End Sub";
@@ -1703,13 +1703,13 @@ String _q2 = "";
_thislog = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 1237;BA.debugLine="If thisLog Then Log($\"pm=${pm}\"$)";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703298",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759618",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),0);};
//BA.debugLineNum = 1239;BA.debugLine="Private invDispParaPromo As Map = traemosInventar";
_invdispparapromo = new anywheresoftware.b4a.objects.collections.Map();
_invdispparapromo = _traemosinventariodisponibleparapromo(_ba,BA.ObjectToString(_pm.Get((Object)("id"))));
//BA.debugLineNum = 1240;BA.debugLine="If thisLog Then Log($\"invDispParaPromo=${invDispP";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703301",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759621",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);};
//BA.debugLineNum = 1241;BA.debugLine="Private maxPromos As String = traeMaxPromos(pm)";
_maxpromos = BA.NumberToString(_traemaxpromos(_ba,_pm));
//BA.debugLineNum = 1242;BA.debugLine="Private maxPromosFijosXinv As Int = 1";
@@ -1727,10 +1727,10 @@ _pfp = new anywheresoftware.b4a.objects.collections.List();
_pfp = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsFijosPiezas"))));
//BA.debugLineNum = 1247;BA.debugLine="If thisLog Then Log($\"maxPromos=${maxPromos}, pro";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703308",("maxPromos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromos))+", prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pf.getObject()))+", piezas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pfp.getObject()))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759628",("maxPromos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromos))+", prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pf.getObject()))+", piezas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pfp.getObject()))+""),0);};
//BA.debugLineNum = 1248;BA.debugLine="If thisLog Then LogColor($\"InvFijo disponible=${i";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703309",("InvFijo disponible="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759629",("InvFijo disponible="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1249;BA.debugLine="Private invFijoXpromo As Map";
_invfijoxpromo = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 1250;BA.debugLine="invFijoXpromo.Initialize";
@@ -1747,7 +1747,7 @@ _invfijoxpromo.Put(_pf.Get(_p),_pfp.Get(_p));
};
//BA.debugLineNum = 1254;BA.debugLine="If thisLog Then LogColor(\"Inv req. de prods fijos";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703315","Inv req. de prods fijos x promo"+BA.ObjectToString(_invfijoxpromo),anywheresoftware.b4a.keywords.Common.Colors.Green);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759635","Inv req. de prods fijos x promo"+BA.ObjectToString(_invfijoxpromo),anywheresoftware.b4a.keywords.Common.Colors.Green);};
//BA.debugLineNum = 1255;BA.debugLine="For i = 1 To maxPromos 'Revisamos cuantas promoci";
{
final int step19 = 1;
@@ -1756,7 +1756,7 @@ _i = (int) (1) ;
for (;_i <= limit19 ;_i = _i + step19 ) {
//BA.debugLineNum = 1256;BA.debugLine="If thisLog Then LogColor(\"Prods para promo \" & (";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703317","Prods para promo "+BA.NumberToString((_i+1)),anywheresoftware.b4a.keywords.Common.Colors.Magenta);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759637","Prods para promo "+BA.NumberToString((_i+1)),anywheresoftware.b4a.keywords.Common.Colors.Magenta);};
//BA.debugLineNum = 1257;BA.debugLine="For q = 0 To pf.Size - 1";
{
final int step21 = 1;
@@ -1767,14 +1767,14 @@ for (;_q <= limit21 ;_q = _q + step21 ) {
_q2 = BA.ObjectToString(_pf.Get(_q));
//BA.debugLineNum = 1259;BA.debugLine="If thisLog Then Log(\"q=\"&q2)";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703320","q="+_q2,0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759640","q="+_q2,0);};
//BA.debugLineNum = 1261;BA.debugLine="fpf2 = pfp.Get(q) * i 'Multiplicamos las piezas";
_fpf2 = (int) ((double)(BA.ObjectToNumber(_pfp.Get(_q)))*_i);
//BA.debugLineNum = 1262;BA.debugLine="pdp2 = invDispParaPromo.Get(q2)";
_pdp2 = (int)(BA.ObjectToNumber(_invdispparapromo.Get((Object)(_q2))));
//BA.debugLineNum = 1263;BA.debugLine="If thisLog Then Log($\"pf=${q2}, Actual=${(i)},";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703324",("pf="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_q2))+", Actual="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)((_i)))+", max promos: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pdp2))+"-"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fpf2))+"="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pdp2-_fpf2))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759644",("pf="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_q2))+", Actual="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)((_i)))+", max promos: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pdp2))+"-"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fpf2))+"="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pdp2-_fpf2))+""),0);};
//BA.debugLineNum = 1264;BA.debugLine="If pdp2 - fpf2 < 0 Then 'Si el inventario es ne";
if (_pdp2-_fpf2<0) {
//BA.debugLineNum = 1265;BA.debugLine="salir=True";
@@ -1793,9 +1793,9 @@ _maxpromosfijosxinv = _i;
};
//BA.debugLineNum = 1272;BA.debugLine="If thisLog Then LogColor(\"InvFijo requerido x pro";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259703333","InvFijo requerido x promo="+BA.ObjectToString(_invfijoxpromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075759653","InvFijo requerido x promo="+BA.ObjectToString(_invfijoxpromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1273;BA.debugLine="LogColor(\"Maximo de promociones de prodsFijos POR";
anywheresoftware.b4a.keywords.Common.LogImpl("259703334","Maximo de promociones de prodsFijos POR inventario = "+BA.NumberToString(_maxpromosfijosxinv),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("075759654","Maximo de promociones de prodsFijos POR inventario = "+BA.NumberToString(_maxpromosfijosxinv),anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 1274;BA.debugLine="Return maxPromosFijosXinv";
if (true) return _maxpromosfijosxinv;
//BA.debugLineNum = 1275;BA.debugLine="End Sub";
@@ -1828,10 +1828,10 @@ int _i = 0;
_thislog = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 1312;BA.debugLine="If thisLog Then Log(\"============================";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834370","======================================================",0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890690","======================================================",0);};
//BA.debugLineNum = 1313;BA.debugLine="If thisLog Then Log(\"============================";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834371","======================================================",0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890691","======================================================",0);};
//BA.debugLineNum = 1314;BA.debugLine="Private invFijoXpromo As Map";
_invfijoxpromo = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 1315;BA.debugLine="invFijoXpromo.Initialize";
@@ -1842,13 +1842,13 @@ _totalprodsvariablesdisponibles = (int) (0);
_totalprodsvariables2disponibles = (int) (0);
//BA.debugLineNum = 1318;BA.debugLine="If thisLog Then LogColor($\"pm=${pm}\"$, Colors.Blu";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834376",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890696",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1319;BA.debugLine="Private invDispParaPromo As Map = traemosInventar";
_invdispparapromo = new anywheresoftware.b4a.objects.collections.Map();
_invdispparapromo = _traemosinventariodisponibleparapromo(_ba,BA.ObjectToString(_pm.Get((Object)("id"))));
//BA.debugLineNum = 1320;BA.debugLine="If thisLog Then Log($\"invDispParaPromo=${invDispP";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834378",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890698",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);};
//BA.debugLineNum = 1321;BA.debugLine="Private maxPromos As String = traeMaxPromos(pm)";
_maxpromos = BA.NumberToString(_traemaxpromos(_ba,_pm));
//BA.debugLineNum = 1322;BA.debugLine="Private maxPromosXFijos As Int = revisaMaxPromosP";
@@ -1885,33 +1885,33 @@ _investeprod = (int)(BA.ObjectToNumber(_invdispparapromo.Get((Object)(_idestepro
_pzasreqesteprod = (int)(BA.ObjectToNumber(_prodsfijospiezas.Get(_p)));
//BA.debugLineNum = 1334;BA.debugLine="If thisLog Then Log($\"id=${idEsteProd}, inv=${in";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834392",("id="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idesteprod))+", inv="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_investeprod))+", pzas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pzasreqesteprod))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890712",("id="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idesteprod))+", inv="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_investeprod))+", pzas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pzasreqesteprod))+""),0);};
}
};
//BA.debugLineNum = 1337;BA.debugLine="If thisLog Then LogColor($\"MaxPromos=${maxPromos}";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834395",("MaxPromos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromos))+", promosXFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromosxfijos))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890715",("MaxPromos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromos))+", promosXFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromosxfijos))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1338;BA.debugLine="If thisLog Then LogColor($\"prodsFijos=${idProdsFi";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834396",("prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsfijos.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890716",("prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsfijos.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1339;BA.debugLine="If thisLog Then LogColor($\"prodsFijosPiezasReq=${";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834397",("prodsFijosPiezasReq="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsfijospiezas.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890717",("prodsFijosPiezasReq="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsfijospiezas.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1340;BA.debugLine="If thisLog Then LogColor($\"prodsVariables=${idPro";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834398",("prodsVariables="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsvariables.getObject()))+""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.CRLF))+"Variables Req="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariablesrequeridos))+" "),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890718",("prodsVariables="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsvariables.getObject()))+""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.CRLF))+"Variables Req="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariablesrequeridos))+" "),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1341;BA.debugLine="If thisLog Then LogColor($\"prodsVariables2=${idPr";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834399",("prodsVariables2="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsvariables2.getObject()))+""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.CRLF))+"Variables2 Req="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariables2requeridos))+" "),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890719",("prodsVariables2="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsvariables2.getObject()))+""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.CRLF))+"Variables2 Req="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariables2requeridos))+" "),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1342;BA.debugLine="If thisLog Then LogColor($\"invFijoXpromo=${invFij";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834400",("invFijoXpromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invfijoxpromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890720",("invFijoXpromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invfijoxpromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1343;BA.debugLine="If thisLog Then Log($\"Prods variables disponibles";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834401",("Prods variables disponibles = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariablesdisponibles))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890721",("Prods variables disponibles = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariablesdisponibles))+""),0);};
//BA.debugLineNum = 1344;BA.debugLine="If thisLog Then Log($\"Prods variables2 disponible";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834402",("Prods variables2 disponibles = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariables2disponibles))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890722",("Prods variables2 disponibles = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariables2disponibles))+""),0);};
//BA.debugLineNum = 1345;BA.debugLine="Private maxPromosXVariables As Int = 0";
_maxpromosxvariables = (int) (0);
//BA.debugLineNum = 1346;BA.debugLine="Private maxPromosXVariables2 As Int = 0";
@@ -1924,10 +1924,10 @@ _x = (int) (1) ;
for (;_x <= limit36 ;_x = _x + step36 ) {
//BA.debugLineNum = 1348;BA.debugLine="If thisLog Then Log(\"===========================";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834406","=====================================================",0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890726","=====================================================",0);};
//BA.debugLineNum = 1349;BA.debugLine="If thisLog Then Log(\"===========================";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834407","=====================================================",0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890727","=====================================================",0);};
//BA.debugLineNum = 1350;BA.debugLine="For i = 0 To idProdsFijos.Size - 1";
{
final int step39 = 1;
@@ -1936,14 +1936,14 @@ _i = (int) (0) ;
for (;_i <= limit39 ;_i = _i + step39 ) {
//BA.debugLineNum = 1351;BA.debugLine="If thisLog Then Log($\"FIJO - ${idProdsFijos.Get";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834409",("FIJO - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_idprodsfijos.Get(_i))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_invdispparapromo.Get(_idprodsfijos.Get(_i)))+" - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((int)(BA.ObjectToNumber(_prodsfijospiezas.Get(_i))))*(_i+1)))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890729",("FIJO - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_idprodsfijos.Get(_i))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_invdispparapromo.Get(_idprodsfijos.Get(_i)))+" - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((int)(BA.ObjectToNumber(_prodsfijospiezas.Get(_i))))*(_i+1)))+""),0);};
//BA.debugLineNum = 1352;BA.debugLine="invDispParaPromo.Put(idProdsFijos.Get(i), invDi";
_invdispparapromo.Put(_idprodsfijos.Get(_i),(Object)(((int)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsfijos.Get(_i)))))-((int)(BA.ObjectToNumber(_prodsfijospiezas.Get(_i))))*(_i+1)));
}
};
//BA.debugLineNum = 1354;BA.debugLine="If thisLog Then LogColor(\"Inv disponible despues";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834412","Inv disponible despues de restar fijos = "+BA.ObjectToString(_invdispparapromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890732","Inv disponible despues de restar fijos = "+BA.ObjectToString(_invdispparapromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);};
//BA.debugLineNum = 1356;BA.debugLine="totalProdsVariablesDisponibles = 0";
_totalprodsvariablesdisponibles = (int) (0);
//BA.debugLineNum = 1357;BA.debugLine="totalProdsVariables2Disponibles = 0";
@@ -1976,17 +1976,17 @@ _totalprodsvariables2disponibles = (int) (_totalprodsvariables2disponibles+(doub
};
//BA.debugLineNum = 1369;BA.debugLine="If thisLog Then Log($\"Var disponibles - var req";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834427",("Var disponibles - var requeridos : "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariablesdisponibles))+" - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariablesrequeridos*_x))+""),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890747",("Var disponibles - var requeridos : "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariablesdisponibles))+" - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariablesrequeridos*_x))+""),0);};
//BA.debugLineNum = 1370;BA.debugLine="totalProdsVariablesDisponibles = totalProdsVaria";
_totalprodsvariablesdisponibles = (int) (_totalprodsvariablesdisponibles-(_prodsvariablesrequeridos*_x));
//BA.debugLineNum = 1371;BA.debugLine="totalProdsVariables2Disponibles = totalProdsVari";
_totalprodsvariables2disponibles = (int) (_totalprodsvariables2disponibles-(_prodsvariables2requeridos*_x));
//BA.debugLineNum = 1372;BA.debugLine="If thisLog Then Log(\"prodsVariables disponibles";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834430","prodsVariables disponibles despues de promo = "+BA.NumberToString(_totalprodsvariablesdisponibles),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890750","prodsVariables disponibles despues de promo = "+BA.NumberToString(_totalprodsvariablesdisponibles),0);};
//BA.debugLineNum = 1373;BA.debugLine="If thisLog Then Log(\"prodsVariables2 disponibles";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834431","prodsVariables2 disponibles despues de promo = "+BA.NumberToString(_totalprodsvariables2disponibles),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890751","prodsVariables2 disponibles despues de promo = "+BA.NumberToString(_totalprodsvariables2disponibles),0);};
//BA.debugLineNum = 1374;BA.debugLine="If totalProdsVariablesDisponibles < 0 Then Exit";
if (_totalprodsvariablesdisponibles<0) {
if (true) break;};
@@ -1999,7 +1999,7 @@ _maxpromosxvariables = _x;
};
//BA.debugLineNum = 1379;BA.debugLine="If thisLog Then LogColor(\"Max promos de prodsVari";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259834437","Max promos de prodsVariables POR inventario = "+BA.NumberToString(_maxpromosxvariables),anywheresoftware.b4a.keywords.Common.Colors.Red);};
anywheresoftware.b4a.keywords.Common.LogImpl("075890757","Max promos de prodsVariables POR inventario = "+BA.NumberToString(_maxpromosxvariables),anywheresoftware.b4a.keywords.Common.Colors.Red);};
//BA.debugLineNum = 1380;BA.debugLine="Return maxPromosXVariables";
if (true) return _maxpromosxvariables;
//BA.debugLineNum = 1381;BA.debugLine="End Sub";
@@ -2015,14 +2015,14 @@ if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.Fu
_daa = (int) (mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .DistanceTo((android.location.Location)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getObject())));
//BA.debugLineNum = 384;BA.debugLine="If Starter.Logger Then LogColor($\"**** UUC \"${f";
if (mostCurrent._starter._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("256950789",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fechakmt(_ba,BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
anywheresoftware.b4a.keywords.Common.LogImpl("073007109",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fechakmt(_ba,BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
//BA.debugLineNum = 385;BA.debugLine="If daa > 40 And Tracker.FLP.GetLastKnownLocatio";
if (_daa>40 && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()<35) {
//BA.debugLineNum = 386;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(fecha,";
_kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getTime()))),(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()),(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude())}));
//BA.debugLineNum = 387;BA.debugLine="If Starter.Logger Then Log(\"++++ Distancia a a";
if (mostCurrent._starter._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("256950792","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("073007112","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()),0);};
};
//BA.debugLineNum = 389;BA.debugLine="Tracker.UUGCoords = Tracker.FLP.GetLastKnownLoc";
mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ = mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation();
@@ -2030,7 +2030,7 @@ mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ =
}
catch (Exception e12) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e12); //BA.debugLineNum = 392;BA.debugLine="LogColor(\"If Tracker.FLP.GetLastKnownLocation.Is";
anywheresoftware.b4a.keywords.Common.LogImpl("256950797","If Tracker.FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("073007117","If Tracker.FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 394;BA.debugLine="End Sub";
return "";
@@ -2220,7 +2220,7 @@ _vendidas = (int) (0);
_maxpromos.Initialize();
//BA.debugLineNum = 1167;BA.debugLine="If thisLog Then Log(pm)";
if (_thislog) {
anywheresoftware.b4a.keywords.Common.LogImpl("259506694",BA.ObjectToString(_pm),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("075563014",BA.ObjectToString(_pm),0);};
//BA.debugLineNum = 1168;BA.debugLine="If pm.Get(\"historico\") = \"1\" Then maxPromos.Add(p";
if ((_pm.Get((Object)("historico"))).equals((Object)("1"))) {
_maxpromos.Add(_pm.Get((Object)("maxRecurrente")));};
@@ -2266,7 +2266,7 @@ int _i = 0;
//BA.debugLineNum = 1048;BA.debugLine="Private c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
//BA.debugLineNum = 1049;BA.debugLine="Log(\"ESTAMOS VIENDO INVENTARIO\")";
anywheresoftware.b4a.keywords.Common.LogImpl("259310082","ESTAMOS VIENDO INVENTARIO",0);
anywheresoftware.b4a.keywords.Common.LogImpl("075366402","ESTAMOS VIENDO INVENTARIO",0);
//BA.debugLineNum = 1050;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2($\"SELECT CA";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("SELECT CAT_GP_ID, CAT_GP_ALMACEN FROM "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._starter._tabla /*String*/ ))+" WHERE CAT_GP_ID IN (select CAT_DP_IDPROD FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID = ?)"),new String[]{_promo})));
//BA.debugLineNum = 1053;BA.debugLine="Private prods As Map";
@@ -2768,7 +2768,7 @@ int _i = 0;
//BA.debugLineNum = 925;BA.debugLine="Private sumaTotal As Double = 0";
_sumatotal = 0;
//BA.debugLineNum = 926;BA.debugLine="LogColor(clientepedido,Colors.Red)";
anywheresoftware.b4a.keywords.Common.LogImpl("259113474",_clientepedido,anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("075169794",_clientepedido,anywheresoftware.b4a.keywords.Common.Colors.Red);
//BA.debugLineNum = 927;BA.debugLine="Private cursorprueba As Cursor = B4XPages.MainPag";
_cursorprueba = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cursorprueba = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select PE_COSTO_TOT from pedido where PE_CLIENTE = ? and PE_IMPRESO IS NOT NULL",new String[]{_clientepedido})));

View File

@@ -44,10 +44,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;

View File

@@ -148,10 +148,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
public medicomed.keymon.com.mx.b4xcollections _b4xcollections = null;
@@ -226,7 +226,7 @@ String _coords = "";
if (_flp.GetLastKnownLocation().IsInitialized()) {
//BA.debugLineNum = 140;BA.debugLine="If Starter.Logger Then LogColor($\"Mandamos UUC \"";
if (mostCurrent._starter._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("277725699",("Mandamos UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|Acc:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|Spd:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
anywheresoftware.b4a.keywords.Common.LogImpl("077725699",("Mandamos UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|Acc:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|Spd:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
//BA.debugLineNum = 141;BA.debugLine="Dim coords As String = FLP.GetLastKnownLocation.";
_coords = BA.NumberToString(_flp.GetLastKnownLocation().getLatitude())+","+BA.NumberToString(_flp.GetLastKnownLocation().getLongitude())+","+_formatofecha(BA.NumberToString(_flp.GetLastKnownLocation().getTime()));
};
@@ -236,7 +236,7 @@ return "";
public static String _flp_connectionfailed(int _connectionresult1) throws Exception{
//BA.debugLineNum = 56;BA.debugLine="Sub flp_ConnectionFailed(ConnectionResult1 As Int)";
//BA.debugLineNum = 57;BA.debugLine="Log(\"Failed to connect to location provider\")";
anywheresoftware.b4a.keywords.Common.LogImpl("277266945","Failed to connect to location provider",0);
anywheresoftware.b4a.keywords.Common.LogImpl("077266945","Failed to connect to location provider",0);
//BA.debugLineNum = 58;BA.debugLine="End Sub";
return "";
}
@@ -276,7 +276,7 @@ mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (process
}
catch (Exception e13) {
processBA.setLastException(e13); //BA.debugLineNum = 177;BA.debugLine="LogColor(LastException, Colors.Red)";
anywheresoftware.b4a.keywords.Common.LogImpl("277856790",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("077856790",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 180;BA.debugLine="Dim coords As String = Location1.Latitude&\",\"&Loc";
_coords = BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude())+","+_formatofecha(BA.NumberToString(_location1.getTime()));
@@ -333,7 +333,7 @@ public static String _revisaflp() throws Exception{
boolean _todobienflp = false;
//BA.debugLineNum = 225;BA.debugLine="Sub revisaFLP 'ignore";
//BA.debugLineNum = 226;BA.debugLine="LogColor(\"**** **** Revisamos FLP **** ****\", Col";
anywheresoftware.b4a.keywords.Common.LogImpl("278118913","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
anywheresoftware.b4a.keywords.Common.LogImpl("078118913","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
//BA.debugLineNum = 227;BA.debugLine="Private todoBienFLP As Boolean = True";
_todobienflp = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 228;BA.debugLine="Try";
@@ -349,7 +349,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e10) {
processBA.setLastException(e10); //BA.debugLineNum = 235;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsInitialized) -->";
anywheresoftware.b4a.keywords.Common.LogImpl("278118922","If Not(Tracker.FLP.IsInitialized) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("078118922","If Not(Tracker.FLP.IsInitialized) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 237;BA.debugLine="Try";
try { //BA.debugLineNum = 238;BA.debugLine="If FLP.IsInitialized Then";
@@ -367,7 +367,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e21) {
processBA.setLastException(e21); //BA.debugLineNum = 247;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsConnected) -->";
anywheresoftware.b4a.keywords.Common.LogImpl("278118934","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("078118934","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 249;BA.debugLine="Try";
try { //BA.debugLineNum = 250;BA.debugLine="If FLP.IsConnected And _ FLP.GetLastKnown";
@@ -382,16 +382,16 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e30) {
processBA.setLastException(e30); //BA.debugLineNum = 258;BA.debugLine="LogColor(\"If FLP.IsConnectctd and FLP.getLKL.I";
anywheresoftware.b4a.keywords.Common.LogImpl("278118945","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("078118945","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
};
//BA.debugLineNum = 261;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin error";
if (_todobienflp) {
anywheresoftware.b4a.keywords.Common.LogImpl("278118948"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
anywheresoftware.b4a.keywords.Common.LogImpl("078118948"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
}
catch (Exception e35) {
processBA.setLastException(e35); //BA.debugLineNum = 263;BA.debugLine="LogColor(\"If Tracker.FLP.IsInitialized --> \"&Las";
anywheresoftware.b4a.keywords.Common.LogImpl("278118950","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("078118950","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 266;BA.debugLine="End Sub";
return "";
@@ -409,14 +409,14 @@ if (_flp.GetLastKnownLocation().IsInitialized()) {
_daa = (int) (_uugcoords.DistanceTo((android.location.Location)(_flp.GetLastKnownLocation().getObject())));
//BA.debugLineNum = 278;BA.debugLine="If Starter.Logger Then LogColor($\"**** UUC \"$";
if (mostCurrent._starter._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("278184456",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
anywheresoftware.b4a.keywords.Common.LogImpl("078184456",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
//BA.debugLineNum = 279;BA.debugLine="If daa > 40 And FLP.GetLastKnownLocation.Accu";
if (_daa>40 && _flp.GetLastKnownLocation().getAccuracy()<35) {
//BA.debugLineNum = 280;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
mostCurrent._b4xpages._mainpage /*medicomed.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))),(Object)(_flp.GetLastKnownLocation().getLatitude()),(Object)(_flp.GetLastKnownLocation().getLongitude())}));
//BA.debugLineNum = 281;BA.debugLine="If Starter.Logger Then Log(\"++++ Distancia a";
if (mostCurrent._starter._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("278184459","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(_flp.GetLastKnownLocation().getAccuracy()),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("078184459","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(_flp.GetLastKnownLocation().getAccuracy()),0);};
};
//BA.debugLineNum = 283;BA.debugLine="UUGCoords = FLP.GetLastKnownLocation";
_uugcoords = _flp.GetLastKnownLocation();
@@ -424,18 +424,18 @@ _uugcoords = _flp.GetLastKnownLocation();
}
catch (Exception e14) {
processBA.setLastException(e14); //BA.debugLineNum = 286;BA.debugLine="LogColor(\"FLP.GetLastKnownLocation.IsInitializ";
anywheresoftware.b4a.keywords.Common.LogImpl("278184464","FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("078184464","FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
}else {
//BA.debugLineNum = 289;BA.debugLine="Log(\"StartFLP\")";
anywheresoftware.b4a.keywords.Common.LogImpl("278184467","StartFLP",0);
anywheresoftware.b4a.keywords.Common.LogImpl("078184467","StartFLP",0);
//BA.debugLineNum = 290;BA.debugLine="StartFLP";
_startflp();
};
}
catch (Exception e21) {
processBA.setLastException(e21); //BA.debugLineNum = 293;BA.debugLine="LogColor(\"If FLP.IsInitialized --> \"&LastExcepti";
anywheresoftware.b4a.keywords.Common.LogImpl("278184471","If FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("078184471","If FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 295;BA.debugLine="End Sub";
return "";
@@ -590,7 +590,7 @@ case 5:
this.state = 1;
;
//BA.debugLineNum = 104;BA.debugLine="Log(\"sleeping\")";
anywheresoftware.b4a.keywords.Common.LogImpl("277529092","sleeping",0);
anywheresoftware.b4a.keywords.Common.LogImpl("077529092","sleeping",0);
if (true) break;
case 4:
@@ -636,7 +636,7 @@ if (true) return "";
//BA.debugLineNum = 77;BA.debugLine="If Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_";
if (mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .Check(mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION)==anywheresoftware.b4a.keywords.Common.False) {
//BA.debugLineNum = 78;BA.debugLine="Log(\"No permission\")";
anywheresoftware.b4a.keywords.Common.LogImpl("277398025","No permission",0);
anywheresoftware.b4a.keywords.Common.LogImpl("077398025","No permission",0);
//BA.debugLineNum = 79;BA.debugLine="Return";
if (true) return "";
};

View File

@@ -18,10 +18,10 @@ public medicomed.keymon.com.mx.main _main = null;
public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;