@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.
@@ -4021,8 +4021,6 @@
4021
4021
  floatingFilter: true,
4022
4022
  enableRangeSelection: true,
4023
4023
  defaultColDef: { resizable: true, sortable: true },
4024
- alwaysShowVerticalScroll: true,
4025
- enableColResize: true,
4026
4024
  rowSelection: 'multiple',
4027
4025
  rowDeselection: false,
4028
4026
  // getContextMenuItems: () => this.getContextMenuItems(),
@@ -11777,8 +11775,7 @@
11777
11775
  enableRangeSelection: true,
11778
11776
  enableServerSideSorting: false,
11779
11777
  enableServerSideFilter: false,
11780
- enableColResize: true,
11781
- enableSorting: true,
11778
+ defaultColDef: { resizable: true, sortable: true },
11782
11779
  rowSelection: 'multiple',
11783
11780
  rowDeselection: false,
11784
11781
  getContextMenuItems: function () { return _this.getContextMenuItems(); },
@@ -13011,7 +13008,7 @@
13011
13008
  };
13012
13009
  FHGridJSONComponent.decorators = [
13013
13010
  { type: i0.Component, args: [{
13014
- 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 ",
13011
+ 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 ",
13015
13012
  styles: ["\n\n "]
13016
13013
  }] }
13017
13014
  ];
@@ -13903,6 +13900,7 @@
13903
13900
  this.b_initd = false;
13904
13901
  this.nota_wax = "";
13905
13902
  this.imp = "";
13903
+ this.m_cod_documento = '';
13906
13904
  this.sort_field = '';
13907
13905
  if (!m_service.checkCredentials()) {
13908
13906
  return;
@@ -14507,22 +14505,37 @@
14507
14505
  * @return {?}
14508
14506
  */
14509
14507
  function (cod_documento, id_Doc) {
14508
+ this.m_id_Doc = id_Doc;
14509
+ this.m_cod_documento = cod_documento;
14510
+ this.do_init();
14511
+ };
14512
+ /**
14513
+ * @private
14514
+ * @return {?}
14515
+ */
14516
+ wkfapp.prototype.do_init = /**
14517
+ * @private
14518
+ * @return {?}
14519
+ */
14520
+ function () {
14510
14521
  var _this = this;
14511
14522
  if (this.app_s.user_ori != null)
14512
14523
  this.imp = 'ANN. IMP: ' + this.app_s.user_name + ' ' + this.app_s.user_surname;
14513
14524
  if (this.app_s.getState().wkf_obj != null)
14514
- if (this.app_s.getState().wkf_obj.codice_app == cod_documento) {
14525
+ if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
14515
14526
  this.restore_state_wkf();
14516
14527
  return;
14517
14528
  }
14518
14529
  this.user_idp = this.app_s.user;
14530
+ if (this.user_idp == null) {
14531
+ setTimeout(function () { _this.do_init(), 1000; });
14532
+ return;
14533
+ }
14519
14534
  /** @type {?} */
14520
14535
  var p = new QParam();
14521
14536
  p.sql = "SELECT_WKF_APP_INFO";
14522
14537
  p.types = ['string'];
14523
- p.values = [cod_documento];
14524
- /** @type {?} */
14525
- var ok_op = false;
14538
+ p.values = [this.m_cod_documento];
14526
14539
  this
14527
14540
  .m_dataService
14528
14541
  .doQuery(p)
@@ -14531,8 +14544,6 @@
14531
14544
  if (data.result_msg == "OK") {
14532
14545
  /** @type {?} */
14533
14546
  var a_conf = data.result_data;
14534
- ok_op = true;
14535
- _this.m_id_Doc = id_Doc;
14536
14547
  _this.id_applicativo = a_conf[0].id_gruppo;
14537
14548
  _this.app_root = a_conf[0].modulo_swf;
14538
14549
  _this.codice_app = a_conf[0].codice_documento; //codice documento
@@ -14547,16 +14558,15 @@
14547
14558
  _this.user_email = _this.app_s.user_email;
14548
14559
  _this.app_s.getState().topnavTitle = _this.att_panelcat;
14549
14560
  /** @type {?} */
14550
- var p = new QParam();
14551
- p.sql = "SELECT_UTENTE_WKF_ADMIN";
14552
- p.types = ['string', 'string'];
14553
- p.values = [
14561
+ var p_1 = new QParam();
14562
+ p_1.sql = "SELECT_UTENTE_WKF_ADMIN";
14563
+ p_1.types = ['string', 'string'];
14564
+ p_1.values = [
14554
14565
  _this.id_applicativo, _this.app_s.user
14555
14566
  ];
14556
- ok_op = false;
14557
14567
  _this
14558
14568
  .m_dataService
14559
- .doQuery(p)
14569
+ .doQuery(p_1)
14560
14570
  .subscribe(function (data) {
14561
14571
  if (data != null)
14562
14572
  if (data.result_msg == "OK") {
@@ -14569,39 +14579,23 @@
14569
14579
  if (a[0].tipo == "1")
14570
14580
  _this.is_Admin = true;
14571
14581
  }
14572
- ok_op = true;
14573
14582
  /** @type {?} */
14574
- var p = new QParam();
14575
- p.sql = "SELECT_WLIVELLIV2";
14576
- p.types = ['string', 'string'];
14577
- p.values = [_this.id_applicativo, ''];
14578
- ok_op = false;
14583
+ var p_2 = new QParam();
14584
+ p_2.sql = "SELECT_WLIVELLIV2";
14585
+ p_2.types = ['string', 'string'];
14586
+ p_2.values = [_this.id_applicativo, ''];
14579
14587
  _this
14580
14588
  .m_dataService
14581
- .doQuery(p)
14589
+ .doQuery(p_2)
14582
14590
  .subscribe(function (data) {
14583
14591
  if (data != null)
14584
14592
  if (data.result_msg == "OK") {
14585
14593
  _this.ok_conf_s(data.result_data);
14586
- ok_op = true;
14587
14594
  }
14588
- if (!ok_op) {
14589
- console.error(data.msg);
14590
- }
14591
- }, function (err) {
14592
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
14593
14595
  });
14594
14596
  }
14595
- }, function (err) {
14596
- console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
14597
14597
  });
14598
- ok_op = true;
14599
14598
  }
14600
- if (!ok_op) {
14601
- console.error(data.msg);
14602
- }
14603
- }, function (err) {
14604
- console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
14605
14599
  });
14606
14600
  };
14607
14601
  /**
@@ -14617,15 +14611,16 @@
14617
14611
  this.is_Ins = false;
14618
14612
  for (var i = 0; i < this.livs.length; i++)
14619
14613
  if (this.livs[i].idp != null)
14620
- if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
14621
- if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
14622
- this.is_Ins = true;
14623
- if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
14624
- this.livs[i].gruppo_parallelo = "";
14625
- this.livs[i].idp = this.user_idp;
14614
+ if (this.user_idp != null)
14615
+ if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
14616
+ if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
14617
+ this.is_Ins = true;
14618
+ if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
14619
+ this.livs[i].gruppo_parallelo = "";
14620
+ this.livs[i].idp = this.user_idp;
14621
+ }
14622
+ break;
14626
14623
  }
14627
- break;
14628
- }
14629
14624
  this.save_state_wkf();
14630
14625
  // Alert.show(tbl_name);
14631
14626
  this.parse_url();
@@ -15238,22 +15233,13 @@
15238
15233
  */
15239
15234
  this.doEnd(this.nlevel.livello);
15240
15235
  /** @type {?} */
15241
- var p = new QParam();
15242
- p.sql = "UPDATE_DATA_CHIUSURA";
15243
- p.values = [this.id_applicativo, this.id_documento];
15244
- p.types = ['string', 'string'];
15245
- this.m_dataService.doQuery(p).subscribe(function (data) {
15246
- /** @type {?} */
15247
- var ok_op = false;
15236
+ var p_1 = new QParam();
15237
+ p_1.sql = "UPDATE_DATA_CHIUSURA";
15238
+ p_1.values = [this.id_applicativo, this.id_documento];
15239
+ p_1.types = ['string', 'string'];
15240
+ this.m_dataService.doQuery(p_1).subscribe(function (data) {
15248
15241
  if (data != null)
15249
- if (data.result_msg == "OK") {
15250
- ok_op = true;
15251
- }
15252
- if (!ok_op) {
15253
- _this.alert(data.msg, 1);
15254
- }
15255
- }, function (err) {
15256
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
15242
+ if (data.result_msg == "OK") ;
15257
15243
  });
15258
15244
  }
15259
15245
  /** @type {?} */
@@ -15291,59 +15277,37 @@
15291
15277
  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];
15292
15278
  this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.clevel.livello + "_PLAYER", this.user_idp);
15293
15279
  this.m_wkf.doQuery(p).subscribe(function (data) {
15294
- /** @type {?} */
15295
- var ok_op = false;
15296
15280
  if (data != null)
15297
- if (data.result_msg == "OK") {
15298
- ok_op = true;
15299
- }
15300
- if (!ok_op) {
15301
- _this.alert(data.msg, 1);
15302
- }
15303
- }, function (err) {
15304
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
15281
+ if (data.result_msg == "OK") ;
15305
15282
  });
15306
- /** @type {?} */
15307
- var p = new QParam();
15283
+ p = new QParam();
15308
15284
  p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
15309
15285
  p.values = a;
15310
15286
  p.types = t;
15311
15287
  this.m_dataService.doQuery(p).subscribe(function (data) {
15312
- /** @type {?} */
15313
- var ok_op = false;
15314
15288
  if (data != null)
15315
- if (data.result_msg == "OK") {
15316
- ok_op = true;
15317
- }
15318
- if (!ok_op) {
15319
- _this.alert(data.msg, 1);
15320
- }
15321
- }, function (err) {
15322
- _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
15289
+ if (data.result_msg == "OK") ;
15323
15290
  });
15324
15291
  //myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
15325
15292
  if (this.m_danotificare != "") {
15326
15293
  /** @type {?} */
15327
- var comm = "";
15294
+ var comm_1 = "";
15328
15295
  if (this.nota != "")
15329
- comm = "<br>Commento: " + this.nota;
15296
+ comm_1 = "<br>Commento: " + this.nota;
15330
15297
  if (this.clevel.ccn_mittente == 1) {
15331
15298
  if (this.m_danotificare != "")
15332
15299
  this.m_danotificare = this.m_danotificare + ",";
15333
15300
  this.m_danotificare = this.m_danotificare + this.user_idp;
15334
15301
  }
15335
- /** @type {?} */
15336
- var p = new QParam();
15302
+ p = new QParam();
15337
15303
  p.sql = "exec_app_workflow";
15338
15304
  p.values = [this.app_info.codice_documento, this.id_documento, '' + this.clevel.livello, '' + this.nlevel.livello, this.user_idp];
15339
15305
  this.m_wkf.doQuery(p).subscribe(function (data) {
15340
- }, function (err) {
15341
15306
  });
15342
15307
  if (this.nlevel.approvazione_email == 1) ;
15343
15308
  else {
15344
- console.log('this.nlevel.ical ', this.nlevel.ical);
15345
15309
  /** @type {?} */
15346
- var ical = null;
15310
+ var ical_1 = null;
15347
15311
  if (this.nlevel.ical == 1) {
15348
15312
  if (this.m_obj.ical_dt_ini == null) {
15349
15313
  this.alert('Attenzione ical non configurato ical_dt_ini', 1);
@@ -15352,29 +15316,26 @@
15352
15316
  this.alert('Attenzione ical non configurato ical_dt_fin', 1);
15353
15317
  }
15354
15318
  else
15355
- ical = {
15319
+ ical_1 = {
15356
15320
  start: this.m_obj.ical_dt_ini,
15357
15321
  end: this.m_obj.ical_dt_fin,
15358
15322
  summary: this.app_info.descrizione_breve + " " + this.getTitle(),
15359
- description: this.getDescri() + comm + "<br>" + this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
15323
+ description: this.getDescri() + comm_1 + "<br>" + this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
15360
15324
  organizer: this.user_nome + ' ' + this.user_cognome + ' <' + this.user_email + '>',
15361
15325
  url: this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit"
15362
15326
  };
15363
15327
  }
15364
15328
  if (this.nlevel.email_partecipanti == 1 || this.nlevel.email_ospiti == 1) {
15365
15329
  if (this.b_respingi)
15366
- 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);
15330
+ 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);
15367
15331
  else {
15368
- console.log("--------------this.clevel.oggetto_text----------------------");
15369
- console.log(this.nlevel.oggetto_email);
15370
15332
  if (this.nlevel.oggetto_email == null)
15371
- 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);
15333
+ 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);
15372
15334
  else if (this.nlevel.oggetto_email == "")
15373
- 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);
15335
+ 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);
15374
15336
  else {
15375
15337
  /** @type {?} */
15376
15338
  var s_ogg = this.nlevel.oggetto_email;
15377
- console.log("OGGETTO CUSTOM!");
15378
15339
  for (var prop in this.m_obj)
15379
15340
  if (this.m_obj[prop] != null) {
15380
15341
  console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
@@ -15386,12 +15347,59 @@
15386
15347
  else
15387
15348
  s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
15388
15349
  }
15389
- 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);
15350
+ 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);
15390
15351
  }
15391
15352
  }
15392
15353
  }
15393
15354
  else
15394
15355
  this.goto_edit_doc();
15356
+ if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
15357
+ if (this.nlevel.tipo_notifica_aggiuntiva == 1)
15358
+ 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);
15359
+ if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
15360
+ /** @type {?} */
15361
+ var p_2 = new QParam();
15362
+ p_2.sql = "SELECT_PARTECIPANTI_DOC";
15363
+ p_2.values = [this.id_applicativo, this.id_documento];
15364
+ p_2.types = ['string', 'string'];
15365
+ this.m_dataService.doQuery(p_2).subscribe(function (data) {
15366
+ if (data != null)
15367
+ if (data.result_msg == "OK") {
15368
+ /** @type {?} */
15369
+ var lista_p = _this.user_idp;
15370
+ for (var i_3 = 0; i_3 < data.result_data.length; i_3++)
15371
+ if (lista_p.indexOf(data.result_data[i_3].username) == -1) {
15372
+ console.log('username:', data.result_data[i_3].username);
15373
+ lista_p += ',';
15374
+ lista_p += data.result_data[i_3].username;
15375
+ }
15376
+ console.log('lista_p ', lista_p);
15377
+ _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);
15378
+ }
15379
+ });
15380
+ }
15381
+ if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
15382
+ /** @type {?} */
15383
+ var p_3 = new QParam();
15384
+ p_3.sql = "SELECT_ALL_USERS_DOC";
15385
+ p_3.values = [this.id_applicativo, this.id_documento];
15386
+ p_3.types = ['string', 'string'];
15387
+ this.m_dataService.doQuery(p_3).subscribe(function (data) {
15388
+ if (data != null)
15389
+ if (data.result_msg == "OK") {
15390
+ /** @type {?} */
15391
+ var lista_p = _this.user_idp;
15392
+ for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
15393
+ if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
15394
+ console.log('username:', data.result_data[i_4].username);
15395
+ lista_p += ',';
15396
+ lista_p += data.result_data[i_4].username;
15397
+ }
15398
+ _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);
15399
+ }
15400
+ });
15401
+ }
15402
+ }
15395
15403
  }
15396
15404
  }
15397
15405
  };
@@ -15407,6 +15415,7 @@
15407
15415
  * @param {?} nota
15408
15416
  * @param {?=} notif_av
15409
15417
  * @param {?=} ical
15418
+ * @param {?=} b_exit
15410
15419
  * @return {?}
15411
15420
  */
15412
15421
  dati_aggiuntivi.prototype.sendEMail_ex = /**
@@ -15421,9 +15430,10 @@
15421
15430
  * @param {?} nota
15422
15431
  * @param {?=} notif_av
15423
15432
  * @param {?=} ical
15433
+ * @param {?=} b_exit
15424
15434
  * @return {?}
15425
15435
  */
15426
- function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical) {
15436
+ function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical, b_exit) {
15427
15437
  var _this = this;
15428
15438
  if (notif_av === void 0) {
15429
15439
  notif_av = true;
@@ -15431,6 +15441,9 @@
15431
15441
  if (ical === void 0) {
15432
15442
  ical = '';
15433
15443
  }
15444
+ if (b_exit === void 0) {
15445
+ b_exit = true;
15446
+ }
15434
15447
  /** @type {?} */
15435
15448
  var p = new QParam();
15436
15449
  p.sql = "send_wkf_mail";
@@ -15444,7 +15457,8 @@
15444
15457
  ical = JSON.stringify(ical);
15445
15458
  p.values = [mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical];
15446
15459
  this.m_wkf.doQuery(p).subscribe(function (data) {
15447
- _this.goto_edit_doc(notif_av);
15460
+ if (b_exit)
15461
+ _this.goto_edit_doc(notif_av);
15448
15462
  });
15449
15463
  };
15450
15464
  /**