@fluxhub/fluxhub-lib 1.0.219 → 1.0.221

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,8 +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
- enableColResize: true,
6036
6032
  rowSelection: 'multiple',
6037
6033
  rowDeselection: false,
6038
6034
  // getContextMenuItems: () => this.getContextMenuItems(),
@@ -12407,8 +12403,7 @@ var FHGridJSONComponent = /** @class */ (function () {
12407
12403
  enableRangeSelection: true,
12408
12404
  enableServerSideSorting: false,
12409
12405
  enableServerSideFilter: false,
12410
- enableColResize: true,
12411
- enableSorting: true,
12406
+ defaultColDef: { resizable: true, sortable: true },
12412
12407
  rowSelection: 'multiple',
12413
12408
  rowDeselection: false,
12414
12409
  getContextMenuItems: function () { return _this.getContextMenuItems(); },
@@ -13631,7 +13626,7 @@ var FHGridJSONComponent = /** @class */ (function () {
13631
13626
  };
13632
13627
  FHGridJSONComponent.decorators = [
13633
13628
  { type: Component, args: [{
13634
- selector: 'FHGridJSON', template: "\n <table [hidden]='!show_buttons' style=\"height: 15%;\">\n <tr>\n <td [hidden]='this.m_appService.getState().pageFullscreen'><h5>{{num_r + label_elementi}}</h5>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n </td>\n <td style=\"vertical-align:'bottom'\">&nbsp;&nbsp;&nbsp;&nbsp;<mat-form-field>\n <input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\n style=\"width:200px\">\n </mat-form-field>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;\n </td>\n <td [hidden]='this.m_appService.getState().pageFullscreen'\n *ngIf=\"show_buttons && !this.m_appService.getState( ).mobile\">&nbsp;&nbsp;&nbsp;<button\n *ngIf=\"show_pulisci_filtri\" mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>clear</mat-icon>&nbsp;&nbsp;REMOVE FILTER\n </button>\n </td>\n <td [hidden]='this.m_appService.getState().pageFullscreen'\n *ngIf=\"show_buttons && !this.m_appService.getState( ).mobile\"> &nbsp;&nbsp;&nbsp;\n <button mat-raised-button (click)=\"autoSizeAll()\" color=\"accent\">\n <mat-icon>photo_size_select_small</mat-icon>&nbsp;&nbsp;AUTO SIZE\n </button>\n </td>\n <td [hidden]='this.m_appService.getState().pageFullscreen'\n *ngIf=\"show_buttons && !this.m_appService.getState( ).mobile\"> &nbsp;&nbsp;&nbsp;\n <button mat-raised-button (click)=\"fitSizeAll()\" color=\"accent\">\n <mat-icon>aspect_ratio</mat-icon>&nbsp;&nbsp;FIT SIZE\n </button>\n\n </td>\n\n </tr>\n </table>\n <div [hidden]='this.m_appService.getState().pageFullscreen'\n *ngIf=\"!show_buttons && !this.m_appService.getState( ).mobile && show_num_elem\"><h5>\n {{num_r + ' Elementi'}}</h5></div>\n\n <ag-grid-angular ref-agGrid style=\"width:100%;height:85%;\" (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\" [headerHeight]=\"header_h\" [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\" [singleClickEdit]=\"true\" [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\" enableColResize enableColResize\n (afterFilterChanged)=\"onAfterFilterChanged()\" (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\" (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\" (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\" [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\">\n </ag-grid-angular>\n\n\n ",
13629
+ selector: 'FHGridJSON', template: "\n <table [hidden]='!show_buttons' style=\"height: 15%;\">\n <tr>\n <td [hidden]='this.m_appService.getState().pageFullscreen'><h5>{{num_r + label_elementi}}</h5>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n </td>\n <td style=\"vertical-align:'bottom'\">&nbsp;&nbsp;&nbsp;&nbsp;<mat-form-field>\n <input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\n style=\"width:200px\">\n </mat-form-field>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;\n </td>\n <td [hidden]='this.m_appService.getState().pageFullscreen'\n *ngIf=\"show_buttons && !this.m_appService.getState( ).mobile\">&nbsp;&nbsp;&nbsp;<button\n *ngIf=\"show_pulisci_filtri\" mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>clear</mat-icon>&nbsp;&nbsp;REMOVE FILTER\n </button>\n </td>\n <td [hidden]='this.m_appService.getState().pageFullscreen'\n *ngIf=\"show_buttons && !this.m_appService.getState( ).mobile\"> &nbsp;&nbsp;&nbsp;\n <button mat-raised-button (click)=\"autoSizeAll()\" color=\"accent\">\n <mat-icon>photo_size_select_small</mat-icon>&nbsp;&nbsp;AUTO SIZE\n </button>\n </td>\n <td [hidden]='this.m_appService.getState().pageFullscreen'\n *ngIf=\"show_buttons && !this.m_appService.getState( ).mobile\"> &nbsp;&nbsp;&nbsp;\n <button mat-raised-button (click)=\"fitSizeAll()\" color=\"accent\">\n <mat-icon>aspect_ratio</mat-icon>&nbsp;&nbsp;FIT SIZE\n </button>\n\n </td>\n\n </tr>\n </table>\n <div [hidden]='this.m_appService.getState().pageFullscreen'\n *ngIf=\"!show_buttons && !this.m_appService.getState( ).mobile && show_num_elem\"><h5>\n {{num_r + ' Elementi'}}</h5></div>\n\n <ag-grid-angular ref-agGrid style=\"width:100%;height:85%;\" (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\" [headerHeight]=\"header_h\" [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\" [singleClickEdit]=\"true\" [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n (afterFilterChanged)=\"onAfterFilterChanged()\" (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\" (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\" (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\" [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\">\n </ag-grid-angular>\n\n\n ",
13635
13630
  styles: ["\n\n "]
13636
13631
  }] }
13637
13632
  ];
@@ -14345,22 +14340,13 @@ var dati_aggiuntivi = /** @class */ (function () {
14345
14340
  */
14346
14341
  this.doEnd(this.nlevel.livello);
14347
14342
  /** @type {?} */
14348
- var p = new QParam();
14349
- p.sql = "UPDATE_DATA_CHIUSURA";
14350
- p.values = [this.id_applicativo, this.id_documento];
14351
- p.types = ['string', 'string'];
14352
- this.m_dataService.doQuery(p).subscribe(function (data) {
14353
- /** @type {?} */
14354
- 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) {
14355
14348
  if (data != null)
14356
- if (data.result_msg == "OK") {
14357
- ok_op = true;
14358
- }
14359
- if (!ok_op) {
14360
- _this.alert(data.msg, 1);
14361
- }
14362
- }, function (err) {
14363
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
14349
+ if (data.result_msg == "OK") ;
14364
14350
  });
14365
14351
  }
14366
14352
  /** @type {?} */
@@ -14398,59 +14384,37 @@ var dati_aggiuntivi = /** @class */ (function () {
14398
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];
14399
14385
  this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.clevel.livello + "_PLAYER", this.user_idp);
14400
14386
  this.m_wkf.doQuery(p).subscribe(function (data) {
14401
- /** @type {?} */
14402
- var ok_op = false;
14403
14387
  if (data != null)
14404
- if (data.result_msg == "OK") {
14405
- ok_op = true;
14406
- }
14407
- if (!ok_op) {
14408
- _this.alert(data.msg, 1);
14409
- }
14410
- }, function (err) {
14411
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
14388
+ if (data.result_msg == "OK") ;
14412
14389
  });
14413
- /** @type {?} */
14414
- var p = new QParam();
14390
+ p = new QParam();
14415
14391
  p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
14416
14392
  p.values = a;
14417
14393
  p.types = t;
14418
14394
  this.m_dataService.doQuery(p).subscribe(function (data) {
14419
- /** @type {?} */
14420
- var ok_op = false;
14421
14395
  if (data != null)
14422
- if (data.result_msg == "OK") {
14423
- ok_op = true;
14424
- }
14425
- if (!ok_op) {
14426
- _this.alert(data.msg, 1);
14427
- }
14428
- }, function (err) {
14429
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
14396
+ if (data.result_msg == "OK") ;
14430
14397
  });
14431
14398
  //myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
14432
14399
  if (this.m_danotificare != "") {
14433
14400
  /** @type {?} */
14434
- var comm = "";
14401
+ var comm_1 = "";
14435
14402
  if (this.nota != "")
14436
- comm = "<br>Commento: " + this.nota;
14403
+ comm_1 = "<br>Commento: " + this.nota;
14437
14404
  if (this.clevel.ccn_mittente == 1) {
14438
14405
  if (this.m_danotificare != "")
14439
14406
  this.m_danotificare = this.m_danotificare + ",";
14440
14407
  this.m_danotificare = this.m_danotificare + this.user_idp;
14441
14408
  }
14442
- /** @type {?} */
14443
- var p = new QParam();
14409
+ p = new QParam();
14444
14410
  p.sql = "exec_app_workflow";
14445
14411
  p.values = [this.app_info.codice_documento, this.id_documento, '' + this.clevel.livello, '' + this.nlevel.livello, this.user_idp];
14446
14412
  this.m_wkf.doQuery(p).subscribe(function (data) {
14447
- }, function (err) {
14448
14413
  });
14449
14414
  if (this.nlevel.approvazione_email == 1) ;
14450
14415
  else {
14451
- console.log('this.nlevel.ical ', this.nlevel.ical);
14452
14416
  /** @type {?} */
14453
- var ical = null;
14417
+ var ical_1 = null;
14454
14418
  if (this.nlevel.ical == 1) {
14455
14419
  if (this.m_obj.ical_dt_ini == null) {
14456
14420
  this.alert('Attenzione ical non configurato ical_dt_ini', 1);
@@ -14459,29 +14423,26 @@ var dati_aggiuntivi = /** @class */ (function () {
14459
14423
  this.alert('Attenzione ical non configurato ical_dt_fin', 1);
14460
14424
  }
14461
14425
  else
14462
- ical = {
14426
+ ical_1 = {
14463
14427
  start: this.m_obj.ical_dt_ini,
14464
14428
  end: this.m_obj.ical_dt_fin,
14465
14429
  summary: this.app_info.descrizione_breve + " " + this.getTitle(),
14466
- 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",
14467
14431
  organizer: this.user_nome + ' ' + this.user_cognome + ' <' + this.user_email + '>',
14468
14432
  url: this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit"
14469
14433
  };
14470
14434
  }
14471
14435
  if (this.nlevel.email_partecipanti == 1 || this.nlevel.email_ospiti == 1) {
14472
14436
  if (this.b_respingi)
14473
- 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);
14474
14438
  else {
14475
- console.log("--------------this.clevel.oggetto_text----------------------");
14476
- console.log(this.nlevel.oggetto_email);
14477
14439
  if (this.nlevel.oggetto_email == null)
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);
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);
14479
14441
  else if (this.nlevel.oggetto_email == "")
14480
- 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);
14481
14443
  else {
14482
14444
  /** @type {?} */
14483
14445
  var s_ogg = this.nlevel.oggetto_email;
14484
- console.log("OGGETTO CUSTOM!");
14485
14446
  for (var prop in this.m_obj)
14486
14447
  if (this.m_obj[prop] != null) {
14487
14448
  console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
@@ -14493,12 +14454,59 @@ var dati_aggiuntivi = /** @class */ (function () {
14493
14454
  else
14494
14455
  s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
14495
14456
  }
14496
- 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);
14497
14458
  }
14498
14459
  }
14499
14460
  }
14500
14461
  else
14501
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
+ }
14502
14510
  }
14503
14511
  }
14504
14512
  };
@@ -14514,6 +14522,7 @@ var dati_aggiuntivi = /** @class */ (function () {
14514
14522
  * @param {?} nota
14515
14523
  * @param {?=} notif_av
14516
14524
  * @param {?=} ical
14525
+ * @param {?=} b_exit
14517
14526
  * @return {?}
14518
14527
  */
14519
14528
  dati_aggiuntivi.prototype.sendEMail_ex = /**
@@ -14528,12 +14537,14 @@ var dati_aggiuntivi = /** @class */ (function () {
14528
14537
  * @param {?} nota
14529
14538
  * @param {?=} notif_av
14530
14539
  * @param {?=} ical
14540
+ * @param {?=} b_exit
14531
14541
  * @return {?}
14532
14542
  */
14533
- 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) {
14534
14544
  var _this = this;
14535
14545
  if (notif_av === void 0) { notif_av = true; }
14536
14546
  if (ical === void 0) { ical = ''; }
14547
+ if (b_exit === void 0) { b_exit = true; }
14537
14548
  /** @type {?} */
14538
14549
  var p = new QParam();
14539
14550
  p.sql = "send_wkf_mail";
@@ -14547,7 +14558,8 @@ var dati_aggiuntivi = /** @class */ (function () {
14547
14558
  ical = JSON.stringify(ical);
14548
14559
  p.values = [mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical];
14549
14560
  this.m_wkf.doQuery(p).subscribe(function (data) {
14550
- _this.goto_edit_doc(notif_av);
14561
+ if (b_exit)
14562
+ _this.goto_edit_doc(notif_av);
14551
14563
  });
14552
14564
  };
14553
14565
  /**