@fluxhub/fluxhub-lib 10.0.555 → 10.0.556

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19563,6 +19563,7 @@
19563
19563
  this.all_c = 0;
19564
19564
  this.comm_c = 0;
19565
19565
  this.forza_canale = "";
19566
+ this.forza_canale_curr = "";
19566
19567
  /*
19567
19568
  public open_allegati(){
19568
19569
 
@@ -19678,6 +19679,7 @@
19678
19679
  dati_aggiuntivi.prototype.doApprova = function () {
19679
19680
  this.b_respingi = false;
19680
19681
  this.over_canale_iniz();
19682
+ this.over_canale_curr();
19681
19683
  var liv = 0;
19682
19684
  this.nlevel = null;
19683
19685
  if (this.m_obj.stato == 0) {
@@ -20856,6 +20858,7 @@
20856
20858
  this.livs = r;
20857
20859
  this.apply_over_load();
20858
20860
  this.over_canale_iniz();
20861
+ this.over_canale_curr();
20859
20862
  if (this.m_obj.stato <= 10)
20860
20863
  for (var i = 0; i < this.livs.length; i++)
20861
20864
  if (this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() ||
@@ -20922,6 +20925,24 @@
20922
20925
  this.m_obj.canale = this.forza_canale;
20923
20926
  this.c_canale = this.forza_canale;
20924
20927
  };
20928
+ dati_aggiuntivi.prototype.over_canale_curr = function () {
20929
+ if (this.forza_canale_curr == "")
20930
+ return;
20931
+ if (this.m_obj.stato == null)
20932
+ return;
20933
+ var min_liv = 0;
20934
+ for (var i = 0; i < this.livs.length; i++)
20935
+ if (this.livs[i].livello == this.m_obj.stato) {
20936
+ min_liv = this.livs[i].livello;
20937
+ }
20938
+ for (var i = 0; i < this.livs.length; i++)
20939
+ if (this.livs[i].livello == min_liv) {
20940
+ this.livs[i].gruppo_parallelo = this.forza_canale_curr;
20941
+ }
20942
+ if (this.m_obj.stato < 20)
20943
+ this.m_obj.canale = this.forza_canale_curr;
20944
+ this.c_canale = this.forza_canale_curr;
20945
+ };
20925
20946
  dati_aggiuntivi.prototype.ck_canale_multiplo = function () {
20926
20947
  var _this = this;
20927
20948
  var liv = 0;