@fluxhub/fluxhub-lib 10.0.415 → 10.0.417

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.
@@ -15755,7 +15755,7 @@ FHGridToolBarComponent.decorators = [
15755
15755
  {{ toolbar_wkfapp?.imp }}
15756
15756
  </button>
15757
15757
  <div *ngFor="let app of custom_commands">
15758
- <div *ngIf="app.type == 'button'">
15758
+ <div *ngIf="app.type == 'button' || app.type == null">
15759
15759
  <button [hidden]="app.hidden!=null && app.hidden"
15760
15760
  mat-flat-button
15761
15761
  [color]="app.color"
@@ -15862,7 +15862,7 @@ FHGridToolBarComponent.decorators = [
15862
15862
  </button>
15863
15863
  <div *ngFor="let app of custom_commands" fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="10px">
15864
15864
 
15865
- <div *ngIf="app.type == 'button'">
15865
+ <div *ngIf="app.type == 'button' || app.type == null">
15866
15866
 
15867
15867
  <button [hidden]="app.hidden!=null && app.hidden"
15868
15868
  mat-flat-button
@@ -15931,7 +15931,7 @@ FHGridToolBarComponent.decorators = [
15931
15931
  }}
15932
15932
  </button>
15933
15933
  <div *ngFor="let app of custom_commands" fxLayout="row" fxLayoutGap="10px">
15934
- <div *ngIf="app.type == 'button'">
15934
+ <div *ngIf="app.type == 'button' || app.type == null">
15935
15935
  <button [hidden]="app.hidden!=null && app.hidden"
15936
15936
  mat-flat-button
15937
15937
  [color]="app.color"
@@ -15970,7 +15970,7 @@ FHGridToolBarComponent.decorators = [
15970
15970
  }}
15971
15971
  </button>
15972
15972
  <div *ngFor="let app of custom_commands" fxLayoutAlign="end center" fxLayout="row" fxLayoutGap="10px">
15973
- <div *ngIf="app.type == 'button'">
15973
+ <div *ngIf="app.type == 'button' || app.type == null">
15974
15974
  <button [hidden]="app.hidden!=null && app.hidden"
15975
15975
 
15976
15976
  mat-flat-button
@@ -16690,11 +16690,86 @@ class dati_aggiuntivi {
16690
16690
  ];
16691
16691
  let ok_op = false;
16692
16692
  this.m_wkf.doQuery(p).subscribe((data) => { });
16693
+ let ical = null;
16694
+ let comm = "";
16695
+ if (this.nota != "")
16696
+ comm = "<br>Commento: <br>" + this.nota;
16697
+ if (this.nlevel.ical == 1) {
16698
+ if (this.m_obj.ical_dt_ini == null) {
16699
+ this.alert("Attenzione ical non configurato ical_dt_ini", 1);
16700
+ }
16701
+ else if (this.m_obj.ical_dt_fin == null) {
16702
+ this.alert("Attenzione ical non configurato ical_dt_fin", 1);
16703
+ }
16704
+ else
16705
+ ical = {
16706
+ start: this.m_obj.ical_dt_ini,
16707
+ end: this.m_obj.ical_dt_fin,
16708
+ summary: this.app_info.descrizione_breve + " " + this.getTitle(),
16709
+ description: this.getDescri() +
16710
+ comm +
16711
+ "<br>" +
16712
+ this.app_s.COMPANY_SITE_ROOT +
16713
+ "#/" +
16714
+ this.app_info.modulo_swf +
16715
+ "/" +
16716
+ this.id_applicativo +
16717
+ "/" +
16718
+ this.id_documento +
16719
+ "/edit",
16720
+ organizer: this.user_nome +
16721
+ " " +
16722
+ this.user_cognome +
16723
+ " <" +
16724
+ this.user_email +
16725
+ ">",
16726
+ url: this.app_s.COMPANY_SITE_ROOT +
16727
+ "#/" +
16728
+ this.app_info.modulo_swf +
16729
+ "/" +
16730
+ this.id_applicativo +
16731
+ "/" +
16732
+ this.id_documento +
16733
+ "/edit",
16734
+ };
16735
+ }
16736
+ let s_ogg = this.nlevel.oggetto_email;
16737
+ if (s_ogg == null)
16738
+ s_ogg = '';
16739
+ if (this.nlevel != null)
16740
+ if (this.nlevel.descri_livello != null)
16741
+ s_ogg = s_ogg
16742
+ .split("%new_step%")
16743
+ .join(this.nlevel.descri_livello);
16744
+ if (this.clevel != null)
16745
+ if (this.clevel.descri_livello != null)
16746
+ s_ogg = s_ogg
16747
+ .split("%old_step%")
16748
+ .join(this.clevel.descri_livello);
16749
+ s_ogg = s_ogg.split("%new_step%").join("");
16750
+ s_ogg = s_ogg.split("%old_step%").join("");
16751
+ for (let prop in this.m_obj)
16752
+ if (this.m_obj[prop] != null) {
16753
+ console.log(prop +
16754
+ " " +
16755
+ Object.prototype.toString.call(this.m_obj[prop]));
16756
+ if (Object.prototype.toString.call(this.m_obj[prop]) ===
16757
+ "[object Date]") {
16758
+ s_ogg = s_ogg
16759
+ .split("%" + prop + "%")
16760
+ .join(this.uti_s.date2String(this.m_obj[prop]));
16761
+ }
16762
+ else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
16763
+ s_ogg = s_ogg
16764
+ .split("%" + prop + "%")
16765
+ .join(this.m_obj[prop]);
16766
+ else
16767
+ s_ogg = s_ogg
16768
+ .split("%" + prop + "%")
16769
+ .join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
16770
+ }
16693
16771
  //myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
16694
16772
  if (this.m_danotificare != "") {
16695
- let comm = "";
16696
- if (this.nota != "")
16697
- comm = "<br>Commento: <br>" + this.nota;
16698
16773
  if (this.clevel.ccn_mittente == 1) {
16699
16774
  if (this.m_danotificare != "")
16700
16775
  this.m_danotificare = this.m_danotificare + ",";
@@ -16703,46 +16778,6 @@ class dati_aggiuntivi {
16703
16778
  if (this.nlevel.approvazione_email == 1) {
16704
16779
  }
16705
16780
  else {
16706
- let ical = null;
16707
- if (this.nlevel.ical == 1) {
16708
- if (this.m_obj.ical_dt_ini == null) {
16709
- this.alert("Attenzione ical non configurato ical_dt_ini", 1);
16710
- }
16711
- else if (this.m_obj.ical_dt_fin == null) {
16712
- this.alert("Attenzione ical non configurato ical_dt_fin", 1);
16713
- }
16714
- else
16715
- ical = {
16716
- start: this.m_obj.ical_dt_ini,
16717
- end: this.m_obj.ical_dt_fin,
16718
- summary: this.app_info.descrizione_breve + " " + this.getTitle(),
16719
- description: this.getDescri() +
16720
- comm +
16721
- "<br>" +
16722
- this.app_s.COMPANY_SITE_ROOT +
16723
- "#/" +
16724
- this.app_info.modulo_swf +
16725
- "/" +
16726
- this.id_applicativo +
16727
- "/" +
16728
- this.id_documento +
16729
- "/edit",
16730
- organizer: this.user_nome +
16731
- " " +
16732
- this.user_cognome +
16733
- " <" +
16734
- this.user_email +
16735
- ">",
16736
- url: this.app_s.COMPANY_SITE_ROOT +
16737
- "#/" +
16738
- this.app_info.modulo_swf +
16739
- "/" +
16740
- this.id_applicativo +
16741
- "/" +
16742
- this.id_documento +
16743
- "/edit",
16744
- };
16745
- }
16746
16781
  if (this.nlevel.email_partecipanti == 1 ||
16747
16782
  this.nlevel.email_ospiti == 1) {
16748
16783
  if (this.b_respingi)
@@ -16805,39 +16840,6 @@ class dati_aggiuntivi {
16805
16840
  this.id_documento +
16806
16841
  "/edit", this.m_obj.codice, this.nota, true, ical);
16807
16842
  else {
16808
- let s_ogg = this.nlevel.oggetto_email;
16809
- if (this.nlevel != null)
16810
- if (this.nlevel.descri_livello != null)
16811
- s_ogg = s_ogg
16812
- .split("%new_step%")
16813
- .join(this.nlevel.descri_livello);
16814
- if (this.clevel != null)
16815
- if (this.clevel.descri_livello != null)
16816
- s_ogg = s_ogg
16817
- .split("%old_step%")
16818
- .join(this.clevel.descri_livello);
16819
- s_ogg = s_ogg.split("%new_step%").join("");
16820
- s_ogg = s_ogg.split("%old_step%").join("");
16821
- for (let prop in this.m_obj)
16822
- if (this.m_obj[prop] != null) {
16823
- console.log(prop +
16824
- " " +
16825
- Object.prototype.toString.call(this.m_obj[prop]));
16826
- if (Object.prototype.toString.call(this.m_obj[prop]) ===
16827
- "[object Date]") {
16828
- s_ogg = s_ogg
16829
- .split("%" + prop + "%")
16830
- .join(this.uti_s.date2String(this.m_obj[prop]));
16831
- }
16832
- else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
16833
- s_ogg = s_ogg
16834
- .split("%" + prop + "%")
16835
- .join(this.m_obj[prop]);
16836
- else
16837
- s_ogg = s_ogg
16838
- .split("%" + prop + "%")
16839
- .join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
16840
- }
16841
16843
  this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" +
16842
16844
  this.getLvlDescri(String(this.m_liv), this.m_statox) +
16843
16845
  "<br>" +
@@ -16857,90 +16859,79 @@ class dati_aggiuntivi {
16857
16859
  }
16858
16860
  else
16859
16861
  this.goto_edit_doc();
16860
- if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
16861
- if (this.nlevel.tipo_notifica_aggiuntiva == 1)
16862
- this.sendEMail_ex(this.user_idp, this.m_obj.creatore, this.app_info.descrizione_breve +
16863
- ", Il documento numero: " +
16864
- this.m_obj.codice +
16865
- " è passato allo STEP: " +
16866
- this.nlevel.descri_livello +
16867
- " " +
16868
- this.getTitle(), this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16869
- "#/" +
16870
- this.app_info.modulo_swf +
16871
- "/" +
16872
- this.id_applicativo +
16873
- "/" +
16874
- this.id_documento +
16875
- "/edit", this.m_obj.codice, this.nota, true, ical, false);
16876
- if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
16877
- let p = new QParam();
16878
- p.sql = "SELECT_PARTECIPANTI_DOC";
16879
- p.values = [this.id_applicativo, this.id_documento];
16880
- p.types = ["string", "string"];
16881
- this.m_dataService.doQuery(p).subscribe((data) => {
16882
- if (data != null)
16883
- if (data.result_msg == "OK") {
16884
- let lista_p = this.user_idp;
16885
- for (let i = 0; i < data.result_data.length; i++)
16886
- if (lista_p.indexOf(data.result_data[i].username) == -1) {
16887
- lista_p += ",";
16888
- lista_p += data.result_data[i].username;
16889
- }
16890
- this.sendEMail_ex(this.user_idp, lista_p, this.app_info.descrizione_breve +
16891
- ", Il documento numero: " +
16892
- this.m_obj.codice +
16893
- " è passato allo STEP: " +
16894
- this.nlevel.descri_livello +
16895
- " " +
16896
- this.getTitle(), this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16897
- "#/" +
16898
- this.app_info.modulo_swf +
16899
- "/" +
16900
- this.id_applicativo +
16901
- "/" +
16902
- this.id_documento +
16903
- "/edit", this.m_obj.codice, this.nota, true, ical, false);
16862
+ }
16863
+ }
16864
+ if (s_ogg == '')
16865
+ s_ogg = this.app_info.descrizione_breve +
16866
+ ", Il documento numero: " +
16867
+ this.m_obj.codice +
16868
+ " è passato allo STEP: " +
16869
+ this.nlevel.descri_livello +
16870
+ " " +
16871
+ this.getTitle();
16872
+ if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
16873
+ if (this.nlevel.tipo_notifica_aggiuntiva == 1)
16874
+ this.sendEMail_ex(this.user_idp, this.m_obj.creatore, s_ogg, this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16875
+ "#/" +
16876
+ this.app_info.modulo_swf +
16877
+ "/" +
16878
+ this.id_applicativo +
16879
+ "/" +
16880
+ this.id_documento +
16881
+ "/edit", this.m_obj.codice, this.nota, true, ical, false);
16882
+ if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
16883
+ let p = new QParam();
16884
+ p.sql = "SELECT_PARTECIPANTI_DOC";
16885
+ p.values = [this.id_applicativo, this.id_documento];
16886
+ p.types = ["string", "string"];
16887
+ this.m_dataService.doQuery(p).subscribe((data) => {
16888
+ if (data != null)
16889
+ if (data.result_msg == "OK") {
16890
+ let lista_p = this.user_idp;
16891
+ for (let i = 0; i < data.result_data.length; i++)
16892
+ if (lista_p.indexOf(data.result_data[i].username) == -1) {
16893
+ lista_p += ",";
16894
+ lista_p += data.result_data[i].username;
16904
16895
  }
16905
- });
16906
- }
16907
- if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
16908
- let p = new QParam();
16909
- p.sql = "SELECT_ALL_USERS_DOC";
16910
- p.values = [this.id_applicativo, this.id_documento];
16911
- p.types = ["string", "string"];
16912
- this.m_dataService.doQuery(p).subscribe((data) => {
16913
- if (data != null)
16914
- if (data.result_msg == "OK") {
16915
- let lista_p = this.user_idp;
16916
- for (let i = 0; i < data.result_data.length; i++)
16917
- if (lista_p.indexOf(data.result_data[i].username) == -1) {
16918
- console.log("username:", data.result_data[i].username);
16919
- lista_p += ",";
16920
- lista_p += data.result_data[i].username;
16921
- }
16922
- this.sendEMail_ex(this.user_idp, lista_p, this.app_info.descrizione_breve +
16923
- ", Il documento numero: " +
16924
- this.m_obj.codice +
16925
- " è passato allo STEP: " +
16926
- this.nlevel.descri_livello +
16927
- " " +
16928
- this.getTitle(), this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16929
- "#/" +
16930
- this.app_info.modulo_swf +
16931
- "/" +
16932
- this.id_applicativo +
16933
- "/" +
16934
- this.id_documento +
16935
- "/edit", this.m_obj.codice, this.nota, true, ical, false);
16896
+ this.sendEMail_ex(this.user_idp, lista_p, s_ogg, this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16897
+ "#/" +
16898
+ this.app_info.modulo_swf +
16899
+ "/" +
16900
+ this.id_applicativo +
16901
+ "/" +
16902
+ this.id_documento +
16903
+ "/edit", this.m_obj.codice, this.nota, true, ical, false);
16904
+ }
16905
+ });
16906
+ }
16907
+ if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
16908
+ let p = new QParam();
16909
+ p.sql = "SELECT_ALL_USERS_DOC";
16910
+ p.values = [this.id_applicativo, this.id_documento];
16911
+ p.types = ["string", "string"];
16912
+ this.m_dataService.doQuery(p).subscribe((data) => {
16913
+ if (data != null)
16914
+ if (data.result_msg == "OK") {
16915
+ let lista_p = this.user_idp;
16916
+ for (let i = 0; i < data.result_data.length; i++)
16917
+ if (lista_p.indexOf(data.result_data[i].username) == -1) {
16918
+ console.log("username:", data.result_data[i].username);
16919
+ lista_p += ",";
16920
+ lista_p += data.result_data[i].username;
16936
16921
  }
16937
- });
16938
- }
16939
- }
16922
+ this.sendEMail_ex(this.user_idp, lista_p, s_ogg, this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16923
+ "#/" +
16924
+ this.app_info.modulo_swf +
16925
+ "/" +
16926
+ this.id_applicativo +
16927
+ "/" +
16928
+ this.id_documento +
16929
+ "/edit", this.m_obj.codice, this.nota, true, ical, false);
16930
+ }
16931
+ });
16940
16932
  }
16941
16933
  }
16942
- else
16943
- this.goto_edit_doc();
16934
+ this.goto_edit_doc();
16944
16935
  }
16945
16936
  sendEMail_ex(mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av = true, ical = "", b_exit = true) {
16946
16937
  if (to == null) {
@@ -19544,7 +19535,7 @@ win_manage_values.decorators = [
19544
19535
  </div>
19545
19536
  </div>
19546
19537
  <div fxLayout="column">
19547
- <div fxLayout="column">
19538
+ <div fxLayout="column" style="overflow:auto;height:500px">
19548
19539
  <table style="width: 90%" class="fh_table">
19549
19540
  <thead>
19550
19541
  <tr>
@@ -19655,7 +19646,7 @@ class FHTableManager {
19655
19646
  return;
19656
19647
  let dialogRef = this._dialog.open(win_manage_values, {
19657
19648
  width: "90%",
19658
- height: "550px",
19649
+ height: "650px",
19659
19650
  });
19660
19651
  setTimeout(() => {
19661
19652
  dialogRef.componentInstance.id_tipo = Number(this.cmb_sel.getValue());