v6.02.013

This commit is contained in:
cvaldes1201
2026-03-02 10:21:05 -06:00
parent efc76af182
commit 531ce7d7ee
283 changed files with 9528 additions and 9390 deletions

View File

@@ -264,7 +264,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 162;BA.debugLine="Log(\"Descargando actualización\")";
anywheresoftware.b4a.keywords.Common.LogImpl("369926915","Descargando actualización",0);
anywheresoftware.b4a.keywords.Common.LogImpl("469992451","Descargando actualización",0);
//BA.debugLineNum = 164;BA.debugLine="Starter.muestraProgreso = 1";
parent.mostCurrent._starter._muestraprogreso /*String*/ = BA.NumberToString(1);
//BA.debugLineNum = 165;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Descargando nu";
@@ -292,7 +292,7 @@ case 6:
this.state = 7;
;
//BA.debugLineNum = 168;BA.debugLine="Log(\">>>> LOGIN LINK2: \" & Starter.nuevoLink)";
anywheresoftware.b4a.keywords.Common.LogImpl("369926921",">>>> LOGIN LINK2: "+parent.mostCurrent._starter._nuevolink /*String*/ ,0);
anywheresoftware.b4a.keywords.Common.LogImpl("469992457",">>>> LOGIN LINK2: "+parent.mostCurrent._starter._nuevolink /*String*/ ,0);
//BA.debugLineNum = 169;BA.debugLine="If Starter.nuevoLink <> \"\" Then newApp.appLink =";
if (true) break;
@@ -316,11 +316,11 @@ this.state = 13;
//BA.debugLineNum = 170;BA.debugLine="job_newAPP.Initialize(\"job_newAPP\",Me)";
_job_newapp._initialize /*String*/ (processBA,"job_newAPP",appupdater.getObject());
//BA.debugLineNum = 171;BA.debugLine="Log(newApp.appLink & \"?dummy=\" & DateTime.Now)";
anywheresoftware.b4a.keywords.Common.LogImpl("369926924",parent._newapp.appLink /*String*/ +"?dummy="+BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()),0);
anywheresoftware.b4a.keywords.Common.LogImpl("469992460",parent._newapp.appLink /*String*/ +"?dummy="+BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()),0);
//BA.debugLineNum = 172;BA.debugLine="job_newAPP.Download(newApp.appLink & \"?dummy=\" &";
_job_newapp._download /*String*/ (parent._newapp.appLink /*String*/ +"?dummy="+BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()));
//BA.debugLineNum = 173;BA.debugLine="Log(\"Vamos a descargar: \" & newApp.appLink & \"?du";
anywheresoftware.b4a.keywords.Common.LogImpl("369926926","Vamos a descargar: "+parent._newapp.appLink /*String*/ +"?dummy="+BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()),0);
anywheresoftware.b4a.keywords.Common.LogImpl("469992462","Vamos a descargar: "+parent._newapp.appLink /*String*/ +"?dummy="+BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()),0);
//BA.debugLineNum = 174;BA.debugLine="Wait for (job_newAPP) JobDone (job_newAPP As Http";
anywheresoftware.b4a.keywords.Common.WaitFor("jobdone", processBA, this, (Object)(_job_newapp));
this.state = 27;
@@ -376,7 +376,7 @@ anywheresoftware.b4a.keywords.Common.File.Copy2((java.io.InputStream)(_job_newap
//BA.debugLineNum = 186;BA.debugLine="outNewAPK.Close";
_outnewapk.Close();
//BA.debugLineNum = 187;BA.debugLine="Log(\"APK dir: \"&SharedFolder)";
anywheresoftware.b4a.keywords.Common.LogImpl("369926940","APK dir: "+parent._sharedfolder,0);
anywheresoftware.b4a.keywords.Common.LogImpl("469992476","APK dir: "+parent._sharedfolder,0);
if (true) break;
case 20:
@@ -424,7 +424,7 @@ parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (pro
//BA.debugLineNum = 202;BA.debugLine="B4XPages.MainPage.principal.l_forzarActualizacio";
parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._principal /*gunav2.keymon.com.mx.c_principal*/ ._l_forzaractualizacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Hubo un error en la descarga, por favor revise que tenga conexion a internet e intente de nuevo."));
//BA.debugLineNum = 203;BA.debugLine="Log(\"ERROR EN CONEXION\")";
anywheresoftware.b4a.keywords.Common.LogImpl("369926956","ERROR EN CONEXION",0);
anywheresoftware.b4a.keywords.Common.LogImpl("469992492","ERROR EN CONEXION",0);
//BA.debugLineNum = 204;BA.debugLine="Sleep(5000)";
anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (5000));
this.state = 28;
@@ -486,7 +486,7 @@ _usefileprovider = anywheresoftware.b4a.keywords.Common.False;
_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
};
//BA.debugLineNum = 269;BA.debugLine="Log($\"Using FileProvider? ${UseFileProvider}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("370320140",("Using FileProvider? "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("470385676",("Using FileProvider? "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0);
//BA.debugLineNum = 270;BA.debugLine="End Sub";
return "";
}
@@ -521,7 +521,7 @@ if (true) return _fp.RunMethod("getUriForFile",new Object[]{(Object)(_context.ge
}
catch (Exception e14) {
processBA.setLastException(e14); //BA.debugLineNum = 287;BA.debugLine="Log(\"FileProvider::GetFileUri - error - \" & Last";
anywheresoftware.b4a.keywords.Common.LogImpl("370385678","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("470451214","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
//BA.debugLineNum = 288;BA.debugLine="Return \"\"";
if (true) return (Object)("");
};
@@ -558,7 +558,7 @@ return "";
public static String _service_create() throws Exception{
//BA.debugLineNum = 104;BA.debugLine="Sub Service_Create";
//BA.debugLineNum = 105;BA.debugLine="Log(\"appUpdater(), Service_Create\")";
anywheresoftware.b4a.keywords.Common.LogImpl("369730305","appUpdater(), Service_Create",0);
anywheresoftware.b4a.keywords.Common.LogImpl("469795841","appUpdater(), Service_Create",0);
//BA.debugLineNum = 106;BA.debugLine="newApp.Initialize";
_newapp.Initialize();
//BA.debugLineNum = 107;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT";
@@ -573,7 +573,7 @@ return "";
public static String _service_destroy() throws Exception{
//BA.debugLineNum = 253;BA.debugLine="Sub Service_Destroy";
//BA.debugLineNum = 254;BA.debugLine="Log(\"appUpdater(), Service_Destroy\")";
anywheresoftware.b4a.keywords.Common.LogImpl("370254593","appUpdater(), Service_Destroy",0);
anywheresoftware.b4a.keywords.Common.LogImpl("470320129","appUpdater(), Service_Destroy",0);
//BA.debugLineNum = 255;BA.debugLine="End Sub";
return "";
}
@@ -605,11 +605,11 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 113;BA.debugLine="Log(\"appUpdater(), Service_Start\")";
anywheresoftware.b4a.keywords.Common.LogImpl("369795841","appUpdater(), Service_Start",0);
anywheresoftware.b4a.keywords.Common.LogImpl("469861377","appUpdater(), Service_Start",0);
//BA.debugLineNum = 115;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Buscando actua";
parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Buscando actualizaciones, un momento por favor.");
//BA.debugLineNum = 116;BA.debugLine="Log(\"Buscando actualización\")";
anywheresoftware.b4a.keywords.Common.LogImpl("369795844","Buscando actualización",0);
anywheresoftware.b4a.keywords.Common.LogImpl("469861380","Buscando actualización",0);
//BA.debugLineNum = 117;BA.debugLine="fileProvider_init";
_fileprovider_init();
//BA.debugLineNum = 118;BA.debugLine="Wait For (Download(Me, lnk)) JobDone (j As HttpJo";
@@ -661,7 +661,7 @@ parent._newapp.okMsg /*String*/ = _app[(int) (2)];
//BA.debugLineNum = 126;BA.debugLine="newApp.version = app(0) 'Version actual";
parent._newapp.version /*String*/ = _app[(int) (0)];
//BA.debugLineNum = 128;BA.debugLine="Log($\"Application.VersionName=${Application.Ver";
anywheresoftware.b4a.keywords.Common.LogImpl("369795856",("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("469861392",("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 = 131;BA.debugLine="If newApp.version = Application.VersionName Th";
if (true) break;
@@ -678,7 +678,7 @@ this.state = 10;
//BA.debugLineNum = 132;BA.debugLine="newApp.update = False";
parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.False;
//BA.debugLineNum = 133;BA.debugLine="Log(\"No new app\")";
anywheresoftware.b4a.keywords.Common.LogImpl("369795861","No new app",0);
anywheresoftware.b4a.keywords.Common.LogImpl("469861397","No new app",0);
//BA.debugLineNum = 134;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable");
if (true) break;
@@ -698,7 +698,7 @@ this.state = 13;
//BA.debugLineNum = 139;BA.debugLine="newApp.update = True";
parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 140;BA.debugLine="Log(\"New app true\")";
anywheresoftware.b4a.keywords.Common.LogImpl("369795868","New app true",0);
anywheresoftware.b4a.keywords.Common.LogImpl("469861404","New app true",0);
//BA.debugLineNum = 141;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable");
if (true) break;
@@ -714,7 +714,7 @@ case 15:
this.state = 16;
this.catchState = 0;
//BA.debugLineNum = 146;BA.debugLine="Log(\"appUpdater(), Job Failed, error \" & LastE";
anywheresoftware.b4a.keywords.Common.LogImpl("369795874","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
anywheresoftware.b4a.keywords.Common.LogImpl("469861410","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0);
if (true) break;
if (true) break;
@@ -729,7 +729,7 @@ case 18:
//C
this.state = 19;
//BA.debugLineNum = 149;BA.debugLine="Log(\"appUpdater(), Job Failed \" & lnk)";
anywheresoftware.b4a.keywords.Common.LogImpl("369795877","appUpdater(), Job Failed "+parent._lnk,0);
anywheresoftware.b4a.keywords.Common.LogImpl("469861413","appUpdater(), Job Failed "+parent._lnk,0);
if (true) break;
case 19:

View File

@@ -177,7 +177,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("933423362","Index too large",0);};
__c.LogImpl("94849666","Index too large",0);};
//BA.debugLineNum = 46;BA.debugLine="Append(Data)";
_append(_data);
}else {
@@ -219,7 +219,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("933488898","Index too large",0);};
__c.LogImpl("94915202","Index too large",0);};
//BA.debugLineNum = 59;BA.debugLine="Append(Data)";
_append(_data);
}else {

View File

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

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

File diff suppressed because it is too large Load Diff

View File

@@ -197,7 +197,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("938141955",("Page with this id already exists: "+__c.SmartStringFormatter("",(Object)(_idtolower))+"!"),0);
__c.LogImpl("99568259",("Page with this id already exists: "+__c.SmartStringFormatter("",(Object)(_idtolower))+"!"),0);
//BA.debugLineNum = 145;BA.debugLine="Return";
if (true) return "";
};
@@ -312,7 +312,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("938010901","#SupportedOrientations attribute must be set to landscape or portrait.",_xui.Color_Red);
__c.LogImpl("99437205","#SupportedOrientations attribute must be set to landscape or portrait.",_xui.Color_Red);
};
};
}
@@ -369,12 +369,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("938404100","Only top page can be closed",0);
__c.LogImpl("99830404","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("938404103","First page cannot be closed",0);
__c.LogImpl("99830407","First page cannot be closed",0);
//BA.debugLineNum = 217;BA.debugLine="Return";
if (true) return "";
};
@@ -589,9 +589,9 @@ _pi = (gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo)(_idtob4xpage._get /*Ob
//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("939059459","Error: page id not found: "+_id,0);
__c.LogImpl("910485763","Error: page id not found: "+_id,0);
//BA.debugLineNum = 402;BA.debugLine="Log(\"Ids: \" & IdToB4XPage.Keys) 'ignore";
__c.LogImpl("939059460","Ids: "+BA.ObjectToString(_idtob4xpage._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ()),0);
__c.LogImpl("910485764","Ids: "+BA.ObjectToString(_idtob4xpage._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ()),0);
};
//BA.debugLineNum = 404;BA.debugLine="Return pi";
if (true) return _pi;
@@ -726,7 +726,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("937945371","Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.",0);
__c.LogImpl("99371675","Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.",0);
};
//BA.debugLineNum = 88;BA.debugLine="If NonMainPageWasAdded Then";
if (_nonmainpagewasadded) {
@@ -747,7 +747,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("940173571",_msg,0);
__c.LogImpl("911599875",_msg,0);
};
//BA.debugLineNum = 645;BA.debugLine="End Sub";
return "";
@@ -799,7 +799,7 @@ __c.CallSubDelayed3(ba,_targetpage.B4XPage /*Object*/ ,_subname,_params[(int) (0
break; }
default: {
//BA.debugLineNum = 562;BA.debugLine="Log(\"Too many parameters\")";
__c.LogImpl("939649294","Too many parameters",0);
__c.LogImpl("911075598","Too many parameters",0);
break; }
}
;
@@ -840,7 +840,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("939714830","Too many parameters",0);
__c.LogImpl("911141134","Too many parameters",0);
break; }
}
;

View File

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

@@ -66,7 +66,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 201;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 202;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("369468166",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
__c.LogImpl("469533702",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
};
}
catch (Exception e9) {
@@ -74,14 +74,14 @@ __c.LogImpl("369468166",("Columna \""+__c.SmartStringFormatter("",(Object)(_colu
try { //BA.debugLineNum = 207;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 208;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("369468172",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
__c.LogImpl("469533708",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
}
catch (Exception e13) {
ba.setLastException(e13); //BA.debugLineNum = 210;BA.debugLine="Log(LastException)";
__c.LogImpl("369468174",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("469533710",BA.ObjectToString(__c.LastException(ba)),0);
};
//BA.debugLineNum = 212;BA.debugLine="Log(2)";
__c.LogImpl("369468176",BA.NumberToString(2),0);
__c.LogImpl("469533712",BA.NumberToString(2),0);
};
//BA.debugLineNum = 214;BA.debugLine="End Sub";
return "";
@@ -96,7 +96,7 @@ _inivenno = __c.False;
if (_dentrodegeocerca) {
_precision = (int) (1);};
//BA.debugLineNum = 135;BA.debugLine="LogColor($\">>>>>>>>>>>> EN VENTA : ${enVenta}";
__c.LogImpl("369206023",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
__c.LogImpl("469271559",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
//BA.debugLineNum = 136;BA.debugLine="motivoNoVenta = \"\"";
_motivonoventa = "";
//BA.debugLineNum = 137;BA.debugLine="motivoNoVisita = \"\"";
@@ -110,7 +110,7 @@ _mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.
//BA.debugLineNum = 141;BA.debugLine="enVenta = False";
_enventa = __c.False;
//BA.debugLineNum = 142;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Colors";
__c.LogImpl("369206030",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
__c.LogImpl("469271566",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
//BA.debugLineNum = 143;BA.debugLine="iniciamosVenta";
_iniciamosventa();
//BA.debugLineNum = 144;BA.debugLine="B4XPages.ShowPageAndRemovePreviousPages(\"Princip";
@@ -131,7 +131,7 @@ _mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.
//BA.debugLineNum = 153;BA.debugLine="enVenta = True";
_enventa = __c.True;
//BA.debugLineNum = 154;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color";
__c.LogImpl("369206042",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
__c.LogImpl("469271578",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
}else if(_contadoriniciarventa==1 && _inivenno==__c.False && (_motivonoventa).equals("NO VENTA")) {
//BA.debugLineNum = 157;BA.debugLine="IniVenNO = True";
_inivenno = __c.True;
@@ -140,7 +140,7 @@ _mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.
//BA.debugLineNum = 159;BA.debugLine="enVenta = True";
_enventa = __c.True;
//BA.debugLineNum = 160;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color";
__c.LogImpl("369206048",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
__c.LogImpl("469271584",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red);
}else if(_contadoriniciarventa>1) {
//BA.debugLineNum = 162;BA.debugLine="p_transparenteInicioFin2.Visible = False";
_p_transparenteiniciofin2.setVisible(__c.False);
@@ -149,7 +149,7 @@ _p_transparenteiniciofin2.setVisible(__c.False);
//BA.debugLineNum = 165;BA.debugLine="p_transparenteInicioFin2.Visible = False";
_p_transparenteiniciofin2.setVisible(__c.False);
//BA.debugLineNum = 166;BA.debugLine="LogColor($\">>>>>>>>>>>> EN VENTA : ${enVenta}";
__c.LogImpl("369206054",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
__c.LogImpl("469271590",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
//BA.debugLineNum = 167;BA.debugLine="End Sub";
return "";
}
@@ -170,11 +170,11 @@ return "";
public String _cargamospanel() throws Exception{
//BA.debugLineNum = 170;BA.debugLine="private Sub cargamosPanel";
//BA.debugLineNum = 171;BA.debugLine="Log(p_transparenteInicioFin2.IsInitialized)";
__c.LogImpl("369271553",BA.ObjectToString(_p_transparenteiniciofin2.IsInitialized()),0);
__c.LogImpl("469337089",BA.ObjectToString(_p_transparenteiniciofin2.IsInitialized()),0);
//BA.debugLineNum = 173;BA.debugLine="If Not(p_transparenteInicioFin2.IsInitialized) Th";
if (__c.Not(_p_transparenteiniciofin2.IsInitialized())) {
//BA.debugLineNum = 174;BA.debugLine="LogColor(\">>>>>>> CARGAMOS PANEL BITACORA\", Co";
__c.LogImpl("369271556",">>>>>>> CARGAMOS PANEL BITACORA",__c.Colors.Red);
__c.LogImpl("469337092",">>>>>>> CARGAMOS PANEL BITACORA",__c.Colors.Red);
//BA.debugLineNum = 175;BA.debugLine="Root2.LoadLayout(\"inicioFinVenta\")";
_root2.LoadLayout("inicioFinVenta",ba);
//BA.debugLineNum = 176;BA.debugLine="p_transparenteInicioFin2.Width = Root2.Width";
@@ -238,9 +238,9 @@ return "";
public String _iniciofin() throws Exception{
//BA.debugLineNum = 112;BA.debugLine="Sub inicioFin";
//BA.debugLineNum = 113;BA.debugLine="LogColor($\">>>>>>>>>>>> XX EN VENTA : ${enVenta";
__c.LogImpl("369140481",(">>>>>>>>>>>> XX EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
__c.LogImpl("469206017",(">>>>>>>>>>>> XX EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue);
//BA.debugLineNum = 114;BA.debugLine="Log(b_Inicio_Fin_venta2.Text)";
__c.LogImpl("369140482",_b_inicio_fin_venta2.getText(),0);
__c.LogImpl("469206018",_b_inicio_fin_venta2.getText(),0);
//BA.debugLineNum = 115;BA.debugLine="If enVenta = False Then";
if (_enventa==__c.False) {
//BA.debugLineNum = 116;BA.debugLine="p_transparenteInicioFin2.BringToFront";
@@ -283,18 +283,18 @@ public String _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Exception{
gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null;
//BA.debugLineNum = 221;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 222;BA.debugLine="Log(\"JOBDONE BITACORA\")";
__c.LogImpl("369599233","JOBDONE BITACORA",0);
__c.LogImpl("469664769","JOBDONE BITACORA",0);
//BA.debugLineNum = 223;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) {
//BA.debugLineNum = 224;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo";
_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job);
//BA.debugLineNum = 225;BA.debugLine="Log($\"Tag: ${RESULT.tag}, success=${Job.Success}";
__c.LogImpl("369599236",("Tag: "+__c.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+__c.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0);
__c.LogImpl("469664772",("Tag: "+__c.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+__c.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0);
};
//BA.debugLineNum = 228;BA.debugLine="If Job.Success = False Then";
if (_job._success /*boolean*/ ==__c.False) {
//BA.debugLineNum = 230;BA.debugLine="LogColor(\"Error: \" & Job.ErrorMessage, Colors.re";
__c.LogImpl("369599241","Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
__c.LogImpl("469664777","Error: "+_job._errormessage /*String*/ ,__c.Colors.Red);
}else {
};
//BA.debugLineNum = 234;BA.debugLine="End Sub";
@@ -307,7 +307,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _e = null;
anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null;
//BA.debugLineNum = 37;BA.debugLine="Sub mandaBitacora(fechab As String, usuariob As St";
//BA.debugLineNum = 38;BA.debugLine="Log(motivoNoVisitab)";
__c.LogImpl("368943873",_motivonovisitab,0);
__c.LogImpl("469009409",_motivonovisitab,0);
//BA.debugLineNum = 40;BA.debugLine="Private cmd As DBCommand";
_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand();
//BA.debugLineNum = 41;BA.debugLine="cmd.Initialize";
@@ -350,7 +350,7 @@ if (_e.getRowCount()>0) {
//BA.debugLineNum = 59;BA.debugLine="e.Position = 0";
_e.setPosition((int) (0));
//BA.debugLineNum = 60;BA.debugLine="Log(\"ACTUALIZA BITACORA\")";
__c.LogImpl("368943895","ACTUALIZA BITACORA",0);
__c.LogImpl("469009431","ACTUALIZA BITACORA",0);
//BA.debugLineNum = 61;BA.debugLine="If eventob = \"Termina Venta\" Then";
if ((_eventob).equals("Termina Venta")) {
//BA.debugLineNum = 62;BA.debugLine="db.ExecNonQuery($\"update BITACORAGPS set finb";

File diff suppressed because it is too large Load Diff

View File

@@ -139,7 +139,7 @@ if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gun
//BA.debugLineNum = 95;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUESTIONARIO where Q_IDCLIENTE not in (select Q_IDCLIENTE from CUESTIONARIO where Q_IDPREGUNTA = '7')");
//BA.debugLineNum = 96;BA.debugLine="Log(\"Borramos encuestas incompletas\")";
__c.LogImpl("370975520","Borramos encuestas incompletas",0);
__c.LogImpl("471041056","Borramos encuestas incompletas",0);
};
//BA.debugLineNum = 98;BA.debugLine="entro = \"4\"";
_entro = "4";
@@ -449,17 +449,17 @@ __c.DateTime.setTimeFormat("HH:mm:ss");
//BA.debugLineNum = 144;BA.debugLine="If B4XPages.MainPage.cliente.bitacora.IsInitiali";
if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ .IsInitialized /*boolean*/ ()) {
//BA.debugLineNum = 145;BA.debugLine="Log(\"VAMOS A CLIENTE CON ENVENTA = FALSO\")";
__c.LogImpl("371041068","VAMOS A CLIENTE CON ENVENTA = FALSO",0);
__c.LogImpl("471106604","VAMOS A CLIENTE CON ENVENTA = FALSO",0);
//BA.debugLineNum = 146;BA.debugLine="B4XPages.MainPage.cliente.bitacora.iniciamosVen";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._iniciamosventa /*String*/ ();
//BA.debugLineNum = 147;BA.debugLine="Log(B4XPages.MainPage.cliente.bitacora.enVenta)";
__c.LogImpl("371041070",BA.ObjectToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._enventa /*boolean*/ ),0);
__c.LogImpl("471106606",BA.ObjectToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._enventa /*boolean*/ ),0);
};
//BA.debugLineNum = 149;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
};
//BA.debugLineNum = 154;BA.debugLine="Log(entro)";
__c.LogImpl("371041077",_entro,0);
__c.LogImpl("471106613",_entro,0);
//BA.debugLineNum = 155;BA.debugLine="End Sub";
return "";
}
@@ -471,7 +471,7 @@ return "";
public String _sc_noscan() throws Exception{
//BA.debugLineNum = 221;BA.debugLine="Sub sc_noScan";
//BA.debugLineNum = 222;BA.debugLine="Log(\"nothing returned from the scan !!!!!\")";
__c.LogImpl("371368705","nothing returned from the scan !!!!!",0);
__c.LogImpl("471434241","nothing returned from the scan !!!!!",0);
//BA.debugLineNum = 223;BA.debugLine="End Sub";
return "";
}

View File

@@ -64,7 +64,7 @@ if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) {
//BA.debugLineNum = 378;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 379;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("372548358",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
__c.LogImpl("472613894",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0);
};
}
catch (Exception e9) {
@@ -72,11 +72,11 @@ __c.LogImpl("372548358",("Columna \""+__c.SmartStringFormatter("",(Object)(_colu
try { //BA.debugLineNum = 383;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU";
_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+""));
//BA.debugLineNum = 384;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a";
__c.LogImpl("372548363",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
__c.LogImpl("472613899",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0);
}
catch (Exception e13) {
ba.setLastException(e13); //BA.debugLineNum = 386;BA.debugLine="Log(LastException)";
__c.LogImpl("372548365",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("472613901",BA.ObjectToString(__c.LastException(ba)),0);
};
};
//BA.debugLineNum = 389;BA.debugLine="End Sub";
@@ -96,11 +96,11 @@ anywheresoftware.b4a.objects.LabelWrapper _lx = null;
int _newtop = 0;
//BA.debugLineNum = 161;BA.debugLine="Sub agregaPreguntaAbierta(id As String, pregunta A";
//BA.debugLineNum = 162;BA.debugLine="Log(\"Iniciamos PreguntaAbierta\")";
__c.LogImpl("371958529","Iniciamos PreguntaAbierta",0);
__c.LogImpl("472024065","Iniciamos PreguntaAbierta",0);
//BA.debugLineNum = 163;BA.debugLine="Log(ids)";
__c.LogImpl("371958530",BA.ObjectToString(_ids),0);
__c.LogImpl("472024066",BA.ObjectToString(_ids),0);
//BA.debugLineNum = 164;BA.debugLine="Log(respuestas)";
__c.LogImpl("371958531",BA.ObjectToString(_respuestas),0);
__c.LogImpl("472024067",BA.ObjectToString(_respuestas),0);
//BA.debugLineNum = 165;BA.debugLine="Private sv_cuest As ScrollView";
_sv_cuest = new anywheresoftware.b4a.objects.ScrollViewWrapper();
//BA.debugLineNum = 166;BA.debugLine="sv_cuest.Initialize(500dip)";
@@ -205,9 +205,9 @@ _lx = _labelx[_p];
//BA.debugLineNum = 208;BA.debugLine="et(p).Text = \"\"";
_et[_p].setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 209;BA.debugLine="Log($\"Agregamos ET ${labelX(p).text} - ${(70*p)}";
__c.LogImpl("371958576",("Agregamos ET "+__c.SmartStringFormatter("",(Object)(_labelx[_p].getText()))+" - "+__c.SmartStringFormatter("",(Object)((70*_p)))+""),0);
__c.LogImpl("472024112",("Agregamos ET "+__c.SmartStringFormatter("",(Object)(_labelx[_p].getText()))+" - "+__c.SmartStringFormatter("",(Object)((70*_p)))+""),0);
//BA.debugLineNum = 211;BA.debugLine="Log(labelX(p).Height)";
__c.LogImpl("371958578",BA.NumberToString(_labelx[_p].getHeight()),0);
__c.LogImpl("472024114",BA.NumberToString(_labelx[_p].getHeight()),0);
//BA.debugLineNum = 212;BA.debugLine="sv_cuest.panel.AddView(labelX(p), 0, (70 * p), (";
_sv_cuest.getPanel().AddView((android.view.View)(_labelx[_p].getObject()),(int) (0),(int) ((70*_p)),(int) ((_panelx.getWidth()*0.72)),(int) (60));
//BA.debugLineNum = 213;BA.debugLine="sv_cuest.panel.AddView(et(p), (labelX(p).Width +";
@@ -676,7 +676,7 @@ String _etidresps = "";
anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null;
//BA.debugLineNum = 309;BA.debugLine="Private Sub et_TextChanged(Old As String, New As S";
//BA.debugLineNum = 310;BA.debugLine="Log($\"${Old}, ${New}\"$)";
__c.LogImpl("372286209",(""+__c.SmartStringFormatter("",(Object)(_old))+", "+__c.SmartStringFormatter("",(Object)(_new))+""),0);
__c.LogImpl("472351745",(""+__c.SmartStringFormatter("",(Object)(_old))+", "+__c.SmartStringFormatter("",(Object)(_new))+""),0);
//BA.debugLineNum = 311;BA.debugLine="Private etTotales As Int = 0";
_ettotales = (int) (0);
//BA.debugLineNum = 312;BA.debugLine="Private etCont As Int = 0";
@@ -719,7 +719,7 @@ _etidresps = _etidresps+"|"+BA.ObjectToString(((anywheresoftware.b4a.objects.col
}
};
//BA.debugLineNum = 333;BA.debugLine="Log($\"${etCont}, ${etTotales}\"$)";
__c.LogImpl("372286232",(""+__c.SmartStringFormatter("",(Object)(_etcont))+", "+__c.SmartStringFormatter("",(Object)(_ettotales))+""),0);
__c.LogImpl("472351768",(""+__c.SmartStringFormatter("",(Object)(_etcont))+", "+__c.SmartStringFormatter("",(Object)(_ettotales))+""),0);
//BA.debugLineNum = 334;BA.debugLine="bAceptarPregunta.Tag = CreateMap(\"idPregunta\":Sen";
_baceptarpregunta.setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("id"))))),(Object)("pregunta"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)(_etidresps),(Object)("respuesta"),(Object)(_etresps),(Object)("panel"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("panel"))}).getObject()));
//BA.debugLineNum = 335;BA.debugLine="If etCont = etTotales Then bAceptarPregunta.Enabl";

View File

@@ -221,7 +221,7 @@ _cant_sem1 = _prohit2.GetString("HVD_CANT_TOTAL");
_c4 = _prohit2.GetInt("EsMesActual");
}else {
//BA.debugLineNum = 219;BA.debugLine="Log(\"Error en filas\")";
__c.LogImpl("374121381","Error en filas",0);
__c.LogImpl("474186917","Error en filas",0);
};
//BA.debugLineNum = 221;BA.debugLine="prohit2.Close";
_prohit2.Close();

View File

@@ -312,7 +312,7 @@ _b_desc.setVisible(__c.False);
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{"","null"})));
//BA.debugLineNum = 347;BA.debugLine="LogColor(s3.RowCount,Colors.Yellow)";
__c.LogImpl("374645601",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow);
__c.LogImpl("474711137",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow);
//BA.debugLineNum = 348;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) {
//BA.debugLineNum = 349;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Exec";
@@ -474,13 +474,13 @@ _b4xpage_appear();
};
}else {
//BA.debugLineNum = 439;BA.debugLine="Log(\"Aqui\")";
__c.LogImpl("374973210","Aqui",0);
__c.LogImpl("475038746","Aqui",0);
//BA.debugLineNum = 440;BA.debugLine="Log(Subs.traeAlmacen)";
__c.LogImpl("374973211",_subs._traealmacen /*String*/ (ba),0);
__c.LogImpl("475038747",_subs._traealmacen /*String*/ (ba),0);
//BA.debugLineNum = 441;BA.debugLine="If Subs.traeAlmacen = 94 Then";
if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(94))) {
//BA.debugLineNum = 442;BA.debugLine="Log(\"Aqui\")";
__c.LogImpl("374973213","Aqui",0);
__c.LogImpl("475038749","Aqui",0);
//BA.debugLineNum = 444;BA.debugLine="result = Msgbox2(\"Seguro que desa borrar el p";
_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa borrar el pedido?"),BA.ObjectToCharSequence("Cancelar pedido"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba));
//BA.debugLineNum = 445;BA.debugLine="If result = DialogResponse.POSITIVE Then";
@@ -519,7 +519,7 @@ _b4xpage_appear();
};
}else {
//BA.debugLineNum = 465;BA.debugLine="Log(\"aqui\")";
__c.LogImpl("374973236","aqui",0);
__c.LogImpl("475038772","aqui",0);
//BA.debugLineNum = 466;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, no";
__c.ToastMessageShow(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!"),__c.True);
//BA.debugLineNum = 467;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicketI";
@@ -630,9 +630,9 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null;
int _j = 0;
//BA.debugLineNum = 515;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu";
//BA.debugLineNum = 516;BA.debugLine="Log(Subs.traeTablaProds(tipo_venta))";
__c.LogImpl("375038721",_subs._traetablaprods /*String*/ (ba,_tipo_venta),0);
__c.LogImpl("475104257",_subs._traetablaprods /*String*/ (ba,_tipo_venta),0);
//BA.debugLineNum = 517;BA.debugLine="Log(Value)";
__c.LogImpl("375038722",BA.ObjectToString(_value),0);
__c.LogImpl("475104258",BA.ObjectToString(_value),0);
//BA.debugLineNum = 518;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
//BA.debugLineNum = 519;BA.debugLine="Private nom As String = \"\"";
@@ -664,16 +664,16 @@ _cedis = _x[(int) (_x.length-1)];
//BA.debugLineNum = 538;BA.debugLine="Private foliu As String = X(X.Length-3)";
_foliu = _x[(int) (_x.length-3)];
//BA.debugLineNum = 539;BA.debugLine="Log(nom)";
__c.LogImpl("375038744",_nom,0);
__c.LogImpl("475104280",_nom,0);
//BA.debugLineNum = 540;BA.debugLine="Log(cedis)";
__c.LogImpl("375038745",_cedis,0);
__c.LogImpl("475104281",_cedis,0);
//BA.debugLineNum = 541;BA.debugLine="Log(foliu)";
__c.LogImpl("375038746",_foliu,0);
__c.LogImpl("475104282",_foliu,0);
//BA.debugLineNum = 542;BA.debugLine="Dim cx As Cursor = B4XPages.MainPage.skmt.ExecQue";
_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_cx = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE, PE_CEDIS/1 AS is_numeric FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and is_numeric > 0 and pe_cliente in (Select CUENTA from cuentaa) and PE_RECALCULO > 0"))));
//BA.debugLineNum = 543;BA.debugLine="Log(\"Recalculados: \" & cx.RowCount)";
__c.LogImpl("375038748","Recalculados: "+BA.NumberToString(_cx.getRowCount()),0);
__c.LogImpl("475104284","Recalculados: "+BA.NumberToString(_cx.getRowCount()),0);
//BA.debugLineNum = 544;BA.debugLine="If cx.RowCount > 0 Then ' Si hay recalculo (produ";
if (_cx.getRowCount()>0) {
//BA.debugLineNum = 545;BA.debugLine="result = Msgbox2(\"Si se borra este producto, se";
@@ -710,17 +710,17 @@ if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 562;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)"))));
//BA.debugLineNum = 563;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C";
__c.LogImpl("375038768",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
__c.LogImpl("475104304",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
//BA.debugLineNum = 564;BA.debugLine="Log(c.RowCount)";
__c.LogImpl("375038769",BA.NumberToString(_c.getRowCount()),0);
__c.LogImpl("475104305",BA.NumberToString(_c.getRowCount()),0);
//BA.debugLineNum = 565;BA.debugLine="Log(\"AQUI ESTOY\")";
__c.LogImpl("375038770","AQUI ESTOY",0);
__c.LogImpl("475104306","AQUI ESTOY",0);
//BA.debugLineNum = 566;BA.debugLine="Log(cedis)";
__c.LogImpl("375038771",_cedis,0);
__c.LogImpl("475104307",_cedis,0);
//BA.debugLineNum = 567;BA.debugLine="Log(foliu)";
__c.LogImpl("375038772",_foliu,0);
__c.LogImpl("475104308",_foliu,0);
//BA.debugLineNum = 568;BA.debugLine="Log(nom)";
__c.LogImpl("375038773",_nom,0);
__c.LogImpl("475104309",_nom,0);
//BA.debugLineNum = 570;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 573;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
@@ -730,11 +730,11 @@ if (__c.Not(__c.IsNumber(_cedis))) {
//BA.debugLineNum = 581;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis})));
//BA.debugLineNum = 582;BA.debugLine="Log(j3.RowCount)";
__c.LogImpl("375038787",BA.NumberToString(_j3.getRowCount()),0);
__c.LogImpl("475104323",BA.NumberToString(_j3.getRowCount()),0);
//BA.debugLineNum = 583;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 584;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("375038789","Soy promo",0);
__c.LogImpl("475104325","Soy promo",0);
//BA.debugLineNum = 585;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step54 = 1;
@@ -742,11 +742,11 @@ final int limit54 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit54 ;_j = _j + step54 ) {
//BA.debugLineNum = 586;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("375038791","aqui tronare?",0);
__c.LogImpl("475104327","aqui tronare?",0);
//BA.debugLineNum = 587;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 589;BA.debugLine="Log(nom)";
__c.LogImpl("375038794",_nom,0);
__c.LogImpl("475104330",_nom,0);
//BA.debugLineNum = 590;BA.debugLine="If cedis <> \"DUR\" Then";
if ((_cedis).equals("DUR") == false) {
//BA.debugLineNum = 592;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"upd";
@@ -821,17 +821,17 @@ if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 633;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)"))));
//BA.debugLineNum = 634;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_";
__c.LogImpl("375038839",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
__c.LogImpl("475104375",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
//BA.debugLineNum = 635;BA.debugLine="Log(c.RowCount)";
__c.LogImpl("375038840",BA.NumberToString(_c.getRowCount()),0);
__c.LogImpl("475104376",BA.NumberToString(_c.getRowCount()),0);
//BA.debugLineNum = 636;BA.debugLine="Log(\"AQUI ESTOY\")";
__c.LogImpl("375038841","AQUI ESTOY",0);
__c.LogImpl("475104377","AQUI ESTOY",0);
//BA.debugLineNum = 637;BA.debugLine="Log(cedis)";
__c.LogImpl("375038842",_cedis,0);
__c.LogImpl("475104378",_cedis,0);
//BA.debugLineNum = 638;BA.debugLine="Log(foliu)";
__c.LogImpl("375038843",_foliu,0);
__c.LogImpl("475104379",_foliu,0);
//BA.debugLineNum = 639;BA.debugLine="Log(nom)";
__c.LogImpl("375038844",_nom,0);
__c.LogImpl("475104380",_nom,0);
//BA.debugLineNum = 641;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 644;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
@@ -841,11 +841,11 @@ if (__c.Not(__c.IsNumber(_cedis))) {
//BA.debugLineNum = 652;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SEL";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis})));
//BA.debugLineNum = 653;BA.debugLine="Log(j3.RowCount)";
__c.LogImpl("375038858",BA.NumberToString(_j3.getRowCount()),0);
__c.LogImpl("475104394",BA.NumberToString(_j3.getRowCount()),0);
//BA.debugLineNum = 654;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 655;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("375038860","Soy promo",0);
__c.LogImpl("475104396","Soy promo",0);
//BA.debugLineNum = 656;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step112 = 1;
@@ -853,11 +853,11 @@ final int limit112 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit112 ;_j = _j + step112 ) {
//BA.debugLineNum = 657;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("375038862","aqui tronare?",0);
__c.LogImpl("475104398","aqui tronare?",0);
//BA.debugLineNum = 658;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 660;BA.debugLine="Log(nom)";
__c.LogImpl("375038865",_nom,0);
__c.LogImpl("475104401",_nom,0);
//BA.debugLineNum = 661;BA.debugLine="If cedis <> \"DUR\" Then";
if ((_cedis).equals("DUR") == false) {
//BA.debugLineNum = 663;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"up";
@@ -928,7 +928,7 @@ _b4xpage_appear();
};
}else {
//BA.debugLineNum = 702;BA.debugLine="Log(\"aqui\")";
__c.LogImpl("375038907","aqui",0);
__c.LogImpl("475104443","aqui",0);
//BA.debugLineNum = 703;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicke";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._p_transparenteticketimpreso /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
//BA.debugLineNum = 704;BA.debugLine="B4XPages.ShowPage(\"cliente\")";
@@ -947,9 +947,9 @@ if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 712;BA.debugLine="Private X() As String = Regex.Split(\" \", Valu";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
//BA.debugLineNum = 713;BA.debugLine="Log(X)";
__c.LogImpl("375038918",BA.ObjectToString(_x),0);
__c.LogImpl("475104454",BA.ObjectToString(_x),0);
//BA.debugLineNum = 714;BA.debugLine="Log(X.Length)";
__c.LogImpl("375038919",BA.NumberToString(_x.length),0);
__c.LogImpl("475104455",BA.NumberToString(_x.length),0);
//BA.debugLineNum = 715;BA.debugLine="Private nom As String = \"\"";
_nom = "";
//BA.debugLineNum = 716;BA.debugLine="For i = 0 To X.Length -1";
@@ -982,15 +982,15 @@ _cedis = _x[(int) (_x.length-1)];
_cedis = (_x[(int) (_x.length-2)]+" "+_x[(int) (_x.length-1)]);
};
//BA.debugLineNum = 735;BA.debugLine="Log(nom)";
__c.LogImpl("375038940",_nom,0);
__c.LogImpl("475104476",_nom,0);
//BA.debugLineNum = 736;BA.debugLine="Log(cedis)";
__c.LogImpl("375038941",_cedis,0);
__c.LogImpl("475104477",_cedis,0);
//BA.debugLineNum = 737;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"))));
//BA.debugLineNum = 738;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C";
__c.LogImpl("375038943",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
__c.LogImpl("475104479",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
//BA.debugLineNum = 739;BA.debugLine="Log(c.RowCount)";
__c.LogImpl("375038944",BA.NumberToString(_c.getRowCount()),0);
__c.LogImpl("475104480",BA.NumberToString(_c.getRowCount()),0);
//BA.debugLineNum = 740;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 750;BA.debugLine="If Not(IsNumber(cedis)) Then";
@@ -998,11 +998,11 @@ if (__c.Not(__c.IsNumber(_cedis))) {
//BA.debugLineNum = 751;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis})));
//BA.debugLineNum = 752;BA.debugLine="Log(j3.RowCount)";
__c.LogImpl("375038957",BA.NumberToString(_j3.getRowCount()),0);
__c.LogImpl("475104493",BA.NumberToString(_j3.getRowCount()),0);
//BA.debugLineNum = 753;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 754;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("375038959","Soy promo",0);
__c.LogImpl("475104495","Soy promo",0);
//BA.debugLineNum = 755;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step195 = 1;
@@ -1010,7 +1010,7 @@ final int limit195 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit195 ;_j = _j + step195 ) {
//BA.debugLineNum = 756;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("375038961","aqui tronare?",0);
__c.LogImpl("475104497","aqui tronare?",0);
//BA.debugLineNum = 757;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 759;BA.debugLine="If cedis <> \"DUR\" Then";
@@ -1087,9 +1087,9 @@ if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 800;BA.debugLine="Private X() As String = Regex.Split(\" \", Val";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
//BA.debugLineNum = 801;BA.debugLine="Log(X)";
__c.LogImpl("375039006",BA.ObjectToString(_x),0);
__c.LogImpl("475104542",BA.ObjectToString(_x),0);
//BA.debugLineNum = 802;BA.debugLine="Log(X.Length)";
__c.LogImpl("375039007",BA.NumberToString(_x.length),0);
__c.LogImpl("475104543",BA.NumberToString(_x.length),0);
//BA.debugLineNum = 803;BA.debugLine="Private nom As String = \"\"";
_nom = "";
//BA.debugLineNum = 804;BA.debugLine="For i = 0 To X.Length -1";
@@ -1122,15 +1122,15 @@ _cedis = _x[(int) (_x.length-1)];
_cedis = (_x[(int) (_x.length-2)]+" "+_x[(int) (_x.length-1)]);
};
//BA.debugLineNum = 823;BA.debugLine="Log(nom)";
__c.LogImpl("375039028",_nom,0);
__c.LogImpl("475104564",_nom,0);
//BA.debugLineNum = 824;BA.debugLine="Log(cedis)";
__c.LogImpl("375039029",_cedis,0);
__c.LogImpl("475104565",_cedis,0);
//BA.debugLineNum = 825;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"))));
//BA.debugLineNum = 826;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_";
__c.LogImpl("375039031",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
__c.LogImpl("475104567",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
//BA.debugLineNum = 827;BA.debugLine="Log(c.RowCount)";
__c.LogImpl("375039032",BA.NumberToString(_c.getRowCount()),0);
__c.LogImpl("475104568",BA.NumberToString(_c.getRowCount()),0);
//BA.debugLineNum = 828;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 838;BA.debugLine="If Not(IsNumber(cedis)) Then";
@@ -1138,11 +1138,11 @@ if (__c.Not(__c.IsNumber(_cedis))) {
//BA.debugLineNum = 839;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SEL";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis})));
//BA.debugLineNum = 840;BA.debugLine="Log(j3.RowCount)";
__c.LogImpl("375039045",BA.NumberToString(_j3.getRowCount()),0);
__c.LogImpl("475104581",BA.NumberToString(_j3.getRowCount()),0);
//BA.debugLineNum = 841;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 842;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("375039047","Soy promo",0);
__c.LogImpl("475104583","Soy promo",0);
//BA.debugLineNum = 843;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step268 = 1;
@@ -1150,7 +1150,7 @@ final int limit268 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit268 ;_j = _j + step268 ) {
//BA.debugLineNum = 844;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("375039049","aqui tronare?",0);
__c.LogImpl("475104585","aqui tronare?",0);
//BA.debugLineNum = 845;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 847;BA.debugLine="If cedis <> \"DUR\" Then";
@@ -1223,7 +1223,7 @@ _b4xpage_appear();
};
}else {
//BA.debugLineNum = 887;BA.debugLine="Log(\"aqui\")";
__c.LogImpl("375039092","aqui",0);
__c.LogImpl("475104628","aqui",0);
//BA.debugLineNum = 888;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicke";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._p_transparenteticketimpreso /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
//BA.debugLineNum = 889;BA.debugLine="B4XPages.ShowPage(\"cliente\")";
@@ -1243,9 +1243,9 @@ if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 898;BA.debugLine="Private X() As String = Regex.Split(\" \", Value";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
//BA.debugLineNum = 899;BA.debugLine="Log(X)";
__c.LogImpl("375039104",BA.ObjectToString(_x),0);
__c.LogImpl("475104640",BA.ObjectToString(_x),0);
//BA.debugLineNum = 900;BA.debugLine="Log(X.Length)";
__c.LogImpl("375039105",BA.NumberToString(_x.length),0);
__c.LogImpl("475104641",BA.NumberToString(_x.length),0);
//BA.debugLineNum = 901;BA.debugLine="Private nom As String = \"\"";
_nom = "";
//BA.debugLineNum = 902;BA.debugLine="For i = 0 To X.Length -1";
@@ -1274,9 +1274,9 @@ _cedis = _x[(int) (_x.length-1)];
//BA.debugLineNum = 917;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"))));
//BA.debugLineNum = 918;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_CE";
__c.LogImpl("375039123",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
__c.LogImpl("475104659",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
//BA.debugLineNum = 919;BA.debugLine="Log(c.RowCount)";
__c.LogImpl("375039124",BA.NumberToString(_c.getRowCount()),0);
__c.LogImpl("475104660",BA.NumberToString(_c.getRowCount()),0);
//BA.debugLineNum = 920;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 923;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
@@ -1286,11 +1286,11 @@ if (__c.Not(__c.IsNumber(_cedis))) {
//BA.debugLineNum = 931;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELEC";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis})));
//BA.debugLineNum = 932;BA.debugLine="Log(j3.RowCount)";
__c.LogImpl("375039137",BA.NumberToString(_j3.getRowCount()),0);
__c.LogImpl("475104673",BA.NumberToString(_j3.getRowCount()),0);
//BA.debugLineNum = 933;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 934;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("375039139","Soy promo",0);
__c.LogImpl("475104675","Soy promo",0);
//BA.debugLineNum = 935;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step346 = 1;
@@ -1298,7 +1298,7 @@ final int limit346 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit346 ;_j = _j + step346 ) {
//BA.debugLineNum = 936;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("375039141","aqui tronare?",0);
__c.LogImpl("475104677","aqui tronare?",0);
//BA.debugLineNum = 937;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 938;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"updat";
@@ -1367,9 +1367,9 @@ if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) {
//BA.debugLineNum = 975;BA.debugLine="Private X() As String = Regex.Split(\" \", Valu";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
//BA.debugLineNum = 976;BA.debugLine="Log(X)";
__c.LogImpl("375039181",BA.ObjectToString(_x),0);
__c.LogImpl("475104717",BA.ObjectToString(_x),0);
//BA.debugLineNum = 977;BA.debugLine="Log(X.Length)";
__c.LogImpl("375039182",BA.NumberToString(_x.length),0);
__c.LogImpl("475104718",BA.NumberToString(_x.length),0);
//BA.debugLineNum = 978;BA.debugLine="Private nom As String = \"\"";
_nom = "";
//BA.debugLineNum = 979;BA.debugLine="For i = 0 To X.Length -1";
@@ -1398,9 +1398,9 @@ _cedis = _x[(int) (_x.length-1)];
//BA.debugLineNum = 994;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"))));
//BA.debugLineNum = 995;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C";
__c.LogImpl("375039200",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
__c.LogImpl("475104736",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
//BA.debugLineNum = 996;BA.debugLine="Log(c.RowCount)";
__c.LogImpl("375039201",BA.NumberToString(_c.getRowCount()),0);
__c.LogImpl("475104737",BA.NumberToString(_c.getRowCount()),0);
//BA.debugLineNum = 997;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 1000;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
@@ -1410,11 +1410,11 @@ if (__c.Not(__c.IsNumber(_cedis))) {
//BA.debugLineNum = 1008;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis})));
//BA.debugLineNum = 1009;BA.debugLine="Log(j3.RowCount)";
__c.LogImpl("375039214",BA.NumberToString(_j3.getRowCount()),0);
__c.LogImpl("475104750",BA.NumberToString(_j3.getRowCount()),0);
//BA.debugLineNum = 1010;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 1011;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("375039216","Soy promo",0);
__c.LogImpl("475104752","Soy promo",0);
//BA.debugLineNum = 1012;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step409 = 1;
@@ -1422,7 +1422,7 @@ final int limit409 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit409 ;_j = _j + step409 ) {
//BA.debugLineNum = 1013;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("375039218","aqui tronare?",0);
__c.LogImpl("475104754","aqui tronare?",0);
//BA.debugLineNum = 1014;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 1015;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"upda";
@@ -1487,7 +1487,7 @@ _b4xpage_appear();
};
}else {
//BA.debugLineNum = 1051;BA.debugLine="Log(\"aqui\")";
__c.LogImpl("375039256","aqui",0);
__c.LogImpl("475104792","aqui",0);
//BA.debugLineNum = 1052;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicket";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._p_transparenteticketimpreso /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True);
//BA.debugLineNum = 1053;BA.debugLine="B4XPages.ShowPage(\"cliente\")";

View File

@@ -69,6 +69,15 @@ public anywheresoftware.b4a.objects.EditTextWrapper _et_telefono = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_cp = null;
public anywheresoftware.b4a.objects.LabelWrapper _label6 = null;
public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_calle1 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_calle2 = null;
public anywheresoftware.b4a.objects.ScrollViewWrapper _scv_nuevocliente = null;
public anywheresoftware.b4a.objects.LabelWrapper _label9 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_numeroint = null;
public anywheresoftware.b4a.objects.LabelWrapper _label10 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_numeroext = null;
public anywheresoftware.b4a.objects.LabelWrapper _label11 = null;
public anywheresoftware.b4a.objects.EditTextWrapper _et_referencia = null;
public b4a.example.dateutils _dateutils = null;
public gunav2.keymon.com.mx.main _main = null;
public gunav2.keymon.com.mx.starter _starter = null;
@@ -85,126 +94,138 @@ public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null;
public String _b4xpage_appear() throws Exception{
anywheresoftware.b4a.objects.collections.List _items = null;
int _i = 0;
//BA.debugLineNum = 235;BA.debugLine="Sub B4XPage_Appear";
//BA.debugLineNum = 236;BA.debugLine="et_direccion.Text = \"\"";
//BA.debugLineNum = 247;BA.debugLine="Sub B4XPage_Appear";
//BA.debugLineNum = 249;BA.debugLine="scv_nuevocliente.Panel.RemoveAllViews";
_scv_nuevocliente.getPanel().RemoveAllViews();
//BA.debugLineNum = 250;BA.debugLine="scv_nuevocliente.Panel.LoadLayout(\"Panel_Nuevocli";
_scv_nuevocliente.getPanel().LoadLayout("Panel_Nuevocliente",ba);
//BA.debugLineNum = 251;BA.debugLine="scv_nuevocliente.Panel.Height = 1100dip";
_scv_nuevocliente.getPanel().setHeight(__c.DipToCurrent((int) (1100)));
//BA.debugLineNum = 253;BA.debugLine="Panel1.Visible = False";
_panel1.setVisible(__c.False);
//BA.debugLineNum = 254;BA.debugLine="p_nuevoCliente.Visible = False";
_p_nuevocliente.setVisible(__c.False);
//BA.debugLineNum = 255;BA.debugLine="p_nuevoCliente.Visible = True";
_p_nuevocliente.setVisible(__c.True);
//BA.debugLineNum = 256;BA.debugLine="Panel1.Visible = True";
_panel1.setVisible(__c.True);
//BA.debugLineNum = 257;BA.debugLine="et_direccion.Text = \"\"";
_et_direccion.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 237;BA.debugLine="E_NOMBRE.Text = \"\"";
//BA.debugLineNum = 258;BA.debugLine="E_NOMBRE.Text = \"\"";
_e_nombre.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 238;BA.debugLine="ET_Atiende.Text = \"\"";
//BA.debugLineNum = 259;BA.debugLine="ET_Atiende.Text = \"\"";
_et_atiende.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 239;BA.debugLine="et_colonia.Text = \"\"";
//BA.debugLineNum = 260;BA.debugLine="et_colonia.Text = \"\"";
_et_colonia.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 240;BA.debugLine="et_telefono.Text = \"\"";
//BA.debugLineNum = 261;BA.debugLine="et_telefono.Text = \"\"";
_et_telefono.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 241;BA.debugLine="et_cp.Text = \"\"";
//BA.debugLineNum = 262;BA.debugLine="et_cp.Text = \"\"";
_et_cp.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 242;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
//BA.debugLineNum = 263;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) {
//BA.debugLineNum = 243;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
//BA.debugLineNum = 264;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence";
__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True);
//BA.debugLineNum = 244;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
//BA.debugLineNum = 265;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
};
//BA.debugLineNum = 246;BA.debugLine="GUARDA.Visible = False";
//BA.debugLineNum = 267;BA.debugLine="GUARDA.Visible = False";
_guarda.setVisible(__c.False);
//BA.debugLineNum = 247;BA.debugLine="Subs.panelVisible(p_nuevoCliente, 0, 0)";
//BA.debugLineNum = 268;BA.debugLine="Subs.panelVisible(p_nuevoCliente, 0, 0)";
_subs._panelvisible /*String*/ (ba,_p_nuevocliente,(int) (0),(int) (0));
//BA.debugLineNum = 248;BA.debugLine="Subs.panelVisible(Panel1, 0, 0)";
//BA.debugLineNum = 269;BA.debugLine="Subs.panelVisible(Panel1, 0, 0)";
_subs._panelvisible /*String*/ (ba,_panel1,(int) (0),(int) (0));
//BA.debugLineNum = 249;BA.debugLine="p_nuevoCliente.Height = Root.Height";
_p_nuevocliente.setHeight(_root.getHeight());
//BA.debugLineNum = 250;BA.debugLine="p_nuevoCliente.Width = Root.Width";
//BA.debugLineNum = 271;BA.debugLine="p_nuevoCliente.Width = Root.Width";
_p_nuevocliente.setWidth(_root.getWidth());
//BA.debugLineNum = 251;BA.debugLine="Panel1.Width = Root.Width";
//BA.debugLineNum = 272;BA.debugLine="Panel1.Width = Root.Width";
_panel1.setWidth(_root.getWidth());
//BA.debugLineNum = 252;BA.debugLine="Panel1.Height = Root.Height";
_panel1.setHeight(_root.getHeight());
//BA.debugLineNum = 253;BA.debugLine="Subs.centraEtiqueta(Label1, Root.Width)";
//BA.debugLineNum = 273;BA.debugLine="Panel1.Height = p_nuevoCliente.Height";
_panel1.setHeight(_p_nuevocliente.getHeight());
//BA.debugLineNum = 274;BA.debugLine="Subs.centraEtiqueta(Label1, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,_label1,_root.getWidth());
//BA.debugLineNum = 254;BA.debugLine="Subs.centraEtiqueta(Label5, Root.Width)";
//BA.debugLineNum = 275;BA.debugLine="Subs.centraEtiqueta(Label5, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,_label5,_root.getWidth());
//BA.debugLineNum = 255;BA.debugLine="Subs.centraEtiqueta(Label6, Root.Width)";
//BA.debugLineNum = 276;BA.debugLine="Subs.centraEtiqueta(Label6, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,_label6,_root.getWidth());
//BA.debugLineNum = 256;BA.debugLine="Subs.centraEtiqueta(Label2, Root.Width)";
//BA.debugLineNum = 277;BA.debugLine="Subs.centraEtiqueta(Label2, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,_label2,_root.getWidth());
//BA.debugLineNum = 257;BA.debugLine="Subs.centraEtiqueta(Label3, Root.Width)";
//BA.debugLineNum = 278;BA.debugLine="Subs.centraEtiqueta(Label3, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,_label3,_root.getWidth());
//BA.debugLineNum = 258;BA.debugLine="Subs.centraEtiqueta(l_sinUbicacion, Root.Width)";
//BA.debugLineNum = 279;BA.debugLine="Subs.centraEtiqueta(l_sinUbicacion, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,_l_sinubicacion,_root.getWidth());
//BA.debugLineNum = 259;BA.debugLine="Subs.centraEtiqueta(b_ubicacion, Root.Width)";
//BA.debugLineNum = 280;BA.debugLine="Subs.centraEtiqueta(b_ubicacion, Root.Width)";
_subs._centraetiqueta /*String*/ (ba,_b_ubicacion,_root.getWidth());
//BA.debugLineNum = 260;BA.debugLine="Subs.centraPanel(p_botones, Root.Width)";
//BA.debugLineNum = 281;BA.debugLine="Subs.centraPanel(p_botones, Root.Width)";
_subs._centrapanel /*String*/ (ba,_p_botones,_root.getWidth());
//BA.debugLineNum = 261;BA.debugLine="E_NOMBRE.Left = Round(Root.Width/2)-(E_NOMBRE.Wid";
//BA.debugLineNum = 282;BA.debugLine="E_NOMBRE.Left = Round(Root.Width/2)-(E_NOMBRE.Wid";
_e_nombre.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_e_nombre.getWidth()/(double)2)));
//BA.debugLineNum = 262;BA.debugLine="et_cp.Left = Round(Root.Width/2)-(E_NOMBRE.Width/";
//BA.debugLineNum = 283;BA.debugLine="et_cp.Left = Round(Root.Width/2)-(E_NOMBRE.Width/";
_et_cp.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_e_nombre.getWidth()/(double)2)));
//BA.debugLineNum = 263;BA.debugLine="et_colonia.Left = Round(Root.Width/2)-(et_colonia";
//BA.debugLineNum = 284;BA.debugLine="et_colonia.Left = Round(Root.Width/2)-(et_colonia";
_et_colonia.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_et_colonia.getWidth()/(double)2)));
//BA.debugLineNum = 264;BA.debugLine="et_direccion.Left = Round(Root.Width/2)-(et_direc";
//BA.debugLineNum = 285;BA.debugLine="et_direccion.Left = Round(Root.Width/2)-(et_direc";
_et_direccion.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_et_direccion.getWidth()/(double)2)));
//BA.debugLineNum = 265;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
//BA.debugLineNum = 286;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0.0") == false) {
//BA.debugLineNum = 266;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostra";
//BA.debugLineNum = 287;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostra";
_guarda.setVisible(__c.True);
//BA.debugLineNum = 267;BA.debugLine="l_sinUbicacion.Visible = True";
//BA.debugLineNum = 288;BA.debugLine="l_sinUbicacion.Visible = True";
_l_sinubicacion.setVisible(__c.True);
};
//BA.debugLineNum = 270;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
//BA.debugLineNum = 291;BA.debugLine="CallSubDelayed(Tracker, \"Track\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"Track");
//BA.debugLineNum = 271;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
//BA.debugLineNum = 292;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall");
//BA.debugLineNum = 272;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL";
//BA.debugLineNum = 293;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL";
if (_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized() && _tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) {
//BA.debugLineNum = 273;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
//BA.debugLineNum = 294;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude());
//BA.debugLineNum = 274;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
//BA.debugLineNum = 295;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude());
//BA.debugLineNum = 276;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
//BA.debugLineNum = 297;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca";
_gps_locationchanged(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation());
};
//BA.debugLineNum = 291;BA.debugLine="If Not(Starter.GPS.GPSEnabled) Then";
//BA.debugLineNum = 312;BA.debugLine="If Not(Starter.GPS.GPSEnabled) Then";
if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) {
//BA.debugLineNum = 292;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo";
//BA.debugLineNum = 313;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo";
__c.ToastMessageShow(BA.ObjectToCharSequence("Debe Activar el GPS del Equipo."),__c.True);
//BA.debugLineNum = 293;BA.debugLine="StartActivity(Starter.GPS.LocationSettingsIntent";
//BA.debugLineNum = 314;BA.debugLine="StartActivity(Starter.GPS.LocationSettingsIntent";
__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent()));
}else {
//BA.debugLineNum = 295;BA.debugLine="Starter.GPS.Start(0, 0)";
//BA.debugLineNum = 316;BA.debugLine="Starter.GPS.Start(0, 0)";
_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .Start(ba,(long) (0),(float) (0));
};
//BA.debugLineNum = 298;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
//BA.debugLineNum = 319;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall");
//BA.debugLineNum = 300;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT GIRO FROM CAT_";
//BA.debugLineNum = 321;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT GIRO FROM CAT_";
_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 GIRO FROM CAT_GIRO order by 1")));
//BA.debugLineNum = 301;BA.debugLine="Dim Items As List";
//BA.debugLineNum = 322;BA.debugLine="Dim Items As List";
_items = new anywheresoftware.b4a.objects.collections.List();
//BA.debugLineNum = 302;BA.debugLine="Items.Initialize";
//BA.debugLineNum = 323;BA.debugLine="Items.Initialize";
_items.Initialize();
//BA.debugLineNum = 303;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCIÓN\")";
//BA.debugLineNum = 324;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCIÓN\")";
_items.Add((Object)("SELECCIONA UNA OPCIÓN"));
//BA.debugLineNum = 304;BA.debugLine="If c.RowCount > 0 Then";
//BA.debugLineNum = 325;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 305;BA.debugLine="For i = 0 To c.RowCount-1";
//BA.debugLineNum = 326;BA.debugLine="For i = 0 To c.RowCount-1";
{
final int step53 = 1;
final int limit53 = (int) (_c.getRowCount()-1);
final int step59 = 1;
final int limit59 = (int) (_c.getRowCount()-1);
_i = (int) (0) ;
for (;_i <= limit53 ;_i = _i + step53 ) {
//BA.debugLineNum = 306;BA.debugLine="c.Position = i";
for (;_i <= limit59 ;_i = _i + step59 ) {
//BA.debugLineNum = 327;BA.debugLine="c.Position = i";
_c.setPosition(_i);
//BA.debugLineNum = 307;BA.debugLine="Items.Add(c.GetString(\"GIRO\"))";
//BA.debugLineNum = 328;BA.debugLine="Items.Add(c.GetString(\"GIRO\"))";
_items.Add((Object)(_c.GetString("GIRO")));
}
};
//BA.debugLineNum = 309;BA.debugLine="cb_giro.SetItems(Items)";
//BA.debugLineNum = 330;BA.debugLine="cb_giro.SetItems(Items)";
_cb_giro._setitems /*String*/ (_items);
};
//BA.debugLineNum = 311;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
//BA.debugLineNum = 332;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\"";
_giros = "SELECCIONA UNA OPCIÓN";
//BA.debugLineNum = 312;BA.debugLine="c.Close";
//BA.debugLineNum = 333;BA.debugLine="c.Close";
_c.Close();
//BA.debugLineNum = 313;BA.debugLine="End Sub";
//BA.debugLineNum = 334;BA.debugLine="End Sub";
return "";
}
public void _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{
@@ -232,13 +253,17 @@ return;
case 0:
//C
this.state = 1;
//BA.debugLineNum = 197;BA.debugLine="Root = Root1";
//BA.debugLineNum = 206;BA.debugLine="Root = Root1";
parent._root = _root1;
//BA.debugLineNum = 199;BA.debugLine="Root.LoadLayout(\"nuevocliente\")";
//BA.debugLineNum = 208;BA.debugLine="Root.LoadLayout(\"nuevocliente\")";
parent._root.LoadLayout("nuevocliente",ba);
//BA.debugLineNum = 200;BA.debugLine="ruta = File.DirInternal";
//BA.debugLineNum = 209;BA.debugLine="scv_nuevocliente.Height = Root.Height";
parent._scv_nuevocliente.setHeight(parent._root.getHeight());
//BA.debugLineNum = 210;BA.debugLine="scv_nuevocliente.Width = Root.Width";
parent._scv_nuevocliente.setWidth(parent._root.getWidth());
//BA.debugLineNum = 212;BA.debugLine="ruta = File.DirInternal";
parent._ruta = parent.__c.File.getDirInternal();
//BA.debugLineNum = 201;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
//BA.debugLineNum = 213;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
if (true) break;
case 1:
@@ -251,7 +276,7 @@ this.state = 3;
case 3:
//C
this.state = 4;
//BA.debugLineNum = 202;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
//BA.debugLineNum = 214;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
parent.__c.File.Copy(parent.__c.File.getDirAssets(),"kmt.db",parent._ruta,"kmt.db");
if (true) break;
@@ -259,9 +284,9 @@ case 4:
//C
this.state = 5;
;
//BA.debugLineNum = 216;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
//BA.debugLineNum = 228;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_WRITE_EXTERNAL_STORAGE);
//BA.debugLineNum = 217;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
//BA.debugLineNum = 229;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
this.state = 17;
return;
@@ -271,7 +296,7 @@ this.state = 5;
_permission = (String) result[0];
_result = (Boolean) result[1];
;
//BA.debugLineNum = 218;BA.debugLine="If Result Then";
//BA.debugLineNum = 230;BA.debugLine="If Result Then";
if (true) break;
case 5:
@@ -286,14 +311,14 @@ this.state = 9;
case 7:
//C
this.state = 10;
//BA.debugLineNum = 219;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("375366424","Con permisos para escritura",0);
//BA.debugLineNum = 231;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("475431963","Con permisos para escritura",0);
if (true) break;
case 9:
//C
this.state = 10;
//BA.debugLineNum = 221;BA.debugLine="ToastMessageShow(\"Sin permisos de escritura!!!\",";
//BA.debugLineNum = 233;BA.debugLine="ToastMessageShow(\"Sin permisos de escritura!!!\",";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos de escritura!!!"),parent.__c.True);
if (true) break;
@@ -301,9 +326,9 @@ case 10:
//C
this.state = 11;
;
//BA.debugLineNum = 224;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
//BA.debugLineNum = 236;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_READ_EXTERNAL_STORAGE);
//BA.debugLineNum = 225;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
//BA.debugLineNum = 237;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null);
this.state = 18;
return;
@@ -313,7 +338,7 @@ this.state = 11;
_permission = (String) result[0];
_result = (Boolean) result[1];
;
//BA.debugLineNum = 226;BA.debugLine="If Result Then";
//BA.debugLineNum = 238;BA.debugLine="If Result Then";
if (true) break;
case 11:
@@ -328,14 +353,14 @@ this.state = 15;
case 13:
//C
this.state = 16;
//BA.debugLineNum = 227;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("375366432","Con permisos para escritura",0);
//BA.debugLineNum = 239;BA.debugLine="Log(\"Con permisos para escritura\")";
parent.__c.LogImpl("475431971","Con permisos para escritura",0);
if (true) break;
case 15:
//C
this.state = 16;
//BA.debugLineNum = 229;BA.debugLine="ToastMessageShow(\"Sin permisos de lectura!!!\", T";
//BA.debugLineNum = 241;BA.debugLine="ToastMessageShow(\"Sin permisos de lectura!!!\", T";
parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos de lectura!!!"),parent.__c.True);
if (true) break;
@@ -343,7 +368,7 @@ case 16:
//C
this.state = -1;
;
//BA.debugLineNum = 231;BA.debugLine="End Sub";
//BA.debugLineNum = 243;BA.debugLine="End Sub";
if (true) break;
}
@@ -353,19 +378,19 @@ if (true) break;
public void _b4xpage_permissionresult(String _permission,boolean _result) throws Exception{
}
public String _cancela_click() throws Exception{
//BA.debugLineNum = 339;BA.debugLine="Sub CANCELA_Click";
//BA.debugLineNum = 340;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
//BA.debugLineNum = 360;BA.debugLine="Sub CANCELA_Click";
//BA.debugLineNum = 361;BA.debugLine="B4XPages.ShowPage(\"Principal\")";
_b4xpages._showpage /*String*/ (ba,"Principal");
//BA.debugLineNum = 341;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
//BA.debugLineNum = 362;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLP");
//BA.debugLineNum = 342;BA.debugLine="End Sub";
//BA.debugLineNum = 363;BA.debugLine="End Sub";
return "";
}
public String _cb_giro_selectedindexchanged(int _index) throws Exception{
//BA.debugLineNum = 574;BA.debugLine="Private Sub cb_giro_SelectedIndexChanged (Index As";
//BA.debugLineNum = 575;BA.debugLine="giros = cb_giro.SelectedItem";
//BA.debugLineNum = 633;BA.debugLine="Private Sub cb_giro_SelectedIndexChanged (Index As";
//BA.debugLineNum = 634;BA.debugLine="giros = cb_giro.SelectedItem";
_giros = _cb_giro._getselecteditem /*String*/ ();
//BA.debugLineNum = 576;BA.debugLine="End Sub";
//BA.debugLineNum = 635;BA.debugLine="End Sub";
return "";
}
public String _class_globals() throws Exception{
@@ -458,76 +483,94 @@ _et_cp = new anywheresoftware.b4a.objects.EditTextWrapper();
_label6 = new anywheresoftware.b4a.objects.LabelWrapper();
//BA.debugLineNum = 186;BA.debugLine="Private Panel1 As Panel";
_panel1 = new anywheresoftware.b4a.objects.PanelWrapper();
//BA.debugLineNum = 187;BA.debugLine="End Sub";
//BA.debugLineNum = 187;BA.debugLine="Private et_calle1 As EditText";
_et_calle1 = new anywheresoftware.b4a.objects.EditTextWrapper();
//BA.debugLineNum = 188;BA.debugLine="Private et_calle2 As EditText";
_et_calle2 = new anywheresoftware.b4a.objects.EditTextWrapper();
//BA.debugLineNum = 189;BA.debugLine="Private scv_nuevocliente As ScrollView";
_scv_nuevocliente = new anywheresoftware.b4a.objects.ScrollViewWrapper();
//BA.debugLineNum = 190;BA.debugLine="Private Label9 As Label";
_label9 = new anywheresoftware.b4a.objects.LabelWrapper();
//BA.debugLineNum = 191;BA.debugLine="Private et_numeroint As EditText";
_et_numeroint = new anywheresoftware.b4a.objects.EditTextWrapper();
//BA.debugLineNum = 192;BA.debugLine="Private Label10 As Label";
_label10 = new anywheresoftware.b4a.objects.LabelWrapper();
//BA.debugLineNum = 193;BA.debugLine="Private et_numeroext As EditText";
_et_numeroext = new anywheresoftware.b4a.objects.EditTextWrapper();
//BA.debugLineNum = 194;BA.debugLine="Private Label11 As Label";
_label11 = new anywheresoftware.b4a.objects.LabelWrapper();
//BA.debugLineNum = 195;BA.debugLine="Private et_referencia As EditText";
_et_referencia = new anywheresoftware.b4a.objects.EditTextWrapper();
//BA.debugLineNum = 196;BA.debugLine="End Sub";
return "";
}
public String _et_cp_textchanged(String _old,String _new) throws Exception{
//BA.debugLineNum = 578;BA.debugLine="Private Sub et_cp_TextChanged (Old As String, New";
//BA.debugLineNum = 579;BA.debugLine="If New.Length > 5 Then";
//BA.debugLineNum = 637;BA.debugLine="Private Sub et_cp_TextChanged (Old As String, New";
//BA.debugLineNum = 638;BA.debugLine="If New.Length > 5 Then";
if (_new.length()>5) {
//BA.debugLineNum = 580;BA.debugLine="et_cp.Text = Old";
//BA.debugLineNum = 639;BA.debugLine="et_cp.Text = Old";
_et_cp.setText(BA.ObjectToCharSequence(_old));
}else if(_new.length()>1 && _new.length()<=5) {
//BA.debugLineNum = 582;BA.debugLine="If New.Contains(Chr(10)) Or New.Contains(Chr(13)";
//BA.debugLineNum = 641;BA.debugLine="If New.Contains(Chr(10)) Or New.Contains(Chr(13)";
if (_new.contains(BA.ObjectToString(__c.Chr((int) (10)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (13)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (34))))) {
//BA.debugLineNum = 583;BA.debugLine="et_cp.Text = Old";
//BA.debugLineNum = 642;BA.debugLine="et_cp.Text = Old";
_et_cp.setText(BA.ObjectToCharSequence(_old));
};
};
//BA.debugLineNum = 587;BA.debugLine="End Sub";
//BA.debugLineNum = 646;BA.debugLine="End Sub";
return "";
}
public String _et_telefono_textchanged(String _old,String _new) throws Exception{
//BA.debugLineNum = 589;BA.debugLine="Private Sub et_telefono_TextChanged (Old As String";
//BA.debugLineNum = 590;BA.debugLine="If New.Length > 10 Then";
//BA.debugLineNum = 648;BA.debugLine="Private Sub et_telefono_TextChanged (Old As String";
//BA.debugLineNum = 649;BA.debugLine="If New.Length > 10 Then";
if (_new.length()>10) {
//BA.debugLineNum = 591;BA.debugLine="et_telefono.Text = Old";
//BA.debugLineNum = 650;BA.debugLine="et_telefono.Text = Old";
_et_telefono.setText(BA.ObjectToCharSequence(_old));
}else if(_new.length()>1 && _new.length()<=10) {
//BA.debugLineNum = 593;BA.debugLine="If New.Contains(Chr(10)) Or New.Contains(Chr(13)";
//BA.debugLineNum = 652;BA.debugLine="If New.Contains(Chr(10)) Or New.Contains(Chr(13)";
if (_new.contains(BA.ObjectToString(__c.Chr((int) (10)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (13)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (34))))) {
//BA.debugLineNum = 594;BA.debugLine="et_telefono.Text = Old";
//BA.debugLineNum = 653;BA.debugLine="et_telefono.Text = Old";
_et_telefono.setText(BA.ObjectToCharSequence(_old));
};
};
//BA.debugLineNum = 598;BA.debugLine="End Sub";
//BA.debugLineNum = 657;BA.debugLine="End Sub";
return "";
}
public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{
//BA.debugLineNum = 315;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
//BA.debugLineNum = 316;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
//BA.debugLineNum = 336;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
//BA.debugLineNum = 337;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0.0") == false) {
//BA.debugLineNum = 317;BA.debugLine="If GUARDA.IsInitialized Then";
//BA.debugLineNum = 338;BA.debugLine="If GUARDA.IsInitialized Then";
if (_guarda.IsInitialized()) {
//BA.debugLineNum = 318;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostr";
//BA.debugLineNum = 339;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostr";
_guarda.setVisible(__c.True);
//BA.debugLineNum = 319;BA.debugLine="l_sinUbicacion.Visible = True";
//BA.debugLineNum = 340;BA.debugLine="l_sinUbicacion.Visible = True";
_l_sinubicacion.setVisible(__c.True);
//BA.debugLineNum = 321;BA.debugLine="lat = Location1.Latitude";
//BA.debugLineNum = 342;BA.debugLine="lat = Location1.Latitude";
_lat = _location1.getLatitude();
//BA.debugLineNum = 322;BA.debugLine="lon = Location1.Longitude";
//BA.debugLineNum = 343;BA.debugLine="lon = Location1.Longitude";
_lon = _location1.getLongitude();
//BA.debugLineNum = 323;BA.debugLine="l_sinUbicacion.Text = (\"Latitud: \" & lat & \", L";
//BA.debugLineNum = 344;BA.debugLine="l_sinUbicacion.Text = (\"Latitud: \" & lat & \", L";
_l_sinubicacion.setText(BA.ObjectToCharSequence(("Latitud: "+BA.NumberToString(_lat)+", Longotud: "+BA.NumberToString(_lon))));
};
};
//BA.debugLineNum = 327;BA.debugLine="If b_ubicacion.IsInitialized Then";
//BA.debugLineNum = 348;BA.debugLine="If b_ubicacion.IsInitialized Then";
if (_b_ubicacion.IsInitialized()) {
//BA.debugLineNum = 328;BA.debugLine="b_ubicacion.TextSize = 13";
//BA.debugLineNum = 349;BA.debugLine="b_ubicacion.TextSize = 13";
_b_ubicacion.setTextSize((float) (13));
//BA.debugLineNum = 329;BA.debugLine="b_ubicacion.Text = $\"Precisión GPS $1.0{Location";
//BA.debugLineNum = 350;BA.debugLine="b_ubicacion.Text = $\"Precisión GPS $1.0{Location";
_b_ubicacion.setText(BA.ObjectToCharSequence(("Precisión GPS "+__c.SmartStringFormatter("1.0",(Object)(_location1.getAccuracy()))+" m")));
//BA.debugLineNum = 330;BA.debugLine="If Location1.Accuracy > 200 Then";
//BA.debugLineNum = 351;BA.debugLine="If Location1.Accuracy > 200 Then";
if (_location1.getAccuracy()>200) {
//BA.debugLineNum = 331;BA.debugLine="b_ubicacion.TextColor = Colors.Red";
//BA.debugLineNum = 352;BA.debugLine="b_ubicacion.TextColor = Colors.Red";
_b_ubicacion.setTextColor(__c.Colors.Red);
//BA.debugLineNum = 332;BA.debugLine="b_ubicacion.TextSize = 16";
//BA.debugLineNum = 353;BA.debugLine="b_ubicacion.TextSize = 16";
_b_ubicacion.setTextSize((float) (16));
//BA.debugLineNum = 333;BA.debugLine="b_ubicacion.Text = $\"Mala señal $1.0{Location1.";
//BA.debugLineNum = 354;BA.debugLine="b_ubicacion.Text = $\"Mala señal $1.0{Location1.";
_b_ubicacion.setText(BA.ObjectToCharSequence(("Mala señal "+__c.SmartStringFormatter("1.0",(Object)(_location1.getAccuracy()))+" m")));
};
};
//BA.debugLineNum = 337;BA.debugLine="End Sub";
//BA.debugLineNum = 358;BA.debugLine="End Sub";
return "";
}
public String _guarda_click() throws Exception{
@@ -535,143 +578,173 @@ String _hora = "";
String _mins = "";
String _segs = "";
String[] _fechacliente = null;
//BA.debugLineNum = 370;BA.debugLine="Sub GUARDA_Click";
//BA.debugLineNum = 380;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
//BA.debugLineNum = 391;BA.debugLine="Sub GUARDA_Click";
//BA.debugLineNum = 401;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
_b4xpages._showpage /*String*/ (ba,"NuevoCliente");
//BA.debugLineNum = 384;BA.debugLine="If E_NOMBRE.Text = \"\" Then";
//BA.debugLineNum = 419;BA.debugLine="If E_NOMBRE.Text = \"\" Then";
if ((_e_nombre.getText()).equals("")) {
//BA.debugLineNum = 385;BA.debugLine="MsgboxAsync(\"Por favor captura el nombre de la T";
//BA.debugLineNum = 420;BA.debugLine="MsgboxAsync(\"Por favor captura el nombre de la T";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura el nombre de la Tienda"),BA.ObjectToCharSequence("Atención"),ba);
}else if(_et_direccion.getText().length()>3) {
//BA.debugLineNum = 389;BA.debugLine="If lat <> 0 Then";
//BA.debugLineNum = 424;BA.debugLine="If lat <> 0 Then";
if (_lat!=0) {
//BA.debugLineNum = 391;BA.debugLine="If giros <> \"SELECCIONA UNA OPCIÓN\" Or cb_giro.";
//BA.debugLineNum = 426;BA.debugLine="If giros <> \"SELECCIONA UNA OPCIÓN\" Or cb_giro.";
if ((_giros).equals("SELECCIONA UNA OPCIÓN") == false || (_cb_giro._getselecteditem /*String*/ ()).equals("SELECCIONA UNA OPCIÓN") == false) {
//BA.debugLineNum = 393;BA.debugLine="If ET_Atiende.Text <> \"\" Then";
//BA.debugLineNum = 428;BA.debugLine="If ET_Atiende.Text <> \"\" Then";
if ((_et_atiende.getText()).equals("") == false) {
//BA.debugLineNum = 394;BA.debugLine="If et_telefono.Text <> \"\" Then";
//BA.debugLineNum = 429;BA.debugLine="If et_telefono.Text <> \"\" Then";
if ((_et_telefono.getText()).equals("") == false) {
//BA.debugLineNum = 395;BA.debugLine="If et_colonia.Text <> \"\" Then";
//BA.debugLineNum = 430;BA.debugLine="If et_colonia.Text <> \"\" Then";
if ((_et_colonia.getText()).equals("") == false) {
//BA.debugLineNum = 396;BA.debugLine="If et_cp.Text <> \"\" Then";
//BA.debugLineNum = 431;BA.debugLine="If et_cp.Text <> \"\" Then";
if ((_et_cp.getText()).equals("") == false) {
//BA.debugLineNum = 398;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
//BA.debugLineNum = 432;BA.debugLine="If et_calle1.Text <> \"\" Then";
if ((_et_calle1.getText()).equals("") == false) {
//BA.debugLineNum = 433;BA.debugLine="If et_calle2.Text <> \"\" Then";
if ((_et_calle2.getText()).equals("") == false) {
//BA.debugLineNum = 434;BA.debugLine="If et_numeroint.Text <> \"\" Then";
if ((_et_numeroint.getText()).equals("") == false) {
//BA.debugLineNum = 435;BA.debugLine="If et_numeroext.Text <> \"\" Then";
if ((_et_numeroext.getText()).equals("") == false) {
//BA.debugLineNum = 436;BA.debugLine="If et_referencia.Text <> \"\" Then";
if ((_et_referencia.getText()).equals("") == false) {
//BA.debugLineNum = 440;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
__c.DateTime.setDateFormat("MM/dd/yyyy");
//BA.debugLineNum = 399;BA.debugLine="DateTime.Timeformat = \"HHmmss\"";
//BA.debugLineNum = 441;BA.debugLine="DateTime.Timeformat = \"HHmmss\"";
__c.DateTime.setTimeFormat("HHmmss");
//BA.debugLineNum = 400;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
//BA.debugLineNum = 442;BA.debugLine="sDate = DateTime.Date(DateTime.Now)";
_sdate = __c.DateTime.Date(__c.DateTime.getNow());
//BA.debugLineNum = 401;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
//BA.debugLineNum = 443;BA.debugLine="sTime = DateTime.Time(DateTime.Now)";
_stime = __c.DateTime.Time(__c.DateTime.getNow());
//BA.debugLineNum = 402;BA.debugLine="Log($\" //////////// Date: ${sDate} - Tim";
__c.LogImpl("375694112",(" //////////// Date: "+__c.SmartStringFormatter("",(Object)(_sdate))+" - Time: "+__c.SmartStringFormatter("",(Object)(_stime))+" ////////////////"),0);
//BA.debugLineNum = 404;BA.debugLine="Private hora As String = sTime.SubString2(";
//BA.debugLineNum = 444;BA.debugLine="Log($\" //////////// Date: ${sDate} - T";
__c.LogImpl("475759669",(" //////////// Date: "+__c.SmartStringFormatter("",(Object)(_sdate))+" - Time: "+__c.SmartStringFormatter("",(Object)(_stime))+" ////////////////"),0);
//BA.debugLineNum = 446;BA.debugLine="Private hora As String = sTime.SubString";
_hora = _stime.substring((int) (0),(int) (2));
//BA.debugLineNum = 405;BA.debugLine="Private mins As String = sTime.SubString2(";
//BA.debugLineNum = 447;BA.debugLine="Private mins As String = sTime.SubString";
_mins = _stime.substring((int) (2),(int) (4));
//BA.debugLineNum = 406;BA.debugLine="Private segs As String = sTime.SubString(4";
//BA.debugLineNum = 448;BA.debugLine="Private segs As String = sTime.SubString";
_segs = _stime.substring((int) (4));
//BA.debugLineNum = 407;BA.debugLine="sTime = hora & \":\" & mins & \":\" & segs";
//BA.debugLineNum = 449;BA.debugLine="sTime = hora & \":\" & mins & \":\" & segs";
_stime = _hora+":"+_mins+":"+_segs;
//BA.debugLineNum = 408;BA.debugLine="Dim Fechacliente() As String = Regex.Split";
//BA.debugLineNum = 450;BA.debugLine="Dim Fechacliente() As String = Regex.Spl";
_fechacliente = __c.Regex.Split("/",_sdate);
//BA.debugLineNum = 409;BA.debugLine="Log(\"////////////// sTime: \"&sTime&\" /////";
__c.LogImpl("375694119","////////////// sTime: "+_stime+" ////////////////",0);
//BA.debugLineNum = 410;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_";
//BA.debugLineNum = 451;BA.debugLine="Log(\"////////////// sTime: \"&sTime&\" ///";
__c.LogImpl("475759676","////////////// sTime: "+_stime+" ////////////////",0);
//BA.debugLineNum = 452;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_C";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA FROM kmt_info3")));
//BA.debugLineNum = 411;BA.debugLine="c.Position = 0";
//BA.debugLineNum = 453;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 412;BA.debugLine="no_ruta = c.GetString(\"CAT_CL_RUTA\")";
//BA.debugLineNum = 454;BA.debugLine="no_ruta = c.GetString(\"CAT_CL_RUTA\")";
_no_ruta = _c.GetString("CAT_CL_RUTA");
//BA.debugLineNum = 413;BA.debugLine="no_cliente = \"N\" & sTime & no_ruta";
//BA.debugLineNum = 455;BA.debugLine="no_cliente = \"N\" & sTime & no_ruta";
_no_cliente = "N"+_stime+_no_ruta;
//BA.debugLineNum = 414;BA.debugLine="Log(\"++ ++ no_cliente = \"&no_cliente)";
__c.LogImpl("375694124","++ ++ no_cliente = "+_no_cliente,0);
//BA.debugLineNum = 415;BA.debugLine="c.Close";
//BA.debugLineNum = 456;BA.debugLine="Log(\"++ ++ no_cliente = \"&no_cliente)";
__c.LogImpl("475759681","++ ++ no_cliente = "+_no_cliente,0);
//BA.debugLineNum = 457;BA.debugLine="c.Close";
_c.Close();
//BA.debugLineNum = 417;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HI";
//BA.debugLineNum = 459;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_no_cliente)}));
//BA.debugLineNum = 418;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUE";
//BA.debugLineNum = 460;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from C";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA");
//BA.debugLineNum = 419;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CU";
//BA.debugLineNum = 461;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_no_cliente)}));
//BA.debugLineNum = 420;BA.debugLine="c = Starter.skmt.ExecQuery(\"select ID_ALMA";
//BA.debugLineNum = 462;BA.debugLine="c = Starter.skmt.ExecQuery(\"select ID_AL";
_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 ID_ALMACEN from CAT_ALMACEN")));
//BA.debugLineNum = 421;BA.debugLine="If c.RowCount > 0 Then";
//BA.debugLineNum = 463;BA.debugLine="If c.RowCount > 0 Then";
if (_c.getRowCount()>0) {
//BA.debugLineNum = 422;BA.debugLine="c.Position = 0";
//BA.debugLineNum = 464;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 423;BA.debugLine="ALMACEN = c.GetString(\"ID_ALMACEN\")";
//BA.debugLineNum = 465;BA.debugLine="ALMACEN = c.GetString(\"ID_ALMACEN\")";
_almacen = _c.GetString("ID_ALMACEN");
};
//BA.debugLineNum = 425;BA.debugLine="c.Close";
//BA.debugLineNum = 467;BA.debugLine="c.Close";
_c.Close();
//BA.debugLineNum = 426;BA.debugLine="c = Starter.skmt.ExecQuery(\"select usuario";
//BA.debugLineNum = 468;BA.debugLine="c = Starter.skmt.ExecQuery(\"select usuar";
_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 from usuarioa")));
//BA.debugLineNum = 427;BA.debugLine="c.Position = 0";
//BA.debugLineNum = 469;BA.debugLine="c.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 428;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
//BA.debugLineNum = 470;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
//BA.debugLineNum = 429;BA.debugLine="c.Close";
//BA.debugLineNum = 471;BA.debugLine="c.Close";
_c.Close();
//BA.debugLineNum = 433;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
//BA.debugLineNum = 475;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\"";
__c.DateTime.setDateFormat("dd/MM/yyyy");
//BA.debugLineNum = 434;BA.debugLine="DateTime.Timeformat = \"HH:mm:ss\"";
//BA.debugLineNum = 476;BA.debugLine="DateTime.Timeformat = \"HH:mm:ss\"";
__c.DateTime.setTimeFormat("HH:mm:ss");
//BA.debugLineNum = 435;BA.debugLine="sDate2 = DateTime.Date(DateTime.Now)";
//BA.debugLineNum = 477;BA.debugLine="sDate2 = DateTime.Date(DateTime.Now)";
_sdate2 = __c.DateTime.Date(__c.DateTime.getNow());
//BA.debugLineNum = 436;BA.debugLine="sTime2 = DateTime.Time(DateTime.Now)";
//BA.debugLineNum = 478;BA.debugLine="sTime2 = DateTime.Time(DateTime.Now)";
_stime2 = __c.DateTime.Time(__c.DateTime.getNow());
//BA.debugLineNum = 438;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO km";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion, CAT_CL_GIRO,CAT_CL_CP) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_no_cliente),(Object)(_no_ruta),(Object)(_e_nombre.getText()),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_cb_giro._getselecteditem /*String*/ ()),(Object)(_et_cp.getText())}));
//BA.debugLineNum = 439;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CL";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CLIENTES_NUEVOS(CN_ID, CN_FECHA, CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA,CN_COLONIA, CN_TELEFONO,CN_CP) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_no_cliente,_sdate2+" "+_stime2,_usuario,BA.NumberToString(_lat),BA.NumberToString(_lon),_e_nombre.getText(),_et_direccion.getText(),_almacen,_no_ruta,_cb_giro._getselecteditem /*String*/ (),_et_atiende.getText(),_et_colonia.getText(),_et_telefono.getText(),_et_cp.getText()}));
//BA.debugLineNum = 441;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
//BA.debugLineNum = 480;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion, CAT_CL_GIRO,CAT_CL_CP,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_NUMEROINT,CAT_CL_NUMEROEXT,CAT_CL_REFERENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_no_cliente),(Object)(_no_ruta),(Object)(_e_nombre.getText()),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_cb_giro._getselecteditem /*String*/ ()),(Object)(_et_cp.getText()),(Object)(_et_calle1.getText()),(Object)(_et_calle2.getText()),(Object)(_et_numeroint.getText()),(Object)(_et_numeroext.getText()),(Object)(_et_referencia.getText())}));
//BA.debugLineNum = 481;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO";
_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CLIENTES_NUEVOS(CN_ID, CN_FECHA, CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA,CN_COLONIA, CN_TELEFONO,CN_CP,CN_CALLE1,CN_CALLE2,CN_NUMEROINT,CN_NUMEROEXT,CN_REFERENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_no_cliente,_sdate2+" "+_stime2,_usuario,BA.NumberToString(_lat),BA.NumberToString(_lon),_e_nombre.getText(),_et_direccion.getText(),_almacen,_no_ruta,_cb_giro._getselecteditem /*String*/ (),_et_atiende.getText(),_et_colonia.getText(),_et_telefono.getText(),_et_cp.getText(),_et_calle1.getText(),_et_calle2.getText(),_et_numeroint.getText(),_et_numeroext.getText(),_et_referencia.getText()}));
//BA.debugLineNum = 483;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
//BA.debugLineNum = 442;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
//BA.debugLineNum = 484;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLP");
}else {
//BA.debugLineNum = 444;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el C";
//BA.debugLineNum = 486;BA.debugLine="MsgboxAsync(\"Por favor, captura la re";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura la referencia"),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 489;BA.debugLine="MsgboxAsync(\"Por favor, captura el nú";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura el número ext"),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 492;BA.debugLine="MsgboxAsync(\"Por favor, captura el núm";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura el número int"),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 496;BA.debugLine="MsgboxAsync(\"Por favor, captura Entre c";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura Entre calle2"),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 499;BA.debugLine="MsgboxAsync(\"Por favor, captura Entre ca";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, captura Entre calle1"),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 503;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el C";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar el C.P. el negocio."),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 447;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar la co";
//BA.debugLineNum = 506;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar la co";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar la colonia el negocio."),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 450;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el tel";
//BA.debugLineNum = 509;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el tel";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar el telefono."),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 454;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar al enca";
//BA.debugLineNum = 513;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar al enca";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar al encargado que atiende el negocio."),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 457;BA.debugLine="MsgboxAsync(\"Por favor captura el giro del cli";
//BA.debugLineNum = 516;BA.debugLine="MsgboxAsync(\"Por favor captura el giro del cli";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura el giro del cliente"),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 460;BA.debugLine="MsgboxAsync(\"Por favor revisa que tengas señal";
//BA.debugLineNum = 519;BA.debugLine="MsgboxAsync(\"Por favor revisa que tengas señal";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor revisa que tengas señal GPS"),BA.ObjectToCharSequence("Atención"),ba);
};
}else {
//BA.debugLineNum = 463;BA.debugLine="MsgboxAsync(\"Por favor captura la dirección del";
//BA.debugLineNum = 522;BA.debugLine="MsgboxAsync(\"Por favor captura la dirección del";
__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura la dirección del cliente"),BA.ObjectToCharSequence("Atención"),ba);
};
//BA.debugLineNum = 470;BA.debugLine="End Sub";
//BA.debugLineNum = 529;BA.debugLine="End Sub";
return "";
}
public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
innerInitialize(_ba);
//BA.debugLineNum = 190;BA.debugLine="Public Sub Initialize As Object";
//BA.debugLineNum = 191;BA.debugLine="Return Me";
//BA.debugLineNum = 199;BA.debugLine="Public Sub Initialize As Object";
//BA.debugLineNum = 200;BA.debugLine="Return Me";
if (true) return this;
//BA.debugLineNum = 192;BA.debugLine="End Sub";
//BA.debugLineNum = 201;BA.debugLine="End Sub";
return null;
}
public String _p_nuevocliente_click() throws Exception{
//BA.debugLineNum = 475;BA.debugLine="Private Sub p_nuevoCliente_Click";
//BA.debugLineNum = 477;BA.debugLine="End Sub";
//BA.debugLineNum = 534;BA.debugLine="Private Sub p_nuevoCliente_Click";
//BA.debugLineNum = 536;BA.debugLine="End Sub";
return "";
}
public boolean _pointinpolygon(anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _point,anywheresoftware.b4a.objects.collections.List _polygon) throws Exception{
@@ -687,47 +760,47 @@ double _yi = 0;
double _xj = 0;
double _yj = 0;
boolean _intersect = false;
//BA.debugLineNum = 344;BA.debugLine="Sub PointInPolygon(point As LatLng, polygon As Lis";
//BA.debugLineNum = 345;BA.debugLine="Dim x As Double = point.Longitude";
//BA.debugLineNum = 365;BA.debugLine="Sub PointInPolygon(point As LatLng, polygon As Lis";
//BA.debugLineNum = 366;BA.debugLine="Dim x As Double = point.Longitude";
_x = _point.getLongitude();
//BA.debugLineNum = 346;BA.debugLine="Dim y As Double = point.Latitude";
//BA.debugLineNum = 367;BA.debugLine="Dim y As Double = point.Latitude";
_y = _point.getLatitude();
//BA.debugLineNum = 348;BA.debugLine="Dim inside As Boolean = False";
//BA.debugLineNum = 369;BA.debugLine="Dim inside As Boolean = False";
_inside = __c.False;
//BA.debugLineNum = 349;BA.debugLine="For i = 0 To polygon.Size - 1";
//BA.debugLineNum = 370;BA.debugLine="For i = 0 To polygon.Size - 1";
{
final int step4 = 1;
final int limit4 = (int) (_polygon.getSize()-1);
_i = (int) (0) ;
for (;_i <= limit4 ;_i = _i + step4 ) {
//BA.debugLineNum = 350;BA.debugLine="Dim j As Int = (i + 1) Mod polygon.Size";
//BA.debugLineNum = 371;BA.debugLine="Dim j As Int = (i + 1) Mod polygon.Size";
_j = (int) ((_i+1)%_polygon.getSize());
//BA.debugLineNum = 351;BA.debugLine="Dim p1_1 As LatLng = polygon.Get(i)";
//BA.debugLineNum = 372;BA.debugLine="Dim p1_1 As LatLng = polygon.Get(i)";
_p1_1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
_p1_1 = (anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(), (com.google.android.gms.maps.model.LatLng)(_polygon.Get(_i)));
//BA.debugLineNum = 352;BA.debugLine="Dim p2_1 As LatLng = polygon.Get(j)";
//BA.debugLineNum = 373;BA.debugLine="Dim p2_1 As LatLng = polygon.Get(j)";
_p2_1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper();
_p2_1 = (anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(), (com.google.android.gms.maps.model.LatLng)(_polygon.Get(_j)));
//BA.debugLineNum = 354;BA.debugLine="Dim xi As Double = p1_1.Longitude";
//BA.debugLineNum = 375;BA.debugLine="Dim xi As Double = p1_1.Longitude";
_xi = _p1_1.getLongitude();
//BA.debugLineNum = 355;BA.debugLine="Dim yi As Double = p1_1.Latitude";
//BA.debugLineNum = 376;BA.debugLine="Dim yi As Double = p1_1.Latitude";
_yi = _p1_1.getLatitude();
//BA.debugLineNum = 356;BA.debugLine="Dim xj As Double = p2_1.Longitude";
//BA.debugLineNum = 377;BA.debugLine="Dim xj As Double = p2_1.Longitude";
_xj = _p2_1.getLongitude();
//BA.debugLineNum = 357;BA.debugLine="Dim yj As Double = p2_1.Latitude";
//BA.debugLineNum = 378;BA.debugLine="Dim yj As Double = p2_1.Latitude";
_yj = _p2_1.getLatitude();
//BA.debugLineNum = 359;BA.debugLine="Dim intersect As Boolean = ((yi > y) <> (yj > y)";
//BA.debugLineNum = 380;BA.debugLine="Dim intersect As Boolean = ((yi > y) <> (yj > y)";
_intersect = ((_yi>_y)!=(_yj>_y)) && (_x<(_xj-_xi)*(_y-_yi)/(double)(_yj-_yi)+_xi);
//BA.debugLineNum = 360;BA.debugLine="If intersect Then";
//BA.debugLineNum = 381;BA.debugLine="If intersect Then";
if (_intersect) {
//BA.debugLineNum = 361;BA.debugLine="inside = Not(inside)";
//BA.debugLineNum = 382;BA.debugLine="inside = Not(inside)";
_inside = __c.Not(_inside);
};
}
};
//BA.debugLineNum = 365;BA.debugLine="Return inside";
//BA.debugLineNum = 386;BA.debugLine="Return inside";
if (true) return _inside;
//BA.debugLineNum = 368;BA.debugLine="End Sub";
//BA.debugLineNum = 389;BA.debugLine="End Sub";
return false;
}
public Object callSub(String sub, Object sender, Object[] args) throws Exception {

View File

@@ -1013,7 +1013,7 @@ _h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 443;BA.debugLine="h.Position=0";
_h.setPosition((int) (0));
//BA.debugLineNum = 444;BA.debugLine="Log(111)";
__c.LogImpl("376415055",BA.NumberToString(111),0);
__c.LogImpl("476480591",BA.NumberToString(111),0);
//BA.debugLineNum = 445;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSER";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)((double)(Double.parseDouble(_precio_cero))*(double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_precio_cero),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_h.GetString("CAT_GP_NOMBRE")),(Object)(_f.GetString("CAT_DP_IDPROD")),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 446;BA.debugLine="h.Close";
@@ -1027,7 +1027,7 @@ _f.Close();
//BA.debugLineNum = 451;BA.debugLine="e.Close";
_e.Close();
//BA.debugLineNum = 452;BA.debugLine="Log(222)";
__c.LogImpl("376415063",BA.NumberToString(222),0);
__c.LogImpl("476480599",BA.NumberToString(222),0);
//BA.debugLineNum = 453;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 454;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update";
@@ -1095,7 +1095,7 @@ _h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 486;BA.debugLine="h.Position=0";
_h.setPosition((int) (0));
//BA.debugLineNum = 487;BA.debugLine="Log(333)";
__c.LogImpl("376415098",BA.NumberToString(333),0);
__c.LogImpl("476480634",BA.NumberToString(333),0);
//BA.debugLineNum = 488;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PRECIO")))*(double)(Double.parseDouble(_cantidad.getText()))*(double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))),(Object)(_f.GetString("CAT_DP_PRECIO")),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_h.GetString("CAT_GP_NOMBRE")),(Object)(_f.GetString("CAT_DP_IDPROD")),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 489;BA.debugLine="h.Close";
@@ -1108,7 +1108,7 @@ _f.Close();
//BA.debugLineNum = 493;BA.debugLine="e.Close";
_e.Close();
//BA.debugLineNum = 494;BA.debugLine="Log(444)";
__c.LogImpl("376415105",BA.NumberToString(444),0);
__c.LogImpl("476480641",BA.NumberToString(444),0);
//BA.debugLineNum = 495;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 496;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update ${";
@@ -1157,7 +1157,7 @@ _c.setPosition((int) (0));
//BA.debugLineNum = 518;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
_usuario = _c.GetString("USUARIO");
//BA.debugLineNum = 519;BA.debugLine="Log(555)";
__c.LogImpl("376415130",BA.NumberToString(555),0);
__c.LogImpl("476480666",BA.NumberToString(555),0);
//BA.debugLineNum = 520;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_COSTO_SIN,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)((double)(Double.parseDouble(_cantidad.getText()))*(double)(Double.parseDouble(_l_precio.getText()))),(Object)(_l_precio.getText()),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_preciosin),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )}));
//BA.debugLineNum = 521;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update ${";

File diff suppressed because it is too large Load Diff

View File

@@ -155,13 +155,13 @@ public String _b_continuar_click() throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
//BA.debugLineNum = 1239;BA.debugLine="Private Sub b_continuar_Click";
//BA.debugLineNum = 1240;BA.debugLine="Log(\"b_continuar_Click\")";
__c.LogImpl("366650113","b_continuar_Click",0);
__c.LogImpl("466715649","b_continuar_Click",0);
//BA.debugLineNum = 1241;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 1243;BA.debugLine="Log($\"prodsMap=${prodsMap}\"$)";
__c.LogImpl("366650116",("prodsMap="+__c.SmartStringFormatter("",(Object)(_prodsmap.getObject()))+""),0);
__c.LogImpl("466715652",("prodsMap="+__c.SmartStringFormatter("",(Object)(_prodsmap.getObject()))+""),0);
//BA.debugLineNum = 1251;BA.debugLine="Log(\"promos-inv, prods-inv, cat-vis\")";
__c.LogImpl("366650124","promos-inv, prods-inv, cat-vis",0);
__c.LogImpl("466715660","promos-inv, prods-inv, cat-vis",0);
//BA.debugLineNum = 1252;BA.debugLine="lv_promos.Visible = False";
_lv_promos.setVisible(__c.False);
//BA.debugLineNum = 1253;BA.debugLine="clv_prods_ll.AsView.Visible = False";
@@ -173,7 +173,7 @@ _lv_tipo.setVisible(__c.False);
//BA.debugLineNum = 1256;BA.debugLine="lv_catalogos.Visible = True";
_lv_catalogos.setVisible(__c.True);
//BA.debugLineNum = 1257;BA.debugLine="Log(\"Continuar\")";
__c.LogImpl("366650130","Continuar",0);
__c.LogImpl("466715666","Continuar",0);
//BA.debugLineNum = 1258;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual";
_m = new anywheresoftware.b4a.objects.collections.Map();
_m = _subs._traetotalesclienteactual /*anywheresoftware.b4a.objects.collections.Map*/ (ba);
@@ -196,7 +196,7 @@ if (_c6.getRowCount()>0) {
//BA.debugLineNum = 2408;BA.debugLine="c6.Position = 0";
_c6.setPosition((int) (0));
//BA.debugLineNum = 2412;BA.debugLine="Log(((l_cantdev.Text + 1)* preciodev))";
__c.LogImpl("368026376",BA.NumberToString((((double)(Double.parseDouble(_l_cantdev.getText()))+1)*_preciodev)),0);
__c.LogImpl("468091912",BA.NumberToString((((double)(Double.parseDouble(_l_cantdev.getText()))+1)*_preciodev)),0);
//BA.debugLineNum = 2413;BA.debugLine="If c6.GetString(\"PC_MONTO\")- ((l_cantdev.Text +";
if ((double)(Double.parseDouble(_c6.GetString("PC_MONTO")))-(((double)(Double.parseDouble(_l_cantdev.getText()))+1)*_preciodev)>=0) {
//BA.debugLineNum = 2414;BA.debugLine="Dim dev2 As Cursor = B4XPages.MainPage.skmt.Exe";
@@ -299,14 +299,14 @@ _inv = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywher
//BA.debugLineNum = 896;BA.debugLine="Private existencias As String = clv_prods_ll.GetV";
_existencias = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("almacen")));
//BA.debugLineNum = 897;BA.debugLine="Log($\"Existencias: ${existencias}\"$)";
__c.LogImpl("366322451",("Existencias: "+__c.SmartStringFormatter("",(Object)(_existencias))+""),0);
__c.LogImpl("466387987",("Existencias: "+__c.SmartStringFormatter("",(Object)(_existencias))+""),0);
//BA.debugLineNum = 898;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0";
if ((_lacant.getText()).equals("")) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 899;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)";
_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("id")));
//BA.debugLineNum = 916;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("366322470",_lacant.getText(),__c.Colors.Red);
__c.LogImpl("466388006",_lacant.getText(),__c.Colors.Red);
//BA.debugLineNum = 918;BA.debugLine="If Subs.traeinventario(id) > 0 And (laCant.Text <";
if ((double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))>0 && ((double)(Double.parseDouble(_lacant.getText()))<=((double)(Double.parseDouble(_lacant.getText()))+(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))))) {
//BA.debugLineNum = 920;BA.debugLine="clv_prods_ll.GetValue(index).As(Map).Put(\"almace";
@@ -319,9 +319,9 @@ _lacant.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parse
//BA.debugLineNum = 926;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
_nombrex = _subs._traeprodnombre /*String*/ (ba,_id);
//BA.debugLineNum = 935;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("366322489",_lacant.getText(),__c.Colors.Red);
__c.LogImpl("466388025",_lacant.getText(),__c.Colors.Red);
//BA.debugLineNum = 941;BA.debugLine="Log(B4XPages.MainPage.tipo_venta)";
__c.LogImpl("366322495",_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,0);
__c.LogImpl("466388031",_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,0);
//BA.debugLineNum = 942;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) {
//BA.debugLineNum = 943;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
@@ -360,7 +360,7 @@ if (_c.getRowCount()>0) {
//BA.debugLineNum = 973;BA.debugLine="C.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 974;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr";
__c.LogImpl("366322528",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
__c.LogImpl("466388064",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
//BA.debugLineNum = 975;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_NO";
_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART")));
//BA.debugLineNum = 976;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MONT";
@@ -443,16 +443,16 @@ _tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Obje
//BA.debugLineNum = 757;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i";
_nombrex = _subs._traeprodnombre /*String*/ (ba,_id);
//BA.debugLineNum = 758;BA.debugLine="LogColor(tmpMap1,Colors.Magenta)";
__c.LogImpl("366256920",BA.ObjectToString(_tmpmap1),__c.Colors.Magenta);
__c.LogImpl("466322456",BA.ObjectToString(_tmpmap1),__c.Colors.Magenta);
//BA.debugLineNum = 759;BA.debugLine="prodsMap.Put(id, tmpMap)";
_prodsmap.Put((Object)(_id),(Object)(_tmpmap.getObject()));
//BA.debugLineNum = 760;BA.debugLine="If laCant.Text = 0 Then prodsMap.Remove(id)";
if ((_lacant.getText()).equals(BA.NumberToString(0))) {
_prodsmap.Remove((Object)(_id));};
//BA.debugLineNum = 772;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
__c.LogImpl("366256934","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Blue);
__c.LogImpl("466322470","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Blue);
//BA.debugLineNum = 774;BA.debugLine="Log($\"${Subs.traeAlmacen}, ${precio}, ${laCant.te";
__c.LogImpl("366256936",(""+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+", "+__c.SmartStringFormatter("",(Object)(_precio))+", "+__c.SmartStringFormatter("",(Object)(_lacant.getText()))+", "+__c.SmartStringFormatter("",(Object)(_subs._traeprodnombre /*String*/ (ba,_id)))+", "+__c.SmartStringFormatter("",(Object)(_id))+", "+__c.SmartStringFormatter("",(Object)(_clienteid))+""),0);
__c.LogImpl("466322472",(""+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+", "+__c.SmartStringFormatter("",(Object)(_precio))+", "+__c.SmartStringFormatter("",(Object)(_lacant.getText()))+", "+__c.SmartStringFormatter("",(Object)(_subs._traeprodnombre /*String*/ (ba,_id)))+", "+__c.SmartStringFormatter("",(Object)(_id))+", "+__c.SmartStringFormatter("",(Object)(_clienteid))+""),0);
//BA.debugLineNum = 775;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) {
//BA.debugLineNum = 776;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,";
@@ -464,9 +464,9 @@ _subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_prec
//BA.debugLineNum = 780;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 781;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)";
__c.LogImpl("366256943","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Blue);
__c.LogImpl("466322479","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Blue);
//BA.debugLineNum = 782;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $";
__c.LogImpl("366256944",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);
__c.LogImpl("466322480",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);
//BA.debugLineNum = 783;BA.debugLine="If 1 = 1 Then";
if (1==1) {
//BA.debugLineNum = 784;BA.debugLine="Private cs As CSBuilder";
@@ -501,7 +501,7 @@ if (_c.getRowCount()>0) {
//BA.debugLineNum = 838;BA.debugLine="C.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 839;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr";
__c.LogImpl("366257001",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
__c.LogImpl("466322537",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
//BA.debugLineNum = 840;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_NO";
_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART")));
//BA.debugLineNum = 841;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MONT";
@@ -534,7 +534,7 @@ _c6.setPosition((int) (0));
_totalprod = (double)(Double.parseDouble(_c6.GetString("PC_MONTO")));
};
//BA.debugLineNum = 865;BA.debugLine="Log(totaldev &\" \" & totalprod)";
__c.LogImpl("366257027",BA.NumberToString(_totaldev)+" "+BA.NumberToString(_totalprod),0);
__c.LogImpl("466322563",BA.NumberToString(_totaldev)+" "+BA.NumberToString(_totalprod),0);
//BA.debugLineNum = 866;BA.debugLine="If totalprod = 0 Then";
if (_totalprod==0) {
//BA.debugLineNum = 867;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
@@ -605,12 +605,12 @@ _prodsmap.Initialize();
//BA.debugLineNum = 1335;BA.debugLine="clv_prods_ll.Clear";
_clv_prods_ll._clear();
//BA.debugLineNum = 1336;BA.debugLine="Log(\"Positivo\")";
__c.LogImpl("367043338","Positivo",0);
__c.LogImpl("467108874","Positivo",0);
//BA.debugLineNum = 1337;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
_b4xpages._showpage /*String*/ (ba,"Cliente");
}else {
//BA.debugLineNum = 1339;BA.debugLine="Log(\"NO Positivo\")";
__c.LogImpl("367043341","NO Positivo",0);
__c.LogImpl("467108877","NO Positivo",0);
//BA.debugLineNum = 1340;BA.debugLine="p_vistaPreviaTrans.Visible = False";
_p_vistapreviatrans.setVisible(__c.False);
};
@@ -808,7 +808,7 @@ case 8:
this.state = 9;
;
//BA.debugLineNum = 163;BA.debugLine="Log(Starter.tabla)";
parent.__c.LogImpl("365667081",parent._starter._tabla /*String*/ ,0);
parent.__c.LogImpl("465732617",parent._starter._tabla /*String*/ ,0);
//BA.debugLineNum = 164;BA.debugLine="clienteId = Subs.traeCliente";
parent._clienteid = parent._subs._traecliente /*String*/ (ba);
//BA.debugLineNum = 165;BA.debugLine="rutaUsuario = Subs.traeRuta";
@@ -960,7 +960,7 @@ this.state = 25;
//BA.debugLineNum = 210;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select CA";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,parent._tipo_venta)))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),new String[]{"PROMOS","PROMOS"})));
//BA.debugLineNum = 211;BA.debugLine="LogColor($\"select CAT_GP_ID, CAT_GP_NOMBRE, CAT_";
parent.__c.LogImpl("365667129",("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,parent._tipo_venta)))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),parent.__c.Colors.Cyan);
parent.__c.LogImpl("465732665",("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,parent._tipo_venta)))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),parent.__c.Colors.Cyan);
//BA.debugLineNum = 213;BA.debugLine="Private hayPromos As Boolean = False";
_haypromos = parent.__c.False;
//BA.debugLineNum = 214;BA.debugLine="If c2.RowCount > 0 Then";
@@ -979,7 +979,7 @@ case 27:
//C
this.state = 28;
//BA.debugLineNum = 215;BA.debugLine="Log(\"Esto es un conteo --->\"&c2.RowCount) 'Isaa";
parent.__c.LogImpl("365667133","Esto es un conteo --->"+BA.NumberToString(parent._c2.getRowCount()),0);
parent.__c.LogImpl("465732669","Esto es un conteo --->"+BA.NumberToString(parent._c2.getRowCount()),0);
//BA.debugLineNum = 216;BA.debugLine="For i=0 To c2.RowCount -1";
if (true) break;
@@ -1010,7 +1010,7 @@ this.state = 31;
//BA.debugLineNum = 217;BA.debugLine="c2.Position = i";
parent._c2.setPosition(_i);
//BA.debugLineNum = 218;BA.debugLine="Log(\"Esto es i----->\"& i)'Isaac";
parent.__c.LogImpl("365667136","Esto es i----->"+BA.NumberToString(_i),0);
parent.__c.LogImpl("465732672","Esto es i----->"+BA.NumberToString(_i),0);
//BA.debugLineNum = 219;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G";
_tm = new anywheresoftware.b4a.objects.collections.Map();
_tm = parent._subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,parent._c2.GetString("CAT_GP_ID"),parent._clienteid);
@@ -1063,7 +1063,7 @@ case 42:
//C
this.state = 43;
//BA.debugLineNum = 226;BA.debugLine="Log(\"NO HAY PROMOS\")";
parent.__c.LogImpl("365667144","NO HAY PROMOS",0);
parent.__c.LogImpl("465732680","NO HAY PROMOS",0);
if (true) break;
case 43:
@@ -1229,7 +1229,7 @@ this.state = 16;
//BA.debugLineNum = 636;BA.debugLine="l_info.Visible = False";
parent._l_info.setVisible(parent.__c.False);
//BA.debugLineNum = 637;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("366060293","AQUI",0);
parent.__c.LogImpl("466125829","AQUI",0);
//BA.debugLineNum = 638;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
@@ -1241,7 +1241,7 @@ this.state = 16;
//BA.debugLineNum = 640;BA.debugLine="p_vistaPreviaTrans.Visible = False";
parent._p_vistapreviatrans.setVisible(parent.__c.False);
//BA.debugLineNum = 641;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("366060297","AQUI",0);
parent.__c.LogImpl("466125833","AQUI",0);
//BA.debugLineNum = 642;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
@@ -1261,7 +1261,7 @@ parent._l_total.setVisible(parent.__c.False);
//BA.debugLineNum = 648;BA.debugLine="l_totProds.Visible = False";
parent._l_totprods.setVisible(parent.__c.False);
//BA.debugLineNum = 649;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("366060305","AQUI",0);
parent.__c.LogImpl("466125841","AQUI",0);
//BA.debugLineNum = 650;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
@@ -1285,7 +1285,7 @@ parent._l_totprods.setVisible(parent.__c.False);
//BA.debugLineNum = 658;BA.debugLine="lv_catalogos.Visible = True";
parent._lv_catalogos.setVisible(parent.__c.True);
//BA.debugLineNum = 659;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("366060315","AQUI",0);
parent.__c.LogImpl("466125851","AQUI",0);
//BA.debugLineNum = 660;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
@@ -1295,7 +1295,7 @@ case 11:
//C
this.state = 16;
//BA.debugLineNum = 673;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("366060329","AQUI",0);
parent.__c.LogImpl("466125865","AQUI",0);
//BA.debugLineNum = 675;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
//BA.debugLineNum = 676;BA.debugLine="Return True";
@@ -1309,7 +1309,7 @@ this.state = 16;
//BA.debugLineNum = 678;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
//BA.debugLineNum = 679;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("366060335","AQUI",0);
parent.__c.LogImpl("466125871","AQUI",0);
//BA.debugLineNum = 680;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
@@ -1321,7 +1321,7 @@ this.state = 16;
//BA.debugLineNum = 682;BA.debugLine="B4XPages.ShowPage(\"Cliente\")";
parent._b4xpages._showpage /*String*/ (ba,"Cliente");
//BA.debugLineNum = 683;BA.debugLine="Log(\"AQUI\")";
parent.__c.LogImpl("366060339","AQUI",0);
parent.__c.LogImpl("466125875","AQUI",0);
//BA.debugLineNum = 684;BA.debugLine="Return False";
if (true) {
parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;};
@@ -1384,7 +1384,7 @@ for (;_i <= limit18 ;_i = _i + step18 ) {
//BA.debugLineNum = 134;BA.debugLine="c.Position=i";
_c.setPosition(_i);
//BA.debugLineNum = 135;BA.debugLine="Log(\"ENTRE AQUI EN PROMOS create\")";
__c.LogImpl("365601558","ENTRE AQUI EN PROMOS create",0);
__c.LogImpl("465667094","ENTRE AQUI EN PROMOS create",0);
//BA.debugLineNum = 136;BA.debugLine="lv_tipo.AddSingleLine(c.GetString(\"CAT_GP_TIPO\"";
_lv_tipo.AddSingleLine(BA.ObjectToCharSequence(_c.GetString("CAT_GP_TIPO")));
}
@@ -1493,7 +1493,7 @@ this.state = -1;
_p = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper();
_p = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_NOMBRE like '%"+parent.__c.SmartStringFormatter("",(Object)(_new))+"%' AND CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' AND CAT_GP_TIPO <> 'PROMOCION' union all select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2"))));
//BA.debugLineNum = 1763;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")";
parent.__c.LogImpl("367436559","Llamamos LlenaProdsLL",0);
parent.__c.LogImpl("467502095","Llamamos LlenaProdsLL",0);
//BA.debugLineNum = 1764;BA.debugLine="LlenaProdsLL(p)";
parent._llenaprodsll(_p);
//BA.debugLineNum = 1783;BA.debugLine="End Sub";
@@ -1805,7 +1805,7 @@ return null;
public String _cuentaprods() throws Exception{
//BA.debugLineNum = 1153;BA.debugLine="Sub cuentaProds";
//BA.debugLineNum = 1155;BA.debugLine="Log(\"===========================\")";
__c.LogImpl("366519042","===========================",0);
__c.LogImpl("466584578","===========================",0);
//BA.debugLineNum = 1156;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(PE_COSTO_TOT) as total, sum(PE_CANT) as cant from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_clienteid))+"'"))));
@@ -1829,7 +1829,7 @@ anywheresoftware.b4a.objects.B4XViewWrapper _lacant2 = null;
String _id = "";
//BA.debugLineNum = 983;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
//BA.debugLineNum = 984;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma";
__c.LogImpl("366387969",("focus changed="+__c.SmartStringFormatter("",(Object)(_hasfocus))+""),__c.Colors.Magenta);
__c.LogImpl("466453505",("focus changed="+__c.SmartStringFormatter("",(Object)(_hasfocus))+""),__c.Colors.Magenta);
//BA.debugLineNum = 985;BA.debugLine="If et_pCant.Text = \"\" Then et_pCant.Text = \"0\"";
if ((_et_pcant.getText()).equals("")) {
_et_pcant.setText(BA.ObjectToCharSequence("0"));};
@@ -1855,7 +1855,7 @@ _lacant.setText(BA.ObjectToCharSequence("0"));};
//BA.debugLineNum = 993;BA.debugLine="etCantHasFocus = HasFocus";
_etcanthasfocus = _hasfocus;
//BA.debugLineNum = 994;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("366387979",_lacant.getText(),__c.Colors.Red);
__c.LogImpl("466453515",_lacant.getText(),__c.Colors.Red);
//BA.debugLineNum = 995;BA.debugLine="If laCant2.IsInitialized Then";
if (_lacant2.IsInitialized()) {
//BA.debugLineNum = 996;BA.debugLine="totalcajasmaspiezas = laCant.Text + laCant2.Text";
@@ -1893,7 +1893,7 @@ double _totalprod = 0;
//BA.debugLineNum = 1009;BA.debugLine="If etCantHasFocus = True Then";
if (_etcanthasfocus==__c.True) {
//BA.debugLineNum = 1010;BA.debugLine="LogColor($\"txt changed: ${Old}|${New}, hasfocus=";
__c.LogImpl("366453508",("txt changed: "+__c.SmartStringFormatter("",(Object)(_old))+"|"+__c.SmartStringFormatter("",(Object)(_new))+", hasfocus="+__c.SmartStringFormatter("",(Object)(_etcanthasfocus))+""),__c.Colors.Magenta);
__c.LogImpl("466519044",("txt changed: "+__c.SmartStringFormatter("",(Object)(_old))+"|"+__c.SmartStringFormatter("",(Object)(_new))+", hasfocus="+__c.SmartStringFormatter("",(Object)(_etcanthasfocus))+""),__c.Colors.Magenta);
//BA.debugLineNum = 1011;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(";
_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 1012;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(inde";
@@ -1936,11 +1936,11 @@ _new = BA.NumberToString(0);};
if ((_lacant.getText()).equals("")) {
_lacant.setText(BA.ObjectToCharSequence(0));};
//BA.debugLineNum = 1035;BA.debugLine="LogColor(laCant.Text,Colors.Red)";
__c.LogImpl("366453533",_lacant.getText(),__c.Colors.Red);
__c.LogImpl("466519069",_lacant.getText(),__c.Colors.Red);
//BA.debugLineNum = 1049;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant.Text <";
if (__c.Not((_old).equals("0") && (_new).equals("")) && _lacant.getText()!= null && (_lacant.getText()).equals("") == false && _etcanthasfocus) {
//BA.debugLineNum = 1050;BA.debugLine="Log(\"actualizamos producto\")";
__c.LogImpl("366453548","actualizamos producto",0);
__c.LogImpl("466519084","actualizamos producto",0);
//BA.debugLineNum = 1051;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUT";
if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) {
//BA.debugLineNum = 1052;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, preci";
@@ -1968,7 +1968,7 @@ _o.setPosition((int) (0));
//BA.debugLineNum = 1077;BA.debugLine="invActualizado = Subs.traeinventario(id)";
_invactualizado = _subs._traeinventario /*String*/ (ba,_id);
//BA.debugLineNum = 1078;BA.debugLine="Log(Subs.traeinventario(id))";
__c.LogImpl("366453576",_subs._traeinventario /*String*/ (ba,_id),0);
__c.LogImpl("466519112",_subs._traeinventario /*String*/ (ba,_id),0);
//BA.debugLineNum = 1089;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(nombr";
_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+(_subs._traeinventario /*String*/ (ba,_id)))).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence((" $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""))).PopAll().getObject()));
};
@@ -1979,7 +1979,7 @@ if (_c.getRowCount()>0) {
//BA.debugLineNum = 1105;BA.debugLine="C.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 1106;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
__c.LogImpl("366453604",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
__c.LogImpl("466519140",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
//BA.debugLineNum = 1107;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART")));
//BA.debugLineNum = 1108;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
@@ -1998,7 +1998,7 @@ if (_c.getRowCount()>0) {
//BA.debugLineNum = 1115;BA.debugLine="C.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 1116;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
__c.LogImpl("366453614",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
__c.LogImpl("466519150",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
//BA.debugLineNum = 1117;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART")));
//BA.debugLineNum = 1118;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
@@ -2096,11 +2096,11 @@ _prdox = _p.GetView((int) (1));
//BA.debugLineNum = 1542;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(S";
_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 1545;BA.debugLine="Log(cant1.Text)";
__c.LogImpl("367305484",_cant1.getText(),0);
__c.LogImpl("467371020",_cant1.getText(),0);
//BA.debugLineNum = 1546;BA.debugLine="Dim prodx1() As String=Regex.Split(CRLF,PRDOX.Tex";
_prodx1 = __c.Regex.Split(__c.CRLF,_prdox.getText());
//BA.debugLineNum = 1547;BA.debugLine="Log(prodx1(1))";
__c.LogImpl("367305486",_prodx1[(int) (1)],0);
__c.LogImpl("467371022",_prodx1[(int) (1)],0);
//BA.debugLineNum = 1548;BA.debugLine="p_promodesc.Visible = True";
_p_promodesc.setVisible(__c.True);
//BA.debugLineNum = 1549;BA.debugLine="p_promodesc.Height = Root.Height";
@@ -2113,9 +2113,9 @@ _textprom = "";
_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_descpro = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+__c.SmartStringFormatter("",(Object)(_subs._traetipocliente /*int*/ (ba)))+",') > 0 "))));
//BA.debugLineNum = 1553;BA.debugLine="Log($\"SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_";
__c.LogImpl("367305492",("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"') AND INSTR(',' || CAT_DP_TIER || ',' , ',"+__c.SmartStringFormatter("",(Object)(_subs._traetipocliente /*int*/ (ba)))+",') > 0 "),0);
__c.LogImpl("467371028",("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"') AND INSTR(',' || CAT_DP_TIER || ',' , ',"+__c.SmartStringFormatter("",(Object)(_subs._traetipocliente /*int*/ (ba)))+",') > 0 "),0);
//BA.debugLineNum = 1554;BA.debugLine="Log(descpro.RowCount)";
__c.LogImpl("367305493",BA.NumberToString(_descpro.getRowCount()),0);
__c.LogImpl("467371029",BA.NumberToString(_descpro.getRowCount()),0);
//BA.debugLineNum = 1555;BA.debugLine="If descpro.RowCount > 0 Then";
if (_descpro.getRowCount()>0) {
//BA.debugLineNum = 1556;BA.debugLine="l_promodesc.Text = \"\"";
@@ -2167,7 +2167,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _devo = null;
//BA.debugLineNum = 2307;BA.debugLine="If tipo_venta <> \"PREVENTA_FUTURA\" Then";
if ((_tipo_venta).equals("PREVENTA_FUTURA") == false) {
//BA.debugLineNum = 2310;BA.debugLine="Log(l_total.Text)";
__c.LogImpl("367829764",_l_total.getText(),0);
__c.LogImpl("467895300",_l_total.getText(),0);
//BA.debugLineNum = 2311;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_CEDIS <> 'DUR'")));
//BA.debugLineNum = 2313;BA.debugLine="If c.RowCount > 0 Then";
@@ -2197,13 +2197,13 @@ _prdox = _p.GetView((int) (1));
//BA.debugLineNum = 2326;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(";
_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))));
//BA.debugLineNum = 2329;BA.debugLine="Log(cant1.Text)";
__c.LogImpl("367829783",_cant1.getText(),0);
__c.LogImpl("467895319",_cant1.getText(),0);
//BA.debugLineNum = 2330;BA.debugLine="Dim prodx1() As String=Regex.Split(CRLF,PRDOX.Te";
_prodx1 = __c.Regex.Split(__c.CRLF,_prdox.getText());
//BA.debugLineNum = 2331;BA.debugLine="Dim prodx3() As String=Regex.Split(\"\\$\",prodx1(1";
_prodx3 = __c.Regex.Split("\\$",_prodx1[(int) (1)]);
//BA.debugLineNum = 2332;BA.debugLine="Log(prodx1(1))";
__c.LogImpl("367829786",_prodx1[(int) (1)],0);
__c.LogImpl("467895322",_prodx1[(int) (1)],0);
//BA.debugLineNum = 2334;BA.debugLine="preciodev = prodx3(1)";
_preciodev = (double)(Double.parseDouble(_prodx3[(int) (1)]));
//BA.debugLineNum = 2335;BA.debugLine="nombredev = prodx1(0)";
@@ -2222,7 +2222,7 @@ if ((double)(Double.parseDouble(_c.GetString("PC_MONTO")))<_dev.GetInt("CAT_GP_P
//BA.debugLineNum = 2346;BA.debugLine="MsgboxAsync(\"El monto de venta es menor al pr";
__c.MsgboxAsync(BA.ObjectToCharSequence("El monto de venta es menor al precio de este producto"),BA.ObjectToCharSequence("Atención"),ba);
//BA.debugLineNum = 2347;BA.debugLine="Log(1)";
__c.LogImpl("367829801",BA.NumberToString(1),0);
__c.LogImpl("467895337",BA.NumberToString(1),0);
}else {
//BA.debugLineNum = 2349;BA.debugLine="p_devo.Visible = True";
_p_devo.setVisible(__c.True);
@@ -2272,7 +2272,7 @@ anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null;
int _pr = 0;
//BA.debugLineNum = 1785;BA.debugLine="Sub LlenaProdsLL(p As ResultSet)";
//BA.debugLineNum = 1786;BA.debugLine="Log(\"Iniciamos LlenaProdsLL\")";
__c.LogImpl("367502081","Iniciamos LlenaProdsLL",0);
__c.LogImpl("467567617","Iniciamos LlenaProdsLL",0);
//BA.debugLineNum = 1787;BA.debugLine="listaProds.Initialize";
_listaprods.Initialize();
//BA.debugLineNum = 1788;BA.debugLine="If hayPedido Then 'Si hay pedido obtenemos las ca";
@@ -2298,7 +2298,7 @@ _cant = (int) (0);
//BA.debugLineNum = 1800;BA.debugLine="cantsMap.put(pe.GetString(\"PE_PROID\"), pe.GetS";
_cantsmap.Put((Object)(_pe.GetString("PE_PROID")),(Object)(_pe.GetString("PE_CANT")));
//BA.debugLineNum = 1804;BA.debugLine="Log(clienteId &\"|||||\"&pe.GetString(\"PE_PROID\")";
__c.LogImpl("367502099",_clienteid+"|||||"+_pe.GetString("PE_PROID")+"|||||"+_pe.GetString("PE_CANT"),0);
__c.LogImpl("467567635",_clienteid+"|||||"+_pe.GetString("PE_PROID")+"|||||"+_pe.GetString("PE_CANT"),0);
}
;
//BA.debugLineNum = 1806;BA.debugLine="pe.Close";
@@ -2308,7 +2308,7 @@ _pe.Close();
if (_p.IsInitialized()) {
}else {
//BA.debugLineNum = 1816;BA.debugLine="LogColor(Starter.tabla,Colors.blue)";
__c.LogImpl("367502111",_starter._tabla /*String*/ ,__c.Colors.Blue);
__c.LogImpl("467567647",_starter._tabla /*String*/ ,__c.Colors.Blue);
//BA.debugLineNum = 1840;BA.debugLine="If Subs.traeTipoCliente = 5 Then";
if (_subs._traetipocliente /*int*/ (ba)==5) {
//BA.debugLineNum = 1841;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exe";
@@ -2327,7 +2327,7 @@ _cant = (int) (0);
//BA.debugLineNum = 1878;BA.debugLine="If hayPedido And cantsMap.ContainsKey(p.GetStrin";
if (_haypedido && _cantsmap.ContainsKey((Object)(_p.GetString("CAT_GP_ID")))) {
//BA.debugLineNum = 1879;BA.debugLine="Log(p.GetString(\"CAT_GP_ID\"))";
__c.LogImpl("367502174",_p.GetString("CAT_GP_ID"),0);
__c.LogImpl("467567710",_p.GetString("CAT_GP_ID"),0);
//BA.debugLineNum = 1880;BA.debugLine="cant = cantsMap.Get(p.GetString(\"CAT_GP_ID\"))";
_cant = (int)(BA.ObjectToNumber(_cantsmap.Get((Object)(_p.GetString("CAT_GP_ID")))));
};
@@ -2473,7 +2473,7 @@ if (_c.getRowCount()>0) {
//BA.debugLineNum = 288;BA.debugLine="C.Position = 0";
_c.setPosition((int) (0));
//BA.debugLineNum = 289;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt";
__c.LogImpl("365798158",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
__c.LogImpl("465863694",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0);
//BA.debugLineNum = 290;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N";
_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART")));
//BA.debugLineNum = 291;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON";
@@ -2557,7 +2557,7 @@ _yacompropro3055 = _subs._revisapro3055 /*boolean*/ (ba,_subs._traecliente /*Str
//BA.debugLineNum = 363;BA.debugLine="Private tipoCliente As Int = Subs.traeTipoClient";
_tipocliente = _subs._traetipocliente /*int*/ (ba);
//BA.debugLineNum = 364;BA.debugLine="Log(c2.RowCount)";
__c.LogImpl("365798233",BA.NumberToString(_c2.getRowCount()),0);
__c.LogImpl("465863769",BA.NumberToString(_c2.getRowCount()),0);
//BA.debugLineNum = 365;BA.debugLine="If c2.RowCount > 0 Then";
if (_c2.getRowCount()>0) {
//BA.debugLineNum = 383;BA.debugLine="For i=0 To c2.RowCount - 1";
@@ -2571,17 +2571,17 @@ _c2.setPosition(_i);
//BA.debugLineNum = 385;BA.debugLine="Private muestraPromo As Boolean = True";
_muestrapromo = __c.True;
//BA.debugLineNum = 386;BA.debugLine="Log($\"SEGMENTADA: ${c2.GetString(\"CAT_PA_BSEGM";
__c.LogImpl("365798255",("SEGMENTADA: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_BSEGMENTA")))+""),0);
__c.LogImpl("465863791",("SEGMENTADA: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_BSEGMENTA")))+""),0);
//BA.debugLineNum = 387;BA.debugLine="If c2.GetInt(\"CAT_PA_BSEGMENTA\") = 1 Then";
if (_c2.GetInt("CAT_PA_BSEGMENTA")==1) {
//BA.debugLineNum = 388;BA.debugLine="LogColor(\"####### PROMO SEGMENTADA #### \"&";
__c.LogImpl("365798257","####### PROMO SEGMENTADA #### "+_c2.GetString("CAT_GP_ID"),__c.Colors.Blue);
__c.LogImpl("465863793","####### PROMO SEGMENTADA #### "+_c2.GetString("CAT_GP_ID"),__c.Colors.Blue);
//BA.debugLineNum = 389;BA.debugLine="LogColor($\"####### SEGV: ${c2.GetString(\"CA";
__c.LogImpl("365798258",("####### SEGV: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_SEGMENTAV")))+" ####"),__c.Colors.Blue);
__c.LogImpl("465863794",("####### SEGV: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_SEGMENTAV")))+" ####"),__c.Colors.Blue);
//BA.debugLineNum = 390;BA.debugLine="LogColor($\"####### TIPOCLIE: ${tipoCliente}";
__c.LogImpl("365798259",("####### TIPOCLIE: "+__c.SmartStringFormatter("",(Object)(_tipocliente))+" ####"),__c.Colors.Blue);
__c.LogImpl("465863795",("####### TIPOCLIE: "+__c.SmartStringFormatter("",(Object)(_tipocliente))+" ####"),__c.Colors.Blue);
//BA.debugLineNum = 391;BA.debugLine="LogColor($\"####### ¿ENTRA?: ${c2.GetString(";
__c.LogImpl("365798260",("####### ¿ENTRA?: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_SEGMENTAV").contains(BA.NumberToString(_tipocliente))))+" ####"),__c.Colors.Blue);
__c.LogImpl("465863796",("####### ¿ENTRA?: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_SEGMENTAV").contains(BA.NumberToString(_tipocliente))))+" ####"),__c.Colors.Blue);
//BA.debugLineNum = 392;BA.debugLine="If Not(c2.GetString(\"CAT_PA_SEGMENTAV\").Conta";
if (__c.Not(_c2.GetString("CAT_PA_SEGMENTAV").contains(BA.NumberToString(_tipocliente)))) {
_muestrapromo = __c.False;};
@@ -2590,48 +2590,48 @@ _muestrapromo = __c.False;};
_tm = new anywheresoftware.b4a.objects.collections.Map();
_tm = _subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_c2.GetString("CAT_GP_ID"),_subs._traecliente /*String*/ (ba));
//BA.debugLineNum = 399;BA.debugLine="Log($\"TM=${tm}\"$)";
__c.LogImpl("365798268",("TM="+__c.SmartStringFormatter("",(Object)(_tm.getObject()))+""),0);
__c.LogImpl("465863804",("TM="+__c.SmartStringFormatter("",(Object)(_tm.getObject()))+""),0);
//BA.debugLineNum = 400;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral";
if ((_tm.Get((Object)("status"))).equals((Object)("ok"))) {
//BA.debugLineNum = 401;BA.debugLine="If yaComproPRO2265 And c2.GetString(\"CAT_GP_I";
if (_yacompropro2265 && (_c2.GetString("CAT_GP_ID")).equals("PRO3015")) {
//BA.debugLineNum = 402;BA.debugLine="LogColor(\"Ya compro la PRO2265, ya no se mue";
__c.LogImpl("365798271","Ya compro la PRO2265, ya no se muestra la PRO3015",__c.Colors.Red);
__c.LogImpl("465863807","Ya compro la PRO2265, ya no se muestra la PRO3015",__c.Colors.Red);
}else {
//BA.debugLineNum = 404;BA.debugLine="If (yaComproPRO3054 And c2.GetString(\"CAT_GP";
if ((_yacompropro3054 && (_c2.GetString("CAT_GP_ID")).equals("PRO3054")) || (_yacompropro3055 && (_c2.GetString("CAT_GP_ID")).equals("PRO3055"))) {
//BA.debugLineNum = 406;BA.debugLine="LogColor(\"Ya compro prods de la PRO3054 o P";
__c.LogImpl("365798275","Ya compro prods de la PRO3054 o PRO3055 o es cliente nuevo, ya no se muestra.",__c.Colors.Red);
__c.LogImpl("465863811","Ya compro prods de la PRO3054 o PRO3055 o es cliente nuevo, ya no se muestra.",__c.Colors.Red);
}else {
//BA.debugLineNum = 408;BA.debugLine="If Subs.traeAlmacen = 88 Then";
if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(88))) {
//BA.debugLineNum = 409;BA.debugLine="Log(\"SI ENTRE1\")";
__c.LogImpl("365798278","SI ENTRE1",0);
__c.LogImpl("465863814","SI ENTRE1",0);
//BA.debugLineNum = 410;BA.debugLine="Log(c2.GetString(\"CAT_GP_ID\"))";
__c.LogImpl("365798279",_c2.GetString("CAT_GP_ID"),0);
__c.LogImpl("465863815",_c2.GetString("CAT_GP_ID"),0);
//BA.debugLineNum = 411;BA.debugLine="If c2.GetString(\"CAT_GP_ID\") = \"MYKONOS_01";
if ((_c2.GetString("CAT_GP_ID")).equals("MYKONOS_01") && _subs._traemontoprod /*boolean*/ (ba)) {
//BA.debugLineNum = 412;BA.debugLine="Log(\"SI ENTRE\")";
__c.LogImpl("365798281","SI ENTRE",0);
__c.LogImpl("465863817","SI ENTRE",0);
//BA.debugLineNum = 413;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLine";
if (_muestrapromo) {
_lv_promos.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+_c2.GetString("CAT_GP_ALMACEN")+" $ "+_c2.GetString("CAT_GP_PRECIO")+" F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+" V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));};
}else if((_c2.GetString("CAT_GP_ID")).equals("MYKONOS_01") == false) {
//BA.debugLineNum = 415;BA.debugLine="Log(\"SI ENTRE2\")";
__c.LogImpl("365798284","SI ENTRE2",0);
__c.LogImpl("465863820","SI ENTRE2",0);
//BA.debugLineNum = 416;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLine";
if (_muestrapromo) {
_lv_promos.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+_c2.GetString("CAT_GP_ALMACEN")+" $ "+_c2.GetString("CAT_GP_PRECIO")+" F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+" V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));};
};
}else {
//BA.debugLineNum = 419;BA.debugLine="Log(\"SI ENTRE3\")";
__c.LogImpl("365798288","SI ENTRE3",0);
__c.LogImpl("465863824","SI ENTRE3",0);
//BA.debugLineNum = 420;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLines";
if (_muestrapromo) {
_lv_promos.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+_c2.GetString("CAT_GP_ALMACEN")+" $ "+_c2.GetString("CAT_GP_PRECIO")+" F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+" V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));};
};
//BA.debugLineNum = 422;BA.debugLine="Log($\"################################${CRL";
__c.LogImpl("365798291",("################################"+__c.SmartStringFormatter("",(Object)(__c.CRLF))+" "+__c.SmartStringFormatter("",(Object)(_muestrapromo))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"################################"),0);
__c.LogImpl("465863827",("################################"+__c.SmartStringFormatter("",(Object)(__c.CRLF))+" "+__c.SmartStringFormatter("",(Object)(_muestrapromo))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"################################"),0);
};
};
};
@@ -2701,7 +2701,7 @@ parent._busca.setText(BA.ObjectToCharSequence(""));
//BA.debugLineNum = 449;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie";
_cliente = (gunav2.keymon.com.mx.c_cliente)(parent._b4xpages._getpage /*Object*/ (ba,"Cliente"));
//BA.debugLineNum = 450;BA.debugLine="Log($\"value=${Value}\"$)";
parent.__c.LogImpl("365863684",("value="+parent.__c.SmartStringFormatter("",_value)+""),0);
parent.__c.LogImpl("465929220",("value="+parent.__c.SmartStringFormatter("",_value)+""),0);
//BA.debugLineNum = 451;BA.debugLine="If Value = \"PROMOCIONES\" And cliente.cuenta <> \"N";
if (true) break;
@@ -2749,7 +2749,7 @@ case 8:
//C
this.state = 11;
//BA.debugLineNum = 460;BA.debugLine="LogColor(\"Promos\", Colors.red)";
parent.__c.LogImpl("365863694","Promos",parent.__c.Colors.Red);
parent.__c.LogImpl("465929230","Promos",parent.__c.Colors.Red);
//BA.debugLineNum = 461;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select C";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD = ? AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) ) ORDER BY 1"),new String[]{"PROMOS",parent._marca,parent._tipo})));
if (true) break;
@@ -2758,7 +2758,7 @@ case 10:
//C
this.state = 11;
//BA.debugLineNum = 463;BA.debugLine="LogColor(\"Catalogo\", Colors.red)";
parent.__c.LogImpl("365863697","Catalogo",parent.__c.Colors.Red);
parent.__c.LogImpl("465929233","Catalogo",parent.__c.Colors.Red);
//BA.debugLineNum = 464;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery($\"select CAT";
parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD <> 'PROMOS' "))));
if (true) break;
@@ -2784,7 +2784,7 @@ parent._lv_promos.setVisible(parent.__c.False);
//BA.debugLineNum = 489;BA.debugLine="lfila.text = \"PORTAFOLIO\"";
parent._lfila.setText(BA.ObjectToCharSequence("PORTAFOLIO"));
//BA.debugLineNum = 490;BA.debugLine="Log(\"PGS\")";
parent.__c.LogImpl("365863724","PGS",0);
parent.__c.LogImpl("465929260","PGS",0);
//BA.debugLineNum = 491;BA.debugLine="ProgressDialogShow(\"Cargando catalogo ...\")";
parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Cargando catalogo ..."));
//BA.debugLineNum = 492;BA.debugLine="Sleep(100)";
@@ -2802,9 +2802,9 @@ parent._llenacatalogo(BA.ObjectToString(parent.__c.False));
//BA.debugLineNum = 495;BA.debugLine="clv_prods_ll.AsView.Visible = True";
parent._clv_prods_ll._asview().setVisible(parent.__c.True);
//BA.debugLineNum = 496;BA.debugLine="Log(\"PGH\")";
parent.__c.LogImpl("365863730","PGH",0);
parent.__c.LogImpl("465929266","PGH",0);
//BA.debugLineNum = 497;BA.debugLine="LogColor(\"TIEMPO DE PROCESO DEL CATALOGO: \" & ((";
parent.__c.LogImpl("365863731","TIEMPO DE PROCESO DEL CATALOGO: "+BA.NumberToString(((parent.__c.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),parent.__c.Colors.Red);
parent.__c.LogImpl("465929267","TIEMPO DE PROCESO DEL CATALOGO: "+BA.NumberToString(((parent.__c.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),parent.__c.Colors.Red);
//BA.debugLineNum = 498;BA.debugLine="ProgressDialogHide";
parent.__c.ProgressDialogHide();
//BA.debugLineNum = 499;BA.debugLine="c2.Close";
@@ -2815,7 +2815,7 @@ case 15:
//C
this.state = 16;
//BA.debugLineNum = 501;BA.debugLine="Log(\"ENTRAMOS A PROMOS\")";
parent.__c.LogImpl("365863735","ENTRAMOS A PROMOS",0);
parent.__c.LogImpl("465929271","ENTRAMOS A PROMOS",0);
//BA.debugLineNum = 502;BA.debugLine="clv_prods_ll.AsView.Visible = False";
parent._clv_prods_ll._asview().setVisible(parent.__c.False);
//BA.debugLineNum = 503;BA.debugLine="lv_promos.Visible = True";
@@ -2966,11 +2966,11 @@ String _usuario = "";
int _j = 0;
//BA.debugLineNum = 1354;BA.debugLine="Private Sub lv_prodsPedido_ItemLongClick (Position";
//BA.debugLineNum = 1355;BA.debugLine="Log(Value)";
__c.LogImpl("367174401",BA.ObjectToString(_value),0);
__c.LogImpl("467239937",BA.ObjectToString(_value),0);
//BA.debugLineNum = 1356;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)";
_x = __c.Regex.Split(" ",BA.ObjectToString(_value));
//BA.debugLineNum = 1357;BA.debugLine="Log(X.Length)";
__c.LogImpl("367174403",BA.NumberToString(_x.length),0);
__c.LogImpl("467239939",BA.NumberToString(_x.length),0);
//BA.debugLineNum = 1358;BA.debugLine="Private nom As String = \"\"";
_nom = "";
//BA.debugLineNum = 1359;BA.debugLine="For i = 0 To X.Length -1";
@@ -2997,9 +2997,9 @@ _nom = _nom.trim();
//BA.debugLineNum = 1369;BA.debugLine="Private cedis As String = X(X.Length-1)";
_cedis = _x[(int) (_x.length-1)];
//BA.debugLineNum = 1370;BA.debugLine="Log(nom)";
__c.LogImpl("367174416",_nom,0);
__c.LogImpl("467239952",_nom,0);
//BA.debugLineNum = 1371;BA.debugLine="Log(cedis)";
__c.LogImpl("367174417",_cedis,0);
__c.LogImpl("467239953",_cedis,0);
//BA.debugLineNum = 1372;BA.debugLine="Private sDate,sTime, clie_id, usuario As String";
_sdate = "";
_stime = "";
@@ -3014,33 +3014,33 @@ _c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObject
//BA.debugLineNum = 1377;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 1378;BA.debugLine="Log(vamoaver.Get(Position))";
__c.LogImpl("367174424",BA.ObjectToString(_vamoaver.Get(_position)),0);
__c.LogImpl("467239960",BA.ObjectToString(_vamoaver.Get(_position)),0);
//BA.debugLineNum = 1379;BA.debugLine="If vamoaver.Get(Position) = \"VENTA\" Then";
if ((_vamoaver.Get(_position)).equals((Object)("VENTA"))) {
//BA.debugLineNum = 1380;BA.debugLine="Log(\"CAT_GUNAPROD2\")";
__c.LogImpl("367174426","CAT_GUNAPROD2",0);
__c.LogImpl("467239962","CAT_GUNAPROD2",0);
//BA.debugLineNum = 1381;BA.debugLine="Log(Position)";
__c.LogImpl("367174427",BA.NumberToString(_position),0);
__c.LogImpl("467239963",BA.NumberToString(_position),0);
//BA.debugLineNum = 1382;BA.debugLine="Log(Value)";
__c.LogImpl("367174428",BA.ObjectToString(_value),0);
__c.LogImpl("467239964",BA.ObjectToString(_value),0);
//BA.debugLineNum = 1383;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\"";
_starter._tabla /*String*/ = "CAT_GUNAPROD2";
}else {
//BA.debugLineNum = 1385;BA.debugLine="Log(\"CAT_GUNAPROD\")";
__c.LogImpl("367174431","CAT_GUNAPROD",0);
__c.LogImpl("467239967","CAT_GUNAPROD",0);
//BA.debugLineNum = 1386;BA.debugLine="Log(Position)";
__c.LogImpl("367174432",BA.NumberToString(_position),0);
__c.LogImpl("467239968",BA.NumberToString(_position),0);
//BA.debugLineNum = 1387;BA.debugLine="Log(Value)";
__c.LogImpl("367174433",BA.ObjectToString(_value),0);
__c.LogImpl("467239969",BA.ObjectToString(_value),0);
//BA.debugLineNum = 1388;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\"";
_starter._tabla /*String*/ = "CAT_GUNAPROD";
};
//BA.debugLineNum = 1447;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE_P";
_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"))));
//BA.debugLineNum = 1448;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDI";
__c.LogImpl("367174494",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
__c.LogImpl("467240030",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0);
//BA.debugLineNum = 1449;BA.debugLine="Log(c.RowCount)";
__c.LogImpl("367174495",BA.NumberToString(_c.getRowCount()),0);
__c.LogImpl("467240031",BA.NumberToString(_c.getRowCount()),0);
//BA.debugLineNum = 1450;BA.debugLine="c.Position=0";
_c.setPosition((int) (0));
//BA.debugLineNum = 1453;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
@@ -3050,11 +3050,11 @@ if (__c.Not(__c.IsNumber(_cedis))) {
//BA.debugLineNum = 1461;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT";
_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis})));
//BA.debugLineNum = 1463;BA.debugLine="LogColor(j3.RowCount,Colors.Yellow)";
__c.LogImpl("367174509",BA.NumberToString(_j3.getRowCount()),__c.Colors.Yellow);
__c.LogImpl("467240045",BA.NumberToString(_j3.getRowCount()),__c.Colors.Yellow);
//BA.debugLineNum = 1464;BA.debugLine="If j3.RowCount > 0 Then";
if (_j3.getRowCount()>0) {
//BA.debugLineNum = 1465;BA.debugLine="Log(\"Soy promo\")";
__c.LogImpl("367174511","Soy promo",0);
__c.LogImpl("467240047","Soy promo",0);
//BA.debugLineNum = 1466;BA.debugLine="For j = 0 To j3.RowCount -1";
{
final int step45 = 1;
@@ -3062,7 +3062,7 @@ final int limit45 = (int) (_j3.getRowCount()-1);
_j = (int) (0) ;
for (;_j <= limit45 ;_j = _j + step45 ) {
//BA.debugLineNum = 1467;BA.debugLine="Log(\"aqui tronare?\")";
__c.LogImpl("367174513","aqui tronare?",0);
__c.LogImpl("467240049","aqui tronare?",0);
//BA.debugLineNum = 1468;BA.debugLine="j3.Position = j";
_j3.setPosition(_j);
//BA.debugLineNum = 1469;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update";
@@ -3205,7 +3205,7 @@ public String _lv_promos_itemlongclick(int _position,Object _value) throws Exce
String _id = "";
//BA.debugLineNum = 1269;BA.debugLine="Private Sub lv_promos_ItemLongClick (Position As I";
//BA.debugLineNum = 1270;BA.debugLine="Log(\"Promo longclic = \"&Value)";
__c.LogImpl("366781185","Promo longclic = "+BA.ObjectToString(_value),0);
__c.LogImpl("466846721","Promo longclic = "+BA.ObjectToString(_value),0);
//BA.debugLineNum = 1271;BA.debugLine="Private id As String = \"\"";
_id = "";
//BA.debugLineNum = 1272;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer";

View File

@@ -153,7 +153,7 @@ _tpr = BA.NumberToString(0);
_prodsfijostot = (float) (_prodsfijostot+((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_tpr))));
//BA.debugLineNum = 666;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)";
if (_thislog) {
__c.LogImpl("377201436","|"+_tpi+"|"+_p,0);};
__c.LogImpl("477266972","|"+_tpi+"|"+_p,0);};
//BA.debugLineNum = 667;BA.debugLine="Private ntpi As Int = tpi * et_promoCant.text";
_ntpi = (int) ((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_et_promocant.getText())));
//BA.debugLineNum = 668;BA.debugLine="If addListItem And tpi > 0 Then lv_prodsFijos.Ad";
@@ -180,7 +180,7 @@ gunav2.keymon.com.mx.c_productos _prodspage = null;
//BA.debugLineNum = 1012;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 1013;BA.debugLine="Log(\"============================================";
__c.LogImpl("378053378","====================================================================",0);
__c.LogImpl("478118914","====================================================================",0);
//BA.debugLineNum = 1014;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
{
final int step3 = 1;
@@ -464,7 +464,7 @@ _prodsvarreq = (int) (_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getT
//BA.debugLineNum = 965;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text";
_prodsvarreq2 = (int) (_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText()))));
//BA.debugLineNum = 966;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
__c.LogImpl("377922335",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
__c.LogImpl("477987871",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
};
//BA.debugLineNum = 968;BA.debugLine="If et_promoCant.text > maxCantPromos Then et_prom";
if ((double)(Double.parseDouble(_et_promocant.getText()))>_maxcantpromos) {
@@ -494,7 +494,7 @@ _prodsvarreq = (int) (_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getT
//BA.debugLineNum = 930;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text.";
_prodsvarreq2 = (int) (_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText()))));
//BA.debugLineNum = 931;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr";
__c.LogImpl("377856778",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
__c.LogImpl("477922314",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
//BA.debugLineNum = 932;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 933;BA.debugLine="End Sub";
@@ -507,7 +507,7 @@ String _pn = "";
//BA.debugLineNum = 973;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 974;BA.debugLine="Log(\"============================================";
__c.LogImpl("377987842","====================================================================",0);
__c.LogImpl("478053378","====================================================================",0);
//BA.debugLineNum = 975;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
{
final int step3 = 1;
@@ -584,7 +584,7 @@ _montopedidoactual = BA.ObjectToString(_m.Get((Object)("monto")));
if ((_lapromo).equals("") == false) {
_muestrapromo(_lapromo,_elcliente);};
//BA.debugLineNum = 478;BA.debugLine="Log(laPromo)";
__c.LogImpl("377070349",_lapromo,0);
__c.LogImpl("477135885",_lapromo,0);
//BA.debugLineNum = 479;BA.debugLine="End Sub";
return "";
}
@@ -825,7 +825,7 @@ _pf = (int) (0) ;
for (;_pf <= limit10 ;_pf = _pf + step10 ) {
//BA.debugLineNum = 851;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get";
if (_thislog) {
__c.LogImpl("377725711",(""+__c.SmartStringFormatter("",(Object)(_tcpf))+" + "+__c.SmartStringFormatter("",_prodscants.Get(_pf))+" * "+__c.SmartStringFormatter("",_prodsprecios.Get(_pf))+" = "+__c.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf))))))+""),0);};
__c.LogImpl("477791247",(""+__c.SmartStringFormatter("",(Object)(_tcpf))+" + "+__c.SmartStringFormatter("",_prodscants.Get(_pf))+" * "+__c.SmartStringFormatter("",_prodsprecios.Get(_pf))+" = "+__c.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf))))))+""),0);};
//BA.debugLineNum = 852;BA.debugLine="tcpf = tcpf + (prodsPrecios.Get(pf) * prodsCants";
_tcpf = (float) (_tcpf+((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf)))));
}
@@ -868,7 +868,7 @@ if ((double)(Double.parseDouble(_cant1.getText()))>0) {
_totalcompra = (float) (_totalcompra+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant1.getText()))));
//BA.debugLineNum = 870;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma";
if (_thislog) {
__c.LogImpl("377725730",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
__c.LogImpl("477791266",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 871;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
_prodsids2.Add(_estetag.Get((int) (2)));
//BA.debugLineNum = 872;BA.debugLine="prodsCants2.Add(cant1.Text)";
@@ -913,7 +913,7 @@ if ((double)(Double.parseDouble(_cant2.getText()))>0) {
_totalcompra = (float) (_totalcompra+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant2.getText()))));
//BA.debugLineNum = 890;BA.debugLine="If thisLog Then Log($\"Cant: ${cant2.Text}, Suma";
if (_thislog) {
__c.LogImpl("377725750",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
__c.LogImpl("477791286",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 891;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
_prodsids2.Add(_estetag.Get((int) (2)));
//BA.debugLineNum = 892;BA.debugLine="prodsCants2.Add(cant2.Text)";
@@ -929,7 +929,7 @@ _l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormat
};
//BA.debugLineNum = 899;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},";
if (_thislog) {
__c.LogImpl("377725759",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);};
__c.LogImpl("477791295",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 900;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+"")));
//BA.debugLineNum = 901;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
@@ -948,17 +948,17 @@ _b_continuar.setVisible(__c.True);
};
//BA.debugLineNum = 911;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr";
if (_thislog) {
__c.LogImpl("377725771",(""+__c.SmartStringFormatter("",(Object)(_prodsids.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios.getObject()))+""),__c.Colors.Blue);};
__c.LogImpl("477791307",(""+__c.SmartStringFormatter("",(Object)(_prodsids.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios.getObject()))+""),__c.Colors.Blue);};
//BA.debugLineNum = 912;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p";
if (_thislog) {
__c.LogImpl("377725772",(""+__c.SmartStringFormatter("",(Object)(_prodsids2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios2.getObject()))+""),__c.Colors.Magenta);};
__c.LogImpl("477791308",(""+__c.SmartStringFormatter("",(Object)(_prodsids2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios2.getObject()))+""),__c.Colors.Magenta);};
//BA.debugLineNum = 914;BA.debugLine="End Sub";
return "";
}
public String _et_pcant_focuschanged(boolean _hasfocus) throws Exception{
//BA.debugLineNum = 916;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
//BA.debugLineNum = 917;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)";
__c.LogImpl("377791233","focus changed",__c.Colors.Magenta);
__c.LogImpl("477856769","focus changed",__c.Colors.Magenta);
//BA.debugLineNum = 918;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 919;BA.debugLine="End Sub";
@@ -1018,10 +1018,10 @@ _invdisppromo = new anywheresoftware.b4a.objects.collections.Map();
_invdisppromo = _subs._traemosinventariodisponibleparapromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_promo);
//BA.debugLineNum = 491;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) {
__c.LogImpl("377135881","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
__c.LogImpl("477201417","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
//BA.debugLineNum = 492;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) {
__c.LogImpl("377135882","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
__c.LogImpl("477201418","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
//BA.debugLineNum = 493;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable";
_maxcantpromos = _subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp);
//BA.debugLineNum = 494;BA.debugLine="et_promoCant.Text = 1";
@@ -1065,10 +1065,10 @@ _cs = new anywheresoftware.b4a.objects.CSBuilder();
_cs.Initialize();
//BA.debugLineNum = 521;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) {
__c.LogImpl("377135911",BA.ObjectToString(_mp),0);};
__c.LogImpl("477201447",BA.ObjectToString(_mp),0);};
//BA.debugLineNum = 522;BA.debugLine="If thisLog Then Log(prodsPromo)";
if (_thislog) {
__c.LogImpl("377135912",BA.ObjectToString(_prodspromo),0);};
__c.LogImpl("477201448",BA.ObjectToString(_prodspromo),0);};
//BA.debugLineNum = 523;BA.debugLine="Private listaPV As List = mp.Get(\"prodsVariables\"";
_listapv = new anywheresoftware.b4a.objects.collections.List();
_listapv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables"))));
@@ -1093,7 +1093,7 @@ _pv2 = new anywheresoftware.b4a.objects.collections.List();
_pv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables2"))));
//BA.debugLineNum = 537;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) {
__c.LogImpl("377135927",BA.ObjectToString(_mp),0);};
__c.LogImpl("477201463",BA.ObjectToString(_mp),0);};
//BA.debugLineNum = 538;BA.debugLine="tpf = 0";
_tpf = (int) (0);
//BA.debugLineNum = 539;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")";
@@ -1150,20 +1150,20 @@ _lv_prodsfijos.Clear();
_agregafijosalista(_mp,__c.True);
//BA.debugLineNum = 567;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod";
if (_thislog) {
__c.LogImpl("377135957","Total prods fijos = "+BA.NumberToString(_prodsfijostot),0);};
__c.LogImpl("477201493","Total prods fijos = "+BA.NumberToString(_prodsfijostot),0);};
//BA.debugLineNum = 569;BA.debugLine="l_totProds.text = $\"Productos: ${tpf}\"$";
_l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(_tpf))+"")));
//BA.debugLineNum = 570;BA.debugLine="l_total.Text = $\"Total: $$1.2{prodsFijosTot}\"$";
_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_prodsfijostot))+"")));
//BA.debugLineNum = 576;BA.debugLine="If thisLog Then Log($\"PV1: ${pv.Size}, ${pv}\"$)";
if (_thislog) {
__c.LogImpl("377135966",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);};
__c.LogImpl("477201502",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);};
//BA.debugLineNum = 577;BA.debugLine="If thisLog Then Log($\"PV2: ${pv2.Size}, ${pv2}\"$)";
if (_thislog) {
__c.LogImpl("377135967",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);};
__c.LogImpl("477201503",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);};
//BA.debugLineNum = 578;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)";
if (_thislog) {
__c.LogImpl("377135968","invDisp="+BA.ObjectToString(_invdisppromo),0);};
__c.LogImpl("477201504","invDisp="+BA.ObjectToString(_invdisppromo),0);};
//BA.debugLineNum = 579;BA.debugLine="clv_prodsVariabes.Clear";
_clv_prodsvariabes._clear();
//BA.debugLineNum = 580;BA.debugLine="clv_prodsVariabes2.Clear";
@@ -1187,7 +1187,7 @@ _thisprod = new anywheresoftware.b4a.objects.collections.Map();
_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p))));
//BA.debugLineNum = 591;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) {
__c.LogImpl("377135981",BA.ObjectToString(_thisprod),0);};
__c.LogImpl("477201517",BA.ObjectToString(_thisprod),0);};
//BA.debugLineNum = 592;BA.debugLine="clv_prodsVariabes.Add(CreateListItem(Subs.traeP";
_clv_prodsvariabes._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),_clv_prodsvariabes._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p));
};
@@ -1212,7 +1212,7 @@ _thisprod = new anywheresoftware.b4a.objects.collections.Map();
_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p))));
//BA.debugLineNum = 611;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) {
__c.LogImpl("377136001",BA.ObjectToString(_thisprod),0);};
__c.LogImpl("477201537",BA.ObjectToString(_thisprod),0);};
//BA.debugLineNum = 612;BA.debugLine="clv_prodsVariabes2.Add(CreateListItem2(Subs.tra";
_clv_prodsvariabes2._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),_clv_prodsvariabes2._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p));
};

View File

@@ -134,12 +134,12 @@ for (;_i <= limit29 ;_i = _i + step29 ) {
//BA.debugLineNum = 194;BA.debugLine="c.Position=i";
_c.setPosition(_i);
//BA.debugLineNum = 195;BA.debugLine="Log(C.GetString(\"PC_CLIENTE\"))";
__c.LogImpl("368616225",_c.GetString("PC_CLIENTE"),0);
__c.LogImpl("468681761",_c.GetString("PC_CLIENTE"),0);
//BA.debugLineNum = 196;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.Ex";
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE = ? and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{_c.GetString("PC_CLIENTE"),"","null"})));
//BA.debugLineNum = 197;BA.debugLine="LogColor(s3.RowCount,Colors.Yellow)";
__c.LogImpl("368616227",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow);
__c.LogImpl("468681763",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow);
//BA.debugLineNum = 198;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) {
//BA.debugLineNum = 199;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Ex";
@@ -184,7 +184,7 @@ _listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.Ob
_s.Close();
}else if(_s3.getRowCount()==0) {
//BA.debugLineNum = 221;BA.debugLine="Log(s3.RowCount)";
__c.LogImpl("368616251",BA.NumberToString(_s3.getRowCount()),0);
__c.LogImpl("468681787",BA.NumberToString(_s3.getRowCount()),0);
//BA.debugLineNum = 222;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Ex";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE = ?",new String[]{_c.GetString("PC_CLIENTE")})));
@@ -217,13 +217,13 @@ _label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typefac
//BA.debugLineNum = 238;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface";
_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
//BA.debugLineNum = 239;BA.debugLine="Log(c.GetString(\"PC_CLIENTE\"))";
__c.LogImpl("368616269",_c.GetString("PC_CLIENTE"),0);
__c.LogImpl("468681805",_c.GetString("PC_CLIENTE"),0);
//BA.debugLineNum = 240;BA.debugLine="Log(c.GetString(\"NOMBRE\"))";
__c.LogImpl("368616270",_c.GetString("NOMBRE"),0);
__c.LogImpl("468681806",_c.GetString("NOMBRE"),0);
//BA.debugLineNum = 241;BA.debugLine="Log(s.GetString(\"CANT_CLIE\"))";
__c.LogImpl("368616271",_s.GetString("CANT_CLIE"),0);
__c.LogImpl("468681807",_s.GetString("CANT_CLIE"),0);
//BA.debugLineNum = 242;BA.debugLine="Log(c.GetString(\"PC_CLIENTE\"))";
__c.LogImpl("368616272",_c.GetString("PC_CLIENTE"),0);
__c.LogImpl("468681808",_c.GetString("PC_CLIENTE"),0);
//BA.debugLineNum = 243;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"PC_CLIENTE";
_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("NOMBRE")+" Cantidad #"+_s.GetString("CANT_CLIE")+" SubTotal $"+_subs._calculatotalconpromoxrango /*String*/ (ba,_c.GetString("PC_CLIENTE"))));
//BA.debugLineNum = 244;BA.debugLine="s.Close";
@@ -275,7 +275,7 @@ _c.setPosition(_i);
_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE = ? and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{_c.GetString("PC_CLIENTE"),"","null"})));
//BA.debugLineNum = 76;BA.debugLine="LogColor(s3.RowCount,Colors.Yellow)";
__c.LogImpl("368354066",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow);
__c.LogImpl("468419602",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow);
//BA.debugLineNum = 77;BA.debugLine="If s3.RowCount > 0 Then";
if (_s3.getRowCount()>0) {
//BA.debugLineNum = 79;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Exe";
@@ -315,7 +315,7 @@ _label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typefac
//BA.debugLineNum = 100;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface.";
_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
//BA.debugLineNum = 101;BA.debugLine="Log(1)";
__c.LogImpl("368354091",BA.NumberToString(1),0);
__c.LogImpl("468419627",BA.NumberToString(1),0);
//BA.debugLineNum = 103;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"PC_CLIENTE\"";
_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("NOMBRE")+" Cantidad #"+BA.NumberToString(((double)(Double.parseDouble(_s.GetString("CANT_CLIE")))+(double)(Double.parseDouble(_s5.GetString("CANT_CLIE")))))+" SubTotal $"+_subs._calculatotalconpromoxrango /*String*/ (ba,_c.GetString("PC_CLIENTE"))));
//BA.debugLineNum = 104;BA.debugLine="s.Close";
@@ -353,7 +353,7 @@ _label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typefac
//BA.debugLineNum = 122;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface.";
_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD));
//BA.debugLineNum = 123;BA.debugLine="Log(2)";
__c.LogImpl("368354113",BA.NumberToString(2),0);
__c.LogImpl("468419649",BA.NumberToString(2),0);
//BA.debugLineNum = 124;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"PC_CLIENTE\"";
_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("NOMBRE")+" Cantidad #"+_s.GetString("CANT_CLIE")+" SubTotal $"+_subs._calculatotalconpromoxrango /*String*/ (ba,_c.GetString("PC_CLIENTE"))));
//BA.debugLineNum = 125;BA.debugLine="s.Close";

View File

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

View File

@@ -78,7 +78,7 @@ if (_success) {
_takepicture();
}else {
//BA.debugLineNum = 279;BA.debugLine="Log(\"AutoFocus error.\")";
__c.LogImpl("380740356","AutoFocus error.",0);
__c.LogImpl("480805892","AutoFocus error.",0);
};
//BA.debugLineNum = 281;BA.debugLine="End Sub";
return "";
@@ -116,7 +116,7 @@ _parameters = _r.RunMethod("getParameters");
_setdisplayorientation();
}else {
//BA.debugLineNum = 90;BA.debugLine="Log(\"success = false, \" & LastException)";
__c.LogImpl("378839816","success = false, "+BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("478905352","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));
@@ -169,7 +169,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("379495174",BA.ObjectToString(__c.LastException(ba)),0);
__c.LogImpl("479560710",BA.ObjectToString(__c.LastException(ba)),0);
};
//BA.debugLineNum = 145;BA.debugLine="End Sub";
return "";
@@ -489,7 +489,7 @@ _setfocusmode("continuous-picture");
_setfocusmode("continuous-video");
}else {
//BA.debugLineNum = 249;BA.debugLine="Log(\"Continuous focus mode is not availabl";
__c.LogImpl("380412679","Continuous focus mode is not available",0);
__c.LogImpl("480478215","Continuous focus mode is not available",0);
};
//BA.debugLineNum = 251;BA.debugLine="End Sub";
return "";
@@ -533,7 +533,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("378774288",BA.NumberToString(_previewresult),0);
__c.LogImpl("478839824",BA.NumberToString(_previewresult),0);
};
//BA.debugLineNum = 75;BA.debugLine="r.target = nativeCam";
_r.Target = _nativecam;

View File

@@ -219,7 +219,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 159;BA.debugLine="LogColor(\"---- AppUpdating.DownloadApk\", LogColor";
parent.__c.LogImpl("929949953","---- AppUpdating.DownloadApk",parent._logcolor1);
parent.__c.LogImpl("91376257","---- AppUpdating.DownloadApk",parent._logcolor1);
//BA.debugLineNum = 161;BA.debugLine="If sNewVerApk = \"\" Then";
if (true) break;
@@ -248,7 +248,7 @@ this.state = 6;
case 6:
//C
this.state = 9;
parent.__c.LogImpl("929949957",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
parent.__c.LogImpl("91376261",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
if (true) break;
case 9:
@@ -285,7 +285,7 @@ this.state = 11;
_j = (gunav2.keymon.com.mx.httpjob) result[0];
;
//BA.debugLineNum = 174;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)";
parent.__c.LogImpl("929949968",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
parent.__c.LogImpl("91376272",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
//BA.debugLineNum = 175;BA.debugLine="If j.Success Then";
if (true) break;
@@ -310,7 +310,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("929949975",("Copy2 (saving) ok? TRUE"),0);
parent.__c.LogImpl("91376279",("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";
@@ -326,7 +326,7 @@ this.state = 16;
case 16:
//C
this.state = 19;
parent.__c.LogImpl("929949977",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
parent.__c.LogImpl("91376281",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
if (true) break;
case 19:
@@ -339,7 +339,7 @@ case 21:
//C
this.state = 22;
//BA.debugLineNum = 185;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
parent.__c.LogImpl("929949979",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("91376283",(""+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";
@@ -355,7 +355,7 @@ this.state = 24;
case 24:
//C
this.state = 27;
parent.__c.LogImpl("929949981",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("91376285",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
if (true) break;
case 27:
@@ -682,14 +682,14 @@ _usefileprovider = __c.False;
_sharedfolder = _rp.GetSafeDirDefaultExternal("shared");
};
//BA.debugLineNum = 69;BA.debugLine="Log($\"SDK#: ${p.SdkVersion} - UseFP: ${UseFilePro";
__c.LogImpl("928966933",("SDK#: "+__c.SmartStringFormatter("",(Object)(_p.getSdkVersion()))+" - UseFP: "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+" - SharedFolder: "+__c.SmartStringFormatter("",(Object)(_sharedfolder))+""),0);
__c.LogImpl("9393237",("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("930015489","---- AppUpdating.InstallApk",_logcolor1);
__c.LogImpl("91441793","---- AppUpdating.InstallApk",_logcolor1);
//BA.debugLineNum = 197;BA.debugLine="If pstatus Then";
if (_pstatus) {
//BA.debugLineNum = 198;BA.debugLine="SendInstallIntent";
@@ -698,13 +698,13 @@ _sendinstallintent();
_sstatuscode = _ok_install;
//BA.debugLineNum = 200;BA.debugLine="If sVerbose Then Log(TAB & \"user asked to instal";
if (_sverbose) {
__c.LogImpl("930015493",__c.TAB+"user asked to install new apk",0);};
__c.LogImpl("91441797",__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("930015496",__c.TAB+"no permissions from user to install new apk",0);};
__c.LogImpl("91441800",__c.TAB+"no permissions from user to install new apk",0);};
};
//BA.debugLineNum = 205;BA.debugLine="Finito";
_finito();
@@ -722,7 +722,7 @@ _curver = "";
_sstatuscode = _err_nopkg;
//BA.debugLineNum = 301;BA.debugLine="If sVerbose Then Log($\"${TAB}missing package nam";
if (_sverbose) {
__c.LogImpl("930277636",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"missing package name for current version check"),0);};
__c.LogImpl("91703940",(""+__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();
@@ -732,7 +732,7 @@ _curver = _pm.GetVersionName(_spackagename);
_sstatuscode = _ok_curver;
//BA.debugLineNum = 306;BA.debugLine="If sVerbose Then Log($\"${TAB}Current Version: ${";
if (_sverbose) {
__c.LogImpl("930277641",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"Current Version: "+__c.SmartStringFormatter("",(Object)(_curver))+""),0);};
__c.LogImpl("91703945",(""+__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);
@@ -763,7 +763,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 313;BA.debugLine="Log(\"IsValidComplete start\")";
parent.__c.LogImpl("930343169","IsValidComplete start",0);
parent.__c.LogImpl("91769473","IsValidComplete start",0);
//BA.debugLineNum = 314;BA.debugLine="If sNewVerTxt = \"\" Then";
if (true) break;
@@ -796,7 +796,7 @@ this.state = 6;
case 6:
//C
this.state = 9;
parent.__c.LogImpl("930343173",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing info file full path indication"),0);
parent.__c.LogImpl("91769477",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing info file full path indication"),0);
if (true) break;
case 9:
@@ -819,7 +819,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("930343181","before",0);
parent.__c.LogImpl("91769485","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;
@@ -830,7 +830,7 @@ this.state = 12;
_j = (gunav2.keymon.com.mx.httpjob) result[0];
;
//BA.debugLineNum = 327;BA.debugLine="Log(\"after\")";
parent.__c.LogImpl("930343183","after",0);
parent.__c.LogImpl("91769487","after",0);
//BA.debugLineNum = 328;BA.debugLine="If j.Success Then";
if (true) break;
@@ -859,7 +859,7 @@ this.state = 17;
case 17:
//C
this.state = 20;
parent.__c.LogImpl("930343185",("Webserver's info file content: "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_j._getstring /*String*/ ()))+""),0);
parent.__c.LogImpl("91769489",("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:
@@ -917,7 +917,7 @@ this.state = 29;
case 29:
//C
this.state = 32;
parent.__c.LogImpl("930343192",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"wrong row format in info file "),0);
parent.__c.LogImpl("91769496",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"wrong row format in info file "),0);
if (true) break;
case 32:
@@ -944,7 +944,7 @@ this.state = 37;
case 37:
//C
this.state = 40;
parent.__c.LogImpl("930343195",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Web version number: "+parent.__c.SmartStringFormatter("",(Object)(parent._webver))+""),0);
parent.__c.LogImpl("91769499",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Web version number: "+parent.__c.SmartStringFormatter("",(Object)(parent._webver))+""),0);
if (true) break;
case 40:
@@ -977,7 +977,7 @@ this.state = 46;
case 46:
//C
this.state = 49;
parent.__c.LogImpl("930343199",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"ERROR: website returned an HTML error page"),0);
parent.__c.LogImpl("91769503",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"ERROR: website returned an HTML error page"),0);
if (true) break;
case 49:
@@ -996,7 +996,7 @@ case 52:
//C
this.state = 53;
//BA.debugLineNum = 346;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
parent.__c.LogImpl("930343202",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("91769506",(""+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";
@@ -1012,7 +1012,7 @@ this.state = 55;
case 55:
//C
this.state = 58;
parent.__c.LogImpl("930343204",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("91769508",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
if (true) break;
case 58:
@@ -1048,7 +1048,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("929818881","---- AppUpdating.ReadCurVN",_logcolor1);
__c.LogImpl("91245185","---- AppUpdating.ReadCurVN",_logcolor1);
//BA.debugLineNum = 145;BA.debugLine="IsValidCV 'we don't care about its resu";
_isvalidcv();
//BA.debugLineNum = 146;BA.debugLine="Finito";
@@ -1079,7 +1079,7 @@ case 0:
//C
this.state = -1;
//BA.debugLineNum = 152;BA.debugLine="LogColor(\"---- AppUpdating.ReadWebVN\", LogColor1)";
parent.__c.LogImpl("929884417","---- AppUpdating.ReadWebVN",parent._logcolor1);
parent.__c.LogImpl("91310721","---- 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;
@@ -1242,7 +1242,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 246;BA.debugLine="LogColor($\"${TAB}-- TryApkUpdate\"$, LogColor1)";
parent.__c.LogImpl("930146561",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"-- TryApkUpdate"),parent._logcolor1);
parent.__c.LogImpl("91572865",(""+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;
@@ -1276,7 +1276,7 @@ this.state = 4;
_j = (gunav2.keymon.com.mx.httpjob) result[0];
;
//BA.debugLineNum = 256;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)";
parent.__c.LogImpl("930146571",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
parent.__c.LogImpl("91572875",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0);
//BA.debugLineNum = 257;BA.debugLine="If j.Success Then";
if (true) break;
@@ -1315,7 +1315,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("930146579",("Copy2 (saving) ok? TRUE"),0);
parent.__c.LogImpl("91572883",("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";
@@ -1331,7 +1331,7 @@ this.state = 12;
case 12:
//C
this.state = 15;
parent.__c.LogImpl("930146581",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
parent.__c.LogImpl("91572885",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0);
if (true) break;
case 15:
@@ -1345,7 +1345,7 @@ case 17:
this.state = 18;
this.catchState = 0;
//BA.debugLineNum = 268;BA.debugLine="Log($\"Copy2 (saving) ok? FALSE\"$)";
parent.__c.LogImpl("930146583",("Copy2 (saving) ok? FALSE"),0);
parent.__c.LogImpl("91572887",("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";
@@ -1361,7 +1361,7 @@ this.state = 20;
case 20:
//C
this.state = 23;
parent.__c.LogImpl("930146585",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"failed download of new apk version"),0);
parent.__c.LogImpl("91572889",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"failed download of new apk version"),0);
if (true) break;
case 23:
@@ -1384,7 +1384,7 @@ case 26:
//C
this.state = 27;
//BA.debugLineNum = 274;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)";
parent.__c.LogImpl("930146589",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0);
parent.__c.LogImpl("91572893",(""+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";
@@ -1400,7 +1400,7 @@ this.state = 29;
case 29:
//C
this.state = 32;
parent.__c.LogImpl("930146591",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
parent.__c.LogImpl("91572895",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0);
if (true) break;
case 32:
@@ -1447,7 +1447,7 @@ this.state = 39;
case 39:
//C
this.state = 42;
parent.__c.LogImpl("930146598",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"user asked to install new apk"),0);
parent.__c.LogImpl("91572902",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"user asked to install new apk"),0);
if (true) break;
case 42:
@@ -1508,7 +1508,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 211;BA.debugLine="LogColor(\"---- AppUpdating.UpdateApk\", LogColor1)";
parent.__c.LogImpl("930081025","---- AppUpdating.UpdateApk",parent._logcolor1);
parent.__c.LogImpl("91507329","---- AppUpdating.UpdateApk",parent._logcolor1);
//BA.debugLineNum = 212;BA.debugLine="If Not(pstatus) Then";
if (true) break;
@@ -1539,7 +1539,7 @@ this.state = 6;
case 6:
//C
this.state = 9;
parent.__c.LogImpl("930081028",parent.__c.TAB+"no permissions from user to install new apk",0);
parent.__c.LogImpl("91507332",parent.__c.TAB+"no permissions from user to install new apk",0);
if (true) break;
case 9:
@@ -1631,7 +1631,7 @@ this.state = 26;
case 26:
//C
this.state = 29;
parent.__c.LogImpl("930081038",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"no enough available space to download apk"),0);
parent.__c.LogImpl("91507342",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"no enough available space to download apk"),0);
if (true) break;
case 29:
@@ -1673,7 +1673,7 @@ this.state = 36;
case 36:
//C
this.state = 39;
parent.__c.LogImpl("930081043",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Newer version available. Now I try its downloading"),0);
parent.__c.LogImpl("91507347",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Newer version available. Now I try its downloading"),0);
if (true) break;
case 39:
@@ -1708,7 +1708,7 @@ this.state = 45;
case 45:
//C
this.state = 48;
parent.__c.LogImpl("930081046",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
parent.__c.LogImpl("91507350",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0);
if (true) break;
case 48:
@@ -1747,7 +1747,7 @@ this.state = 55;
case 55:
//C
this.state = 58;
parent.__c.LogImpl("930081051",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0);
parent.__c.LogImpl("91507355",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0);
if (true) break;
case 58:

View File

@@ -1676,7 +1676,7 @@ public gunav2.keymon.com.mx.cpdf _savetofile(String _adir,String _afile,int _ac
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _outputstream = null;
//BA.debugLineNum = 605;BA.debugLine="public Sub saveToFile(adir As String, afile As Str";
//BA.debugLineNum = 606;BA.debugLine="Log(afile)";
__c.LogImpl("382903041",_afile,0);
__c.LogImpl("482968577",_afile,0);
//BA.debugLineNum = 607;BA.debugLine="File.Delete(adir,afile)";
__c.File.Delete(_adir,_afile);
//BA.debugLineNum = 608;BA.debugLine="Dim outputstream As OutputStream=File.OpenOutput(";

View File

@@ -376,7 +376,7 @@ _in.Close();
//BA.debugLineNum = 250;BA.debugLine="If jobTagAnterior <> table.Tag Then";
if ((_jobtaganterior).equals(BA.ObjectToString(_table.Tag /*Object*/ )) == false) {
//BA.debugLineNum = 251;BA.debugLine="LogColor(\"HandleJob: '\"&table.Tag&\"'\" & \" - Regi";
__c.LogImpl("385721129","HandleJob: '"+BA.ObjectToString(_table.Tag /*Object*/ )+"'"+" - Registros: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.RGB((int) (115),(int) (0),(int) (140)));
__c.LogImpl("485786665","HandleJob: '"+BA.ObjectToString(_table.Tag /*Object*/ )+"'"+" - Registros: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.RGB((int) (115),(int) (0),(int) (140)));
};
//BA.debugLineNum = 253;BA.debugLine="jobTagAnterior = table.Tag 'Mod por CHV - 211109";
_jobtaganterior = BA.ObjectToString(_table.Tag /*Object*/ );
@@ -418,7 +418,7 @@ Object[] _row = null;
Object _record = null;
//BA.debugLineNum = 286;BA.debugLine="Public Sub PrintTable(Table As DBResult)";
//BA.debugLineNum = 287;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C";
__c.LogImpl("385983233","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("486048769","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 = 288;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
//BA.debugLineNum = 289;BA.debugLine="sb.Initialize";
@@ -436,7 +436,7 @@ _sb.Append(BA.ObjectToString(_col)).Append(__c.TAB);
}
};
//BA.debugLineNum = 293;BA.debugLine="Log(sb.ToString)";
__c.LogImpl("385983239",_sb.ToString(),0);
__c.LogImpl("486048775",_sb.ToString(),0);
//BA.debugLineNum = 294;BA.debugLine="For Each row() As Object In Table.Rows";
{
final anywheresoftware.b4a.BA.IterableList group8 = _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
@@ -462,7 +462,7 @@ _sb.Append(BA.ObjectToString(_record)).Append(__c.TAB);
}
};
//BA.debugLineNum = 300;BA.debugLine="Log(sb.ToString)";
__c.LogImpl("385983246",_sb.ToString(),0);
__c.LogImpl("486048782",_sb.ToString(),0);
}
};
//BA.debugLineNum = 302;BA.debugLine="End Sub";
@@ -662,7 +662,7 @@ return null;
public String _trackinit() throws Exception{
//BA.debugLineNum = 331;BA.debugLine="Sub trackInit 'ignore";
//BA.debugLineNum = 332;BA.debugLine="Log(\">>>>>>>>> TRACKINIT \")";
__c.LogImpl("386114305",">>>>>>>>> TRACKINIT ",0);
__c.LogImpl("486179841",">>>>>>>>> TRACKINIT ",0);
//BA.debugLineNum = 333;BA.debugLine="reqsList.Initialize";
_reqslist.Initialize();
//BA.debugLineNum = 334;BA.debugLine="timesList.Initialize";
@@ -699,9 +699,9 @@ _timeslist.RemoveAt(_pos);
_quitamos = ("Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+" - ");
};
//BA.debugLineNum = 351;BA.debugLine="LogColor(\">>>>>> Requests: \" & reqsList.Size & \"";
__c.LogImpl("386179852",">>>>>> Requests: "+BA.NumberToString(_reqslist.getSize())+" - "+_quitamos+BA.ObjectToString(_reqslist),__c.Colors.Blue);
__c.LogImpl("486245388",">>>>>> Requests: "+BA.NumberToString(_reqslist.getSize())+" - "+_quitamos+BA.ObjectToString(_reqslist),__c.Colors.Blue);
//BA.debugLineNum = 352;BA.debugLine="LogColor(\">>>>>> inicioRequestMap:\" & inicioRequ";
__c.LogImpl("386179853",">>>>>> inicioRequestMap:"+BA.NumberToString(_iniciorequestmap.getSize())+" - "+BA.ObjectToString(_iniciorequestmap),__c.Colors.Magenta);
__c.LogImpl("486245389",">>>>>> inicioRequestMap:"+BA.NumberToString(_iniciorequestmap.getSize())+" - "+BA.ObjectToString(_iniciorequestmap),__c.Colors.Magenta);
};
//BA.debugLineNum = 354;BA.debugLine="End Sub";
return "";

View File

@@ -1,15 +0,0 @@
package gunav2.keymon.com.mx.designerscripts;
import anywheresoftware.b4a.objects.TextViewWrapper;
import anywheresoftware.b4a.objects.ImageViewWrapper;
import anywheresoftware.b4a.BA;
public class LS_nuevocliente{
public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
java.util.Map<String, anywheresoftware.b4a.keywords.LayoutBuilder.ViewWrapperAndAnchor> views, int width, int height, float scale) throws Exception {
anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
views.get("cb_giro").vw.setLeft((int)((50d / 100 * width) - (views.get("cb_giro").vw.getWidth() / 2)));
}
}

View File

@@ -0,0 +1,23 @@
package gunav2.keymon.com.mx.designerscripts;
import anywheresoftware.b4a.objects.TextViewWrapper;
import anywheresoftware.b4a.objects.ImageViewWrapper;
import anywheresoftware.b4a.BA;
public class LS_panel_nuevocliente{
public static void LS_general(anywheresoftware.b4a.BA ba, android.view.View parent, anywheresoftware.b4a.keywords.LayoutValues lv, java.util.Map props,
java.util.Map<String, anywheresoftware.b4a.keywords.LayoutBuilder.ViewWrapperAndAnchor> views, int width, int height, float scale) throws Exception {
anywheresoftware.b4a.keywords.LayoutBuilder.setScaleRate(0.3);
anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views);
views.get("cb_giro").vw.setLeft((int)((50d / 100 * width) - (views.get("cb_giro").vw.getWidth() / 2)));
views.get("label7").vw.setLeft((int)((50d / 100 * width) - (views.get("label7").vw.getWidth() / 2)));
views.get("et_calle1").vw.setLeft((int)((50d / 100 * width) - (views.get("et_calle1").vw.getWidth() / 2)));
views.get("label8").vw.setLeft((int)((50d / 100 * width) - (views.get("label8").vw.getWidth() / 2)));
views.get("et_calle2").vw.setLeft((int)((50d / 100 * width) - (views.get("et_calle2").vw.getWidth() / 2)));
views.get("label11").vw.setLeft((int)((50d / 100 * width) - (views.get("label11").vw.getWidth() / 2)));
views.get("et_referencia").vw.setLeft((int)((50d / 100 * width) - (views.get("et_referencia").vw.getWidth() / 2)));
views.get("panel2").vw.setLeft((int)((50d / 100 * width) - (views.get("panel2").vw.getWidth() / 2)));
}
}

View File

@@ -105,7 +105,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("389718788","Data "+BA.NumberToString(_buffer[(int) (0)]),0);
__c.LogImpl("489784324","Data "+BA.NumberToString(_buffer[(int) (0)]),0);
//BA.debugLineNum = 1139;BA.debugLine="End Sub";
return "";
}
@@ -214,7 +214,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("386573066","aqui 1",0);
__c.LogImpl("486638602","aqui 1",0);
//BA.debugLineNum = 111;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
{
final int step8 = 1;
@@ -224,7 +224,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("386573069","aqui 2",0);
__c.LogImpl("486638605","aqui 2",0);
//BA.debugLineNum = 114;BA.debugLine="DisConnect";
_disconnect();
}
@@ -244,10 +244,10 @@ if (true) return __c.True;
//BA.debugLineNum = 123;BA.debugLine="DisConnect";
_disconnect();
//BA.debugLineNum = 124;BA.debugLine="Log(\"aqui 3\")";
__c.LogImpl("386573080","aqui 3",0);
__c.LogImpl("486638616","aqui 3",0);
};
//BA.debugLineNum = 126;BA.debugLine="Log(\"aqui 4\")";
__c.LogImpl("386573082","aqui 4",0);
__c.LogImpl("486638618","aqui 4",0);
//BA.debugLineNum = 127;BA.debugLine="Return False";
if (true) return __c.False;
}else {
@@ -258,12 +258,12 @@ if (true) return __c.True;
//BA.debugLineNum = 132;BA.debugLine="DisConnect";
_disconnect();
//BA.debugLineNum = 133;BA.debugLine="Log(\"aqui 5\")";
__c.LogImpl("386573089","aqui 5",0);
__c.LogImpl("486638625","aqui 5",0);
};
}
catch (Exception e31) {
ba.setLastException(e31); //BA.debugLineNum = 136;BA.debugLine="Log(LastException)";
__c.LogImpl("386573092",BA.ObjectToString(__c.LastException(getActivityBA())),0);
__c.LogImpl("486638628",BA.ObjectToString(__c.LastException(getActivityBA())),0);
//BA.debugLineNum = 137;BA.debugLine="Return False";
if (true) return __c.False;
};
@@ -432,22 +432,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("387883818","Triangle "+_logmsg,0);
__c.LogImpl("487949354","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("387883821","Circle "+_logmsg,0);
__c.LogImpl("487949357","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("387883824","Box "+_logmsg,0);
__c.LogImpl("487949360","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("387883827","Line "+_logmsg,0);
__c.LogImpl("487949363","Line "+_logmsg,0);
//BA.debugLineNum = 456;BA.debugLine="PlotLine(x0, y0, x1, y1, points)";
_plotline(_x0,_y0,_x1,_y1,_points);
};
@@ -1950,7 +1950,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("389522179","Barcode "+_bartype+", Size "+BA.NumberToString(_dlow)+", "+_data,0);
__c.LogImpl("489587715","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";
@@ -1988,7 +1988,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("389587716","QR Code : Size "+BA.NumberToString(_size)+", EC "+_ec+", Scale "+BA.NumberToString(_scale)+", Size "+BA.NumberToString(_dlow)+" "+BA.NumberToString(_dhigh)+" : Data = "+_data,0);
__c.LogImpl("489653252","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)];
;
@@ -2025,7 +2025,7 @@ _astream.Write(_data.getBytes(_encoding));
}
catch (Exception e6) {
ba.setLastException(e6); //BA.debugLineNum = 305;BA.debugLine="Log(\"Printer error : \" & LastException.Message)";
__c.LogImpl("387621638","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0);
__c.LogImpl("487687174","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0);
//BA.debugLineNum = 306;BA.debugLine="AStream_Error";
_astream_error();
};

View File

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

View File

@@ -185,13 +185,13 @@ _su = new anywheresoftware.b4a.objects.StringUtils();
//BA.debugLineNum = 182;BA.debugLine="Dim compressed() As Byte = GZip.compress(str)";
_compressed = _gzip.compress(_str);
//BA.debugLineNum = 183;BA.debugLine="Log($\"CompressedBytesLength: ${compressed.Length}";
anywheresoftware.b4a.keywords.Common.LogImpl("390636292",("CompressedBytesLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_compressed.length))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("490701828",("CompressedBytesLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_compressed.length))+""),0);
//BA.debugLineNum = 184;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed";
_base64 = _su.EncodeBase64(_compressed);
//BA.debugLineNum = 185;BA.debugLine="Log($\"CompressedBytes converted to base64 Length:";
anywheresoftware.b4a.keywords.Common.LogImpl("390636294",("CompressedBytes converted to base64 Length: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("490701830",("CompressedBytes converted to base64 Length: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0);
//BA.debugLineNum = 186;BA.debugLine="Log($\"CompressedBytes converted to base64: ${base";
anywheresoftware.b4a.keywords.Common.LogImpl("390636295",("CompressedBytes converted to base64: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("490701831",("CompressedBytes converted to base64: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64))+""),0);
//BA.debugLineNum = 187;BA.debugLine="Return base64";
if (true) return _base64;
//BA.debugLineNum = 188;BA.debugLine="End Sub";
@@ -202,7 +202,7 @@ String _ruta2 = "";
int _i = 0;
//BA.debugLineNum = 202;BA.debugLine="Sub dameRuta As String";
//BA.debugLineNum = 203;BA.debugLine="Log(\"dameRuta\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390767361","dameRuta",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490832897","dameRuta",0);
//BA.debugLineNum = 204;BA.debugLine="Dim c As Cursor";
_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
//BA.debugLineNum = 205;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select LAT,";
@@ -244,15 +244,15 @@ _su = new anywheresoftware.b4a.objects.StringUtils();
//BA.debugLineNum = 193;BA.debugLine="Dim decompressedbytes() As Byte = su.DecodeBase64";
_decompressedbytes = _su.DecodeBase64(_base64);
//BA.debugLineNum = 194;BA.debugLine="Log($\"decompressedbytesLength: ${decompressedbyte";
anywheresoftware.b4a.keywords.Common.LogImpl("390701828",("decompressedbytesLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_decompressedbytes.length))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("490767364",("decompressedbytesLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_decompressedbytes.length))+""),0);
//BA.debugLineNum = 195;BA.debugLine="Dim bc As ByteConverter";
_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter();
//BA.debugLineNum = 196;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d";
_uncompressed = _bc.StringFromBytes(_decompressedbytes,"UTF8");
//BA.debugLineNum = 197;BA.debugLine="Log($\"uncompressedLength: ${uncompressed.Length}\"";
anywheresoftware.b4a.keywords.Common.LogImpl("390701831",("uncompressedLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("490767367",("uncompressedLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0);
//BA.debugLineNum = 198;BA.debugLine="Log($\"Decompressed String = ${uncompressed}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("390701832",("Decompressed String = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("490767368",("Decompressed String = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed))+""),0);
//BA.debugLineNum = 199;BA.debugLine="Return uncompressed";
if (true) return _uncompressed;
//BA.debugLineNum = 200;BA.debugLine="End Sub";
@@ -264,9 +264,9 @@ anywheresoftware.b4a.objects.collections.Map _params = null;
String _rutagpscmp = "";
//BA.debugLineNum = 72;BA.debugLine="Sub fm_MessageArrived (Message As RemoteMessage)";
//BA.debugLineNum = 73;BA.debugLine="Log(\"Message arrived\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177537","Message arrived",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243073","Message arrived",0);
//BA.debugLineNum = 74;BA.debugLine="Log($\"Message data: ${Message.GetData}\"$)";
anywheresoftware.b4a.keywords.Common.LogImpl("390177538",("Message data: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_message.GetData().getObject()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243074",("Message data: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_message.GetData().getObject()))+""),0);
//BA.debugLineNum = 76;BA.debugLine="If Message.GetData.ContainsKey(\"t\") Then";
if (_message.GetData().ContainsKey((Object)("t"))) {
//BA.debugLineNum = 77;BA.debugLine="Dim tipos As List = Regex.Split(\",\",Message.GetD";
@@ -275,11 +275,11 @@ _tipos = anywheresoftware.b4a.keywords.Common.ArrayToList(anywheresoftware.b4a.k
//BA.debugLineNum = 78;BA.debugLine="If tipos.IndexOf(\"pu\") <> -1 Or tipos.IndexOf(\"a";
if (_tipos.IndexOf((Object)("pu"))!=-1 || _tipos.IndexOf((Object)("au"))!=-1) {
//BA.debugLineNum = 79;BA.debugLine="Log(\"Es una peticion de ubicacion\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177543","Es una peticion de ubicacion",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243079","Es una peticion de ubicacion",0);
//BA.debugLineNum = 80;BA.debugLine="locRequest=\"Activa\"";
_locrequest = "Activa";
//BA.debugLineNum = 81;BA.debugLine="Log(\"Llamamos StartFLPSmall\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177545","Llamamos StartFLPSmall",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243081","Llamamos StartFLPSmall",0);
//BA.debugLineNum = 82;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")";
anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._tracker.getObject()),"StartFLPSmall");
//BA.debugLineNum = 83;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")";
@@ -293,9 +293,9 @@ _au = BA.NumberToString(1);
//BA.debugLineNum = 88;BA.debugLine="If tipos.IndexOf(\"ping\") <> -1 Then 'Si es un pi";
if (_tipos.IndexOf((Object)("ping"))!=-1) {
//BA.debugLineNum = 89;BA.debugLine="Log(\"Es un ping\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177553","Es un ping",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243089","Es un ping",0);
//BA.debugLineNum = 90;BA.debugLine="Log(\"Mandamos pong\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177554","Mandamos pong",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243090","Mandamos pong",0);
//BA.debugLineNum = 91;BA.debugLine="Dim params As Map = CreateMap(\"topic\":Sprvsr,\"t";
_params = new anywheresoftware.b4a.objects.collections.Map();
_params = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("topic"),(Object)(_sprvsr),(Object)("title"),(Object)("pong"),(Object)("body"),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._usuario /*String*/ +" - Recibi mensaje "+BA.ObjectToString(_message.GetData().Get((Object)("title")))),(Object)("t"),(Object)("pong")});
@@ -305,16 +305,16 @@ _sendmessage(_params);
//BA.debugLineNum = 94;BA.debugLine="If tipos.IndexOf(\"bgps\") <> -1 Then 'Si es una i";
if (_tipos.IndexOf((Object)("bgps"))!=-1) {
//BA.debugLineNum = 95;BA.debugLine="Log(\"Es una instruccion de borrar archivo gps\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177559","Es una instruccion de borrar archivo gps",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243095","Es una instruccion de borrar archivo gps",0);
//BA.debugLineNum = 96;BA.debugLine="Log(\"Borramos archivo gps\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177560","Borramos archivo gps",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243096","Borramos archivo gps",0);
//BA.debugLineNum = 97;BA.debugLine="borramosArchivoGPS";
_borramosarchivogps();
};
//BA.debugLineNum = 99;BA.debugLine="If tipos.IndexOf(\"dr\") <> -1 Then 'Si es una pet";
if (_tipos.IndexOf((Object)("dr"))!=-1) {
//BA.debugLineNum = 100;BA.debugLine="Log(\"Es una peticion de Ruta GPS\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177564","Es una peticion de Ruta GPS",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243100","Es una peticion de Ruta GPS",0);
//BA.debugLineNum = 101;BA.debugLine="Dim rutaGpsCmp As String = dameRuta";
_rutagpscmp = _dameruta();
//BA.debugLineNum = 102;BA.debugLine="Dim params As Map = CreateMap(\"topic\":Sprvsr,\"t";
@@ -326,16 +326,16 @@ _sendmessage(_params);
//BA.debugLineNum = 105;BA.debugLine="If tipos.IndexOf(\"bgps2\") <> -1 Then 'Si es una";
if (_tipos.IndexOf((Object)("bgps2"))!=-1) {
//BA.debugLineNum = 106;BA.debugLine="Log(\"Es una instruccion de borrar BD gps\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177570","Es una instruccion de borrar BD gps",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243106","Es una instruccion de borrar BD gps",0);
//BA.debugLineNum = 107;BA.debugLine="Log(\"Borramos BD gps\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390177571","Borramos BD gps",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243107","Borramos BD gps",0);
//BA.debugLineNum = 108;BA.debugLine="borraGPSHist";
_borragpshist();
};
//BA.debugLineNum = 110;BA.debugLine="If tipos.IndexOf(\"pu\") = -1 And tipos.IndexOf(\"a";
if (_tipos.IndexOf((Object)("pu"))==-1 && _tipos.IndexOf((Object)("au"))==-1 && _tipos.IndexOf((Object)("ping"))==-1 && _tipos.IndexOf((Object)("dr"))==-1) {
//BA.debugLineNum = 111;BA.debugLine="Log(\"No es ping ni solicitud de ubicacion o rut";
anywheresoftware.b4a.keywords.Common.LogImpl("390177575","No es ping ni solicitud de ubicacion o ruta, entonces no hacemos nada",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490243111","No es ping ni solicitud de ubicacion o ruta, entonces no hacemos nada",0);
};
};
//BA.debugLineNum = 119;BA.debugLine="End Sub";
@@ -345,7 +345,7 @@ public static String _guardainfoenarchivo(String _coords) throws Exception{
String[] _latlon = null;
//BA.debugLineNum = 161;BA.debugLine="Sub guardaInfoEnArchivo(coords As String) 'ignore";
//BA.debugLineNum = 162;BA.debugLine="Log(\"Guardamos ubicacion en BD\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390439681","Guardamos ubicacion en BD",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490505217","Guardamos ubicacion en BD",0);
//BA.debugLineNum = 163;BA.debugLine="Dim latlon() As String = Regex.Split(\",\", coords)";
_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split(",",_coords);
//BA.debugLineNum = 164;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO";
@@ -423,12 +423,12 @@ _tipo = BA.ObjectToString(_params.Get((Object)("t")));
//BA.debugLineNum = 130;BA.debugLine="If params.ContainsKey(\"r\") Then";
if (_params.ContainsKey((Object)("r"))) {
//BA.debugLineNum = 131;BA.debugLine="Log(\"Con ruta\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390308614","Con ruta",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490374150","Con ruta",0);
//BA.debugLineNum = 132;BA.debugLine="Dim rutaGpsCmp As String= params.Get(\"r\")";
_rutagpscmp = BA.ObjectToString(_params.Get((Object)("r")));
}else {
//BA.debugLineNum = 134;BA.debugLine="Log(\"Sin ruta\")";
anywheresoftware.b4a.keywords.Common.LogImpl("390308617","Sin ruta",0);
anywheresoftware.b4a.keywords.Common.LogImpl("490374153","Sin ruta",0);
//BA.debugLineNum = 135;BA.debugLine="Dim rutaGpsCmp As String = \"\"";
_rutagpscmp = "";
};
@@ -455,7 +455,7 @@ _job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest
//BA.debugLineNum = 146;BA.debugLine="Job.GetRequest.SetHeader(\"Authorization\", \"key=\"";
_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ ().SetHeader("Authorization","key="+_api_key);
//BA.debugLineNum = 147;BA.debugLine="Log(m) 'ignore";
anywheresoftware.b4a.keywords.Common.LogImpl("390308630",BA.ObjectToString(_m),0);
anywheresoftware.b4a.keywords.Common.LogImpl("490374166",BA.ObjectToString(_m),0);
//BA.debugLineNum = 148;BA.debugLine="End Sub";
return "";
}

View File

@@ -125,7 +125,7 @@ _req.InitializeDelete(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 266;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("942270725",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("913697029",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 267;BA.debugLine="req.InitializeDelete(InvalidURL)";
_req.InitializeDelete(_invalidurl);
};
@@ -144,7 +144,7 @@ _req.InitializeDelete(_escapelink(_link,_parameters));
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 277;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("942336261",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("913762565",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 278;BA.debugLine="req.InitializeDelete(escapeLink(InvalidURL, Para";
_req.InitializeDelete(_escapelink(_invalidurl,_parameters));
};
@@ -163,7 +163,7 @@ _req.InitializeGet(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 224;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("942074117",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("913500421",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 225;BA.debugLine="req.InitializeGet(InvalidURL)";
_req.InitializeGet(_invalidurl);
};
@@ -182,7 +182,7 @@ _req.InitializeGet(_escapelink(_link,_parameters));
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 240;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("942139653",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("913565957",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 241;BA.debugLine="req.InitializeGet(escapeLink(InvalidURL, Paramet";
_req.InitializeGet(_escapelink(_invalidurl,_parameters));
};
@@ -306,7 +306,7 @@ _req.InitializeHead(_link);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 124;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("941811973",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("913238277",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 125;BA.debugLine="req.InitializeHead(InvalidURL)";
_req.InitializeHead(_invalidurl);
};
@@ -360,7 +360,7 @@ _req.InitializePatch2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 109;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("941746444",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("913172748",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 110;BA.debugLine="req.InitializePatch2(InvalidURL, Data)";
_req.InitializePatch2(_invalidurl,_data);
};
@@ -386,7 +386,7 @@ _req.InitializePost2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 68;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("941484293",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("912910597",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 69;BA.debugLine="req.InitializePost2(InvalidURL, Data)";
_req.InitializePost2(_invalidurl,_data);
};
@@ -407,7 +407,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("942008584","Cannot send files from the assets folder.",0);
__c.LogImpl("913434888","Cannot send files from the assets folder.",0);
//BA.debugLineNum = 199;BA.debugLine="Return";
if (true) return "";
};
@@ -544,7 +544,7 @@ _req.InitializePut2(_link,_data);
}
catch (Exception e5) {
ba.setLastException(e5); //BA.debugLineNum = 85;BA.debugLine="Log($\"Invalid link: ${Link}\"$)";
__c.LogImpl("941615365",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
__c.LogImpl("913041669",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0);
//BA.debugLineNum = 86;BA.debugLine="req.InitializePut2(InvalidURL, Data)";
_req.InitializePut2(_invalidurl,_data);
};

View File

@@ -68,7 +68,7 @@ _job = (gunav2.keymon.com.mx.httpjob)(_taskidtojob.Get((Object)(_taskid)));
//BA.debugLineNum = 157;BA.debugLine="If job = Null Then";
if (_job== null) {
//BA.debugLineNum = 158;BA.debugLine="Log(\"HttpUtils2Service: job completed multiple t";
anywheresoftware.b4a.keywords.Common.LogImpl("341156614","HttpUtils2Service: job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("412582918","HttpUtils2Service: job completed multiple times - "+BA.NumberToString(_taskid),0);
//BA.debugLineNum = 159;BA.debugLine="Return";
if (true) return "";
};
@@ -87,7 +87,7 @@ public static String _hc_responseerror(anywheresoftware.b4h.okhttp.OkHttpClient
gunav2.keymon.com.mx.httpjob _job = null;
//BA.debugLineNum = 115;BA.debugLine="Sub hc_ResponseError (Response As OkHttpResponse,";
//BA.debugLineNum = 117;BA.debugLine="Log($\"ResponseError. Reason: ${Reason}, Response:";
anywheresoftware.b4a.keywords.Common.LogImpl("341091074",("ResponseError. Reason: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_reason))+", Response: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_response.getErrorResponse()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("412517378",("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)";
@@ -95,7 +95,7 @@ _job = (gunav2.keymon.com.mx.httpjob)(_taskidtojob.Get((Object)(_taskid)));
//BA.debugLineNum = 121;BA.debugLine="If job = Null Then";
if (_job== null) {
//BA.debugLineNum = 122;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseError): job c";
anywheresoftware.b4a.keywords.Common.LogImpl("341091079","HttpUtils2Service (hc_ResponseError): job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("412517383","HttpUtils2Service (hc_ResponseError): job completed multiple times - "+BA.NumberToString(_taskid),0);
//BA.debugLineNum = 123;BA.debugLine="Return";
if (true) return "";
};
@@ -121,7 +121,7 @@ _job = (gunav2.keymon.com.mx.httpjob)(_taskidtojob.Get((Object)(_taskid)));
//BA.debugLineNum = 94;BA.debugLine="If job = Null Then";
if (_job== null) {
//BA.debugLineNum = 95;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseSuccess): job";
anywheresoftware.b4a.keywords.Common.LogImpl("340960003","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0);
anywheresoftware.b4a.keywords.Common.LogImpl("412386307","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0);
//BA.debugLineNum = 96;BA.debugLine="Return";
if (true) return "";
};
@@ -183,9 +183,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("340632327",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0);
anywheresoftware.b4a.keywords.Common.LogImpl("412058631",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0);
//BA.debugLineNum = 35;BA.debugLine="Log(\"Switching to File.DirInternal\")";
anywheresoftware.b4a.keywords.Common.LogImpl("340632328","Switching to File.DirInternal",0);
anywheresoftware.b4a.keywords.Common.LogImpl("412058632","Switching to File.DirInternal",0);
//BA.debugLineNum = 36;BA.debugLine="TempFolder = File.DirInternal";
_tempfolder = anywheresoftware.b4a.keywords.Common.File.getDirInternal();
};

View File

@@ -673,7 +673,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 112;BA.debugLine="Log(\"ENTRANDO MapFragment1_Ready\")";
anywheresoftware.b4a.keywords.Common.LogImpl("391095041","ENTRANDO MapFragment1_Ready",0);
anywheresoftware.b4a.keywords.Common.LogImpl("491160577","ENTRANDO MapFragment1_Ready",0);
//BA.debugLineNum = 113;BA.debugLine="gmap = MapFragment1.GetMap";
parent.mostCurrent._gmap = parent.mostCurrent._mapfragment1.GetMap();
//BA.debugLineNum = 114;BA.debugLine="gmap.IsInitialized";

View File

@@ -157,7 +157,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("331588353","-- AppUpdating.NewInst2: processing MyAppReload",0);};
anywheresoftware.b4a.keywords.Common.LogImpl("43014657","-- 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\")";
@@ -180,7 +180,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("331326209","---- AppUpdating.newinst2: service created",_logcolor1);
anywheresoftware.b4a.keywords.Common.LogImpl("42752513","---- AppUpdating.newinst2: service created",_logcolor1);
//BA.debugLineNum = 15;BA.debugLine="pkg = \"\"";
_pkg = "";
//BA.debugLineNum = 16;BA.debugLine="svcVerbose = False";
@@ -196,28 +196,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("331391745","---- AppUpdating.newinst2: service_started",_logcolor1);
anywheresoftware.b4a.keywords.Common.LogImpl("42818049","---- 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("331391747",(""+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("42818051",(""+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("331391748",(""+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("42818052",(""+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("331391749",(""+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("42818053",(""+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("331391750",(""+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("42818054",(""+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("331391753",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"Intent MY_PACKAGE_REPLACED received!"),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("42818057",(""+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("331391755",(""+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("42818059",(""+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

@@ -194,7 +194,7 @@ public static String _btadmin_statechanged(int _newstate,int _oldstate) throws
//BA.debugLineNum = 63;BA.debugLine="Private Sub BTAdmin_StateChanged (NewState As Int,";
//BA.debugLineNum = 64;BA.debugLine="If logger Then Log(\"BT state changed: \" & NewStat";
if (_logger) {
anywheresoftware.b4a.keywords.Common.LogImpl("3458753","BT state changed: "+BA.NumberToString(_newstate),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("437027841","BT state changed: "+BA.NumberToString(_newstate),0);};
//BA.debugLineNum = 65;BA.debugLine="BluetoothState = NewState = BTAdmin.STATE_ON";
_bluetoothstate = _newstate==_btadmin.STATE_ON;
//BA.debugLineNum = 67;BA.debugLine="End Sub";
@@ -209,7 +209,7 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _s8 = null;
int _totalpaquete = 0;
//BA.debugLineNum = 101;BA.debugLine="Sub ENVIA_ULTIMA_GPS";
//BA.debugLineNum = 102;BA.debugLine="LogColor(\"Iniciamos ENVIA_ULTIMA_GPS\", Colors.Mag";
anywheresoftware.b4a.keywords.Common.LogImpl("3851969","Iniciamos ENVIA_ULTIMA_GPS",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("437421057","Iniciamos ENVIA_ULTIMA_GPS",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
//BA.debugLineNum = 103;BA.debugLine="Dim skmt As SQL";
_skmt = new anywheresoftware.b4a.sql.SQL();
//BA.debugLineNum = 104;BA.debugLine="Dim cmd As DBCommand";
@@ -238,7 +238,7 @@ for (;_sfsdf <= limit11 ;_sfsdf = _sfsdf + step11 ) {
//BA.debugLineNum = 116;BA.debugLine="s7.Position= sfsdf";
_s7.setPosition(_sfsdf);
//BA.debugLineNum = 117;BA.debugLine="Log(\"ENTRE AQUI\")";
anywheresoftware.b4a.keywords.Common.LogImpl("3851984","ENTRE AQUI",0);
anywheresoftware.b4a.keywords.Common.LogImpl("437421072","ENTRE AQUI",0);
//BA.debugLineNum = 118;BA.debugLine="Dim s8 As Cursor = B4XPages.MainPage.skmt.ExecQ";
_s8 = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s8 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT ifnull(CAT_GP_CONVERSION3,0) as CAT_GP_CONVERSION3 FROM CAT_GUNAPROD WHERE CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_s7.GetString("PE_PROID")))+"'"))));
@@ -251,7 +251,7 @@ _totalpaquete = (int) (0);
//BA.debugLineNum = 123;BA.debugLine="totalpaquete = totalpaquete +(totalstick/200)";
_totalpaquete = (int) (_totalpaquete+(_totalstick/(double)200));
//BA.debugLineNum = 124;BA.debugLine="Log(totalpaquete)";
anywheresoftware.b4a.keywords.Common.LogImpl("3851991",BA.NumberToString(_totalpaquete),0);
anywheresoftware.b4a.keywords.Common.LogImpl("437421079",BA.NumberToString(_totalpaquete),0);
}
};
};
@@ -279,18 +279,18 @@ public static String _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Excepti
gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null;
//BA.debugLineNum = 160;BA.debugLine="Sub JobDone(Job As HttpJob)";
//BA.debugLineNum = 161;BA.debugLine="Log(\"JOBDONE STARTER\")";
anywheresoftware.b4a.keywords.Common.LogImpl("31048577","JOBDONE STARTER",0);
anywheresoftware.b4a.keywords.Common.LogImpl("437617665","JOBDONE STARTER",0);
//BA.debugLineNum = 163;BA.debugLine="If Job.Success = False Then ' Si hay unerror en e";
if (_job._success /*boolean*/ ==anywheresoftware.b4a.keywords.Common.False) {
//BA.debugLineNum = 165;BA.debugLine="LogColor(\"Error: \" & Job.ErrorMessage, Colors.re";
anywheresoftware.b4a.keywords.Common.LogImpl("31048581","Error: "+_job._errormessage /*String*/ ,anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("437617669","Error: "+_job._errormessage /*String*/ ,anywheresoftware.b4a.keywords.Common.Colors.Red);
}else {
//BA.debugLineNum = 167;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
if ((_job._jobname /*String*/ ).equals("DBRequest")) {
//BA.debugLineNum = 168;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
_result = mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job);
//BA.debugLineNum = 169;BA.debugLine="Log($\"Tag: ${RESULT.tag}, success=${Job.Success";
anywheresoftware.b4a.keywords.Common.LogImpl("31048585",("Tag: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("437617673",("Tag: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0);
};
};
//BA.debugLineNum = 173;BA.debugLine="End Sub";
@@ -412,7 +412,7 @@ mostCurrent._service.StopAutomaticForeground();
//BA.debugLineNum = 71;BA.debugLine="Subs.revisaBD";
mostCurrent._subs._revisabd /*String*/ (processBA);
//BA.debugLineNum = 72;BA.debugLine="Log(marcaCel)";
anywheresoftware.b4a.keywords.Common.LogImpl("3524291",_marcacel,0);
anywheresoftware.b4a.keywords.Common.LogImpl("437093379",_marcacel,0);
//BA.debugLineNum = 73;BA.debugLine="Private s As Cursor = skmt.ExecQuery(\"select * fr";
_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper();
_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select * from cat_variables where cat_va_descripcion = 'DBReqServer'")));

File diff suppressed because it is too large Load Diff

View File

@@ -151,7 +151,7 @@ public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _cr
uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null;
//BA.debugLineNum = 430;BA.debugLine="Private Sub CreateLocationRequest As LocationReque";
//BA.debugLineNum = 431;BA.debugLine="Log(\"CreateLocationRequest\")";
anywheresoftware.b4a.keywords.Common.LogImpl("392274689","CreateLocationRequest",0);
anywheresoftware.b4a.keywords.Common.LogImpl("492340225","CreateLocationRequest",0);
//BA.debugLineNum = 432;BA.debugLine="Dim lr As LocationRequest";
_lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest();
//BA.debugLineNum = 433;BA.debugLine="lr.Initialize";
@@ -179,7 +179,7 @@ uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null;
_logger = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 457;BA.debugLine="If logger Then Log(\"Iniciamos CreateLocationReque";
if (_logger) {
anywheresoftware.b4a.keywords.Common.LogImpl("392405762","Iniciamos CreateLocationRequest2",0);};
anywheresoftware.b4a.keywords.Common.LogImpl("492471298","Iniciamos CreateLocationRequest2",0);};
//BA.debugLineNum = 458;BA.debugLine="Dim lr As LocationRequest";
_lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest();
//BA.debugLineNum = 459;BA.debugLine="lr.Initialize";
@@ -205,7 +205,7 @@ public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _cr
uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null;
//BA.debugLineNum = 442;BA.debugLine="Private Sub CreateLocationRequestSmallD As Locatio";
//BA.debugLineNum = 443;BA.debugLine="Log(\"Iniciamos CreateLocationRequestSmallD\")";
anywheresoftware.b4a.keywords.Common.LogImpl("392340225","Iniciamos CreateLocationRequestSmallD",0);
anywheresoftware.b4a.keywords.Common.LogImpl("492405761","Iniciamos CreateLocationRequestSmallD",0);
//BA.debugLineNum = 444;BA.debugLine="Dim lr As LocationRequest";
_lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest();
//BA.debugLineNum = 445;BA.debugLine="lr.Initialize";
@@ -250,7 +250,7 @@ String _coords = "";
if (_flp.GetLastKnownLocation().IsInitialized()) {
//BA.debugLineNum = 472;BA.debugLine="If Starter.Logger Then LogColor($\"Mandamos UUC \"";
if (mostCurrent._starter._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("392471299",("Mandamos UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|Acc:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|Spd:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
anywheresoftware.b4a.keywords.Common.LogImpl("492536835",("Mandamos UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|Acc:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|Spd:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
//BA.debugLineNum = 473;BA.debugLine="Dim coords As String = FLP.GetLastKnownLocation.";
_coords = BA.NumberToString(_flp.GetLastKnownLocation().getLatitude())+","+BA.NumberToString(_flp.GetLastKnownLocation().getLongitude())+","+_formatofecha(BA.NumberToString(_flp.GetLastKnownLocation().getTime()));
};
@@ -260,7 +260,7 @@ return "";
public static String _flp_connectionfailed(int _connectionresult1) throws Exception{
//BA.debugLineNum = 360;BA.debugLine="Sub flp_ConnectionFailed(ConnectionResult1 As Int)";
//BA.debugLineNum = 361;BA.debugLine="Log(\"Failed to connect to location provider\")";
anywheresoftware.b4a.keywords.Common.LogImpl("391881473","Failed to connect to location provider",0);
anywheresoftware.b4a.keywords.Common.LogImpl("491947009","Failed to connect to location provider",0);
//BA.debugLineNum = 362;BA.debugLine="End Sub";
return "";
}
@@ -275,7 +275,7 @@ String _stime = "";
String _coords = "";
//BA.debugLineNum = 487;BA.debugLine="Sub flp_LocationChanged (Location1 As Location)";
//BA.debugLineNum = 488;BA.debugLine="Log($\"Loc changed:${Location1.Longitude},${Locati";
anywheresoftware.b4a.keywords.Common.LogImpl("392602369",("Loc changed:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_location1.getLongitude()))+","+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_location1.getLatitude()))+""),0);
anywheresoftware.b4a.keywords.Common.LogImpl("492667905",("Loc changed:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_location1.getLongitude()))+","+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_location1.getLatitude()))+""),0);
//BA.debugLineNum = 490;BA.debugLine="B4XPages.MainPage.lat_gps = Location1.Latitude";
mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._lat_gps /*String*/ = BA.NumberToString(_location1.getLatitude());
//BA.debugLineNum = 491;BA.debugLine="B4XPages.MainPage.lon_gps = Location1.Longitude";
@@ -302,7 +302,7 @@ mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)
}
catch (Exception e14) {
processBA.setLastException(e14); //BA.debugLineNum = 509;BA.debugLine="LogColor(LastException, Colors.Red)";
anywheresoftware.b4a.keywords.Common.LogImpl("392602390",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("492667926",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 512;BA.debugLine="Dim coords As String = Location1.Latitude&\",\"&Loc";
_coords = BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude())+","+_formatofecha(BA.NumberToString(_location1.getTime()));
@@ -364,7 +364,7 @@ public static String _revisaflp() throws Exception{
boolean _todobienflp = false;
//BA.debugLineNum = 561;BA.debugLine="Sub revisaFLP 'ignore";
//BA.debugLineNum = 562;BA.debugLine="LogColor(\"**** **** Revisamos FLP **** ****\", Col";
anywheresoftware.b4a.keywords.Common.LogImpl("392864513","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
anywheresoftware.b4a.keywords.Common.LogImpl("492930049","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227)));
//BA.debugLineNum = 563;BA.debugLine="Private todoBienFLP As Boolean = True";
_todobienflp = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 564;BA.debugLine="Try";
@@ -380,7 +380,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e10) {
processBA.setLastException(e10); //BA.debugLineNum = 571;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsInitialized) -->";
anywheresoftware.b4a.keywords.Common.LogImpl("392864522","If Not(Tracker.FLP.IsInitialized) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("492930058","If Not(Tracker.FLP.IsInitialized) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 573;BA.debugLine="Try";
try { //BA.debugLineNum = 574;BA.debugLine="If FLP.IsInitialized Then";
@@ -398,7 +398,7 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e21) {
processBA.setLastException(e21); //BA.debugLineNum = 583;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsConnected) -->";
anywheresoftware.b4a.keywords.Common.LogImpl("392864534","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("492930070","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 585;BA.debugLine="Try";
try { //BA.debugLineNum = 586;BA.debugLine="If FLP.IsConnected And _ FLP.GetLastKnown";
@@ -413,16 +413,16 @@ _todobienflp = anywheresoftware.b4a.keywords.Common.False;
}
catch (Exception e30) {
processBA.setLastException(e30); //BA.debugLineNum = 594;BA.debugLine="LogColor(\"If FLP.IsConnectctd and FLP.getLKL.I";
anywheresoftware.b4a.keywords.Common.LogImpl("392864545","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("492930081","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
};
//BA.debugLineNum = 597;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin error";
if (_todobienflp) {
anywheresoftware.b4a.keywords.Common.LogImpl("392864548"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
anywheresoftware.b4a.keywords.Common.LogImpl("492930084"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);};
}
catch (Exception e35) {
processBA.setLastException(e35); //BA.debugLineNum = 599;BA.debugLine="LogColor(\"If Tracker.FLP.IsInitialized --> \"&Las";
anywheresoftware.b4a.keywords.Common.LogImpl("392864550","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("492930086","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 602;BA.debugLine="End Sub";
return "";
@@ -440,14 +440,14 @@ if (_flp.GetLastKnownLocation().IsInitialized()) {
_daa = (int) (_uugcoords.DistanceTo((android.location.Location)(_flp.GetLastKnownLocation().getObject())));
//BA.debugLineNum = 614;BA.debugLine="If Starter.Logger Then LogColor($\"**** UUC \"$";
if (mostCurrent._starter._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("392930056",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
anywheresoftware.b4a.keywords.Common.LogImpl("492995592",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));};
//BA.debugLineNum = 615;BA.debugLine="If daa > 40 And FLP.GetLastKnownLocation.Accu";
if (_daa>40 && _flp.GetLastKnownLocation().getAccuracy()<35) {
//BA.debugLineNum = 616;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))),(Object)(_flp.GetLastKnownLocation().getLatitude()),(Object)(_flp.GetLastKnownLocation().getLongitude())}));
//BA.debugLineNum = 617;BA.debugLine="If Starter.Logger Then Log(\"++++ Distancia a";
if (mostCurrent._starter._logger /*boolean*/ ) {
anywheresoftware.b4a.keywords.Common.LogImpl("392930059","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(_flp.GetLastKnownLocation().getAccuracy()),0);};
anywheresoftware.b4a.keywords.Common.LogImpl("492995595","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(_flp.GetLastKnownLocation().getAccuracy()),0);};
};
//BA.debugLineNum = 619;BA.debugLine="UUGCoords = FLP.GetLastKnownLocation";
_uugcoords = _flp.GetLastKnownLocation();
@@ -455,18 +455,18 @@ _uugcoords = _flp.GetLastKnownLocation();
}
catch (Exception e14) {
processBA.setLastException(e14); //BA.debugLineNum = 622;BA.debugLine="LogColor(\"FLP.GetLastKnownLocation.IsInitializ";
anywheresoftware.b4a.keywords.Common.LogImpl("392930064","FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("492995600","FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
}else {
//BA.debugLineNum = 625;BA.debugLine="Log(\"StartFLP\")";
anywheresoftware.b4a.keywords.Common.LogImpl("392930067","StartFLP",0);
anywheresoftware.b4a.keywords.Common.LogImpl("492995603","StartFLP",0);
//BA.debugLineNum = 626;BA.debugLine="StartFLP";
_startflp();
};
}
catch (Exception e21) {
processBA.setLastException(e21); //BA.debugLineNum = 629;BA.debugLine="LogColor(\"If FLP.IsInitialized --> \"&LastExcepti";
anywheresoftware.b4a.keywords.Common.LogImpl("392930071","If FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
anywheresoftware.b4a.keywords.Common.LogImpl("492995607","If FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red);
};
//BA.debugLineNum = 631;BA.debugLine="End Sub";
return "";
@@ -537,7 +537,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 390;BA.debugLine="Log(\"StartFLP - flpStarted=\"&flpStarted)";
anywheresoftware.b4a.keywords.Common.LogImpl("392078081","StartFLP - flpStarted="+BA.ObjectToString(parent._flpstarted),0);
anywheresoftware.b4a.keywords.Common.LogImpl("492143617","StartFLP - flpStarted="+BA.ObjectToString(parent._flpstarted),0);
//BA.debugLineNum = 391;BA.debugLine="Do While FLP.IsConnected = False";
if (true) break;
@@ -601,7 +601,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 405;BA.debugLine="Log(\"StartFLP2\")";
anywheresoftware.b4a.keywords.Common.LogImpl("392143617","StartFLP2",0);
anywheresoftware.b4a.keywords.Common.LogImpl("492209153","StartFLP2",0);
//BA.debugLineNum = 406;BA.debugLine="Private logger As Boolean = True";
_logger = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 407;BA.debugLine="If logger Then Log(\"StartFLP2 - flpStarted=\"&flpS";
@@ -617,7 +617,7 @@ this.state = 3;
case 3:
//C
this.state = 6;
anywheresoftware.b4a.keywords.Common.LogImpl("392143619","StartFLP2 - flpStarted="+BA.ObjectToString(parent._flpstarted),0);
anywheresoftware.b4a.keywords.Common.LogImpl("492209155","StartFLP2 - flpStarted="+BA.ObjectToString(parent._flpstarted),0);
if (true) break;
case 6:
@@ -660,7 +660,7 @@ this.state = 12;
case 12:
//C
this.state = 15;
anywheresoftware.b4a.keywords.Common.LogImpl("392143622","kll - sleeping",0);
anywheresoftware.b4a.keywords.Common.LogImpl("492209158","kll - sleeping",0);
if (true) break;
case 15:
@@ -690,7 +690,7 @@ this.state = 19;
case 19:
//C
this.state = 22;
anywheresoftware.b4a.keywords.Common.LogImpl("392143626","Buscamos ubicacion (movimientoMinimo = "+BA.NumberToString(parent._actuallr.GetSmallestDisplacement())+")",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
anywheresoftware.b4a.keywords.Common.LogImpl("492209162","Buscamos ubicacion (movimientoMinimo = "+BA.NumberToString(parent._actuallr.GetSmallestDisplacement())+")",anywheresoftware.b4a.keywords.Common.Colors.Magenta);
if (true) break;
case 22:
@@ -726,7 +726,7 @@ case 0:
//C
this.state = 1;
//BA.debugLineNum = 419;BA.debugLine="Log(\"StartFLPSmall - flpStarted=\"&flpStarted)";
anywheresoftware.b4a.keywords.Common.LogImpl("392209153","StartFLPSmall - flpStarted="+BA.ObjectToString(parent._flpstarted),0);
anywheresoftware.b4a.keywords.Common.LogImpl("492274689","StartFLPSmall - flpStarted="+BA.ObjectToString(parent._flpstarted),0);
//BA.debugLineNum = 420;BA.debugLine="Do While FLP.IsConnected = False";
if (true) break;
@@ -751,7 +751,7 @@ case 5:
this.state = 1;
;
//BA.debugLineNum = 422;BA.debugLine="Log(\"sleeping\")";
anywheresoftware.b4a.keywords.Common.LogImpl("392209156","sleeping",0);
anywheresoftware.b4a.keywords.Common.LogImpl("492274692","sleeping",0);
if (true) break;
case 4:
@@ -772,7 +772,7 @@ if (true) break;
public static String _stopflp() throws Exception{
//BA.debugLineNum = 479;BA.debugLine="Public Sub StopFLP";
//BA.debugLineNum = 480;BA.debugLine="Log(\"StopFLP\")";
anywheresoftware.b4a.keywords.Common.LogImpl("392536833","StopFLP",0);
anywheresoftware.b4a.keywords.Common.LogImpl("492602369","StopFLP",0);
//BA.debugLineNum = 481;BA.debugLine="If flpStarted Then";
if (_flpstarted) {
//BA.debugLineNum = 482;BA.debugLine="FLP.RemoveLocationUpdates 'Eliminamos todas las";
@@ -786,7 +786,7 @@ return "";
public static String _track() throws Exception{
//BA.debugLineNum = 373;BA.debugLine="Public Sub Track";
//BA.debugLineNum = 374;BA.debugLine="Log(\"Inicia Track - Tracking : \"&Tracking)";
anywheresoftware.b4a.keywords.Common.LogImpl("392012545","Inicia Track - Tracking : "+BA.ObjectToString(_tracking),0);
anywheresoftware.b4a.keywords.Common.LogImpl("492078081","Inicia Track - Tracking : "+BA.ObjectToString(_tracking),0);
//BA.debugLineNum = 375;BA.debugLine="If Not(FLP.IsInitialized) Then FLP.Initialize(\"fl";
if (anywheresoftware.b4a.keywords.Common.Not(_flp.IsInitialized())) {
_flp.Initialize(processBA,"flp");};
@@ -801,7 +801,7 @@ if (true) return "";
//BA.debugLineNum = 381;BA.debugLine="If Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_";
if (mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .Check(mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION)==anywheresoftware.b4a.keywords.Common.False) {
//BA.debugLineNum = 382;BA.debugLine="Log(\"No permission\")";
anywheresoftware.b4a.keywords.Common.LogImpl("392012553","No permission",0);
anywheresoftware.b4a.keywords.Common.LogImpl("492078089","No permission",0);
//BA.debugLineNum = 383;BA.debugLine="Return";
if (true) return "";
};