@fluxhub/fluxhub-lib 10.0.325 → 10.0.327

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.
@@ -13866,45 +13866,37 @@ win_commenti.ctorParameters = () => [
13866
13866
  ];
13867
13867
 
13868
13868
  class win_info_doc {
13869
- constructor(dialogRef, m_appService, toast) {
13869
+ constructor(dialogRef, m_appService, toast, data) {
13870
13870
  this.dialogRef = dialogRef;
13871
13871
  this.m_appService = m_appService;
13872
13872
  this.toast = toast;
13873
+ this.data = data;
13873
13874
  this.title = 'INFO DOCUMENTO';
13874
13875
  this.hide_richiedente = false;
13875
- this.load_info();
13876
+ this.load_info(data);
13876
13877
  }
13877
13878
  close() {
13878
13879
  this.dialogRef.close(null);
13879
13880
  }
13880
- load_info() {
13881
- if (this.m_appService.getState().wkf_doc_info == null) {
13882
- setTimeout(() => {
13883
- this.load_info();
13884
- }, 500);
13885
- return;
13886
- }
13887
- if (this.m_appService.getState().wkf_doc_info.codice == null) {
13888
- setTimeout(() => {
13889
- this.load_info();
13890
- }, 500);
13891
- return;
13892
- }
13893
- this.codice = this.m_appService.getState().wkf_doc_info.codice;
13894
- this.data_richiesta = this.m_appService.getState().wkf_doc_info.data_richiesta;
13895
- this.richiedente = this.m_appService.getState().wkf_doc_info.richiedente;
13896
- this.stato = this.m_appService.getState().wkf_doc_info.stato;
13897
- this.in_carico_a = this.m_appService.getState().wkf_doc_info.in_carico_a;
13898
- this.uiid_app = this.m_appService.getState().wkf_doc_info.uiid_app;
13899
- this.uiid_doc = this.m_appService.getState().wkf_doc_info.uiid_doc;
13900
- this.canale = this.m_appService.getState().wkf_doc_info.canale;
13881
+ load_info(data) {
13882
+ console.log('data ', data);
13883
+ this.codice = data.codice;
13884
+ this.data_richiesta = data.data_richiesta;
13885
+ this.richiedente = data.richiedente;
13886
+ this.stato = data.stato;
13887
+ this.stat_stato = data.stat_stato;
13888
+ this.in_carico_a = data.s_uto;
13889
+ this.uiid_app = data.id_applicativo;
13890
+ this.uiid_doc = data.id_documento;
13891
+ this.canale = data.canale;
13892
+ this.nc = data.nc;
13901
13893
  }
13902
13894
  ngAfterViewInit() { }
13903
13895
  }
13904
13896
  win_info_doc.decorators = [
13905
13897
  { type: Component, args: [{
13906
13898
  template: `
13907
- <div   fxLayout="column" fxLayoutGap="5px">
13899
+ <div   fxLayout="column" fxLayoutGap="5px">
13908
13900
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
13909
13901
  <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title|translate}}</div>
13910
13902
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
@@ -13985,7 +13977,8 @@ win_info_doc.decorators = [
13985
13977
  win_info_doc.ctorParameters = () => [
13986
13978
  { type: MatDialogRef },
13987
13979
  { type: AppService },
13988
- { type: ToastrService }
13980
+ { type: ToastrService },
13981
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
13989
13982
  ];
13990
13983
 
13991
13984
  class win_log {
@@ -14119,8 +14112,12 @@ class win_log {
14119
14112
  if (data.result_msg == "OK") {
14120
14113
  this.logs = data.result_data;
14121
14114
  for (let i = 0; i < this.logs.length; i++)
14122
- this.logs[i].v_commento =
14123
- "<b>" + this.logs[i].operazione.replace(/\n/g, "<br/>") + "</b>";
14115
+ if (this.logs[i].stato_attuale != null)
14116
+ this.logs[i].v_commento =
14117
+ "<b>" + this.logs[i].operazione.replace(/\n/g, "<br/>") + " (" + this.logs[i].stato_attuale.replace(/\n/g, "<br/>") + ")</b>";
14118
+ else
14119
+ this.logs[i].v_commento =
14120
+ "<b>" + this.logs[i].operazione.replace(/\n/g, "<br/>") + "</b>";
14124
14121
  if (!this.ossv)
14125
14122
  this.modeler = new NavigatedViewer({
14126
14123
  container: "#canvas",
@@ -16049,7 +16046,6 @@ class dati_aggiuntivi {
16049
16046
  break;
16050
16047
  }
16051
16048
  }
16052
- console.log('this.clevel ', this.clevel);
16053
16049
  if (this.clevel == null)
16054
16050
  for (let i = 0; i < this.livs.length; i++) {
16055
16051
  if (this.livs[i].livello == liv) {
@@ -16265,7 +16261,6 @@ class dati_aggiuntivi {
16265
16261
  }
16266
16262
  }
16267
16263
  }
16268
- console.log('arrAutori ', arrAutori);
16269
16264
  if (arrAutori.length == 0) {
16270
16265
  this.alert("problema di configurazione il livello " +
16271
16266
  this.nlevel.descri_livello +
@@ -17276,8 +17271,19 @@ class dati_aggiuntivi {
17276
17271
  }
17277
17272
  }
17278
17273
  open_info() {
17274
+ let aut = this.m_obj.autori.split(",");
17275
+ for (let i = 0; i < aut.length; i++)
17276
+ for (let y = 0; y < this.livs.length; y++)
17277
+ if (this.livs[y].idp == aut[i]) {
17278
+ if (this.s_uto != "")
17279
+ this.s_uto = this.s_uto + ",";
17280
+ this.s_uto = this.s_uto + this.livs[y].nc;
17281
+ break;
17282
+ }
17283
+ this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
17284
+ this.m_obj.s_uto == this.s_uto;
17279
17285
  let dialogRef = this.m_dialog.open(win_info_doc, {
17280
- disableClose: true,
17286
+ disableClose: true, data: this.m_obj
17281
17287
  });
17282
17288
  setTimeout(() => {
17283
17289
  dialogRef.componentInstance.hide_richiedente = this.hide_richiedente;
@@ -21590,8 +21596,12 @@ class win_log_v2 {
21590
21596
  if (data.result_msg == "OK") {
21591
21597
  this.logs = data.result_data;
21592
21598
  for (let i = 0; i < this.logs.length; i++)
21593
- this.logs[i].v_commento =
21594
- "<b>" + this.logs[i].operazione.replace(/\n/g, "<br/>") + "</b>";
21599
+ if (this.logs[i].stato_attuale != null)
21600
+ this.logs[i].v_commento =
21601
+ "<b>" + this.logs[i].operazione.replace(/\n/g, "<br/>") + " (" + this.logs[i].stato_attuale.replace(/\n/g, "<br/>") + ")</b>";
21602
+ else
21603
+ this.logs[i].v_commento =
21604
+ "<b>" + this.logs[i].operazione.replace(/\n/g, "<br/>") + "</b>";
21595
21605
  if (!this.ossv)
21596
21606
  this.modeler = new NavigatedViewer({
21597
21607
  container: "#canvas",
@@ -23848,7 +23858,17 @@ class dati_aggiuntivi_v2 {
23848
23858
  }
23849
23859
  }
23850
23860
  open_info() {
23851
- this.m_obj.s_uto = this.s_uto;
23861
+ let aut = this.m_obj.autori.split(",");
23862
+ for (let i = 0; i < aut.length; i++)
23863
+ for (let y = 0; y < this.livs.length; y++)
23864
+ if (this.livs[y].idp == aut[i]) {
23865
+ if (this.s_uto != "")
23866
+ this.s_uto = this.s_uto + ",";
23867
+ this.s_uto = this.s_uto + this.livs[y].nc;
23868
+ break;
23869
+ }
23870
+ this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
23871
+ this.m_obj.s_uto == this.s_uto;
23852
23872
  console.log('this.m_obj ', this.m_obj);
23853
23873
  let dialogRef = this.m_dialog.open(win_info_doc_v2, {
23854
23874
  disableClose: true, data: this.m_obj