This commit is contained in:
Javier
2025-11-04 10:34:35 -06:00
parent 40477be338
commit 12af719e63
93 changed files with 321 additions and 321 deletions

View File

@@ -94,6 +94,6 @@ ModuleClosedNodes6=
ModuleClosedNodes7=
ModuleClosedNodes8=
ModuleClosedNodes9=
NavigationStack=B4XMainPage,i_engrane_Click,623,6,B4XMainPage,b_server_Click,682,0,Diseñador Visual,principal.bal,-100,1,C_Cliente,Class_Globals,0,0,B4XMainPage,Class_Globals,26,0,C_Productos,Class_Globals,0,0,C_Productos,B4XPage_Appear,200,6,C_Clientes,caculaRutaGPS,612,2,appUpdater,Process_Globals,74,1,C_Principal,Class_Globals,0,0,C_Principal,JobDone,1515,0
NavigationStack=B4XMainPage,i_engrane_Click,623,6,B4XMainPage,b_server_Click,682,0,Diseñador Visual,principal.bal,-100,1,C_Cliente,Class_Globals,0,0,B4XMainPage,Class_Globals,26,0,C_Productos,Class_Globals,0,0,C_Productos,B4XPage_Appear,200,6,C_Clientes,caculaRutaGPS,612,2,appUpdater,Process_Globals,74,1,C_Principal,Class_Globals,0,0,C_Principal,JobDone,1499,0
SelectedBuild=0
VisibleModules=29,2,6,7,16,31,30,17,13,1

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -265,7 +265,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 159;BA.debugLine="Log(\"Descargando actualización\")";
anywheresoftware.b4a.keywords.Common.LogImpl("316121859","Descargando actualización",0);
anywheresoftware.b4a.keywords.Common.LogImpl("351511299","Descargando actualización",0);
//BA.debugLineNum = 160;BA.debugLine="B4XPages.ShowPage(\"login\")";
parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"login");
//BA.debugLineNum = 161;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Descargando ac";
@@ -331,7 +331,7 @@ _outnewapk.Close();
//BA.debugLineNum = 177;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
parent.mostCurrent._b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (processBA)._ocultaprogreso /*String*/ ();
//BA.debugLineNum = 178;BA.debugLine="Log(\"ocultamos prigreso DOWNLOAD APK\")";
anywheresoftware.b4a.keywords.Common.LogImpl("316121878","ocultamos prigreso DOWNLOAD APK",0);
anywheresoftware.b4a.keywords.Common.LogImpl("351511318","ocultamos prigreso DOWNLOAD APK",0);
if (true) break;
case 8:
@@ -393,7 +393,7 @@ _usefileprovider = anywheresoftware.b4a.keywords.Common.False;
_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
};
//BA.debugLineNum = 249;BA.debugLine="Log($\"Using FileProvider? - ${UseFileProvider}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("316515084",("Using FileProvider? - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("351904524",("Using FileProvider? - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
//BA.debugLineNum = 250;BA.debugLine="End Sub";
return "";
}
@@ -428,7 +428,7 @@ if (true) return _fp.RunMethod("getUriForFile",new Object[]{(Object)(_context.ge
}
catch (Exception e14) {
processBA.setLastException(e14); //BA.debugLineNum = 267;BA.debugLine="Log(\"FileProvider::GetFileUri - error - \" & Last";
anywheresoftware.b4a.keywords.Common.LogImpl("316580622","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("351970062","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
//BA.debugLineNum = 268;BA.debugLine="Return \"\"";
if (true) return (Object)("");
};
@@ -465,7 +465,7 @@ return "";
public static String _service_create() throws Exception{
//BA.debugLineNum = 101;BA.debugLine="Sub Service_Create";
//BA.debugLineNum = 102;BA.debugLine="Log(\"appUpdater(), Service_Create\")";
anywheresoftware.b4a.keywords.Common.LogImpl("315925249","appUpdater(), Service_Create",0);
anywheresoftware.b4a.keywords.Common.LogImpl("351314689","appUpdater(), Service_Create",0);
//BA.debugLineNum = 103;BA.debugLine="newApp.Initialize";
_newapp.Initialize();
//BA.debugLineNum = 104;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT";
@@ -480,7 +480,7 @@ return "";
public static String _service_destroy() throws Exception{
//BA.debugLineNum = 233;BA.debugLine="Sub Service_Destroy";
//BA.debugLineNum = 234;BA.debugLine="Log(\"appUpdater(), Service_Destroy\")";
anywheresoftware.b4a.keywords.Common.LogImpl("316449537","appUpdater(), Service_Destroy",0);
anywheresoftware.b4a.keywords.Common.LogImpl("351838977","appUpdater(), Service_Destroy",0);
//BA.debugLineNum = 235;BA.debugLine="End Sub";
return "";
}
@@ -512,11 +512,11 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 110;BA.debugLine="Log(\"appUpdater(), Service_Start\")";
anywheresoftware.b4a.keywords.Common.LogImpl("315990785","appUpdater(), Service_Start",0);
anywheresoftware.b4a.keywords.Common.LogImpl("351380225","appUpdater(), Service_Start",0);
//BA.debugLineNum = 112;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Buscando actua";
parent.mostCurrent._b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Buscando actualización");
//BA.debugLineNum = 113;BA.debugLine="Log(\"Buscando actualización\")";
anywheresoftware.b4a.keywords.Common.LogImpl("315990788","Buscando actualización",0);
anywheresoftware.b4a.keywords.Common.LogImpl("351380228","Buscando actualización",0);
//BA.debugLineNum = 114;BA.debugLine="fileProvider_init";
_fileprovider_init();
//BA.debugLineNum = 115;BA.debugLine="Wait For (Download(Me, lnk)) JobDone (j As HttpJo";
@@ -568,7 +568,7 @@ parent._newapp.okMsg /*String*/ = _app[(int) (2)];
//BA.debugLineNum = 123;BA.debugLine="newApp.version = app(0) 'Version actual";
parent._newapp.version /*String*/ = _app[(int) (0)];
//BA.debugLineNum = 125;BA.debugLine="Log($\"Application.VersionName=${Application.Ver";
anywheresoftware.b4a.keywords.Common.LogImpl("315990800",("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("351380240",("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 = 128;BA.debugLine="If newApp.version = Application.VersionName Th";
if (true) break;
@@ -585,7 +585,7 @@ this.state = 10;
//BA.debugLineNum = 129;BA.debugLine="newApp.update = False";
parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 130;BA.debugLine="Log(\"No new app\")";
anywheresoftware.b4a.keywords.Common.LogImpl("315990805","No new app",0);
anywheresoftware.b4a.keywords.Common.LogImpl("351380245","No new app",0);
//BA.debugLineNum = 131;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable");
//BA.debugLineNum = 133;BA.debugLine="CreateNotification2(\"Aplicacion al corriente\",";
@@ -607,7 +607,7 @@ this.state = 13;
//BA.debugLineNum = 136;BA.debugLine="newApp.update = True";
parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 137;BA.debugLine="Log(\"New app true\")";
anywheresoftware.b4a.keywords.Common.LogImpl("315990812","New app true",0);
anywheresoftware.b4a.keywords.Common.LogImpl("351380252","New app true",0);
//BA.debugLineNum = 138;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable");
if (true) break;
@@ -623,7 +623,7 @@ case 15:
this.state = 16;
this.catchState = 0;
//BA.debugLineNum = 143;BA.debugLine="Log(\"appUpdater(), Job Failed, error \" & LastE";
anywheresoftware.b4a.keywords.Common.LogImpl("315990818","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("351380258","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
if (true) break;
if (true) break;
@@ -638,7 +638,7 @@ case 18:
//C
this.state = 19;
//BA.debugLineNum = 146;BA.debugLine="Log(\"appUpdater(), Job Failed \" & lnk)";
anywheresoftware.b4a.keywords.Common.LogImpl("315990821","appUpdater(), Job Failed "+parent._lnk,0);
anywheresoftware.b4a.keywords.Common.LogImpl("351380261","appUpdater(), Job Failed "+parent._lnk,0);
if (true) break;
case 19:

View File

@@ -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("925559042","Index too large",0);};
__c.LogImpl("914024706","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("925624578","Index too large",0);};
__c.LogImpl("914090242","Index too large",0);};
//BA.debugLineNum = 59;BA.debugLine="Append(Data)";
_append(_data);
}else {

View File

@@ -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("942139672","Multiline not supported with password mode.",0);
__c.LogImpl("930605336","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

@@ -272,7 +272,7 @@ _imageviewheight = (float) (_mbitmap.getHeight());
break; }
default: {
//BA.debugLineNum = 104;BA.debugLine="Log(\"Invalid resize mode: \" & mResizeMode)";
__c.LogImpl("944498971","Invalid resize mode: "+_mresizemode,0);
__c.LogImpl("932964635","Invalid resize mode: "+_mresizemode,0);
break; }
}
;

View File

@@ -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("930277635",("Page with this id already exists: "+__c.SmartStringFormatter("",(Object)(_idtolower))+"!"),0);
__c.LogImpl("918743299",("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("930146581","#SupportedOrientations attribute must be set to landscape or portrait.",_xui.Color_Red);
__c.LogImpl("918612245","#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("930539780","Only top page can be closed",0);
__c.LogImpl("919005444","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("930539783","First page cannot be closed",0);
__c.LogImpl("919005447","First page cannot be closed",0);
//BA.debugLineNum = 217;BA.debugLine="Return";
if (true) return "";
};
@@ -591,9 +591,9 @@ _pi = (reparto_mazapa.keymon.lat.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("931195139","Error: page id not found: "+_id,0);
__c.LogImpl("919660803","Error: page id not found: "+_id,0);
//BA.debugLineNum = 402;BA.debugLine="Log(\"Ids: \" & IdToB4XPage.Keys) 'ignore";
__c.LogImpl("931195140","Ids: "+BA.ObjectToString(_idtob4xpage._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ()),0);
__c.LogImpl("919660804","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("930081051","Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.",0);
__c.LogImpl("918546715","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("932309251",_msg,0);
__c.LogImpl("920774915",_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("931784974","Too many parameters",0);
__c.LogImpl("920250638","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("931850510","Too many parameters",0);
__c.LogImpl("920316174","Too many parameters",0);
break; }
}
;

View File

@@ -391,7 +391,7 @@ _count = (int) (_count+1);
}
};
//BA.debugLineNum = 227;BA.debugLine="Log(\"Index time: \" & (DateTime.Now - startTime) &";
__c.LogImpl("950266143","Index time: "+BA.NumberToString((__c.DateTime.getNow()-_starttime))+" ms ("+BA.NumberToString(_items.getSize())+" Items)",0);
__c.LogImpl("938731807","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

@@ -167,13 +167,13 @@ __c.File.MakeDir(_dirp,"/md");
//BA.debugLineNum = 548;BA.debugLine="Dir = \"/md\"";
_dir = "/md";
//BA.debugLineNum = 549;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)";
__c.LogImpl("320840456","creado en promotoria "+_dirp+_dir,0);
__c.LogImpl("356229896","creado en promotoria "+_dirp+_dir,0);
}
catch (Exception e9) {
ba.setLastException(e9); //BA.debugLineNum = 551;BA.debugLine="Dir = \"\"";
_dir = "";
//BA.debugLineNum = 552;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("320840459","creado en raiz",0);
__c.LogImpl("356229899","creado en raiz",0);
};
//BA.debugLineNum = 555;BA.debugLine="Try";
try { //BA.debugLineNum = 556;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")";
@@ -181,13 +181,13 @@ __c.File.MakeDir(_dirp+_dir,"/reduccion");
//BA.debugLineNum = 557;BA.debugLine="Dir2 = \"/reduccion\"";
_dir2 = "/reduccion";
//BA.debugLineNum = 558;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)";
__c.LogImpl("320840465","creado en promotoria "+_dirp+_dir+_dir2,0);
__c.LogImpl("356229905","creado en promotoria "+_dirp+_dir+_dir2,0);
}
catch (Exception e17) {
ba.setLastException(e17); //BA.debugLineNum = 560;BA.debugLine="Dir = \"\"";
_dir = "";
//BA.debugLineNum = 561;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("320840468","creado en raiz",0);
__c.LogImpl("356229908","creado en raiz",0);
};
//BA.debugLineNum = 564;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
@@ -475,7 +475,7 @@ parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.Ab
//BA.debugLineNum = 144;BA.debugLine="c.Position = 0";
parent._c.setPosition((int) (0));
//BA.debugLineNum = 145;BA.debugLine="Log(c.GetString(\"PLACA\"))";
parent.__c.LogImpl("317694723",parent._c.GetString("PLACA"),0);
parent.__c.LogImpl("353084163",parent._c.GetString("PLACA"),0);
//BA.debugLineNum = 146;BA.debugLine="l_placa.Text = c.GetString(\"PLACA\")";
parent._l_placa.setText(BA.ObjectToCharSequence(parent._c.GetString("PLACA")));
//BA.debugLineNum = 147;BA.debugLine="c.Close";
@@ -508,7 +508,7 @@ case 3:
//C
this.state = 6;
//BA.debugLineNum = 153;BA.debugLine="Log(\"inicializamos Camara\")";
parent.__c.LogImpl("317694731","inicializamos Camara",0);
parent.__c.LogImpl("353084171","inicializamos Camara",0);
if (true) break;
case 5:
@@ -542,7 +542,7 @@ case 9:
//C
this.state = 16;
//BA.debugLineNum = 164;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting WRITE";
parent.__c.LogImpl("317694742","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting WRITE_EXTERNAL_STORAGE permission",0);
parent.__c.LogImpl("353084182","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting WRITE_EXTERNAL_STORAGE permission",0);
//BA.debugLineNum = 165;BA.debugLine="Dim rp As RuntimePermissions";
_rp = new anywheresoftware.b4a.objects.RuntimePermissions();
//BA.debugLineNum = 166;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_";
@@ -558,16 +558,16 @@ _permission = (String) result[0];
_result = (Boolean) result[1];
;
//BA.debugLineNum = 168;BA.debugLine="Log($\"PERMISSION_WRITE_EXTERNAL_STORAGE = ${Resu";
parent.__c.LogImpl("317694746",("PERMISSION_WRITE_EXTERNAL_STORAGE = "+parent.__c.SmartStringFormatter("",(Object)(_result))+""),0);
parent.__c.LogImpl("353084186",("PERMISSION_WRITE_EXTERNAL_STORAGE = "+parent.__c.SmartStringFormatter("",(Object)(_result))+""),0);
if (true) break;
case 11:
//C
this.state = 12;
//BA.debugLineNum = 170;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting MANAG";
parent.__c.LogImpl("317694748","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting MANAGE_EXTERNAL_STORAGE permission",0);
parent.__c.LogImpl("353084188","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting MANAGE_EXTERNAL_STORAGE permission",0);
//BA.debugLineNum = 171;BA.debugLine="Log(\"On Entry MANAGE_EXTERNAL_STORAGE = \" & MES1";
parent.__c.LogImpl("317694749","On Entry MANAGE_EXTERNAL_STORAGE = "+BA.ObjectToString(parent._mes1._haspermission /*boolean*/ ()),0);
parent.__c.LogImpl("353084189","On Entry MANAGE_EXTERNAL_STORAGE = "+BA.ObjectToString(parent._mes1._haspermission /*boolean*/ ()),0);
//BA.debugLineNum = 172;BA.debugLine="If Not(MES1.HasPermission) Then";
if (true) break;
@@ -593,7 +593,7 @@ this.state = 15;
_res = (Integer) result[0];
;
//BA.debugLineNum = 175;BA.debugLine="Log(\"Getting permission\")";
parent.__c.LogImpl("317694753","Getting permission",0);
parent.__c.LogImpl("353084193","Getting permission",0);
//BA.debugLineNum = 176;BA.debugLine="MES1.GetPermission";
parent._mes1._getpermission /*String*/ ();
//BA.debugLineNum = 177;BA.debugLine="Wait For MES_StorageAvailable";
@@ -798,7 +798,7 @@ _teclado.HideKeyboard(ba);
_fototomada = _nombrefoto3;
};
//BA.debugLineNum = 265;BA.debugLine="Log(\"tome foto\")";
__c.LogImpl("317956891","tome foto",0);
__c.LogImpl("353346331","tome foto",0);
//BA.debugLineNum = 266;BA.debugLine="Dim filename As String = fototomada";
_filename = _fototomada;
//BA.debugLineNum = 267;BA.debugLine="Dim Dirp As String = File.DirInternal";
@@ -813,13 +813,13 @@ __c.File.MakeDir(_dirp,"/md");
//BA.debugLineNum = 272;BA.debugLine="Dir = \"/md\"";
_dir = "/md";
//BA.debugLineNum = 273;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)";
__c.LogImpl("317956899","creado en promotoria "+_dirp+_dir,0);
__c.LogImpl("353346339","creado en promotoria "+_dirp+_dir,0);
}
catch (Exception e32) {
ba.setLastException(e32); //BA.debugLineNum = 275;BA.debugLine="Dir = \"\"";
_dir = "";
//BA.debugLineNum = 276;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("317956902","creado en raiz",0);
__c.LogImpl("353346342","creado en raiz",0);
};
//BA.debugLineNum = 279;BA.debugLine="Try";
try { //BA.debugLineNum = 280;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")";
@@ -827,30 +827,30 @@ __c.File.MakeDir(_dirp+_dir,"/reduccion");
//BA.debugLineNum = 281;BA.debugLine="Dir2 = \"/reduccion\"";
_dir2 = "/reduccion";
//BA.debugLineNum = 282;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)";
__c.LogImpl("317956908","creado en promotoria "+_dirp+_dir+_dir2,0);
__c.LogImpl("353346348","creado en promotoria "+_dirp+_dir+_dir2,0);
}
catch (Exception e40) {
ba.setLastException(e40); //BA.debugLineNum = 284;BA.debugLine="Dir = \"\"";
_dir = "";
//BA.debugLineNum = 285;BA.debugLine="Log(\"creado en raiz\")";
__c.LogImpl("317956911","creado en raiz",0);
__c.LogImpl("353346351","creado en raiz",0);
};
//BA.debugLineNum = 288;BA.debugLine="camEx.SavePictureToFile(Data, Dirp&Dir, filename)";
_camex._savepicturetofile /*String*/ (_data,_dirp+_dir,_filename);
//BA.debugLineNum = 289;BA.debugLine="camEx.StartPreview 'restart preview";
_camex._startpreview /*String*/ ();
//BA.debugLineNum = 291;BA.debugLine="Log(\"Picture saved.\" & CRLF & \"File size: \" & Fi";
__c.LogImpl("317956917","Picture saved."+__c.CRLF+"File size: "+BA.NumberToString(__c.File.Size(_dir,_filename))+_dir+","+_filename,0);
__c.LogImpl("353346357","Picture saved."+__c.CRLF+"File size: "+BA.NumberToString(__c.File.Size(_dir,_filename))+_dir+","+_filename,0);
//BA.debugLineNum = 292;BA.debugLine="p_camara.Visible = False";
_p_camara.setVisible(__c.False);
//BA.debugLineNum = 294;BA.debugLine="Log(nombrefoto)";
__c.LogImpl("317956920",_nombrefoto,0);
__c.LogImpl("353346360",_nombrefoto,0);
//BA.debugLineNum = 295;BA.debugLine="Log(nombrefoto1)";
__c.LogImpl("317956921",_nombrefoto1,0);
__c.LogImpl("353346361",_nombrefoto1,0);
//BA.debugLineNum = 296;BA.debugLine="Log(nombrefoto2)";
__c.LogImpl("317956922",_nombrefoto2,0);
__c.LogImpl("353346362",_nombrefoto2,0);
//BA.debugLineNum = 297;BA.debugLine="Log(nombrefoto3)";
__c.LogImpl("317956923",_nombrefoto3,0);
__c.LogImpl("353346363",_nombrefoto3,0);
//BA.debugLineNum = 299;BA.debugLine="If nombrefoto <> \"0\" Then";
if ((_nombrefoto).equals("0") == false) {
//BA.debugLineNum = 300;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File";
@@ -919,7 +919,7 @@ return "";
public String _camera1_ready(boolean _success) throws Exception{
//BA.debugLineNum = 224;BA.debugLine="Sub Camera1_Ready (Success As Boolean)";
//BA.debugLineNum = 225;BA.debugLine="Log(\"Camara ready\")";
__c.LogImpl("317891329","Camara ready",0);
__c.LogImpl("353280769","Camara ready",0);
//BA.debugLineNum = 226;BA.debugLine="If Success Then";
if (_success) {
//BA.debugLineNum = 227;BA.debugLine="camEx.SetJpegQuality(90)";
@@ -931,12 +931,12 @@ _camex._commitparameters /*String*/ ();
//BA.debugLineNum = 230;BA.debugLine="camEx.StartPreview";
_camex._startpreview /*String*/ ();
//BA.debugLineNum = 231;BA.debugLine="Log(camEx.GetPreviewSize)";
__c.LogImpl("317891335",BA.ObjectToString(_camex._getpreviewsize /*reparto_mazapa.keymon.lat.cameraexclass._camerasize*/ ()),0);
__c.LogImpl("353280775",BA.ObjectToString(_camex._getpreviewsize /*reparto_mazapa.keymon.lat.cameraexclass._camerasize*/ ()),0);
}else {
//BA.debugLineNum = 233;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True);
//BA.debugLineNum = 234;BA.debugLine="Log(\"Cannot open camera\")";
__c.LogImpl("317891338","Cannot open camera",0);
__c.LogImpl("353280778","Cannot open camera",0);
};
//BA.debugLineNum = 236;BA.debugLine="End Sub";
return "";
@@ -946,7 +946,7 @@ public String _cb_deratras_selectedindexchanged(int _index) throws Exception{
//BA.debugLineNum = 537;BA.debugLine="itemselect4 = cb_deratras.SelectedItem";
_itemselect4 = _cb_deratras._getselecteditem /*String*/ ();
//BA.debugLineNum = 538;BA.debugLine="Log(itemselect4)";
__c.LogImpl("320774914",_itemselect4,0);
__c.LogImpl("356164354",_itemselect4,0);
//BA.debugLineNum = 539;BA.debugLine="End Sub";
return "";
}
@@ -955,7 +955,7 @@ public String _cb_derdel_selectedindexchanged(int _index) throws Exception{
//BA.debugLineNum = 532;BA.debugLine="itemselect3 = cb_derdel.SelectedItem";
_itemselect3 = _cb_derdel._getselecteditem /*String*/ ();
//BA.debugLineNum = 533;BA.debugLine="Log(itemselect3)";
__c.LogImpl("320709378",_itemselect3,0);
__c.LogImpl("356098818",_itemselect3,0);
//BA.debugLineNum = 534;BA.debugLine="End Sub";
return "";
}
@@ -964,7 +964,7 @@ public String _cb_izqatras_selectedindexchanged(int _index) throws Exception{
//BA.debugLineNum = 527;BA.debugLine="itemselect2 = cb_izqatras.SelectedItem";
_itemselect2 = _cb_izqatras._getselecteditem /*String*/ ();
//BA.debugLineNum = 528;BA.debugLine="Log(itemselect2)";
__c.LogImpl("320643842",_itemselect2,0);
__c.LogImpl("356033282",_itemselect2,0);
//BA.debugLineNum = 529;BA.debugLine="End Sub";
return "";
}
@@ -973,7 +973,7 @@ public String _cb_izqdel_selectedindexchanged(int _index) throws Exception{
//BA.debugLineNum = 522;BA.debugLine="itemselect1 = cb_izqdel.SelectedItem";
_itemselect1 = _cb_izqdel._getselecteditem /*String*/ ();
//BA.debugLineNum = 523;BA.debugLine="Log(itemselect1)";
__c.LogImpl("320578306",_itemselect1,0);
__c.LogImpl("355967746",_itemselect1,0);
//BA.debugLineNum = 524;BA.debugLine="End Sub";
return "";
}
@@ -1291,7 +1291,7 @@ parent._camex._initialize /*String*/ (ba,parent._p_cam,parent._frontcamera,paren
//BA.debugLineNum = 217;BA.debugLine="frontCamera = camEx.Front";
parent._frontcamera = parent._camex._front /*boolean*/ ;
//BA.debugLineNum = 218;BA.debugLine="Log(\"inicializamos Camara\")";
parent.__c.LogImpl("317825798","inicializamos Camara",0);
parent.__c.LogImpl("353215238","inicializamos Camara",0);
if (true) break;
case 5:
@@ -1321,14 +1321,14 @@ Object[] _records = null;
String _k = "";
//BA.debugLineNum = 747;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 748;BA.debugLine="Log(\"JOBDONE CLIENTE . \" & Job.Success)";
__c.LogImpl("320971521","JOBDONE CLIENTE . "+BA.ObjectToString(_job._success /*boolean*/ ),0);
__c.LogImpl("356360961","JOBDONE CLIENTE . "+BA.ObjectToString(_job._success /*boolean*/ ),0);
//BA.debugLineNum = 749;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) {
//BA.debugLineNum = 752;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Job.Error";
__c.LogImpl("320971525","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Blue);
__c.LogImpl("356360965","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Blue);
}else {
//BA.debugLineNum = 754;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("320971527","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
__c.LogImpl("356360967","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
//BA.debugLineNum = 755;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) {
//BA.debugLineNum = 756;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
@@ -1340,11 +1340,11 @@ _cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
//BA.debugLineNum = 759;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
//BA.debugLineNum = 760;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
__c.LogImpl("320971533",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
__c.LogImpl("356360973",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
//BA.debugLineNum = 762;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLAC";
_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 USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE, RUTA FROM CHECKLIST2")));
//BA.debugLineNum = 763;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("320971536",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
__c.LogImpl("356360976",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
//BA.debugLineNum = 764;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 765;BA.debugLine="For i = 0 To c.RowCount -1";
@@ -1393,7 +1393,7 @@ final int groupLen29 = group29.getSize()
for (; index29 < groupLen29;index29++){
_k = BA.ObjectToString(group29.Get(index29));
//BA.debugLineNum = 783;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("320971556",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("356360996",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -1415,11 +1415,11 @@ int _i = 0;
reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
//BA.debugLineNum = 724;BA.debugLine="Sub mandaPendientes";
//BA.debugLineNum = 725;BA.debugLine="Log(\"MandaPendientes\")";
__c.LogImpl("320905985","MandaPendientes",0);
__c.LogImpl("356295425","MandaPendientes",0);
//BA.debugLineNum = 727;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLACA,";
_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 USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4 FROM CHECKLIST2")));
//BA.debugLineNum = 728;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("320905988",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
__c.LogImpl("356295428",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
//BA.debugLineNum = 729;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 730;BA.debugLine="For i = 0 To c.RowCount -1";

View File

@@ -103,7 +103,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null;
//BA.debugLineNum = 651;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 653;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
__c.LogImpl("357933827","b_prodMas_Click",__c.Colors.Magenta);
__c.LogImpl("357671683","b_prodMas_Click",__c.Colors.Magenta);
//BA.debugLineNum = 654;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 655;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -119,14 +119,14 @@ _lacant = _pnl.GetView((int) (2)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
//BA.debugLineNum = 662;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
__c.LogImpl("357933836","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("357671692","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 663;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 665;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4";
_maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))));
//BA.debugLineNum = 667;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
__c.LogImpl("357933841",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
__c.LogImpl("357671697",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
//BA.debugLineNum = 670;BA.debugLine="Private minimoadesc As String";
_minimoadesc = "";
//BA.debugLineNum = 671;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
@@ -151,7 +151,7 @@ if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) {
//BA.debugLineNum = 686;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
//BA.debugLineNum = 687;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
__c.LogImpl("357933861",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
__c.LogImpl("357671717",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
//BA.debugLineNum = 688;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
//BA.debugLineNum = 689;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
@@ -167,7 +167,7 @@ _b4xpage_appear();
//BA.debugLineNum = 703;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
//BA.debugLineNum = 704;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
__c.LogImpl("357933878",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
__c.LogImpl("357671734",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
//BA.debugLineNum = 705;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
//BA.debugLineNum = 706;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
@@ -219,7 +219,7 @@ String _maxprods = "";
//BA.debugLineNum = 929;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 931;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
__c.LogImpl("358261507","b_prodMas_Click",__c.Colors.Magenta);
__c.LogImpl("357999363","b_prodMas_Click",__c.Colors.Magenta);
//BA.debugLineNum = 932;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 933;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -235,30 +235,30 @@ _lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
//BA.debugLineNum = 940;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta";
__c.LogImpl("358261516","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("357999372","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 941;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
if ((_lacantc.getText()).equals("")) {
_lacantc.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 943;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es";
_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4))))));
//BA.debugLineNum = 944;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)";
__c.LogImpl("358261520",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red);
__c.LogImpl("357999376",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red);
//BA.debugLineNum = 945;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)";
__c.LogImpl("358261521",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red);
__c.LogImpl("357999377",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red);
//BA.debugLineNum = 946;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
__c.LogImpl("358261522",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
__c.LogImpl("357999378",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
//BA.debugLineNum = 948;BA.debugLine="Log(maxProds)";
__c.LogImpl("358261524",_maxprods,0);
__c.LogImpl("357999380",_maxprods,0);
//BA.debugLineNum = 951;BA.debugLine="If esteTag.Get(7) <> \"1\" Then";
if ((_estetag.Get((int) (7))).equals((Object)("1")) == false) {
//BA.debugLineNum = 954;BA.debugLine="If laCantc.Text + 1 <= maxProds Then";
if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
//BA.debugLineNum = 955;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)";
__c.LogImpl("358261531",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0);
__c.LogImpl("357999387",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0);
//BA.debugLineNum = 956;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$";
_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+"")));
//BA.debugLineNum = 958;BA.debugLine="Log(laCantc.Text)";
__c.LogImpl("358261534",_lacantc.getText(),0);
__c.LogImpl("357999390",_lacantc.getText(),0);
//BA.debugLineNum = 959;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) -(1 * "+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+") WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
//BA.debugLineNum = 967;BA.debugLine="B4XPage_Appear";
@@ -283,9 +283,9 @@ float _preciou = 0f;
//BA.debugLineNum = 507;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 508;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
__c.LogImpl("357868290","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
__c.LogImpl("357606146","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
//BA.debugLineNum = 509;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
__c.LogImpl("357868291","b_prodMenos_Click",__c.Colors.Magenta);
__c.LogImpl("357606147","b_prodMenos_Click",__c.Colors.Magenta);
//BA.debugLineNum = 510;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 511;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -301,7 +301,7 @@ _lacant = _pnl.GetView((int) (2)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
//BA.debugLineNum = 516;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
__c.LogImpl("357868298","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("357606154","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 517;BA.debugLine="Private minimoadesc As String";
_minimoadesc = "";
//BA.debugLineNum = 518;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
@@ -378,9 +378,9 @@ _c2.setPosition((int) (0));
//BA.debugLineNum = 563;BA.debugLine="If c2.GetString(\"HVD_RECHAZO\") = \"0\" Then";
if ((_c2.GetString("HVD_RECHAZO")).equals("0")) {
//BA.debugLineNum = 566;BA.debugLine="Log(\"ES PROMO\")";
__c.LogImpl("357868348","ES PROMO",0);
__c.LogImpl("357606204","ES PROMO",0);
//BA.debugLineNum = 567;BA.debugLine="Log(esteTag.Get(3))";
__c.LogImpl("357868349",BA.ObjectToString(_estetag.Get((int) (3))),0);
__c.LogImpl("357606205",BA.ObjectToString(_estetag.Get((int) (3))),0);
//BA.debugLineNum = 568;BA.debugLine="result = Msgbox2(\"Si se modifica una promoci";
_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarán los productos sueltos, ¿seguro que desea continuar?"),BA.ObjectToCharSequence("Modificar Promoción"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
//BA.debugLineNum = 569;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Qui";
@@ -388,7 +388,7 @@ if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 570;BA.debugLine="prodsMap.Remove(esteTag.Get(3))";
_prodsmap.Remove(_estetag.Get((int) (3)));
//BA.debugLineNum = 574;BA.debugLine="LogColor(esteTag.Get(3),Colors.Blue)";
__c.LogImpl("357868356",BA.ObjectToString(_estetag.Get((int) (3))),__c.Colors.Blue);
__c.LogImpl("357606212",BA.ObjectToString(_estetag.Get((int) (3))),__c.Colors.Blue);
//BA.debugLineNum = 577;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)"));
//BA.debugLineNum = 578;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT";
@@ -396,7 +396,7 @@ _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENT
//BA.debugLineNum = 581;BA.debugLine="c.Close";
_c.Close();
//BA.debugLineNum = 582;BA.debugLine="LogColor(prodsMap, Colors.red)";
__c.LogImpl("357868364",BA.ObjectToString(_prodsmap),__c.Colors.Red);
__c.LogImpl("357606220",BA.ObjectToString(_prodsmap),__c.Colors.Red);
//BA.debugLineNum = 583;BA.debugLine="reconstruirPedido = True";
_reconstruirpedido = __c.True;
//BA.debugLineNum = 584;BA.debugLine="promoABorrar = esteTag.Get(3)";
@@ -414,7 +414,7 @@ _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Obje
if ((double)(Double.parseDouble(_lacant.getText()))<0) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 591;BA.debugLine="Log(\"NO ES promo\")";
__c.LogImpl("357868373","NO ES promo",0);
__c.LogImpl("357606229","NO ES promo",0);
//BA.debugLineNum = 592;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"') WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
//BA.debugLineNum = 593;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapr";
@@ -432,7 +432,7 @@ _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Obje
if ((double)(Double.parseDouble(_lacant.getText()))<0) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 600;BA.debugLine="Log(\"NO ES promo\")";
__c.LogImpl("357868382","NO ES promo",0);
__c.LogImpl("357606238","NO ES promo",0);
//BA.debugLineNum = 601;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), BCAJAS = 0, CANTC = 0 WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'"));
//BA.debugLineNum = 602;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro";
@@ -451,7 +451,7 @@ _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Obje
if ((double)(Double.parseDouble(_lacant.getText()))<0) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 611;BA.debugLine="Log(\"NO ES promo\")";
__c.LogImpl("357868393","NO ES promo",0);
__c.LogImpl("357606249","NO ES promo",0);
//BA.debugLineNum = 616;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))})));
@@ -491,7 +491,7 @@ _b4xpage_appear();
//BA.debugLineNum = 636;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
//BA.debugLineNum = 637;BA.debugLine="Log(\"PU: \" & preciou)";
__c.LogImpl("357868419","PU: "+BA.NumberToString(_preciou),0);
__c.LogImpl("357606275","PU: "+BA.NumberToString(_preciou),0);
//BA.debugLineNum = 648;BA.debugLine="End Sub";
return "";
}
@@ -507,9 +507,9 @@ float _preciou = 0f;
//BA.debugLineNum = 973;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 974;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
__c.LogImpl("358327042","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
__c.LogImpl("358064898","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
//BA.debugLineNum = 975;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
__c.LogImpl("358327043","b_prodMenos_Click",__c.Colors.Magenta);
__c.LogImpl("358064899","b_prodMenos_Click",__c.Colors.Magenta);
//BA.debugLineNum = 976;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 977;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -525,22 +525,22 @@ _lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
//BA.debugLineNum = 982;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get";
__c.LogImpl("358327050","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("358064906","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 983;BA.debugLine="Log(esteTag)";
__c.LogImpl("358327051",BA.ObjectToString(_estetag),0);
__c.LogImpl("358064907",BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 985;BA.debugLine="If esteTag.Get(7) = \"1\" Then";
if ((_estetag.Get((int) (7))).equals((Object)("1"))) {
//BA.debugLineNum = 986;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS, CONSECUTIVO FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))})));
//BA.debugLineNum = 987;BA.debugLine="Log(c3.RowCount)";
__c.LogImpl("358327055",BA.NumberToString(_c3.getRowCount()),0);
__c.LogImpl("358064911",BA.NumberToString(_c3.getRowCount()),0);
//BA.debugLineNum = 988;BA.debugLine="Log(esteTag.Get(8))";
__c.LogImpl("358327056",BA.ObjectToString(_estetag.Get((int) (8))),0);
__c.LogImpl("358064912",BA.ObjectToString(_estetag.Get((int) (8))),0);
//BA.debugLineNum = 989;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) {
//BA.debugLineNum = 990;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")";
__c.LogImpl("358327058","AQUI VEMOS SI ACTUALIZAMOS",0);
__c.LogImpl("358064914","AQUI VEMOS SI ACTUALIZAMOS",0);
//BA.debugLineNum = 991;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
//BA.debugLineNum = 992;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
@@ -553,7 +553,7 @@ _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDI
};
};
//BA.debugLineNum = 998;BA.debugLine="Log(\"entre al if o algo asi \")";
__c.LogImpl("358327066","entre al if o algo asi ",0);
__c.LogImpl("358064922","entre al if o algo asi ",0);
//BA.debugLineNum = 999;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
if ((_lacantc.getText()).equals("")) {
_lacantc.setText(BA.ObjectToCharSequence(0));};
@@ -570,7 +570,7 @@ if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) {
//BA.debugLineNum = 1009;BA.debugLine="If laCantc.Text > 0 Then";
if ((double)(Double.parseDouble(_lacantc.getText()))>0) {
//BA.debugLineNum = 1010;BA.debugLine="Log(\"entre al if o algo asi \")";
__c.LogImpl("358327078","entre al if o algo asi ",0);
__c.LogImpl("358064934","entre al if o algo asi ",0);
//BA.debugLineNum = 1011;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
if ((_lacantc.getText()).equals("")) {
_lacantc.setText(BA.ObjectToCharSequence(0));};
@@ -596,7 +596,7 @@ _c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjec
//BA.debugLineNum = 1027;BA.debugLine="If c3.RowCount > 0 Then";
if (_c3.getRowCount()>0) {
//BA.debugLineNum = 1028;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")";
__c.LogImpl("358327096","AQUI VEMOS SI ACTUALIZAMOS",0);
__c.LogImpl("358064952","AQUI VEMOS SI ACTUALIZAMOS",0);
//BA.debugLineNum = 1029;BA.debugLine="c3.Position = 0";
_c3.setPosition((int) (0));
//BA.debugLineNum = 1030;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then";
@@ -609,7 +609,7 @@ _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDI
};
};
//BA.debugLineNum = 1036;BA.debugLine="Log(\"entre al if o algo asi \")";
__c.LogImpl("358327104","entre al if o algo asi ",0);
__c.LogImpl("358064960","entre al if o algo asi ",0);
//BA.debugLineNum = 1037;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
if ((_lacantc.getText()).equals("")) {
_lacantc.setText(BA.ObjectToCharSequence(0));};
@@ -627,7 +627,7 @@ _b4xpage_appear();
//BA.debugLineNum = 1048;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
//BA.debugLineNum = 1049;BA.debugLine="Log(\"PU: \" & preciou)";
__c.LogImpl("358327117","PU: "+BA.NumberToString(_preciou),0);
__c.LogImpl("358064973","PU: "+BA.NumberToString(_preciou),0);
//BA.debugLineNum = 1050;BA.debugLine="End Sub";
return "";
}
@@ -858,7 +858,7 @@ _textcolor = __c.Colors.Black;
//BA.debugLineNum = 174;BA.debugLine="clv_pedido.Add(CreateListItem2(c3.GetString(\"P";
_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_c3.GetString("PE_PRONOMBRE"),_c3.GetString("PE_COSTOU"),(int)(Double.parseDouble(_c3.GetString("PE_CANT"))),(int) (0),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c3.GetString("PE_PROID"),_bgcolor,_textcolor,_subs._traealmacen /*String*/ (ba),_subs._traecliente /*String*/ (ba),_c3.GetString("PE_CLIENTEOR"),BA.NumberToString(1),(int)(Double.parseDouble(_c3.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
//BA.debugLineNum = 175;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P";
__c.LogImpl("357344107","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0);
__c.LogImpl("357081963","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0);
}else {
//BA.debugLineNum = 177;BA.debugLine="Private bgColor, textColor As Int";
_bgcolor = 0;
@@ -868,7 +868,7 @@ _bgcolor = __c.Colors.RGB((int) (221),(int) (132),(int) (132));
//BA.debugLineNum = 179;BA.debugLine="textColor = Colors.black";
_textcolor = __c.Colors.Black;
//BA.debugLineNum = 180;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P";
__c.LogImpl("357344112","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0);
__c.LogImpl("357081968","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0);
//BA.debugLineNum = 181;BA.debugLine="clv_pedido.Add(CreateListItem(c3.GetString(\"PE";
_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c3.GetString("PE_PRONOMBRE"),_c3.GetString("PE_COSTOU"),(int)(Double.parseDouble(_c3.GetString("PE_CANT"))),(int) (0),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c3.GetString("PE_PROID"),_bgcolor,_textcolor,_subs._traealmacen /*String*/ (ba),_subs._traecliente /*String*/ (ba),_c3.GetString("PE_CLIENTEOR"),BA.NumberToString(1),(int)(Double.parseDouble(_c3.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
};
@@ -904,7 +904,7 @@ _c4.setPosition((int) (0));
//BA.debugLineNum = 198;BA.debugLine="cantres = c4.GetString(\"PE_CANT\")";
_cantres = (int)(Double.parseDouble(_c4.GetString("PE_CANT")));
//BA.debugLineNum = 199;BA.debugLine="Log(c4.GetString(\"PE_CANT\"))";
__c.LogImpl("357344131",_c4.GetString("PE_CANT"),0);
__c.LogImpl("357081987",_c4.GetString("PE_CANT"),0);
}else {
//BA.debugLineNum = 201;BA.debugLine="cantres = 0";
_cantres = (int) (0);
@@ -1058,9 +1058,9 @@ if ((double)(Double.parseDouble(_arti3))<0) {
_arti = BA.NumberToString(0);
};
//BA.debugLineNum = 296;BA.debugLine="Log(Cuenta&\",\"&Cuenta1&\",\"&Cuenta2&\",\"&Cuenta3)";
__c.LogImpl("357344228",_cuenta+","+_cuenta1+","+_cuenta2+","+_cuenta3,0);
__c.LogImpl("357082084",_cuenta+","+_cuenta1+","+_cuenta2+","+_cuenta3,0);
//BA.debugLineNum = 297;BA.debugLine="Log(arti&\",\"&arti1&\",\"&arti2&\",\"&arti3)";
__c.LogImpl("357344229",_arti+","+_arti1+","+_arti2+","+_arti3,0);
__c.LogImpl("357082085",_arti+","+_arti1+","+_arti2+","+_arti3,0);
//BA.debugLineNum = 298;BA.debugLine="If Cuenta + Cuenta1 + Cuenta2 + Cuenta3 < 0 Then";
if ((double)(Double.parseDouble(_cuenta))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))<0) {
//BA.debugLineNum = 299;BA.debugLine="L_TOTAL.Text = 0";
@@ -1368,7 +1368,7 @@ return "";
public String _p_prods_click() throws Exception{
//BA.debugLineNum = 924;BA.debugLine="Sub p_prods_Click";
//BA.debugLineNum = 925;BA.debugLine="Log(Sender.As(Panel).tag)";
__c.LogImpl("358195969",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
__c.LogImpl("357933825",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
//BA.debugLineNum = 926;BA.debugLine="End Sub";
return "";
}

View File

@@ -147,7 +147,7 @@ String _flash = "";
//BA.debugLineNum = 129;BA.debugLine="Dim f() As Float = camEx.GetFocusDistances";
_f = _camex._getfocusdistances /*float[]*/ ();
//BA.debugLineNum = 130;BA.debugLine="Log(f(0) & \", \" & f(1) & \", \" & f(2))";
__c.LogImpl("359375618",BA.NumberToString(_f[(int) (0)])+", "+BA.NumberToString(_f[(int) (1)])+", "+BA.NumberToString(_f[(int) (2)]),0);
__c.LogImpl("359113474",BA.NumberToString(_f[(int) (0)])+", "+BA.NumberToString(_f[(int) (1)])+", "+BA.NumberToString(_f[(int) (2)]),0);
//BA.debugLineNum = 131;BA.debugLine="Dim flashModes As List = camEx.GetSupportedFlashM";
_flashmodes = new anywheresoftware.b4a.objects.collections.List();
_flashmodes = _camex._getsupportedflashmodes /*anywheresoftware.b4a.objects.collections.List*/ ();
@@ -307,7 +307,7 @@ _camex._commitparameters /*String*/ ();
//BA.debugLineNum = 55;BA.debugLine="camEx.StartPreview";
_camex._startpreview /*String*/ ();
//BA.debugLineNum = 56;BA.debugLine="Log(camEx.GetPreviewSize)";
__c.LogImpl("358982405",BA.ObjectToString(_camex._getpreviewsize /*reparto_mazapa.keymon.lat.cameraexclass._camerasize*/ ()),0);
__c.LogImpl("358720261",BA.ObjectToString(_camex._getpreviewsize /*reparto_mazapa.keymon.lat.cameraexclass._camerasize*/ ()),0);
}else {
//BA.debugLineNum = 58;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)";
__c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True);

View File

@@ -93,7 +93,7 @@ anywheresoftware.b4a.objects.collections.Map _cym = null;
//BA.debugLineNum = 385;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 387;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
__c.LogImpl("360293123","b_prodMas_Click",__c.Colors.Magenta);
__c.LogImpl("360030979","b_prodMas_Click",__c.Colors.Magenta);
//BA.debugLineNum = 388;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 389;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -109,18 +109,18 @@ _lacant = _pnl.GetView((int) (2)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
//BA.debugLineNum = 396;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
__c.LogImpl("360293132","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("360030988","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 397;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 399;BA.debugLine="Private maxProds as string = esteTag.Get(1) + est";
_maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))));
//BA.debugLineNum = 401;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
__c.LogImpl("360293137",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
__c.LogImpl("360030993",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
//BA.debugLineNum = 403;BA.debugLine="If laCant.Text + 1 <= maxProds Then";
if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
//BA.debugLineNum = 404;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
__c.LogImpl("360293140",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
__c.LogImpl("360030996",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
//BA.debugLineNum = 405;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
//BA.debugLineNum = 406;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
@@ -150,9 +150,9 @@ anywheresoftware.b4a.objects.collections.Map _cym = null;
//BA.debugLineNum = 342;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 343;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
__c.LogImpl("360227586","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
__c.LogImpl("359965442","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
//BA.debugLineNum = 344;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
__c.LogImpl("360227587","b_prodMenos_Click",__c.Colors.Magenta);
__c.LogImpl("359965443","b_prodMenos_Click",__c.Colors.Magenta);
//BA.debugLineNum = 345;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 346;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -168,11 +168,11 @@ _lacant = _pnl.GetView((int) (2)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
//BA.debugLineNum = 351;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
__c.LogImpl("360227594","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("359965450","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 352;BA.debugLine="If esteTag.Get(3) <> \"1\" Then 'Si es PROMO entonc";
if ((_estetag.Get((int) (3))).equals((Object)("1")) == false) {
//BA.debugLineNum = 353;BA.debugLine="Log(\"ES PROMO\")";
__c.LogImpl("360227596","ES PROMO",0);
__c.LogImpl("359965452","ES PROMO",0);
//BA.debugLineNum = 354;BA.debugLine="result = Msgbox2(\"Si se modifica una promoción,";
_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarán los productos sueltos, ¿seguro que desea continuar?"),BA.ObjectToCharSequence("Modificar Promoción"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
//BA.debugLineNum = 355;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Quitam";
@@ -184,7 +184,7 @@ _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENT
//BA.debugLineNum = 358;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' WHERE HVD_cliente in (Select CUENTA from cuentaa) AND HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"'"));
//BA.debugLineNum = 359;BA.debugLine="LogColor(prodsMap, Colors.red)";
__c.LogImpl("360227602",BA.ObjectToString(_prodsmap),__c.Colors.Red);
__c.LogImpl("359965458",BA.ObjectToString(_prodsmap),__c.Colors.Red);
//BA.debugLineNum = 360;BA.debugLine="reconstruirPedido = True";
_reconstruirpedido = __c.True;
//BA.debugLineNum = 361;BA.debugLine="promoABorrar = esteTag.Get(3)";
@@ -207,7 +207,7 @@ _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunap
//BA.debugLineNum = 370;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
//BA.debugLineNum = 371;BA.debugLine="Log(\"PU: \" & preciou)";
__c.LogImpl("360227614","PU: "+BA.NumberToString(_preciou),0);
__c.LogImpl("359965470","PU: "+BA.NumberToString(_preciou),0);
//BA.debugLineNum = 377;BA.debugLine="Subs.prodRechazo(esteTag.Get(5), esteTag.Get(2))";
_subs._prodrechazo /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2))));
//BA.debugLineNum = 378;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_p";
@@ -327,7 +327,7 @@ _clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.
_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE")));
//BA.debugLineNum = 114;BA.debugLine="Log($\"VENTA: ${vc.RowCount}\"$)";
__c.LogImpl("359768887",("VENTA: "+__c.SmartStringFormatter("",(Object)(_vc.getRowCount()))+""),0);
__c.LogImpl("359506743",("VENTA: "+__c.SmartStringFormatter("",(Object)(_vc.getRowCount()))+""),0);
//BA.debugLineNum = 115;BA.debugLine="If vc.RowCount > 0 Then";
if (_vc.getRowCount()>0) {
//BA.debugLineNum = 118;BA.debugLine="textColor = Colors.RGB(0,87,142)";
@@ -613,13 +613,13 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _z = null;
String _cantidad2 = "";
//BA.debugLineNum = 429;BA.debugLine="Sub cuentaProds(accion As String)";
//BA.debugLineNum = 431;BA.debugLine="Log(\"*********************************************";
__c.LogImpl("360358658","*******************************************************",0);
__c.LogImpl("360096514","*******************************************************",0);
//BA.debugLineNum = 432;BA.debugLine="Private cantRechazada As Int = 0";
_cantrechazada = (int) (0);
//BA.debugLineNum = 433;BA.debugLine="If Not(reconstruirPedido) Then";
if (__c.Not(_reconstruirpedido)) {
//BA.debugLineNum = 434;BA.debugLine="Log(\"*********** CUENTAPRODS - NO RECONSTRUIR\")";
__c.LogImpl("360358661","*********** CUENTAPRODS - NO RECONSTRUIR",0);
__c.LogImpl("360096517","*********** CUENTAPRODS - NO RECONSTRUIR",0);
//BA.debugLineNum = 435;BA.debugLine="prodsMap.Initialize";
_prodsmap.Initialize();
//BA.debugLineNum = 436;BA.debugLine="For i = 0 To clv_pedido.GetSize - 1";
@@ -644,9 +644,9 @@ _cant1.setText(BA.ObjectToCharSequence(0));};
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_cant1.getTag())));
//BA.debugLineNum = 443;BA.debugLine="Log(\"-------------------------------------\")";
__c.LogImpl("360358670","-------------------------------------",0);
__c.LogImpl("360096526","-------------------------------------",0);
//BA.debugLineNum = 444;BA.debugLine="Log($\"ET: ${esteTag}\"$)";
__c.LogImpl("360358671",("ET: "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),0);
__c.LogImpl("360096527",("ET: "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),0);
//BA.debugLineNum = 445;BA.debugLine="Private esteProd As String = esteTag.Get(2)";
_esteprod = BA.ObjectToString(_estetag.Get((int) (2)));
//BA.debugLineNum = 446;BA.debugLine="Private estaCant As Int = cant1.Text";
@@ -669,9 +669,9 @@ _cant1.setText(BA.ObjectToCharSequence(_maxprods));};
//BA.debugLineNum = 456;BA.debugLine="cantRechazada = esteTag.Get(4) - cant1.Text";
_cantrechazada = (int) ((double)(BA.ObjectToNumber(_estetag.Get((int) (4))))-(double)(Double.parseDouble(_cant1.getText())));
//BA.debugLineNum = 459;BA.debugLine="Log($\"${Subs.traeCantidadRechazada(esteClienteO";
__c.LogImpl("360358686",(""+__c.SmartStringFormatter("",(Object)(_subs._traecantidadrechazada /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+", "+__c.SmartStringFormatter("",(Object)(_subs._traecantidadvendida /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+""),0);
__c.LogImpl("360096542",(""+__c.SmartStringFormatter("",(Object)(_subs._traecantidadrechazada /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+", "+__c.SmartStringFormatter("",(Object)(_subs._traecantidadvendida /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+""),0);
//BA.debugLineNum = 462;BA.debugLine="LogColor($\"cantRechazada = ${cantRechazada}\"$,";
__c.LogImpl("360358689",("cantRechazada = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),__c.Colors.Magenta);
__c.LogImpl("360096545",("cantRechazada = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),__c.Colors.Magenta);
//BA.debugLineNum = 463;BA.debugLine="Private estePrecio As String = 0";
_esteprecio = BA.NumberToString(0);
//BA.debugLineNum = 464;BA.debugLine="If Subs.traePrecio(esteProd, 1) <> Null Then es";
@@ -687,7 +687,7 @@ _rr.setPosition((int) (0));
//BA.debugLineNum = 473;BA.debugLine="If rr.GetString(\"hayRechazo\") = 0 Then";
if ((_rr.GetString("hayRechazo")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 474;BA.debugLine="Log(\"INSERTAMOS EN REPARTO\")";
__c.LogImpl("360358701","INSERTAMOS EN REPARTO",0);
__c.LogImpl("360096557","INSERTAMOS EN REPARTO",0);
//BA.debugLineNum = 475;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_estecliente,_esteprodnombre,BA.NumberToString(0),_esteprecio,_fechareparto,_esteprod,_esteprecio,_estecliente}));
//BA.debugLineNum = 476;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart";
@@ -695,7 +695,7 @@ _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into repa
}else if(_esteclienteoriginal==(double)(Double.parseDouble("0"))) {
}else {
//BA.debugLineNum = 481;BA.debugLine="Log($\"Actualizamos REP_CANT RECHAZO = ${cantRe";
__c.LogImpl("360358708",("Actualizamos REP_CANT RECHAZO = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),0);
__c.LogImpl("360096564",("Actualizamos REP_CANT RECHAZO = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),0);
};
//BA.debugLineNum = 486;BA.debugLine="If cant1.Text > 0 Then";
if ((double)(Double.parseDouble(_cant1.getText()))>0) {
@@ -707,7 +707,7 @@ _m = __c.createMap(new Object[] {(Object)("cant"),(Object)(_cant1.getText()),(Ob
_prodsmap.Put(_estetag.Get((int) (2)),(Object)(_m.getObject()));
};
//BA.debugLineNum = 494;BA.debugLine="Log(\"-------------------------------------\")";
__c.LogImpl("360358721","-------------------------------------",0);
__c.LogImpl("360096577","-------------------------------------",0);
}
};
};
@@ -717,14 +717,14 @@ _textcolor = 0;
//BA.debugLineNum = 499;BA.debugLine="If reconstruirPedido Then";
if (_reconstruirpedido) {
//BA.debugLineNum = 500;BA.debugLine="Log(\"*********** CUENTAPRODS - SI RECONSTRUIR\")";
__c.LogImpl("360358727","*********** CUENTAPRODS - SI RECONSTRUIR",0);
__c.LogImpl("360096583","*********** CUENTAPRODS - SI RECONSTRUIR",0);
//BA.debugLineNum = 501;BA.debugLine="Private newPromo, newPrecio As String";
_newpromo = "";
_newprecio = "";
//BA.debugLineNum = 502;BA.debugLine="clv_pedido.Clear";
_clv_pedido._clear();
//BA.debugLineNum = 503;BA.debugLine="Log(\"Usamos PRODSMAP\")";
__c.LogImpl("360358730","Usamos PRODSMAP",0);
__c.LogImpl("360096586","Usamos PRODSMAP",0);
//BA.debugLineNum = 504;BA.debugLine="For Each pr As String In prodsMap.Keys";
{
final anywheresoftware.b4a.BA.IterableList group53 = _prodsmap.Keys();
@@ -737,7 +737,7 @@ _pr = BA.ObjectToString(group53.Get(index53));
_pr1 = new anywheresoftware.b4a.objects.collections.Map();
_pr1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap.Get((Object)(_pr))));
//BA.debugLineNum = 506;BA.debugLine="Log(\"PPP: \" & pr & \"|PromoABorrar=\" & promoABor";
__c.LogImpl("360358733","PPP: "+_pr+"|PromoABorrar="+_promoaborrar+"|"+BA.ObjectToString(_pr1),0);
__c.LogImpl("360096589","PPP: "+_pr+"|PromoABorrar="+_promoaborrar+"|"+BA.ObjectToString(_pr1),0);
//BA.debugLineNum = 507;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul";
_bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249));
//BA.debugLineNum = 508;BA.debugLine="textColor = Colors.black";
@@ -747,7 +747,7 @@ _newpromo = BA.ObjectToString(_pr1.Get((Object)("promo")));
//BA.debugLineNum = 510;BA.debugLine="newPrecio = pr1.Get(\"precio\")";
_newprecio = BA.ObjectToString(_pr1.Get((Object)("precio")));
//BA.debugLineNum = 511;BA.debugLine="Log(\"AAA: \" & newPromo & \"|\" & promoABorrar)";
__c.LogImpl("360358738","AAA: "+_newpromo+"|"+_promoaborrar,0);
__c.LogImpl("360096594","AAA: "+_newpromo+"|"+_promoaborrar,0);
//BA.debugLineNum = 512;BA.debugLine="If newPromo = promoABorrar Then";
if ((_newpromo).equals(_promoaborrar)) {
//BA.debugLineNum = 513;BA.debugLine="newPromo = 1";
@@ -757,7 +757,7 @@ _newprecio = BA.NumberToString((double)(Double.parseDouble(_subs._traeprecio /*S
//BA.debugLineNum = 516;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_COSTO_TOT = "+__c.SmartStringFormatter("",(Object)(_newprecio))+", HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' WHERE HVD_PRONOMBRE = '"+__c.SmartStringFormatter("",_pr1.Get((Object)("nombre")))+"' and HVD_cliente in (Select CUENTA from cuentaa)"));
//BA.debugLineNum = 517;BA.debugLine="LogColor(\"CAMBIAMOS PROMO: \" & newPromo, Color";
__c.LogImpl("360358744","CAMBIAMOS PROMO: "+_newpromo,__c.Colors.Magenta);
__c.LogImpl("360096600","CAMBIAMOS PROMO: "+_newpromo,__c.Colors.Magenta);
};
//BA.debugLineNum = 519;BA.debugLine="If newPromo <> \"1\" Then";
if ((_newpromo).equals("1") == false) {
@@ -765,7 +765,7 @@ if ((_newpromo).equals("1") == false) {
_bgcolor = __c.Colors.White;
};
//BA.debugLineNum = 523;BA.debugLine="Log($\"CLI: ${pr1.Get(\"nombre\")}, ${newPrecio},";
__c.LogImpl("360358750",("CLI: "+__c.SmartStringFormatter("",_pr1.Get((Object)("nombre")))+", "+__c.SmartStringFormatter("",(Object)(_newprecio))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant")))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant2")))+""),0);
__c.LogImpl("360096606",("CLI: "+__c.SmartStringFormatter("",_pr1.Get((Object)("nombre")))+", "+__c.SmartStringFormatter("",(Object)(_newprecio))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant")))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant2")))+""),0);
//BA.debugLineNum = 524;BA.debugLine="clv_pedido.Add(CreateListItem(pr1.Get(\"nombre\")";
_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(BA.ObjectToString(_pr1.Get((Object)("nombre"))),_newprecio,(int)(BA.ObjectToNumber(_pr1.Get((Object)("cant")))),(int)(BA.ObjectToNumber(_pr1.Get((Object)("cant2")))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (50)),_bmp,_pr,_bgcolor,_textcolor,_newpromo,BA.ObjectToString(_pr1.Get((Object)("cli_orig")))).getObject())),_pr1.Get((Object)("nombre")));
//BA.debugLineNum = 525;BA.debugLine="reconstruirPedido = False";
@@ -776,11 +776,11 @@ _reconstruirpedido = __c.False;
_promoaborrar = "";
};
//BA.debugLineNum = 529;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $";
__c.LogImpl("360358756",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);
__c.LogImpl("360096612",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);
//BA.debugLineNum = 530;BA.debugLine="LogColor(\"prodsMap=\" & prodsMap, Colors.Green)";
__c.LogImpl("360358757","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Green);
__c.LogImpl("360096613","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Green);
//BA.debugLineNum = 533;BA.debugLine="LogColor(prodsMap, Colors.Blue)";
__c.LogImpl("360358760",BA.ObjectToString(_prodsmap),__c.Colors.Blue);
__c.LogImpl("360096616",BA.ObjectToString(_prodsmap),__c.Colors.Blue);
//BA.debugLineNum = 534;BA.debugLine="c = Starter.skmt.ExecQuery($\"SELECT sum(HVD_CANT)";
_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 sum(HVD_CANT) as CANTIDAD FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))));
//BA.debugLineNum = 535;BA.debugLine="Dim cantidad1 As String = 0";
@@ -902,7 +902,7 @@ return "";
public String _p_prods_click() throws Exception{
//BA.debugLineNum = 602;BA.debugLine="Sub p_prods_Click";
//BA.debugLineNum = 603;BA.debugLine="Log(Sender.As(Panel).tag)";
__c.LogImpl("360555265",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
__c.LogImpl("360293121",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
//BA.debugLineNum = 604;BA.debugLine="End Sub";
return "";
}

View File

@@ -372,7 +372,7 @@ this.state = 53;
//BA.debugLineNum = 99;BA.debugLine="rv.Position = i2";
_rv.setPosition(_i2);
//BA.debugLineNum = 100;BA.debugLine="Log($\"Actualizamos REPARTO - cliente=${rv.Ge";
parent.__c.LogImpl("315663148",("Actualizamos REPARTO - cliente="+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLIENTE")))+", cliente orignal="+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+", le agregamos "+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+""),0);
parent.__c.LogImpl("351052588",("Actualizamos REPARTO - cliente="+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLIENTE")))+", cliente orignal="+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+", le agregamos "+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+""),0);
//BA.debugLineNum = 101;BA.debugLine="Starter.skmt.ExecNonQuery($\"update REPARTO s";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update REPARTO set REP_CANT = REP_CANT + "+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+" where REP_RECHAZO = '1' and REP_CLIENTE = '"+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+"' and REP_CLI_ORIG = '"+parent.__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+"'"));
if (true) break;
@@ -420,7 +420,7 @@ this.state = 55;
//BA.debugLineNum = 107;BA.debugLine="c.Position=i";
parent._c.setPosition(_i);
//BA.debugLineNum = 108;BA.debugLine="Log($\"REGISTRO= ${c.GetString(\"HVD_NUM_REGIST";
parent.__c.LogImpl("315663156",("REGISTRO= "+parent.__c.SmartStringFormatter("",(Object)(parent._c.GetString("HVD_NUM_REGISTRO")))+""),0);
parent.__c.LogImpl("351052596",("REGISTRO= "+parent.__c.SmartStringFormatter("",(Object)(parent._c.GetString("HVD_NUM_REGISTRO")))+""),0);
//BA.debugLineNum = 109;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repar";
parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent._c.GetString("HVD_CLIENTE"),parent._c.GetString("HVD_PRONOMBRE"),parent._c.GetString("HVD_CANT"),parent._c.GetString("HVD_COSTO_TOT"),parent._c.GetString("HVD_FECHA"),parent._c.GetString("HVD_PROID"),parent._c.GetString("CAT_GP_PRECIO"),parent._c.GetString("HVD_NUM_REGISTRO"),parent._c.GetString("HVD_CLIENTE")}));
//BA.debugLineNum = 110;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repar";
@@ -586,12 +586,12 @@ Object[] _records = null;
String _k = "";
//BA.debugLineNum = 176;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 177;BA.debugLine="Log(Job.Success)";
__c.LogImpl("315794177",BA.ObjectToString(_job._success /*boolean*/ ),0);
__c.LogImpl("351183617",BA.ObjectToString(_job._success /*boolean*/ ),0);
//BA.debugLineNum = 178;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) {
}else {
//BA.debugLineNum = 181;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job";
__c.LogImpl("315794181","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
__c.LogImpl("351183621","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_mazapa.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green);
//BA.debugLineNum = 182;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) {
//BA.debugLineNum = 183;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo";
@@ -603,7 +603,7 @@ _cliente = BA.ObjectToString(_resultado.Tag /*Object*/ );
//BA.debugLineNum = 186;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_";
_cliente = _cliente.substring((int) (_cliente.indexOf("_")+24));
//BA.debugLineNum = 187;BA.debugLine="Log($\"Cliente1:${cliente}\"$)";
__c.LogImpl("315794187",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
__c.LogImpl("351183627",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0);
//BA.debugLineNum = 188;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"1",_cliente,"1"}));
//BA.debugLineNum = 189;BA.debugLine="For Each records() As Object In resultado.Rows";
@@ -623,7 +623,7 @@ final int groupLen13 = group13.getSize()
for (; index13 < groupLen13;index13++){
_k = BA.ObjectToString(group13.Get(index13));
//BA.debugLineNum = 191;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record";
__c.LogImpl("315794191",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("351183631",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0);
}
};
}
@@ -643,7 +643,7 @@ reparto_mazapa.keymon.lat.dbrequestmanager._dbcommand _cmd = null;
//BA.debugLineNum = 157;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CLIENTE, USUARI";
_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 CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO where ENVIO <> 1")));
//BA.debugLineNum = 158;BA.debugLine="Log($\"REPARTO_Cliente PENDIENTE: ${c.RowCount}\"$)";
__c.LogImpl("315728642",("REPARTO_Cliente PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
__c.LogImpl("351118082",("REPARTO_Cliente PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0);
//BA.debugLineNum = 159;BA.debugLine="If c.RowCount>0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 160;BA.debugLine="For i=0 To c.RowCount -1";

View File

@@ -123,7 +123,7 @@ _sdate = __c.DateTime.Date(__c.DateTime.getNow());
//BA.debugLineNum = 670;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
//BA.debugLineNum = 672;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
__c.LogImpl("314680072","b_prodMas_Click",__c.Colors.Magenta);
__c.LogImpl("350069512","b_prodMas_Click",__c.Colors.Magenta);
//BA.debugLineNum = 673;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 674;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -139,7 +139,7 @@ _lacant = _pnl.GetView((int) (2)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
//BA.debugLineNum = 681;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&";
__c.LogImpl("314680081","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("350069521","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 682;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) {
_lacant.setText(BA.ObjectToCharSequence(0));};
@@ -163,16 +163,16 @@ _minimoadesc = "1";
//BA.debugLineNum = 694;BA.debugLine="minimos.Close";
_minimos.Close();
//BA.debugLineNum = 697;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
__c.LogImpl("314680097",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
__c.LogImpl("350069537",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
//BA.debugLineNum = 698;BA.debugLine="Log(esteTag.get(4))";
__c.LogImpl("314680098",BA.ObjectToString(_estetag.Get((int) (4))),0);
__c.LogImpl("350069538",BA.ObjectToString(_estetag.Get((int) (4))),0);
//BA.debugLineNum = 699;BA.debugLine="If esteTag.Get(4) = \"0\" Then";
if ((_estetag.Get((int) (4))).equals((Object)("0"))) {
}else {
//BA.debugLineNum = 702;BA.debugLine="If laCant.Text + 1 * minimoadesc <= maxProds The";
if ((double)(Double.parseDouble(_lacant.getText()))+1*(double)(Double.parseDouble(_minimoadesc))<=(double)(Double.parseDouble(_maxprods))) {
//BA.debugLineNum = 703;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)";
__c.LogImpl("314680103",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
__c.LogImpl("350069543",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0);
//BA.debugLineNum = 704;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$";
_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+"")));
//BA.debugLineNum = 705;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod";
@@ -297,7 +297,7 @@ String _puc = "";
//BA.debugLineNum = 800;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 802;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)";
__c.LogImpl("314745603","b_prodMas_Click",__c.Colors.Magenta);
__c.LogImpl("350135043","b_prodMas_Click",__c.Colors.Magenta);
//BA.debugLineNum = 803;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 804;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -310,40 +310,40 @@ _pnl = _pnl0.GetView((int) (0));
_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper();
_lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
//BA.debugLineNum = 807;BA.debugLine="LogColor(laCantc.Text&\"--------------------------";
__c.LogImpl("314745608",_lacantc.getText()+"-----------------------------",__c.Colors.Blue);
__c.LogImpl("350135048",_lacantc.getText()+"-----------------------------",__c.Colors.Blue);
//BA.debugLineNum = 811;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T";
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
//BA.debugLineNum = 812;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta";
__c.LogImpl("314745613","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("350135053","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 813;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
if ((_lacantc.getText()).equals("")) {
_lacantc.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 815;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es";
_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4))))));
//BA.debugLineNum = 816;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)";
__c.LogImpl("314745617",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red);
__c.LogImpl("350135057",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red);
//BA.debugLineNum = 817;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)";
__c.LogImpl("314745618",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red);
__c.LogImpl("350135058",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red);
//BA.debugLineNum = 818;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag";
__c.LogImpl("314745619",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
__c.LogImpl("350135059",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green);
//BA.debugLineNum = 820;BA.debugLine="Log(maxProds)";
__c.LogImpl("314745621",_maxprods,0);
__c.LogImpl("350135061",_maxprods,0);
//BA.debugLineNum = 823;BA.debugLine="Log(esteTag.Get(4))";
__c.LogImpl("314745624",BA.ObjectToString(_estetag.Get((int) (4))),0);
__c.LogImpl("350135064",BA.ObjectToString(_estetag.Get((int) (4))),0);
//BA.debugLineNum = 824;BA.debugLine="If esteTag.Get(4) = \"0\" Then";
if ((_estetag.Get((int) (4))).equals((Object)("0"))) {
}else {
//BA.debugLineNum = 827;BA.debugLine="If laCantc.Text + 1 <= maxProds Then";
if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) {
//BA.debugLineNum = 828;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)";
__c.LogImpl("314745629",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0);
__c.LogImpl("350135069",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0);
//BA.debugLineNum = 830;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$";
_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+"")));
//BA.debugLineNum = 831;BA.debugLine="LogColor(esteTag,Colors.Magenta)";
__c.LogImpl("314745632",BA.ObjectToString(_estetag),__c.Colors.Magenta);
__c.LogImpl("350135072",BA.ObjectToString(_estetag),__c.Colors.Magenta);
//BA.debugLineNum = 833;BA.debugLine="LogColor(laCantc.Text,Colors.Red)";
__c.LogImpl("314745634",_lacantc.getText(),__c.Colors.Red);
__c.LogImpl("350135074",_lacantc.getText(),__c.Colors.Red);
//BA.debugLineNum = 836;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI";
_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*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
//BA.debugLineNum = 837;BA.debugLine="If c.RowCount > 0 Then";
@@ -362,7 +362,7 @@ _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO se
//BA.debugLineNum = 844;BA.debugLine="B4XPage_Appear";
_b4xpage_appear();
//BA.debugLineNum = 845;BA.debugLine="Log(\"aqui2\")";
__c.LogImpl("314745646","aqui2",0);
__c.LogImpl("350135086","aqui2",0);
};
}else {
//BA.debugLineNum = 848;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2";
@@ -375,7 +375,7 @@ _c2.setPosition((int) (0));
//BA.debugLineNum = 851;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS";
_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC"))));
//BA.debugLineNum = 852;BA.debugLine="Log(puc)";
__c.LogImpl("314745653",_puc,0);
__c.LogImpl("350135093",_puc,0);
//BA.debugLineNum = 855;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDID";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,1,1,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2)))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),_puc,_puc,BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)}));
//BA.debugLineNum = 856;BA.debugLine="B4XPage_Appear";
@@ -402,9 +402,9 @@ float _preciou = 0f;
//BA.debugLineNum = 559;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 560;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
__c.LogImpl("314614530","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
__c.LogImpl("350003970","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
//BA.debugLineNum = 561;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
__c.LogImpl("314614531","b_prodMenos_Click",__c.Colors.Magenta);
__c.LogImpl("350003971","b_prodMenos_Click",__c.Colors.Magenta);
//BA.debugLineNum = 562;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 563;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -420,7 +420,7 @@ _lacant = _pnl.GetView((int) (2)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
//BA.debugLineNum = 568;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get(";
__c.LogImpl("314614538","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("350003978","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 570;BA.debugLine="Private minimoadesc As String";
_minimoadesc = "";
//BA.debugLineNum = 571;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\"";
@@ -449,7 +449,7 @@ _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Obje
if ((double)(Double.parseDouble(_lacant.getText()))<0) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 619;BA.debugLine="Log(\"NO ES promo\")";
__c.LogImpl("314614589","NO ES promo",0);
__c.LogImpl("350004029","NO ES promo",0);
//BA.debugLineNum = 624;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))})));
@@ -488,7 +488,7 @@ _b4xpage_appear();
//BA.debugLineNum = 650;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
//BA.debugLineNum = 651;BA.debugLine="Log(\"PU: \" & preciou)";
__c.LogImpl("314614621","PU: "+BA.NumberToString(_preciou),0);
__c.LogImpl("350004061","PU: "+BA.NumberToString(_preciou),0);
//BA.debugLineNum = 662;BA.debugLine="End Sub";
return "";
}
@@ -504,9 +504,9 @@ float _preciou = 0f;
//BA.debugLineNum = 865;BA.debugLine="etCantHasFocus = False";
_etcanthasfocus = __c.False;
//BA.debugLineNum = 866;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)";
__c.LogImpl("314811138","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
__c.LogImpl("350200578","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0);
//BA.debugLineNum = 867;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)";
__c.LogImpl("314811139","b_prodMenos_Click",__c.Colors.Magenta);
__c.LogImpl("350200579","b_prodMenos_Click",__c.Colors.Magenta);
//BA.debugLineNum = 868;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen";
_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 869;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)";
@@ -522,7 +522,7 @@ _lacantc = _pnl.GetView((int) (3)).GetView((int) (3));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag())));
//BA.debugLineNum = 874;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get";
__c.LogImpl("314811146","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
__c.LogImpl("350200586","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 878;BA.debugLine="If laCantc.Text > 0 Then";
if ((double)(Double.parseDouble(_lacantc.getText()))>0) {
//BA.debugLineNum = 881;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\"";
@@ -542,7 +542,7 @@ _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDI
};
};
//BA.debugLineNum = 890;BA.debugLine="Log(\"entre al if o algo asi \")";
__c.LogImpl("314811162","entre al if o algo asi ",0);
__c.LogImpl("350200602","entre al if o algo asi ",0);
//BA.debugLineNum = 891;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0";
if ((_lacantc.getText()).equals("")) {
_lacantc.setText(BA.ObjectToCharSequence(0));};
@@ -558,7 +558,7 @@ _b4xpage_appear();
//BA.debugLineNum = 900;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get";
_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1)))));
//BA.debugLineNum = 901;BA.debugLine="Log(\"PU: \" & preciou)";
__c.LogImpl("314811173","PU: "+BA.NumberToString(_preciou),0);
__c.LogImpl("350200613","PU: "+BA.NumberToString(_preciou),0);
//BA.debugLineNum = 902;BA.debugLine="End Sub";
return "";
}
@@ -716,16 +716,16 @@ _preciofull = _preciocat.GetString("CAT_GP_PRECIO");
//BA.debugLineNum = 167;BA.debugLine="preciocat.Close";
_preciocat.Close();
//BA.debugLineNum = 168;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))";
__c.LogImpl("314090334",_c.GetString("HVD_CODPROMO"),0);
__c.LogImpl("349479774",_c.GetString("HVD_CODPROMO"),0);
//BA.debugLineNum = 169;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("314090335",_subs._traealmacen /*String*/ (ba),0);
__c.LogImpl("349479775",_subs._traealmacen /*String*/ (ba),0);
//BA.debugLineNum = 172;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) {
//BA.debugLineNum = 173;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO"),_c.GetString("CONSECUTIVO")),(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
}else {
//BA.debugLineNum = 175;BA.debugLine="Log(\"aqui arriba\")";
__c.LogImpl("314090341","aqui arriba",0);
__c.LogImpl("349479781","aqui arriba",0);
//BA.debugLineNum = 176;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_preciofull,(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
};
@@ -758,16 +758,16 @@ _preciofull = _preciocat.GetString("CAT_GP_PRECIO");
//BA.debugLineNum = 199;BA.debugLine="preciocat.Close";
_preciocat.Close();
//BA.debugLineNum = 200;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))";
__c.LogImpl("314090366",_c.GetString("HVD_CODPROMO"),0);
__c.LogImpl("349479806",_c.GetString("HVD_CODPROMO"),0);
//BA.debugLineNum = 201;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("314090367",_subs._traealmacen /*String*/ (ba),0);
__c.LogImpl("349479807",_subs._traealmacen /*String*/ (ba),0);
//BA.debugLineNum = 203;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl";
if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) {
//BA.debugLineNum = 204;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO"),_c.GetString("CONSECUTIVO")),(int) (0),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
}else {
//BA.debugLineNum = 206;BA.debugLine="Log(\"aqui abajo\")";
__c.LogImpl("314090372","aqui abajo",0);
__c.LogImpl("349479812","aqui abajo",0);
//BA.debugLineNum = 207;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"";
_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_preciofull,(int) (0),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
};
@@ -777,7 +777,7 @@ _clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.
_c2.Close();
}else if((_c.GetString("BCAJAS")).equals("1")) {
//BA.debugLineNum = 218;BA.debugLine="Log(\"AQUI1\")";
__c.LogImpl("314090384","AQUI1",0);
__c.LogImpl("349479824","AQUI1",0);
//BA.debugLineNum = 221;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery(";
_oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'"))));
@@ -839,9 +839,9 @@ if (_c2.getRowCount()>0) {
//BA.debugLineNum = 255;BA.debugLine="c2.Position = 0";
_c2.setPosition((int) (0));
//BA.debugLineNum = 256;BA.debugLine="Log(\"SI ENTRO A PONER CAJAS BIEN \")";
__c.LogImpl("314090422","SI ENTRO A PONER CAJAS BIEN ",0);
__c.LogImpl("349479862","SI ENTRO A PONER CAJAS BIEN ",0);
//BA.debugLineNum = 257;BA.debugLine="Log(c2.GetString(\"PE_CAJAS\"))";
__c.LogImpl("314090423",_c2.GetString("PE_CAJAS"),0);
__c.LogImpl("349479863",_c2.GetString("PE_CAJAS"),0);
//BA.debugLineNum = 258;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
@@ -860,12 +860,12 @@ _resta = BA.NumberToString(0);
//BA.debugLineNum = 269;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS";
_puc = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("CANTC"))));
//BA.debugLineNum = 270;BA.debugLine="LogColor((restacant/Subs.traeConversion(c.Ge";
__c.LogImpl("314090436",BA.NumberToString(((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),__c.Colors.Green);
__c.LogImpl("349479876",BA.NumberToString(((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),__c.Colors.Green);
//BA.debugLineNum = 271;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\"";
_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_c.GetString("HVD_PRONOMBRE"),_puc,(int) (((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),(int) ((((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i));
}else {
//BA.debugLineNum = 273;BA.debugLine="Log(\"NO ENTRO A PONER CAJAS BIEN \")";
__c.LogImpl("314090439","NO ENTRO A PONER CAJAS BIEN ",0);
__c.LogImpl("349479879","NO ENTRO A PONER CAJAS BIEN ",0);
//BA.debugLineNum = 274;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(";
_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'"))));
@@ -882,7 +882,7 @@ _resta = _c3.GetString("PE_CANT");
_resta = BA.NumberToString(0);
};
//BA.debugLineNum = 285;BA.debugLine="LogColor(resta,Colors.Green)";
__c.LogImpl("314090451",_resta,__c.Colors.Green);
__c.LogImpl("349479891",_resta,__c.Colors.Green);
//BA.debugLineNum = 286;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS";
_puc = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("CANTC"))));
//BA.debugLineNum = 288;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\"";
@@ -1133,9 +1133,9 @@ if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) {
_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject()));
};
//BA.debugLineNum = 538;BA.debugLine="Log(inv&\" inventario 1\")";
__c.LogImpl("314549006",BA.NumberToString(_inv)+" inventario 1",0);
__c.LogImpl("349938446",BA.NumberToString(_inv)+" inventario 1",0);
//BA.debugLineNum = 539;BA.debugLine="Log(inv2&\" inventario 2\")";
__c.LogImpl("314549007",BA.NumberToString(_inv2)+" inventario 2",0);
__c.LogImpl("349938447",BA.NumberToString(_inv2)+" inventario 2",0);
//BA.debugLineNum = 540;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF";
_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs")));
//BA.debugLineNum = 542;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&";
@@ -1200,7 +1200,7 @@ return "";
public String _p_prods_click() throws Exception{
//BA.debugLineNum = 1086;BA.debugLine="Sub p_prods_Click";
//BA.debugLineNum = 1087;BA.debugLine="Log(Sender.As(Panel).tag)";
__c.LogImpl("315204353",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
__c.LogImpl("350593793",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0);
//BA.debugLineNum = 1088;BA.debugLine="End Sub";
return "";
}

View File

@@ -164,7 +164,7 @@ _d.setPosition((int) (0));
//BA.debugLineNum = 43;BA.debugLine="If c.RowCount > 0 And d.RowCount > 0 Then";
if (_c.getRowCount()>0 && _d.getRowCount()>0) {
//BA.debugLineNum = 44;BA.debugLine="Log(\"TABULADR CON RESUKTADO\")";
__c.LogImpl("361407238","TABULADR CON RESUKTADO",0);
__c.LogImpl("361145094","TABULADR CON RESUKTADO",0);
//BA.debugLineNum = 45;BA.debugLine="et_mil.Text = c.GetString(\"MIL\")";
_et_mil.setText(BA.ObjectToCharSequence(_c.GetString("MIL")));
//BA.debugLineNum = 46;BA.debugLine="et_quinientos.Text = c.GetString(\"QUINIENTOS\")";
@@ -193,7 +193,7 @@ _et_m_centavo.setText(BA.ObjectToCharSequence(_d.GetString("CENTAVO")));
_l_total.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL")));
}else if(_c.getRowCount()==0 && _d.getRowCount()==0) {
//BA.debugLineNum = 59;BA.debugLine="Log(\"TABULADR SIN RESUKTADO\")";
__c.LogImpl("361407253","TABULADR SIN RESUKTADO",0);
__c.LogImpl("361145109","TABULADR SIN RESUKTADO",0);
//BA.debugLineNum = 60;BA.debugLine="et_mil.Text = \"\"";
_et_mil.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 61;BA.debugLine="et_quinientos.Text = \"\"";

View File

@@ -125,7 +125,7 @@ case 9:
this.state = 10;
this.catchState = 0;
//BA.debugLineNum = 28;BA.debugLine="Log(\"updateAvailable() Error - \" & LastException";
parent.__c.LogImpl("361997066","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0);
parent.__c.LogImpl("361734922","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0);
if (true) break;
if (true) break;
;

View File

@@ -80,7 +80,7 @@ if (_success) {
_takepicture();
}else {
//BA.debugLineNum = 279;BA.debugLine="Log(\"AutoFocus error.\")";
__c.LogImpl("364421892","AutoFocus error.",0);
__c.LogImpl("364159748","AutoFocus error.",0);
};
//BA.debugLineNum = 281;BA.debugLine="End Sub";
return "";
@@ -118,7 +118,7 @@ _parameters = _r.RunMethod("getParameters");
_setdisplayorientation();
}else {
//BA.debugLineNum = 90;BA.debugLine="Log(\"success = false, \" & LastException)";
__c.LogImpl("362521352","success = false, "+BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("362259208","success = false, "+BA.ObjectToString(__c.LastException(ba)),0);
};
//BA.debugLineNum = 92;BA.debugLine="CallSub2(target, event & \"_ready\", Success)";
__c.CallSubNew2(ba,_target,_event+"_ready",(Object)(_success));
@@ -171,7 +171,7 @@ _r.RunMethod4("setParameters",new Object[]{_parameters},new String[]{"android.ha
ba.setLastException(e5); //BA.debugLineNum = 142;BA.debugLine="ToastMessageShow(\"Error setting parameters.\", Tr";
__c.ToastMessageShow(BA.ObjectToCharSequence("Error setting parameters."),__c.True);
//BA.debugLineNum = 143;BA.debugLine="Log(LastException)";
__c.LogImpl("363176710",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("362914566",BA.ObjectToString(__c.LastException(ba)),0);
};
//BA.debugLineNum = 145;BA.debugLine="End Sub";
return "";
@@ -491,7 +491,7 @@ _setfocusmode("continuous-picture");
_setfocusmode("continuous-video");
}else {
//BA.debugLineNum = 249;BA.debugLine="Log(\"Continuous focus mode is not availabl";
__c.LogImpl("364094215","Continuous focus mode is not available",0);
__c.LogImpl("363832071","Continuous focus mode is not available",0);
};
//BA.debugLineNum = 251;BA.debugLine="End Sub";
return "";
@@ -535,7 +535,7 @@ _previewresult = (int) ((_orientation-_degrees+360)%360);
//BA.debugLineNum = 72;BA.debugLine="result = previewResult";
_result = _previewresult;
//BA.debugLineNum = 73;BA.debugLine="Log(previewResult)";
__c.LogImpl("362455824",BA.NumberToString(_previewresult),0);
__c.LogImpl("362193680",BA.NumberToString(_previewresult),0);
};
//BA.debugLineNum = 75;BA.debugLine="r.target = nativeCam";
_r.Target = _nativecam;

View File

@@ -221,7 +221,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 159;BA.debugLine="LogColor(\"---- AppUpdating.DownloadApk\", LogColor";
parent.__c.LogImpl("922085633","---- AppUpdating.DownloadApk",parent._logcolor1);
parent.__c.LogImpl("910551297","---- 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("922085637",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
parent.__c.LogImpl("910551301",(""+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 = (reparto_mazapa.keymon.lat.httpjob) result[0];
;
//BA.debugLineNum = 174;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)";
parent.__c.LogImpl("922085648",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
parent.__c.LogImpl("910551312",("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("922085655",("Copy2 (saving) ok? TRUE"),0);
parent.__c.LogImpl("910551319",("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("922085657",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
parent.__c.LogImpl("910551321",(""+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("922085659",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("910551323",(""+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("922085661",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("910551325",(""+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("921102613",("SDK#: "+__c.SmartStringFormatter("",(Object)(_p.getSdkVersion()))+" - UseFP: "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+" - SharedFolder: "+__c.SmartStringFormatter("",(Object)(_sharedfolder))+""),0);
__c.LogImpl("99568277",("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("922151169","---- AppUpdating.InstallApk",_logcolor1);
__c.LogImpl("910616833","---- 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("922151173",__c.TAB+"user asked to install new apk",0);};
__c.LogImpl("910616837",__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("922151176",__c.TAB+"no permissions from user to install new apk",0);};
__c.LogImpl("910616840",__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("922413316",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"missing package name for current version check"),0);};
__c.LogImpl("910878980",(""+__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("922413321",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"Current Version: "+__c.SmartStringFormatter("",(Object)(_curver))+""),0);};
__c.LogImpl("910878985",(""+__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("922478849","IsValidComplete start",0);
parent.__c.LogImpl("910944513","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("922478853",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing info file full path indication"),0);
parent.__c.LogImpl("910944517",(""+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("922478861","before",0);
parent.__c.LogImpl("910944525","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 = (reparto_mazapa.keymon.lat.httpjob) result[0];
;
//BA.debugLineNum = 327;BA.debugLine="Log(\"after\")";
parent.__c.LogImpl("922478863","after",0);
parent.__c.LogImpl("910944527","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("922478865",("Webserver's info file content: "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_j._getstring /*String*/ ()))+""),0);
parent.__c.LogImpl("910944529",("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("922478872",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"wrong row format in info file "),0);
parent.__c.LogImpl("910944536",(""+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("922478875",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Web version number: "+parent.__c.SmartStringFormatter("",(Object)(parent._webver))+""),0);
parent.__c.LogImpl("910944539",(""+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("922478879",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"ERROR: website returned an HTML error page"),0);
parent.__c.LogImpl("910944543",(""+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("922478882",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("910944546",(""+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("922478884",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("910944548",(""+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("921954561","---- AppUpdating.ReadCurVN",_logcolor1);
__c.LogImpl("910420225","---- 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("922020097","---- AppUpdating.ReadWebVN",parent._logcolor1);
parent.__c.LogImpl("910485761","---- 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("922282241",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"-- TryApkUpdate"),parent._logcolor1);
parent.__c.LogImpl("910747905",(""+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 = (reparto_mazapa.keymon.lat.httpjob) result[0];
;
//BA.debugLineNum = 256;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)";
parent.__c.LogImpl("922282251",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
parent.__c.LogImpl("910747915",("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("922282259",("Copy2 (saving) ok? TRUE"),0);
parent.__c.LogImpl("910747923",("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("922282261",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
parent.__c.LogImpl("910747925",(""+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("922282263",("Copy2 (saving) ok? FALSE"),0);
parent.__c.LogImpl("910747927",("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("922282265",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"failed download of new apk version"),0);
parent.__c.LogImpl("910747929",(""+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("922282269",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("910747933",(""+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("922282271",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("910747935",(""+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("922282278",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"user asked to install new apk"),0);
parent.__c.LogImpl("910747942",(""+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("922216705","---- AppUpdating.UpdateApk",parent._logcolor1);
parent.__c.LogImpl("910682369","---- 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("922216708",parent.__c.TAB+"no permissions from user to install new apk",0);
parent.__c.LogImpl("910682372",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("922216718",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"no enough available space to download apk"),0);
parent.__c.LogImpl("910682382",(""+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("922216723",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Newer version available. Now I try its downloading"),0);
parent.__c.LogImpl("910682387",(""+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("922216726",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
parent.__c.LogImpl("910682390",(""+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("922216731",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0);
parent.__c.LogImpl("910682395",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0);
if (true) break;
case 58:

View File

@@ -268,7 +268,7 @@ _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
_table.Tag /*Object*/ = _job._tag /*Object*/ ;
//BA.debugLineNum = 194;BA.debugLine="If jobTagAnterior <> Job.Tag Then LogColor(\"Handl";
if ((_jobtaganterior).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) {
__c.LogImpl("365339404","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.Blue);};
__c.LogImpl("365077260","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.Blue);};
//BA.debugLineNum = 195;BA.debugLine="jobTagAnterior = Job.Tag 'Mod por CHV - 211023";
_jobtaganterior = BA.ObjectToString(_job._tag /*Object*/ );
//BA.debugLineNum = 196;BA.debugLine="If method = \"query\" Then";
@@ -368,7 +368,7 @@ Object[] _row = null;
Object _record = null;
//BA.debugLineNum = 248;BA.debugLine="Public Sub PrintTable(Table As DBResult)";
//BA.debugLineNum = 249;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C";
__c.LogImpl("365601537","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("365339393","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 = 250;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
//BA.debugLineNum = 251;BA.debugLine="sb.Initialize";
@@ -386,7 +386,7 @@ _sb.Append(BA.ObjectToString(_col)).Append(__c.TAB);
}
};
//BA.debugLineNum = 255;BA.debugLine="Log(sb.ToString)";
__c.LogImpl("365601543",_sb.ToString(),0);
__c.LogImpl("365339399",_sb.ToString(),0);
//BA.debugLineNum = 256;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

@@ -107,7 +107,7 @@ if (__c.SubExists(ba,_callback,_eventname+"_NewData")) {
__c.CallSubNew2(ba,_callback,_eventname+"_NewData",(Object)(_buffer));
};
//BA.debugLineNum = 1138;BA.debugLine="Log(\"Data \" & Buffer(0))";
__c.LogImpl("369140484","Data "+BA.NumberToString(_buffer[(int) (0)]),0);
__c.LogImpl("368878340","Data "+BA.NumberToString(_buffer[(int) (0)]),0);
//BA.debugLineNum = 1139;BA.debugLine="End Sub";
return "";
}
@@ -216,7 +216,7 @@ _l = new anywheresoftware.b4a.objects.collections.List();
//BA.debugLineNum = 109;BA.debugLine="l.Initialize";
_l.Initialize();
//BA.debugLineNum = 110;BA.debugLine="Log(\"aqui 1\")";
__c.LogImpl("365994762","aqui 1",0);
__c.LogImpl("365732618","aqui 1",0);
//BA.debugLineNum = 111;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
{
final int step8 = 1;
@@ -226,7 +226,7 @@ for (;_i <= limit8 ;_i = _i + step8 ) {
//BA.debugLineNum = 112;BA.debugLine="l.Add(PairedDevices.GetKeyAt(i))";
_l.Add(_paireddevices.GetKeyAt(_i));
//BA.debugLineNum = 113;BA.debugLine="Log(\"aqui 2\")";
__c.LogImpl("365994765","aqui 2",0);
__c.LogImpl("365732621","aqui 2",0);
//BA.debugLineNum = 114;BA.debugLine="DisConnect";
_disconnect();
}
@@ -246,10 +246,10 @@ if (true) return __c.True;
//BA.debugLineNum = 123;BA.debugLine="DisConnect";
_disconnect();
//BA.debugLineNum = 124;BA.debugLine="Log(\"aqui 3\")";
__c.LogImpl("365994776","aqui 3",0);
__c.LogImpl("365732632","aqui 3",0);
};
//BA.debugLineNum = 126;BA.debugLine="Log(\"aqui 4\")";
__c.LogImpl("365994778","aqui 4",0);
__c.LogImpl("365732634","aqui 4",0);
//BA.debugLineNum = 127;BA.debugLine="Return False";
if (true) return __c.False;
}else {
@@ -260,12 +260,12 @@ if (true) return __c.True;
//BA.debugLineNum = 132;BA.debugLine="DisConnect";
_disconnect();
//BA.debugLineNum = 133;BA.debugLine="Log(\"aqui 5\")";
__c.LogImpl("365994785","aqui 5",0);
__c.LogImpl("365732641","aqui 5",0);
};
}
catch (Exception e31) {
ba.setLastException(e31); //BA.debugLineNum = 136;BA.debugLine="Log(LastException)";
__c.LogImpl("365994788",BA.ObjectToString(__c.LastException(getActivityBA())),0);
__c.LogImpl("365732644",BA.ObjectToString(__c.LastException(getActivityBA())),0);
//BA.debugLineNum = 137;BA.debugLine="Return False";
if (true) return __c.False;
};
@@ -434,22 +434,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("367305514","Triangle "+_logmsg,0);
__c.LogImpl("367043370","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("367305517","Circle "+_logmsg,0);
__c.LogImpl("367043373","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("367305520","Box "+_logmsg,0);
__c.LogImpl("367043376","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("367305523","Line "+_logmsg,0);
__c.LogImpl("367043379","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("368943875","Barcode "+_bartype+", Size "+BA.NumberToString(_dlow)+", "+_data,0);
__c.LogImpl("368681731","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("369009412","QR Code : Size "+BA.NumberToString(_size)+", EC "+_ec+", Scale "+BA.NumberToString(_scale)+", Size "+BA.NumberToString(_dlow)+" "+BA.NumberToString(_dhigh)+" : Data = "+_data,0);
__c.LogImpl("368747268","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("367043334","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0);
__c.LogImpl("366781190","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0);
//BA.debugLineNum = 306;BA.debugLine="AStream_Error";
_astream_error();
};

View File

@@ -105,7 +105,7 @@ _usefileprovider = __c.False;
_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
};
//BA.debugLineNum = 18;BA.debugLine="Log($\"Using FileProvider? ${UseFileProvider}\"$)";
__c.LogImpl("932505866",("Using FileProvider? "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
__c.LogImpl("920971530",("Using FileProvider? "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
//BA.debugLineNum = 19;BA.debugLine="End Sub";
return "";
}

View File

@@ -130,7 +130,7 @@ _req.InitializeDelete(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 266;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("934406405",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("922872069",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 267;BA.debugLine="req.InitializeDelete(InvalidURL)";
_req.InitializeDelete(_invalidurl);
};
@@ -149,7 +149,7 @@ _req.InitializeDelete(_escapelink(_link,_parameters));
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 277;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("934471941",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("922937605",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 278;BA.debugLine="req.InitializeDelete(escapeLink(InvalidURL, Para";
_req.InitializeDelete(_escapelink(_invalidurl,_parameters));
};
@@ -168,7 +168,7 @@ _req.InitializeGet(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 224;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("934209797",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("922675461",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 225;BA.debugLine="req.InitializeGet(InvalidURL)";
_req.InitializeGet(_invalidurl);
};
@@ -187,7 +187,7 @@ _req.InitializeGet(_escapelink(_link,_parameters));
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 240;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("934275333",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("922740997",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 241;BA.debugLine="req.InitializeGet(escapeLink(InvalidURL, Paramet";
_req.InitializeGet(_escapelink(_invalidurl,_parameters));
};
@@ -311,7 +311,7 @@ _req.InitializeHead(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 124;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("933947653",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("922413317",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 125;BA.debugLine="req.InitializeHead(InvalidURL)";
_req.InitializeHead(_invalidurl);
};
@@ -365,7 +365,7 @@ _req.InitializePatch2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 109;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("933882124",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("922347788",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 110;BA.debugLine="req.InitializePatch2(InvalidURL, Data)";
_req.InitializePatch2(_invalidurl,_data);
};
@@ -391,7 +391,7 @@ _req.InitializePost2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 68;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("933619973",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("922085637",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 69;BA.debugLine="req.InitializePost2(InvalidURL, Data)";
_req.InitializePost2(_invalidurl,_data);
};
@@ -411,7 +411,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("934144264","Cannot send files from the assets folder.",0);
__c.LogImpl("922609928","Cannot send files from the assets folder.",0);
//BA.debugLineNum = 199;BA.debugLine="Return";
if (true) return "";
};
@@ -548,7 +548,7 @@ _req.InitializePut2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 85;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("933751045",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("922216709",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 86;BA.debugLine="req.InitializePut2(InvalidURL, Data)";
_req.InitializePut2(_invalidurl,_data);
};

View File

@@ -70,7 +70,7 @@ _job = (reparto_mazapa.keymon.lat.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("333292294","HttpUtils2Service: job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("321757958","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
reparto_mazapa.keymon.lat.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("333226754",("ResponseError. Reason: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_reason))+", Response: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_response.getErrorResponse()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("321692418",("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 = (reparto_mazapa.keymon.lat.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("333226759","HttpUtils2Service (hc_ResponseError): job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("321692423","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 = (reparto_mazapa.keymon.lat.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("333095683","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("321561347","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0);
//BA.debugLineNum = 96;BA.debugLine="Return";
if (true) return "";
};
@@ -187,9 +187,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("332768007",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("321233671",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0);
//BA.debugLineNum = 35;BA.debugLine="Log(\"Switching to File.DirInternal\")";
anywheresoftware.b4a.keywords.Common.LogImpl("332768008","Switching to File.DirInternal",0);
anywheresoftware.b4a.keywords.Common.LogImpl("321233672","Switching to File.DirInternal",0);
//BA.debugLineNum = 36;BA.debugLine="TempFolder = File.DirInternal";
_tempfolder = anywheresoftware.b4a.keywords.Common.File.getDirInternal();
};

View File

@@ -159,7 +159,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("323724033","-- AppUpdating.NewInst2: processing MyAppReload",0);};
anywheresoftware.b4a.keywords.Common.LogImpl("312189697","-- 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\")";
@@ -182,7 +182,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("323461889","---- AppUpdating.newinst2: service created",_logcolor1);
anywheresoftware.b4a.keywords.Common.LogImpl("311927553","---- AppUpdating.newinst2: service created",_logcolor1);
//BA.debugLineNum = 15;BA.debugLine="pkg = \"\"";
_pkg = "";
//BA.debugLineNum = 16;BA.debugLine="svcVerbose = False";
@@ -198,28 +198,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("323527425","---- AppUpdating.newinst2: service_started",_logcolor1);
anywheresoftware.b4a.keywords.Common.LogImpl("311993089","---- 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("323527427",(""+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("311993091",(""+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("323527428",(""+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("311993092",(""+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("323527429",(""+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("311993093",(""+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("323527430",(""+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("311993094",(""+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("323527433",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"Intent MY_PACKAGE_REPLACED received!"),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("311993097",(""+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("323527435",(""+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("311993099",(""+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

@@ -48,7 +48,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 929;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla";
mostCurrent._starter._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 = 930;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
anywheresoftware.b4a.keywords.Common.LogImpl("313434886",("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("348824326",("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 e9) {
@@ -56,11 +56,11 @@ anywheresoftware.b4a.keywords.Common.LogImpl("313434886",("Columna \""+anywheres
try { //BA.debugLineNum = 934;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla";
mostCurrent._starter._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 = 935;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
anywheresoftware.b4a.keywords.Common.LogImpl("313434891",("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("348824331",("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 e13) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e13); //BA.debugLineNum = 937;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("313434893",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("348824333",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
};
};
//BA.debugLineNum = 940;BA.debugLine="End Sub";
@@ -72,7 +72,7 @@ public static String _borraarribade100errores(anywheresoftware.b4a.BA _ba) thro
if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) {
_revisabd(_ba);};
//BA.debugLineNum = 416;BA.debugLine="LogColor(\"Recortamos la tabla de Errores, limite";
anywheresoftware.b4a.keywords.Common.LogImpl("311337730","Recortamos la tabla de Errores, limite de 100",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("346727170","Recortamos la tabla de Errores, limite de 100",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 417;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 = 418;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")";
@@ -86,7 +86,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
//BA.debugLineNum = 424;BA.debugLine="revisaBD";
_revisabd(_ba);
//BA.debugLineNum = 425;BA.debugLine="LogColor(\"Recortamos la tabla de la Bitacora, lim";
anywheresoftware.b4a.keywords.Common.LogImpl("311403266","Recortamos la tabla de la Bitacora, limite de 600",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("346792706","Recortamos la tabla de la Bitacora, limite de 600",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 426;BA.debugLine="Private c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
//BA.debugLineNum = 427;BA.debugLine="c = kmt.ExecQuery(\"select fecha from bitacora\")";
@@ -108,7 +108,7 @@ return "";
public static String _borralogdb(anywheresoftware.b4a.BA _ba) throws Exception{
//BA.debugLineNum = 302;BA.debugLine="Sub borraLogDB 'ignore";
//BA.debugLineNum = 303;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)";
anywheresoftware.b4a.keywords.Common.LogImpl("311010049","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("346399489","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 304;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")";
_kmt.ExecNonQuery("delete from bitacora");
//BA.debugLineNum = 305;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")";
@@ -172,7 +172,7 @@ _compressed = _gzip.compress(_str);
//BA.debugLineNum = 44;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed";
_base64 = _su.EncodeBase64(_compressed);
//BA.debugLineNum = 45;BA.debugLine="Log($\"Comprimido: ${base64.Length}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("39633798",("Comprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("345023238",("Comprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0);
//BA.debugLineNum = 47;BA.debugLine="Return base64";
if (true) return _base64;
//BA.debugLineNum = 48;BA.debugLine="End Sub";
@@ -217,11 +217,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 = 534;BA.debugLine="Log(\"rootExternal=\"&p)";
anywheresoftware.b4a.keywords.Common.LogImpl("311730967","rootExternal="+_p,0);
anywheresoftware.b4a.keywords.Common.LogImpl("347120407","rootExternal="+_p,0);
//BA.debugLineNum = 535;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
anywheresoftware.b4a.keywords.Common.LogImpl("311730968","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("347120408","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
//BA.debugLineNum = 536;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)";
anywheresoftware.b4a.keywords.Common.LogImpl("311730969","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("347120409","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0);
}else {
//BA.debugLineNum = 538;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)";
anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),anywheresoftware.b4a.keywords.Common.False);
@@ -239,7 +239,7 @@ anywheresoftware.b4a.objects.collections.Map _m = null;
anywheresoftware.b4a.objects.collections.Map _m2 = null;
//BA.debugLineNum = 448;BA.debugLine="Sub dameErroresJSON(SQL As SQL, maxErrores As Int,";
//BA.debugLineNum = 449;BA.debugLine="Log(\"dameErroresJSON\")";
anywheresoftware.b4a.keywords.Common.LogImpl("311534337","dameErroresJSON",0);
anywheresoftware.b4a.keywords.Common.LogImpl("346923777","dameErroresJSON",0);
//BA.debugLineNum = 450;BA.debugLine="Private j As JSONGenerator";
_j = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator();
//BA.debugLineNum = 451;BA.debugLine="Private lim As String";
@@ -283,7 +283,7 @@ _cur.Close();
//BA.debugLineNum = 468;BA.debugLine="j.Initialize(m2)";
_j.Initialize(_m2);
//BA.debugLineNum = 469;BA.debugLine="Log(j.ToString)";
anywheresoftware.b4a.keywords.Common.LogImpl("311534357",_j.ToString(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("346923797",_j.ToString(),0);
//BA.debugLineNum = 470;BA.debugLine="If comprimido Then";
if (_comprimido) {
//BA.debugLineNum = 471;BA.debugLine="Return compress(j.ToString)";
@@ -315,7 +315,7 @@ _fechainicio = _fechainiciohoy(_ba);
};
//BA.debugLineNum = 153;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"fechaInicio";
if (mostCurrent._b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("310158091","fechaInicio: "+_fechainicio+" | rutaHrsAtras="+BA.NumberToString(_rutahrsatras),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("345547531","fechaInicio: "+_fechainicio+" | rutaHrsAtras="+BA.NumberToString(_rutahrsatras),0);};
//BA.debugLineNum = 154;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
//BA.debugLineNum = 155;BA.debugLine="If kmt.IsInitialized = False Then kmt.Initialize(";
@@ -323,7 +323,7 @@ if (_kmt.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) {
_kmt.Initialize(mostCurrent._starter._ruta /*String*/ ,"kmt.db",anywheresoftware.b4a.keywords.Common.True);};
//BA.debugLineNum = 156;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"select FECH";
if (mostCurrent._b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("310158094","select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("345547534","select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints),0);};
//BA.debugLineNum = 157;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 = 158;BA.debugLine="c.Position = 0";
@@ -391,7 +391,7 @@ _bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter();
//BA.debugLineNum = 55;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d";
_uncompressed = _bc.StringFromBytes(_decompressedbytes,"UTF8");
//BA.debugLineNum = 56;BA.debugLine="Log($\"Descomprimido: ${uncompressed.Length}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("39699333",("Descomprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("345088773",("Descomprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0);
//BA.debugLineNum = 58;BA.debugLine="Return uncompressed";
if (true) return _uncompressed;
//BA.debugLineNum = 59;BA.debugLine="End Sub";
@@ -433,7 +433,7 @@ _h = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.key
//BA.debugLineNum = 265;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig";
anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
//BA.debugLineNum = 266;BA.debugLine="Log(\"Hoy=\"&h)";
anywheresoftware.b4a.keywords.Common.LogImpl("310747909","Hoy="+_h,0);
anywheresoftware.b4a.keywords.Common.LogImpl("346137349","Hoy="+_h,0);
//BA.debugLineNum = 267;BA.debugLine="Return h";
if (true) return _h;
//BA.debugLineNum = 268;BA.debugLine="End Sub";
@@ -483,16 +483,16 @@ anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat);
if (true) return _ticks;
}else {
//BA.debugLineNum = 491;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '";
anywheresoftware.b4a.keywords.Common.LogImpl("311599885","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0);
anywheresoftware.b4a.keywords.Common.LogImpl("346989325","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0);
//BA.debugLineNum = 492;BA.debugLine="Return 0";
if (true) return (long) (0);
};
}
catch (Exception e16) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16); //BA.debugLineNum = 495;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("311599889",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("346989329",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
//BA.debugLineNum = 496;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p";
anywheresoftware.b4a.keywords.Common.LogImpl("311599890",("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("346989330",("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 = 497;BA.debugLine="Return 0";
if (true) return (long) (0);
};
@@ -580,7 +580,7 @@ String[] _latlon = null;
//BA.debugLineNum = 128;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore";
//BA.debugLineNum = 129;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Guardamos u";
if (mostCurrent._b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("310092545","Guardamos ubicacion en BD - "+_coords,0);};
anywheresoftware.b4a.keywords.Common.LogImpl("345481985","Guardamos ubicacion en BD - "+_coords,0);};
//BA.debugLineNum = 130;BA.debugLine="Try";
try { //BA.debugLineNum = 131;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord";
_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",_coords);
@@ -595,7 +595,7 @@ _kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywhe
}
catch (Exception e8) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e8); //BA.debugLineNum = 137;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("310092553",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("345481993",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
};
//BA.debugLineNum = 139;BA.debugLine="End Sub";
return "";
@@ -634,7 +634,7 @@ int _x = 0;
if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) {
_revisabd(_ba);};
//BA.debugLineNum = 440;BA.debugLine="Log(\"insertamos 50 renglones a errorLog\")";
anywheresoftware.b4a.keywords.Common.LogImpl("311468802","insertamos 50 renglones a errorLog",0);
anywheresoftware.b4a.keywords.Common.LogImpl("346858242","insertamos 50 renglones a errorLog",0);
//BA.debugLineNum = 441;BA.debugLine="For x = 1 To 50";
{
final int step3 = 1;
@@ -644,7 +644,7 @@ for (;_x <= limit3 ;_x = _x + step3 ) {
//BA.debugLineNum = 442;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 = 443;BA.debugLine="Log(x)";
anywheresoftware.b4a.keywords.Common.LogImpl("311468805",BA.NumberToString(_x),0);
anywheresoftware.b4a.keywords.Common.LogImpl("346858245",BA.NumberToString(_x),0);
}
};
//BA.debugLineNum = 445;BA.debugLine="End Sub";
@@ -681,7 +681,7 @@ if (true) return _json.NextObject();
}
catch (Exception e6) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e6); //BA.debugLineNum = 224;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("310551303",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("345940743",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
//BA.debugLineNum = 225;BA.debugLine="log2DB(\"JSON2Map: \"&LastException)";
_log2db(_ba,"JSON2Map: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)));
//BA.debugLineNum = 226;BA.debugLine="Private m As Map = CreateMap(\"title\":\"Error gene";
@@ -696,7 +696,7 @@ return null;
public static String _log2db(anywheresoftware.b4a.BA _ba,String _texto) throws Exception{
//BA.debugLineNum = 271;BA.debugLine="Sub log2DB(texto As String) 'ignore";
//BA.debugLineNum = 272;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te";
anywheresoftware.b4a.keywords.Common.LogImpl("310813441",_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))+" - log2BD: '"+_texto+"'",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("346202881",_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))+" - log2BD: '"+_texto+"'",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 273;BA.debugLine="If kmt.IsInitialized Then kmt.ExecNonQuery2(\"INSE";
if (_kmt.IsInitialized()) {
_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)}));};
@@ -750,7 +750,7 @@ if (true) return anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e8) {
(_ba.processBA == null ? _ba : _ba.processBA).setLastException(e8); //BA.debugLineNum = 297;BA.debugLine="Log(LastException)";
anywheresoftware.b4a.keywords.Common.LogImpl("310944523",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("346333963",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0);
};
//BA.debugLineNum = 299;BA.debugLine="End Sub";
return false;
@@ -776,7 +776,7 @@ _notif.setSound(anywheresoftware.b4a.keywords.Common.False);
//BA.debugLineNum = 90;BA.debugLine="notif.AutoCancel = True";
_notif.setAutoCancel(anywheresoftware.b4a.keywords.Common.True);
//BA.debugLineNum = 91;BA.debugLine="Log(\"notiHigh: \"&title)";
anywheresoftware.b4a.keywords.Common.LogImpl("39895943","notiHigh: "+_title,0);
anywheresoftware.b4a.keywords.Common.LogImpl("345285383","notiHigh: "+_title,0);
//BA.debugLineNum = 92;BA.debugLine="notif.SetInfo(title, body, activity)";
_notif.SetInfoNew((_ba.processBA == null ? _ba : _ba.processBA),BA.ObjectToCharSequence(_title),BA.ObjectToCharSequence(_body),_activity);
//BA.debugLineNum = 94;BA.debugLine="notif.Notify(777)";
@@ -792,7 +792,7 @@ _notification = new anywheresoftware.b4a.objects.NotificationWrapper();
//BA.debugLineNum = 100;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_";
_notification.Initialize2(_notification.IMPORTANCE_LOW);
//BA.debugLineNum = 101;BA.debugLine="Log(\"notiLowReturn: \"&title)";
anywheresoftware.b4a.keywords.Common.LogImpl("39961475","notiLowReturn: "+_title,0);
anywheresoftware.b4a.keywords.Common.LogImpl("345350915","notiLowReturn: "+_title,0);
//BA.debugLineNum = 102;BA.debugLine="notification.Icon = \"icon\"";
_notification.setIcon("icon");
//BA.debugLineNum = 103;BA.debugLine="notification.Sound = False";
@@ -849,7 +849,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _chv = null;
String _precio = "";
//BA.debugLineNum = 782;BA.debugLine="Sub prodRechazo(clienteOriginal As String, prodId";
//BA.debugLineNum = 783;BA.debugLine="Log(\"RECHAZO DEVOLUCION\")";
anywheresoftware.b4a.keywords.Common.LogImpl("313041665","RECHAZO DEVOLUCION",0);
anywheresoftware.b4a.keywords.Common.LogImpl("348431105","RECHAZO DEVOLUCION",0);
//BA.debugLineNum = 784;BA.debugLine="Private rr As Cursor = Starter.skmt.ExecQuery($\"s";
_rr = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_rr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and REP_CLIENTE in (Select CUENTA from cuentaa)"))));
@@ -858,7 +858,7 @@ _rr.setPosition((int) (0));
//BA.debugLineNum = 786;BA.debugLine="If rr.GetString(\"hayRechazo\") = 0 Then";
if ((_rr.GetString("hayRechazo")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 787;BA.debugLine="Log(\"INSERTAMOS EN REPARTO\")";
anywheresoftware.b4a.keywords.Common.LogImpl("313041669","INSERTAMOS EN REPARTO",0);
anywheresoftware.b4a.keywords.Common.LogImpl("348431109","INSERTAMOS EN REPARTO",0);
//BA.debugLineNum = 789;BA.debugLine="Private chv As Cursor = Starter.skmt.ExecQuery($";
_chv = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_chv = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from hist_ventas where hvd_cliente in (select cuenta from cuentaa) and hvd_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"))));
@@ -877,7 +877,7 @@ mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("upda
};
}else {
//BA.debugLineNum = 800;BA.debugLine="Log($\"ACTUALIZAMOS REPARTO\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("313041682",("ACTUALIZAMOS REPARTO"),0);
anywheresoftware.b4a.keywords.Common.LogImpl("348431122",("ACTUALIZAMOS REPARTO"),0);
//BA.debugLineNum = 801;BA.debugLine="Private precio As String = traePrecio(prodId, tr";
_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba));
//BA.debugLineNum = 802;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update HIST_VENTAS s";
@@ -902,9 +902,9 @@ mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("upda
//BA.debugLineNum = 755;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE";
mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"));
//BA.debugLineNum = 756;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT - 1";
anywheresoftware.b4a.keywords.Common.LogImpl("312976133",("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0);
anywheresoftware.b4a.keywords.Common.LogImpl("348365573",("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0);
//BA.debugLineNum = 757;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT + 1";
anywheresoftware.b4a.keywords.Common.LogImpl("312976134",("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0);
anywheresoftware.b4a.keywords.Common.LogImpl("348365574",("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0);
//BA.debugLineNum = 758;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE";
mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_COSTO_TOT = REP_CANT * "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+", REP_PRECIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+"' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"));
//BA.debugLineNum = 779;BA.debugLine="End Sub";
@@ -936,7 +936,7 @@ public static String _revisaflp(anywheresoftware.b4a.BA _ba) throws Exception{
boolean _todobienflp = false;
//BA.debugLineNum = 345;BA.debugLine="Sub revisaFLP 'ignore";
//BA.debugLineNum = 346;BA.debugLine="LogColor($\"**** **** Revisamos FLP - ${fechaKMT(D";
anywheresoftware.b4a.keywords.Common.LogImpl("311206657",("**** **** Revisamos FLP - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))))+"**** ****"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
anywheresoftware.b4a.keywords.Common.LogImpl("346596097",("**** **** Revisamos FLP - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))))+"**** ****"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
//BA.debugLineNum = 347;BA.debugLine="Private todoBienFLP As Boolean = True";
_todobienflp = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 348;BA.debugLine="If Not(Tracker.FLP.IsInitialized) Then";
@@ -971,7 +971,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
};
//BA.debugLineNum = 368;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin errore";
if (_todobienflp) {
anywheresoftware.b4a.keywords.Common.LogImpl("311206679"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
anywheresoftware.b4a.keywords.Common.LogImpl("346596119"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
//BA.debugLineNum = 370;BA.debugLine="End Sub";
return "";
}
@@ -991,14 +991,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 = 335;BA.debugLine="If B4XPages.MainPage.Logger Then LogColor($\"****";
if (mostCurrent._b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("311141124",("**** 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("346530564",("**** 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 = 336;BA.debugLine="If daa > 40 And Tracker.FLP.GetLastKnownLocation";
if (_daa>40 && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()<35) {
//BA.debugLineNum = 337;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 = 338;BA.debugLine="If B4XPages.MainPage.Logger Then Log(\"++++ Dist";
if (mostCurrent._b4xpages._mainpage /*reparto_mazapa.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("311141127","++++ 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("346530567","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()),0);};
};
//BA.debugLineNum = 340;BA.debugLine="Tracker.UUGCoords = Tracker.FLP.GetLastKnownLoca";
mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ = mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation();
@@ -1063,7 +1063,7 @@ _cr.setPosition((int) (0));
_cant = (int)(Double.parseDouble(_cr.GetString("REP_CANT")));
};
//BA.debugLineNum = 722;BA.debugLine="Log($\"${cliente}, ${prodId}, rowcont:${cr.RowCoun";
anywheresoftware.b4a.keywords.Common.LogImpl("312779527",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", rowcont:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cr.getRowCount()))+", cant: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("348168967",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", rowcont:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cr.getRowCount()))+", cant: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+""),0);
//BA.debugLineNum = 723;BA.debugLine="Return cant";
if (true) return _cant;
//BA.debugLineNum = 724;BA.debugLine="End Sub";
@@ -1143,7 +1143,7 @@ _monto = (float) (_monto+((double)(Double.parseDouble(_ccym.GetString("REP_CANT"
}
};
//BA.debugLineNum = 863;BA.debugLine="Log($\"CANT=${cant}, MONTO=${monto}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("313172760",("CANT="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", MONTO="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_monto))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("348562200",("CANT="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", MONTO="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_monto))+""),0);
};
//BA.debugLineNum = 866;BA.debugLine="ccym.Close";
_ccym.Close();
@@ -1257,7 +1257,7 @@ _fecha2 = anywheresoftware.b4a.keywords.Common.Regex.Split("-",_fecha[(int) (0)]
//BA.debugLineNum = 988;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\"";
_fecha3 = _fecha2[(int) (2)]+"/"+_fecha2[(int) (1)]+"/"+_fecha2[(int) (0)];
//BA.debugLineNum = 989;BA.debugLine="Log(fecha3)";
anywheresoftware.b4a.keywords.Common.LogImpl("313697035",_fecha3,0);
anywheresoftware.b4a.keywords.Common.LogImpl("349086475",_fecha3,0);
//BA.debugLineNum = 990;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
_hora = anywheresoftware.b4a.keywords.Common.Regex.Split("\\.",_fecha[(int) (1)]);
//BA.debugLineNum = 991;BA.debugLine="a = fecha3 & \" \" & hora(0)";
@@ -1276,7 +1276,7 @@ _fecha2 = anywheresoftware.b4a.keywords.Common.Regex.Split("-",_fecha[(int) (0)]
//BA.debugLineNum = 998;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\"";
_fecha3 = _fecha2[(int) (2)]+"/"+_fecha2[(int) (1)]+"/"+_fecha2[(int) (0)];
//BA.debugLineNum = 999;BA.debugLine="Log(fecha3)";
anywheresoftware.b4a.keywords.Common.LogImpl("313697045",_fecha3,0);
anywheresoftware.b4a.keywords.Common.LogImpl("349086485",_fecha3,0);
//BA.debugLineNum = 1000;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1";
_hora = anywheresoftware.b4a.keywords.Common.Regex.Split("\\.",_fecha[(int) (1)]);
//BA.debugLineNum = 1001;BA.debugLine="a = fecha3 & \" \" & hora(0)";