@fluxhub/fluxhub-lib 1.0.220 → 1.0.222

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.
@@ -4954,6 +4954,7 @@ wkfapp = /** @class */ (function () {
4954
4954
  this.b_initd = false;
4955
4955
  this.nota_wax = "";
4956
4956
  this.imp = "";
4957
+ this.m_cod_documento = '';
4957
4958
  this.sort_field = '';
4958
4959
  if (!m_service.checkCredentials()) {
4959
4960
  return;
@@ -5556,22 +5557,37 @@ wkfapp = /** @class */ (function () {
5556
5557
  * @return {?}
5557
5558
  */
5558
5559
  function (cod_documento, id_Doc) {
5560
+ this.m_id_Doc = id_Doc;
5561
+ this.m_cod_documento = cod_documento;
5562
+ this.do_init();
5563
+ };
5564
+ /**
5565
+ * @private
5566
+ * @return {?}
5567
+ */
5568
+ wkfapp.prototype.do_init = /**
5569
+ * @private
5570
+ * @return {?}
5571
+ */
5572
+ function () {
5559
5573
  var _this = this;
5560
5574
  if (this.app_s.user_ori != null)
5561
5575
  this.imp = 'ANN. IMP: ' + this.app_s.user_name + ' ' + this.app_s.user_surname;
5562
5576
  if (this.app_s.getState().wkf_obj != null)
5563
- if (this.app_s.getState().wkf_obj.codice_app == cod_documento) {
5577
+ if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
5564
5578
  this.restore_state_wkf();
5565
5579
  return;
5566
5580
  }
5567
5581
  this.user_idp = this.app_s.user;
5582
+ if (this.user_idp == null) {
5583
+ setTimeout(function () { _this.do_init(), 1000; });
5584
+ return;
5585
+ }
5568
5586
  /** @type {?} */
5569
5587
  var p = new QParam();
5570
5588
  p.sql = "SELECT_WKF_APP_INFO";
5571
5589
  p.types = ['string'];
5572
- p.values = [cod_documento];
5573
- /** @type {?} */
5574
- var ok_op = false;
5590
+ p.values = [this.m_cod_documento];
5575
5591
  this
5576
5592
  .m_dataService
5577
5593
  .doQuery(p)
@@ -5580,8 +5596,6 @@ wkfapp = /** @class */ (function () {
5580
5596
  if (data.result_msg == "OK") {
5581
5597
  /** @type {?} */
5582
5598
  var a_conf = data.result_data;
5583
- ok_op = true;
5584
- _this.m_id_Doc = id_Doc;
5585
5599
  _this.id_applicativo = a_conf[0].id_gruppo;
5586
5600
  _this.app_root = a_conf[0].modulo_swf;
5587
5601
  _this.codice_app = a_conf[0].codice_documento; //codice documento
@@ -5596,16 +5610,15 @@ wkfapp = /** @class */ (function () {
5596
5610
  _this.user_email = _this.app_s.user_email;
5597
5611
  _this.app_s.getState().topnavTitle = _this.att_panelcat;
5598
5612
  /** @type {?} */
5599
- var p = new QParam();
5600
- p.sql = "SELECT_UTENTE_WKF_ADMIN";
5601
- p.types = ['string', 'string'];
5602
- p.values = [
5613
+ var p_1 = new QParam();
5614
+ p_1.sql = "SELECT_UTENTE_WKF_ADMIN";
5615
+ p_1.types = ['string', 'string'];
5616
+ p_1.values = [
5603
5617
  _this.id_applicativo, _this.app_s.user
5604
5618
  ];
5605
- ok_op = false;
5606
5619
  _this
5607
5620
  .m_dataService
5608
- .doQuery(p)
5621
+ .doQuery(p_1)
5609
5622
  .subscribe(function (data) {
5610
5623
  if (data != null)
5611
5624
  if (data.result_msg == "OK") {
@@ -5618,39 +5631,23 @@ wkfapp = /** @class */ (function () {
5618
5631
  if (a[0].tipo == "1")
5619
5632
  _this.is_Admin = true;
5620
5633
  }
5621
- ok_op = true;
5622
5634
  /** @type {?} */
5623
- var p = new QParam();
5624
- p.sql = "SELECT_WLIVELLIV2";
5625
- p.types = ['string', 'string'];
5626
- p.values = [_this.id_applicativo, ''];
5627
- ok_op = false;
5635
+ var p_2 = new QParam();
5636
+ p_2.sql = "SELECT_WLIVELLIV2";
5637
+ p_2.types = ['string', 'string'];
5638
+ p_2.values = [_this.id_applicativo, ''];
5628
5639
  _this
5629
5640
  .m_dataService
5630
- .doQuery(p)
5641
+ .doQuery(p_2)
5631
5642
  .subscribe(function (data) {
5632
5643
  if (data != null)
5633
5644
  if (data.result_msg == "OK") {
5634
5645
  _this.ok_conf_s(data.result_data);
5635
- ok_op = true;
5636
5646
  }
5637
- if (!ok_op) {
5638
- console.error(data.msg);
5639
- }
5640
- }, function (err) {
5641
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5642
5647
  });
5643
5648
  }
5644
- }, function (err) {
5645
- console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5646
5649
  });
5647
- ok_op = true;
5648
5650
  }
5649
- if (!ok_op) {
5650
- console.error(data.msg);
5651
- }
5652
- }, function (err) {
5653
- console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5654
5651
  });
5655
5652
  };
5656
5653
  /**
@@ -5666,15 +5663,16 @@ wkfapp = /** @class */ (function () {
5666
5663
  this.is_Ins = false;
5667
5664
  for (var i = 0; i < this.livs.length; i++)
5668
5665
  if (this.livs[i].idp != null)
5669
- if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
5670
- if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
5671
- this.is_Ins = true;
5672
- if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
5673
- this.livs[i].gruppo_parallelo = "";
5674
- this.livs[i].idp = this.user_idp;
5666
+ if (this.user_idp != null)
5667
+ if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
5668
+ if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
5669
+ this.is_Ins = true;
5670
+ if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
5671
+ this.livs[i].gruppo_parallelo = "";
5672
+ this.livs[i].idp = this.user_idp;
5673
+ }
5674
+ break;
5675
5675
  }
5676
- break;
5677
- }
5678
5676
  this.save_state_wkf();
5679
5677
  // Alert.show(tbl_name);
5680
5678
  this.parse_url();
@@ -6031,7 +6029,6 @@ var FHGridComponent = /** @class */ (function () {
6031
6029
  floatingFilter: true,
6032
6030
  enableRangeSelection: true,
6033
6031
  defaultColDef: { resizable: true, sortable: true },
6034
- alwaysShowVerticalScroll: true,
6035
6032
  rowSelection: 'multiple',
6036
6033
  rowDeselection: false,
6037
6034
  // getContextMenuItems: () => this.getContextMenuItems(),
@@ -7310,7 +7307,7 @@ var FHGridComponent = /** @class */ (function () {
7310
7307
  { type: Component, args: [{
7311
7308
  selector: 'FHGrid',
7312
7309
  template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div>\r\n\t\t \t\t<h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n\t\t\t<div>\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon>&nbsp;\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-raised-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-raised-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n\r\n <FHComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t&nbsp;\t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-raised-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex>\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n\r\n\r\n</div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" fxFlex=\"95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n\t\t\t\t\t\t\t\t (afterFilterChanged)=\"onAfterFilterChanged()\"\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
7313
- styles: ["\n\n\t"]
7310
+ styles: ["\n .ag-theme-balham .ag-header-cell-label .ag-header-cell-text {\n text-overflow: clip;\n overflow: visible;\n white-space: normal;\n height: auto;\n padding: 0px;\n }\n\n\t"]
7314
7311
  }] }
7315
7312
  ];
7316
7313
  /** @nocollapse */
@@ -14343,22 +14340,13 @@ var dati_aggiuntivi = /** @class */ (function () {
14343
14340
  */
14344
14341
  this.doEnd(this.nlevel.livello);
14345
14342
  /** @type {?} */
14346
- var p = new QParam();
14347
- p.sql = "UPDATE_DATA_CHIUSURA";
14348
- p.values = [this.id_applicativo, this.id_documento];
14349
- p.types = ['string', 'string'];
14350
- this.m_dataService.doQuery(p).subscribe(function (data) {
14351
- /** @type {?} */
14352
- var ok_op = false;
14343
+ var p_1 = new QParam();
14344
+ p_1.sql = "UPDATE_DATA_CHIUSURA";
14345
+ p_1.values = [this.id_applicativo, this.id_documento];
14346
+ p_1.types = ['string', 'string'];
14347
+ this.m_dataService.doQuery(p_1).subscribe(function (data) {
14353
14348
  if (data != null)
14354
- if (data.result_msg == "OK") {
14355
- ok_op = true;
14356
- }
14357
- if (!ok_op) {
14358
- _this.alert(data.msg, 1);
14359
- }
14360
- }, function (err) {
14361
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
14349
+ if (data.result_msg == "OK") ;
14362
14350
  });
14363
14351
  }
14364
14352
  /** @type {?} */
@@ -14396,59 +14384,37 @@ var dati_aggiuntivi = /** @class */ (function () {
14396
14384
  this.getDescri(), this.user_idp, this.m_statox, this.m_oper, this.id_applicativo, this.id_documento, '' + this.m_crea_att, '' + this.m_send_email, '' + this.clevel.livello, '' + this.nlevel.livello];
14397
14385
  this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.clevel.livello + "_PLAYER", this.user_idp);
14398
14386
  this.m_wkf.doQuery(p).subscribe(function (data) {
14399
- /** @type {?} */
14400
- var ok_op = false;
14401
14387
  if (data != null)
14402
- if (data.result_msg == "OK") {
14403
- ok_op = true;
14404
- }
14405
- if (!ok_op) {
14406
- _this.alert(data.msg, 1);
14407
- }
14408
- }, function (err) {
14409
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
14388
+ if (data.result_msg == "OK") ;
14410
14389
  });
14411
- /** @type {?} */
14412
- var p = new QParam();
14390
+ p = new QParam();
14413
14391
  p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
14414
14392
  p.values = a;
14415
14393
  p.types = t;
14416
14394
  this.m_dataService.doQuery(p).subscribe(function (data) {
14417
- /** @type {?} */
14418
- var ok_op = false;
14419
14395
  if (data != null)
14420
- if (data.result_msg == "OK") {
14421
- ok_op = true;
14422
- }
14423
- if (!ok_op) {
14424
- _this.alert(data.msg, 1);
14425
- }
14426
- }, function (err) {
14427
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
14396
+ if (data.result_msg == "OK") ;
14428
14397
  });
14429
14398
  //myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
14430
14399
  if (this.m_danotificare != "") {
14431
14400
  /** @type {?} */
14432
- var comm = "";
14401
+ var comm_1 = "";
14433
14402
  if (this.nota != "")
14434
- comm = "<br>Commento: " + this.nota;
14403
+ comm_1 = "<br>Commento: " + this.nota;
14435
14404
  if (this.clevel.ccn_mittente == 1) {
14436
14405
  if (this.m_danotificare != "")
14437
14406
  this.m_danotificare = this.m_danotificare + ",";
14438
14407
  this.m_danotificare = this.m_danotificare + this.user_idp;
14439
14408
  }
14440
- /** @type {?} */
14441
- var p = new QParam();
14409
+ p = new QParam();
14442
14410
  p.sql = "exec_app_workflow";
14443
14411
  p.values = [this.app_info.codice_documento, this.id_documento, '' + this.clevel.livello, '' + this.nlevel.livello, this.user_idp];
14444
14412
  this.m_wkf.doQuery(p).subscribe(function (data) {
14445
- }, function (err) {
14446
14413
  });
14447
14414
  if (this.nlevel.approvazione_email == 1) ;
14448
14415
  else {
14449
- console.log('this.nlevel.ical ', this.nlevel.ical);
14450
14416
  /** @type {?} */
14451
- var ical = null;
14417
+ var ical_1 = null;
14452
14418
  if (this.nlevel.ical == 1) {
14453
14419
  if (this.m_obj.ical_dt_ini == null) {
14454
14420
  this.alert('Attenzione ical non configurato ical_dt_ini', 1);
@@ -14457,25 +14423,23 @@ var dati_aggiuntivi = /** @class */ (function () {
14457
14423
  this.alert('Attenzione ical non configurato ical_dt_fin', 1);
14458
14424
  }
14459
14425
  else
14460
- ical = {
14426
+ ical_1 = {
14461
14427
  start: this.m_obj.ical_dt_ini,
14462
14428
  end: this.m_obj.ical_dt_fin,
14463
14429
  summary: this.app_info.descrizione_breve + " " + this.getTitle(),
14464
- description: this.getDescri() + comm + "<br>" + this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
14430
+ description: this.getDescri() + comm_1 + "<br>" + this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
14465
14431
  organizer: this.user_nome + ' ' + this.user_cognome + ' <' + this.user_email + '>',
14466
14432
  url: this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit"
14467
14433
  };
14468
14434
  }
14469
14435
  if (this.nlevel.email_partecipanti == 1 || this.nlevel.email_ospiti == 1) {
14470
14436
  if (this.b_respingi)
14471
- this.sendEMail_ex(this.user_idp, this.m_danotificare, "Respinta " + this.getTitle() + "-[" + this.m_obj.codice + "]", "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + "<br>Commenti:" + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical);
14437
+ this.sendEMail_ex(this.user_idp, this.m_danotificare, "Respinta " + this.getTitle() + "-[" + this.m_obj.codice + "]", "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + "<br>Commenti:" + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1);
14472
14438
  else {
14473
- console.log("--------------this.clevel.oggetto_text----------------------");
14474
- console.log(this.nlevel.oggetto_email);
14475
14439
  if (this.nlevel.oggetto_email == null)
14476
- this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical);
14440
+ this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1);
14477
14441
  else if (this.nlevel.oggetto_email == "")
14478
- this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical);
14442
+ this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1);
14479
14443
  else {
14480
14444
  /** @type {?} */
14481
14445
  var s_ogg = this.nlevel.oggetto_email;
@@ -14490,12 +14454,59 @@ var dati_aggiuntivi = /** @class */ (function () {
14490
14454
  else
14491
14455
  s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
14492
14456
  }
14493
- this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical);
14457
+ this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1);
14494
14458
  }
14495
14459
  }
14496
14460
  }
14497
14461
  else
14498
14462
  this.goto_edit_doc();
14463
+ if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
14464
+ if (this.nlevel.tipo_notifica_aggiuntiva == 1)
14465
+ this.sendEMail_ex(this.user_idp, this.m_obj.creatore, this.app_info.descrizione_breve + ", Il documento numero: " + this.m_obj.codice + " è passato allo STEP: " + this.nlevel.descri_livello + " " + this.getTitle(), this.m_statox + "<br>" + this.getDescri() + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1, false);
14466
+ if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
14467
+ /** @type {?} */
14468
+ var p_2 = new QParam();
14469
+ p_2.sql = "SELECT_PARTECIPANTI_DOC";
14470
+ p_2.values = [this.id_applicativo, this.id_documento];
14471
+ p_2.types = ['string', 'string'];
14472
+ this.m_dataService.doQuery(p_2).subscribe(function (data) {
14473
+ if (data != null)
14474
+ if (data.result_msg == "OK") {
14475
+ /** @type {?} */
14476
+ var lista_p = _this.user_idp;
14477
+ for (var i_3 = 0; i_3 < data.result_data.length; i_3++)
14478
+ if (lista_p.indexOf(data.result_data[i_3].username) == -1) {
14479
+ console.log('username:', data.result_data[i_3].username);
14480
+ lista_p += ',';
14481
+ lista_p += data.result_data[i_3].username;
14482
+ }
14483
+ console.log('lista_p ', lista_p);
14484
+ _this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
14485
+ }
14486
+ });
14487
+ }
14488
+ if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
14489
+ /** @type {?} */
14490
+ var p_3 = new QParam();
14491
+ p_3.sql = "SELECT_ALL_USERS_DOC";
14492
+ p_3.values = [this.id_applicativo, this.id_documento];
14493
+ p_3.types = ['string', 'string'];
14494
+ this.m_dataService.doQuery(p_3).subscribe(function (data) {
14495
+ if (data != null)
14496
+ if (data.result_msg == "OK") {
14497
+ /** @type {?} */
14498
+ var lista_p = _this.user_idp;
14499
+ for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
14500
+ if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
14501
+ console.log('username:', data.result_data[i_4].username);
14502
+ lista_p += ',';
14503
+ lista_p += data.result_data[i_4].username;
14504
+ }
14505
+ _this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
14506
+ }
14507
+ });
14508
+ }
14509
+ }
14499
14510
  }
14500
14511
  }
14501
14512
  };
@@ -14511,6 +14522,7 @@ var dati_aggiuntivi = /** @class */ (function () {
14511
14522
  * @param {?} nota
14512
14523
  * @param {?=} notif_av
14513
14524
  * @param {?=} ical
14525
+ * @param {?=} b_exit
14514
14526
  * @return {?}
14515
14527
  */
14516
14528
  dati_aggiuntivi.prototype.sendEMail_ex = /**
@@ -14525,12 +14537,14 @@ var dati_aggiuntivi = /** @class */ (function () {
14525
14537
  * @param {?} nota
14526
14538
  * @param {?=} notif_av
14527
14539
  * @param {?=} ical
14540
+ * @param {?=} b_exit
14528
14541
  * @return {?}
14529
14542
  */
14530
- function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical) {
14543
+ function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical, b_exit) {
14531
14544
  var _this = this;
14532
14545
  if (notif_av === void 0) { notif_av = true; }
14533
14546
  if (ical === void 0) { ical = ''; }
14547
+ if (b_exit === void 0) { b_exit = true; }
14534
14548
  /** @type {?} */
14535
14549
  var p = new QParam();
14536
14550
  p.sql = "send_wkf_mail";
@@ -14544,7 +14558,8 @@ var dati_aggiuntivi = /** @class */ (function () {
14544
14558
  ical = JSON.stringify(ical);
14545
14559
  p.values = [mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical];
14546
14560
  this.m_wkf.doQuery(p).subscribe(function (data) {
14547
- _this.goto_edit_doc(notif_av);
14561
+ if (b_exit)
14562
+ _this.goto_edit_doc(notif_av);
14548
14563
  });
14549
14564
  };
14550
14565
  /**