Version: 5.04.18_V2

Se corigue Query del JobDone del tag "marcas_rutas"
This commit is contained in:
IsR0d
2025-04-22 13:10:58 -06:00
parent d94b5462ce
commit f0b4a1d395
495 changed files with 1878 additions and 1869 deletions

View File

@@ -85,9 +85,9 @@ public medicomed.keymon.com.mx.starter _starter = null;
public medicomed.keymon.com.mx.appupdater _appupdater = null;
public medicomed.keymon.com.mx.mapa_rutas _mapa_rutas = null;
public medicomed.keymon.com.mx.mapa_cliente _mapa_cliente = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.notificationservice _notificationservice = null;
public medicomed.keymon.com.mx.pendientes _pendientes = null;
public medicomed.keymon.com.mx.subs _subs = null;
public medicomed.keymon.com.mx.tracker _tracker = null;
public medicomed.keymon.com.mx.newinst2 _newinst2 = null;
public medicomed.keymon.com.mx.b4xpages _b4xpages = null;
@@ -155,7 +155,7 @@ _tpr = BA.NumberToString(0);
_prodsfijostot = (float) (_prodsfijostot+((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_tpr))));
//BA.debugLineNum = 244;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)";
if (_thislog) {
__c.LogImpl("764487452","|"+_tpi+"|"+_p,0);};
__c.LogImpl("522020124","|"+_tpi+"|"+_p,0);};
//BA.debugLineNum = 245;BA.debugLine="Private ntpi As Int = tpi * et_promoCant.text";
_ntpi = (int) ((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_et_promocant.getText())));
//BA.debugLineNum = 246;BA.debugLine="If addListItem And tpi > 0 Then lv_prodsFijos.Ad";
@@ -182,7 +182,7 @@ medicomed.keymon.com.mx.c_productos _prodspage = null;
//BA.debugLineNum = 557;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 558;BA.debugLine="Log(\"============================================";
__c.LogImpl("765339394","====================================================================",0);
__c.LogImpl("522872066","====================================================================",0);
//BA.debugLineNum = 559;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
{
final int step3 = 1;
@@ -254,7 +254,7 @@ _lacant = _pnl.GetView((int) (2)).GetView((int) (4));
_estetag = new anywheresoftware.b4a.objects.collections.List();
_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag())));
//BA.debugLineNum = 332;BA.debugLine="Log(esteTag)";
__c.LogImpl("764749579",BA.ObjectToString(_estetag),0);
__c.LogImpl("522282251",BA.ObjectToString(_estetag),0);
//BA.debugLineNum = 333;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then";
if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) {
//BA.debugLineNum = 334;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text+1}\"$";
@@ -424,7 +424,7 @@ _prodsvarreq = (int) (_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getT
//BA.debugLineNum = 520;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text";
_prodsvarreq2 = (int) (_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText()))));
//BA.debugLineNum = 521;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P";
__c.LogImpl("765208329",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
__c.LogImpl("522741001",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
};
//BA.debugLineNum = 523;BA.debugLine="If et_promoCant.text > maxCantPromos Then et_prom";
if ((double)(Double.parseDouble(_et_promocant.getText()))>_maxcantpromos) {
@@ -454,7 +454,7 @@ _prodsvarreq = (int) (_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getT
//BA.debugLineNum = 507;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text.";
_prodsvarreq2 = (int) (_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText()))));
//BA.debugLineNum = 508;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr";
__c.LogImpl("765142794",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
__c.LogImpl("522675466",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0);
//BA.debugLineNum = 509;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 510;BA.debugLine="End Sub";
@@ -467,7 +467,7 @@ String _pn = "";
//BA.debugLineNum = 528;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 529;BA.debugLine="Log(\"============================================";
__c.LogImpl("765273858","====================================================================",0);
__c.LogImpl("522806530","====================================================================",0);
//BA.debugLineNum = 530;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro";
{
final int step3 = 1;
@@ -763,7 +763,7 @@ _pf = (int) (0) ;
for (;_pf <= limit10 ;_pf = _pf + step10 ) {
//BA.debugLineNum = 428;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get";
if (_thislog) {
__c.LogImpl("765011727",(""+__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("522544399",(""+__c.SmartStringFormatter("",(Object)(_tcpf))+" + "+__c.SmartStringFormatter("",_prodscants.Get(_pf))+" * "+__c.SmartStringFormatter("",_prodsprecios.Get(_pf))+" = "+__c.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf))))))+""),0);};
//BA.debugLineNum = 429;BA.debugLine="tcpf = tcpf + (prodsPrecios.Get(pf) * prodsCants";
_tcpf = (float) (_tcpf+((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf)))));
}
@@ -806,7 +806,7 @@ if ((double)(Double.parseDouble(_cant1.getText()))>0) {
_totalcompra = (float) (_totalcompra+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant1.getText()))));
//BA.debugLineNum = 447;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma";
if (_thislog) {
__c.LogImpl("765011746",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
__c.LogImpl("522544418",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 448;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
_prodsids2.Add(_estetag.Get((int) (2)));
//BA.debugLineNum = 449;BA.debugLine="prodsCants2.Add(cant1.Text)";
@@ -851,7 +851,7 @@ if ((double)(Double.parseDouble(_cant2.getText()))>0) {
_totalcompra = (float) (_totalcompra+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant2.getText()))));
//BA.debugLineNum = 467;BA.debugLine="If thisLog Then Log($\"Cant: ${cant2.Text}, Suma";
if (_thislog) {
__c.LogImpl("765011766",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
__c.LogImpl("522544438",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 468;BA.debugLine="prodsIds2.Add(esteTag.Get(2))";
_prodsids2.Add(_estetag.Get((int) (2)));
//BA.debugLineNum = 469;BA.debugLine="prodsCants2.Add(cant2.Text)";
@@ -867,7 +867,7 @@ _l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormat
};
//BA.debugLineNum = 476;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},";
if (_thislog) {
__c.LogImpl("765011775",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);};
__c.LogImpl("522544447",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);};
//BA.debugLineNum = 477;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$";
_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+"")));
//BA.debugLineNum = 478;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$";
@@ -886,17 +886,17 @@ _b_continuar.setVisible(__c.True);
};
//BA.debugLineNum = 488;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr";
if (_thislog) {
__c.LogImpl("765011787",(""+__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("522544459",(""+__c.SmartStringFormatter("",(Object)(_prodsids.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios.getObject()))+""),__c.Colors.Blue);};
//BA.debugLineNum = 489;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p";
if (_thislog) {
__c.LogImpl("765011788",(""+__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("522544460",(""+__c.SmartStringFormatter("",(Object)(_prodsids2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios2.getObject()))+""),__c.Colors.Magenta);};
//BA.debugLineNum = 491;BA.debugLine="End Sub";
return "";
}
public String _et_pcant_focuschanged(boolean _hasfocus) throws Exception{
//BA.debugLineNum = 493;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo";
//BA.debugLineNum = 494;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)";
__c.LogImpl("765077249","focus changed",__c.Colors.Magenta);
__c.LogImpl("522609921","focus changed",__c.Colors.Magenta);
//BA.debugLineNum = 495;BA.debugLine="cuentaProds";
_cuentaprods();
//BA.debugLineNum = 496;BA.debugLine="End Sub";
@@ -954,10 +954,10 @@ _invdisppromo = new anywheresoftware.b4a.objects.collections.Map();
_invdisppromo = _subs._traemosinventariodisponibleparapromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_promo);
//BA.debugLineNum = 93;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) {
__c.LogImpl("764421897","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
__c.LogImpl("521954569","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);};
//BA.debugLineNum = 94;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods";
if (_thislog) {
__c.LogImpl("764421898","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
__c.LogImpl("521954570","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);};
//BA.debugLineNum = 95;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable";
_maxcantpromos = _subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp);
//BA.debugLineNum = 96;BA.debugLine="et_promoCant.Text = 1";
@@ -970,10 +970,10 @@ _cs = new anywheresoftware.b4a.objects.CSBuilder();
_cs.Initialize();
//BA.debugLineNum = 100;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) {
__c.LogImpl("764421904",BA.ObjectToString(_mp),0);};
__c.LogImpl("521954576",BA.ObjectToString(_mp),0);};
//BA.debugLineNum = 101;BA.debugLine="If thisLog Then Log(prodsPromo)";
if (_thislog) {
__c.LogImpl("764421905",BA.ObjectToString(_prodspromo),0);};
__c.LogImpl("521954577",BA.ObjectToString(_prodspromo),0);};
//BA.debugLineNum = 102;BA.debugLine="Private listaPV As List = mp.Get(\"prodsVariables\"";
_listapv = new anywheresoftware.b4a.objects.collections.List();
_listapv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables"))));
@@ -998,7 +998,7 @@ _pv2 = new anywheresoftware.b4a.objects.collections.List();
_pv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables2"))));
//BA.debugLineNum = 116;BA.debugLine="If thisLog Then Log(mp)";
if (_thislog) {
__c.LogImpl("764421920",BA.ObjectToString(_mp),0);};
__c.LogImpl("521954592",BA.ObjectToString(_mp),0);};
//BA.debugLineNum = 117;BA.debugLine="tpf = 0";
_tpf = (int) (0);
//BA.debugLineNum = 118;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")";
@@ -1055,20 +1055,20 @@ _lv_prodsfijos.Clear();
_agregafijosalista(_mp,__c.True);
//BA.debugLineNum = 146;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod";
if (_thislog) {
__c.LogImpl("764421950","Total prods fijos = "+BA.NumberToString(_prodsfijostot),0);};
__c.LogImpl("521954622","Total prods fijos = "+BA.NumberToString(_prodsfijostot),0);};
//BA.debugLineNum = 148;BA.debugLine="l_totProds.text = $\"Productos: ${tpf}\"$";
_l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(_tpf))+"")));
//BA.debugLineNum = 149;BA.debugLine="l_total.Text = $\"Total: $$1.2{prodsFijosTot}\"$";
_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_prodsfijostot))+"")));
//BA.debugLineNum = 155;BA.debugLine="If thisLog Then Log($\"PV1: ${pv.Size}, ${pv}\"$)";
if (_thislog) {
__c.LogImpl("764421959",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);};
__c.LogImpl("521954631",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);};
//BA.debugLineNum = 156;BA.debugLine="If thisLog Then Log($\"PV2: ${pv2.Size}, ${pv2}\"$)";
if (_thislog) {
__c.LogImpl("764421960",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);};
__c.LogImpl("521954632",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);};
//BA.debugLineNum = 157;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)";
if (_thislog) {
__c.LogImpl("764421961","invDisp="+BA.ObjectToString(_invdisppromo),0);};
__c.LogImpl("521954633","invDisp="+BA.ObjectToString(_invdisppromo),0);};
//BA.debugLineNum = 158;BA.debugLine="clv_prodsVariabes.Clear";
_clv_prodsvariabes._clear();
//BA.debugLineNum = 159;BA.debugLine="clv_prodsVariabes2.Clear";
@@ -1092,7 +1092,7 @@ _thisprod = new anywheresoftware.b4a.objects.collections.Map();
_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p))));
//BA.debugLineNum = 170;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) {
__c.LogImpl("764421974",BA.ObjectToString(_thisprod),0);};
__c.LogImpl("521954646",BA.ObjectToString(_thisprod),0);};
//BA.debugLineNum = 171;BA.debugLine="clv_prodsVariabes.Add(CreateListItem(Subs.traeP";
_clv_prodsvariabes._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),_clv_prodsvariabes._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p));
};
@@ -1117,7 +1117,7 @@ _thisprod = new anywheresoftware.b4a.objects.collections.Map();
_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p))));
//BA.debugLineNum = 189;BA.debugLine="If thisLog Then Log(thisProd)";
if (_thislog) {
__c.LogImpl("764421993",BA.ObjectToString(_thisprod),0);};
__c.LogImpl("521954665",BA.ObjectToString(_thisprod),0);};
//BA.debugLineNum = 190;BA.debugLine="clv_prodsVariabes2.Add(CreateListItem2(Subs.tra";
_clv_prodsvariabes2._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),_clv_prodsvariabes2._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p));
};