@fluxhub/fluxhub-lib 10.0.597 → 10.0.599

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.
@@ -2534,7 +2534,7 @@
2534
2534
  fh_win_picklist.decorators = [
2535
2535
  { type: i0.Component, args: [{
2536
2536
  selector: "FHPickList",
2537
- template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>VALORI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"18%\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>VALORI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n Annulla\n </button>\n </div>\n </div>\n ",
2537
+ template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONABILI' | translate}}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"18%\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONATI'}}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n {{'Annulla' | translate}}\n </button>\n </div>\n </div>\n ",
2538
2538
  styles: ["\n .selector {\n cursor: hand;\n }\n "]
2539
2539
  },] }
2540
2540
  ];
@@ -8683,7 +8683,7 @@
8683
8683
  fh_win_user_picker.decorators = [
8684
8684
  { type: i0.Component, args: [{
8685
8685
  selector: "FHPickUsers",
8686
- template: "\n <mat-dialog-content style=\"font-size:12px\">\n <br /><br />\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td colspan=\"2\" style=\"background-color:#FFF !important\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n matInput\n />\n </mat-form-field>\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of users_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u);selectedAdd = u\"\n (dblclick)=\"do_add()\"\n [style.background-color]=\"selectedAdd == u ? '#2AA1DD':''\"\n [style.color]=\"selectedAdd == u ? '#FFFFFF':''\"\n [ngClass]=\"selectedAdd == u ? '':'sel_r'\"\n\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"20\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option || selectedAdd==null\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option || selectedRemove==null\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of user_sel; let odd = odd; let even = even\"\n [style.background-color]=\"selectedRemove == u ? '#2AA1DD':''\"\n [style.color]=\"selectedRemove == u ? '#FFFFFF':''\"\n [ngClass]=\"selectedRemove == u ? '':'sel_r'\"\n (click)=\"removeTo(u);selectedRemove = u\"\n (dblclick)=\"do_rem()\"\n\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions *ngIf=\"vis_buttons\">\n <div\n style=\"width:100%\"\n *ngIf=\"vis_buttons\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"dialogRef.close(this.user_sel)\"\n >\n Ok</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n Annulla\n </button>\n </div>\n </mat-dialog-actions>\n ",
8686
+ template: "\n <mat-dialog-content style=\"font-size:12px\">\n <br /><br />\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">{{'UTENTI SELEZIONABILI' | translate }}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td colspan=\"2\" style=\"background-color:#FFF !important\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label | translate }}</mat-label>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n matInput\n />\n </mat-form-field>\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of users_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u);selectedAdd = u\"\n (dblclick)=\"do_add()\"\n [style.background-color]=\"selectedAdd == u ? '#2AA1DD':''\"\n [style.color]=\"selectedAdd == u ? '#FFFFFF':''\"\n [ngClass]=\"selectedAdd == u ? '':'sel_r'\"\n\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"20\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option || selectedAdd==null\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option || selectedRemove==null\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">{{'UTENTI SELEZIONATI' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of user_sel; let odd = odd; let even = even\"\n [style.background-color]=\"selectedRemove == u ? '#2AA1DD':''\"\n [style.color]=\"selectedRemove == u ? '#FFFFFF':''\"\n [ngClass]=\"selectedRemove == u ? '':'sel_r'\"\n (click)=\"removeTo(u);selectedRemove = u\"\n (dblclick)=\"do_rem()\"\n\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions *ngIf=\"vis_buttons\">\n <div\n style=\"width:100%\"\n *ngIf=\"vis_buttons\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"dialogRef.close(this.user_sel)\"\n >\n Ok</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n {{'Annulla' | translate }}\n </button>\n </div>\n </mat-dialog-actions>\n ",
8687
8687
  styles: ["\n\n\n "]
8688
8688
  },] }
8689
8689
  ];
@@ -18864,6 +18864,7 @@
18864
18864
  if (!m_service.checkCredentials()) {
18865
18865
  return;
18866
18866
  }
18867
+ this.ripristina_imp();
18867
18868
  if (this.sort_field == null)
18868
18869
  this.sort_field = '';
18869
18870
  if (this.sort_field == '')
@@ -19332,6 +19333,7 @@
19332
19333
  this.app_s.user_surname_ori = null;
19333
19334
  this.app_s.user_email_ori = null;
19334
19335
  this.imp = "";
19336
+ localStorage.removeItem(this.app_s.COMPANY_KEY + '_imp_user');
19335
19337
  this.get_grid().doFill("");
19336
19338
  // browser.refresh()
19337
19339
  };
@@ -19381,8 +19383,8 @@
19381
19383
  data.result_data[0].cognome +
19382
19384
  " " +
19383
19385
  data.result_data[0].nome;
19386
+ localStorage.setItem(_this.app_s.COMPANY_KEY + '_imp_user', _this.m_uti.encrypt_v3(data.result_data[0]));
19384
19387
  _this.get_grid().doFill("");
19385
- console.log(" this.user_idp ", _this.user_idp);
19386
19388
  }
19387
19389
  });
19388
19390
  }
@@ -19390,6 +19392,28 @@
19390
19392
  }
19391
19393
  });
19392
19394
  };
19395
+ wkfapp.prototype.ripristina_imp = function () {
19396
+ if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
19397
+ return;
19398
+ var obj = this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
19399
+ this.app_s.user_name_ori = this.app_s.user_name;
19400
+ this.app_s.user_ori = this.app_s.user;
19401
+ this.app_s.user_surname_ori = this.app_s.user_surname;
19402
+ this.app_s.user_email_ori = this.app_s.user_email;
19403
+ this.app_s.user_name = obj.nome;
19404
+ this.app_s.user = obj.username;
19405
+ this.app_s.user_surname = obj.cognome;
19406
+ this.app_s.user_email = obj.email;
19407
+ this.user_idp = obj.username;
19408
+ this.user_nome = obj.nome;
19409
+ this.user_cognome = obj.cognome;
19410
+ this.user_email = obj.email;
19411
+ this.imp =
19412
+ "ANN. IMP: " +
19413
+ obj.cognome +
19414
+ " " +
19415
+ obj.nome;
19416
+ };
19393
19417
  wkfapp.prototype.save_state_wkf = function () {
19394
19418
  this.app_s.getState().wkf_obj = {};
19395
19419
  this.app_s.getState().wkf_obj.b_editing = this.b_editing;
@@ -19694,12 +19718,30 @@
19694
19718
  this.b_apprf = false;
19695
19719
  // console.log('user_idp: '+ this.user_idp);
19696
19720
  }
19721
+ dati_aggiuntivi.prototype.ripristina_imp = function () {
19722
+ if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
19723
+ this.user_idp = this.app_s.user;
19724
+ this.user_nome = this.app_s.user_name;
19725
+ this.user_cognome = this.app_s.user_surname;
19726
+ this.user_email = this.app_s.user_email;
19727
+ return;
19728
+ }
19729
+ var obj = this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
19730
+ this.app_s.user_name_ori = this.app_s.user_name;
19731
+ this.app_s.user_ori = this.app_s.user;
19732
+ this.app_s.user_surname_ori = this.app_s.user_surname;
19733
+ this.app_s.user_email_ori = this.app_s.user_email;
19734
+ this.app_s.user_name = obj.nome;
19735
+ this.app_s.user = obj.username;
19736
+ this.app_s.user_surname = obj.cognome;
19737
+ this.app_s.user_email = obj.email;
19738
+ this.user_idp = obj.username;
19739
+ this.user_nome = obj.nome;
19740
+ this.user_cognome = obj.cognome;
19741
+ this.user_email = obj.email;
19742
+ };
19697
19743
  dati_aggiuntivi.prototype.init_user_i = function () {
19698
- //console.log('init_user_i() ',this.app_s.user);
19699
- this.user_idp = this.app_s.user;
19700
- this.user_nome = this.app_s.user_name;
19701
- this.user_cognome = this.app_s.user_surname;
19702
- this.user_email = this.app_s.user_email;
19744
+ this.ripristina_imp();
19703
19745
  };
19704
19746
  dati_aggiuntivi.prototype.save_to_app_state = function () {
19705
19747
  this.app_s.getState().wkf_doc_info = {};
@@ -21630,6 +21672,7 @@
21630
21672
  if (!m_service.checkCredentials()) {
21631
21673
  return;
21632
21674
  }
21675
+ this.ripristina_imp();
21633
21676
  if (this.sort_field == null)
21634
21677
  this.sort_field = '';
21635
21678
  if (this.sort_field == '')
@@ -22140,6 +22183,7 @@
22140
22183
  this.app_s.user_surname_ori = null;
22141
22184
  this.app_s.user_email_ori = null;
22142
22185
  this.imp = "";
22186
+ localStorage.removeItem(this.app_s.COMPANY_KEY + '_imp_user');
22143
22187
  this.get_grid().doFill("");
22144
22188
  // browser.refresh()
22145
22189
  };
@@ -22189,6 +22233,7 @@
22189
22233
  data.result_data[0].cognome +
22190
22234
  " " +
22191
22235
  data.result_data[0].nome;
22236
+ localStorage.setItem(_this.app_s.COMPANY_KEY + '_imp_user', _this.m_uti.encrypt_v3(data.result_data[0]));
22192
22237
  _this.get_grid().doFill("");
22193
22238
  }
22194
22239
  });
@@ -22415,6 +22460,28 @@
22415
22460
  wkfapp_v2.prototype.insert_doc = function () {
22416
22461
  this.m_router.navigate([this.app_root, this.id_applicativo, "new"]);
22417
22462
  };
22463
+ wkfapp_v2.prototype.ripristina_imp = function () {
22464
+ if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
22465
+ return;
22466
+ var obj = this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
22467
+ this.app_s.user_name_ori = this.app_s.user_name;
22468
+ this.app_s.user_ori = this.app_s.user;
22469
+ this.app_s.user_surname_ori = this.app_s.user_surname;
22470
+ this.app_s.user_email_ori = this.app_s.user_email;
22471
+ this.app_s.user_name = obj.nome;
22472
+ this.app_s.user = obj.username;
22473
+ this.app_s.user_surname = obj.cognome;
22474
+ this.app_s.user_email = obj.email;
22475
+ this.user_idp = obj.username;
22476
+ this.user_nome = obj.nome;
22477
+ this.user_cognome = obj.cognome;
22478
+ this.user_email = obj.email;
22479
+ this.imp =
22480
+ "ANN. IMP: " +
22481
+ obj.cognome +
22482
+ " " +
22483
+ obj.nome;
22484
+ };
22418
22485
  return wkfapp_v2;
22419
22486
  }());
22420
22487
  wkfapp_v2.decorators = [
@@ -22445,6 +22512,7 @@
22445
22512
  this.m_fileservice = m_fileservice;
22446
22513
  this.tsr = tsr;
22447
22514
  this.m_obj = {};
22515
+ this.sort_field = "";
22448
22516
  this.in_carico = false;
22449
22517
  this.wkf_users_roles = '';
22450
22518
  this.b_rip_pulsanti = true;
@@ -22563,6 +22631,28 @@
22563
22631
  });
22564
22632
  });
22565
22633
  }
22634
+ dati_aggiuntivi_v2.prototype.ripristina_imp = function () {
22635
+ if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
22636
+ this.user_idp = this.app_s.user;
22637
+ this.user_nome = this.app_s.user_name;
22638
+ this.user_cognome = this.app_s.user_surname;
22639
+ this.user_email = this.app_s.user_email;
22640
+ return;
22641
+ }
22642
+ var obj = this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
22643
+ this.app_s.user_name_ori = this.app_s.user_name;
22644
+ this.app_s.user_ori = this.app_s.user;
22645
+ this.app_s.user_surname_ori = this.app_s.user_surname;
22646
+ this.app_s.user_email_ori = this.app_s.user_email;
22647
+ this.app_s.user_name = obj.nome;
22648
+ this.app_s.user = obj.username;
22649
+ this.app_s.user_surname = obj.cognome;
22650
+ this.app_s.user_email = obj.email;
22651
+ this.user_idp = obj.username;
22652
+ this.user_nome = obj.nome;
22653
+ this.user_cognome = obj.cognome;
22654
+ this.user_email = obj.email;
22655
+ };
22566
22656
  dati_aggiuntivi_v2.prototype.hasRole = function (s, b_check_admin) {
22567
22657
  if (b_check_admin === void 0) { b_check_admin = true; }
22568
22658
  if (this.wkf_users_roles === null)
@@ -22577,10 +22667,7 @@
22577
22667
  return false;
22578
22668
  };
22579
22669
  dati_aggiuntivi_v2.prototype.init_user_i = function () {
22580
- this.user_idp = this.app_s.user;
22581
- this.user_nome = this.app_s.user_name;
22582
- this.user_cognome = this.app_s.user_surname;
22583
- this.user_email = this.app_s.user_email;
22670
+ this.ripristina_imp();
22584
22671
  };
22585
22672
  dati_aggiuntivi_v2.prototype.save_to_app_state = function () {
22586
22673
  this.app_s.getState().wkf_doc_info = {};
@@ -22932,7 +23019,7 @@
22932
23019
  var dialogRef = this.m_dialog.open(win_assegna_v2, {
22933
23020
  disableClose: true,
22934
23021
  data: {
22935
- title: 'Conferma Assegnazione',
23022
+ title: this.tsr.instant('Conferma Assegnazione'),
22936
23023
  lbl: o.description,
22937
23024
  commento_default: '',
22938
23025
  comm_notrequired: o.comments_opt,