@fluxhub/fluxhub-lib 10.0.554 → 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.
@@ -4039,6 +4039,7 @@
4039
4039
  this.app_s.user_isadmin = null;
4040
4040
  this.app_s.token = null;
4041
4041
  localStorage.removeItem(this.app_s.COMPANY_KEY + "token");
4042
+ this.goto_after = '';
4042
4043
  if (this.app_s.LOGIN_EXT != 1)
4043
4044
  this.router.navigate(["login"]);
4044
4045
  else {
@@ -19562,6 +19563,7 @@
19562
19563
  this.all_c = 0;
19563
19564
  this.comm_c = 0;
19564
19565
  this.forza_canale = "";
19566
+ this.forza_canale_curr = "";
19565
19567
  /*
19566
19568
  public open_allegati(){
19567
19569
 
@@ -19677,6 +19679,7 @@
19677
19679
  dati_aggiuntivi.prototype.doApprova = function () {
19678
19680
  this.b_respingi = false;
19679
19681
  this.over_canale_iniz();
19682
+ this.over_canale_curr();
19680
19683
  var liv = 0;
19681
19684
  this.nlevel = null;
19682
19685
  if (this.m_obj.stato == 0) {
@@ -20855,6 +20858,7 @@
20855
20858
  this.livs = r;
20856
20859
  this.apply_over_load();
20857
20860
  this.over_canale_iniz();
20861
+ this.over_canale_curr();
20858
20862
  if (this.m_obj.stato <= 10)
20859
20863
  for (var i = 0; i < this.livs.length; i++)
20860
20864
  if (this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() ||
@@ -20921,6 +20925,24 @@
20921
20925
  this.m_obj.canale = this.forza_canale;
20922
20926
  this.c_canale = this.forza_canale;
20923
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
+ };
20924
20946
  dati_aggiuntivi.prototype.ck_canale_multiplo = function () {
20925
20947
  var _this = this;
20926
20948
  var liv = 0;