@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.
@@ -4723,6 +4723,7 @@ class wkfapp {
4723
4723
  this.b_initd = false;
4724
4724
  this.nota_wax = "";
4725
4725
  this.imp = "";
4726
+ this.m_cod_documento = '';
4726
4727
  this.sort_field = '';
4727
4728
  if (!m_service.checkCredentials()) {
4728
4729
  return;
@@ -5264,21 +5265,32 @@ class wkfapp {
5264
5265
  * @return {?}
5265
5266
  */
5266
5267
  init_Panel(cod_documento, id_Doc) {
5268
+ this.m_id_Doc = id_Doc;
5269
+ this.m_cod_documento = cod_documento;
5270
+ this.do_init();
5271
+ }
5272
+ /**
5273
+ * @private
5274
+ * @return {?}
5275
+ */
5276
+ do_init() {
5267
5277
  if (this.app_s.user_ori != null)
5268
5278
  this.imp = 'ANN. IMP: ' + this.app_s.user_name + ' ' + this.app_s.user_surname;
5269
5279
  if (this.app_s.getState().wkf_obj != null)
5270
- if (this.app_s.getState().wkf_obj.codice_app == cod_documento) {
5280
+ if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
5271
5281
  this.restore_state_wkf();
5272
5282
  return;
5273
5283
  }
5274
5284
  this.user_idp = this.app_s.user;
5285
+ if (this.user_idp == null) {
5286
+ setTimeout(() => { this.do_init(), 1000; });
5287
+ return;
5288
+ }
5275
5289
  /** @type {?} */
5276
5290
  let p = new QParam();
5277
5291
  p.sql = "SELECT_WKF_APP_INFO";
5278
5292
  p.types = ['string'];
5279
- p.values = [cod_documento];
5280
- /** @type {?} */
5281
- let ok_op = false;
5293
+ p.values = [this.m_cod_documento];
5282
5294
  this
5283
5295
  .m_dataService
5284
5296
  .doQuery(p)
@@ -5287,8 +5299,6 @@ class wkfapp {
5287
5299
  if (data.result_msg == "OK") {
5288
5300
  /** @type {?} */
5289
5301
  let a_conf = data.result_data;
5290
- ok_op = true;
5291
- this.m_id_Doc = id_Doc;
5292
5302
  this.id_applicativo = a_conf[0].id_gruppo;
5293
5303
  this.app_root = a_conf[0].modulo_swf;
5294
5304
  this.codice_app = a_conf[0].codice_documento; //codice documento
@@ -5303,13 +5313,12 @@ class wkfapp {
5303
5313
  this.user_email = this.app_s.user_email;
5304
5314
  this.app_s.getState().topnavTitle = this.att_panelcat;
5305
5315
  /** @type {?} */
5306
- var p = new QParam();
5316
+ let p = new QParam();
5307
5317
  p.sql = "SELECT_UTENTE_WKF_ADMIN";
5308
5318
  p.types = ['string', 'string'];
5309
5319
  p.values = [
5310
5320
  this.id_applicativo, this.app_s.user
5311
5321
  ];
5312
- ok_op = false;
5313
5322
  this
5314
5323
  .m_dataService
5315
5324
  .doQuery(p)
@@ -5317,7 +5326,7 @@ class wkfapp {
5317
5326
  if (data != null)
5318
5327
  if (data.result_msg == "OK") {
5319
5328
  /** @type {?} */
5320
- var a = data.result_data;
5329
+ let a = data.result_data;
5321
5330
  this.is_Supervisor = false;
5322
5331
  this.is_Admin = false;
5323
5332
  if (a.length > 0) {
@@ -5325,13 +5334,11 @@ class wkfapp {
5325
5334
  if (a[0].tipo == "1")
5326
5335
  this.is_Admin = true;
5327
5336
  }
5328
- ok_op = true;
5329
5337
  /** @type {?} */
5330
- var p = new QParam();
5338
+ let p = new QParam();
5331
5339
  p.sql = "SELECT_WLIVELLIV2";
5332
5340
  p.types = ['string', 'string'];
5333
5341
  p.values = [this.id_applicativo, ''];
5334
- ok_op = false;
5335
5342
  this
5336
5343
  .m_dataService
5337
5344
  .doQuery(p)
@@ -5339,25 +5346,11 @@ class wkfapp {
5339
5346
  if (data != null)
5340
5347
  if (data.result_msg == "OK") {
5341
5348
  this.ok_conf_s(data.result_data);
5342
- ok_op = true;
5343
5349
  }
5344
- if (!ok_op) {
5345
- console.error(data.msg);
5346
- }
5347
- }, err => {
5348
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5349
5350
  });
5350
5351
  }
5351
- }, err => {
5352
- console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5353
5352
  });
5354
- ok_op = true;
5355
5353
  }
5356
- if (!ok_op) {
5357
- console.error(data.msg);
5358
- }
5359
- }, err => {
5360
- console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5361
5354
  });
5362
5355
  }
5363
5356
  /**
@@ -5369,15 +5362,16 @@ class wkfapp {
5369
5362
  this.is_Ins = false;
5370
5363
  for (let i = 0; i < this.livs.length; i++)
5371
5364
  if (this.livs[i].idp != null)
5372
- if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
5373
- if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
5374
- this.is_Ins = true;
5375
- if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
5376
- this.livs[i].gruppo_parallelo = "";
5377
- this.livs[i].idp = this.user_idp;
5365
+ if (this.user_idp != null)
5366
+ if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
5367
+ if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
5368
+ this.is_Ins = true;
5369
+ if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
5370
+ this.livs[i].gruppo_parallelo = "";
5371
+ this.livs[i].idp = this.user_idp;
5372
+ }
5373
+ break;
5378
5374
  }
5379
- break;
5380
- }
5381
5375
  this.save_state_wkf();
5382
5376
  // Alert.show(tbl_name);
5383
5377
  this.parse_url();
@@ -5729,7 +5723,6 @@ class FHGridComponent {
5729
5723
  floatingFilter: true,
5730
5724
  enableRangeSelection: true,
5731
5725
  defaultColDef: { resizable: true, sortable: true },
5732
- alwaysShowVerticalScroll: true,
5733
5726
  rowSelection: 'multiple',
5734
5727
  rowDeselection: false,
5735
5728
  // getContextMenuItems: () => this.getContextMenuItems(),
@@ -6760,6 +6753,13 @@ FHGridComponent.decorators = [
6760
6753
  selector: 'FHGrid',
6761
6754
  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",
6762
6755
  styles: [`
6756
+ .ag-theme-balham .ag-header-cell-label .ag-header-cell-text {
6757
+ text-overflow: clip;
6758
+ overflow: visible;
6759
+ white-space: normal;
6760
+ height: auto;
6761
+ padding: 0px;
6762
+ }
6763
6763
 
6764
6764
  `]
6765
6765
  }] }
@@ -13770,22 +13770,13 @@ class dati_aggiuntivi {
13770
13770
  */
13771
13771
  this.doEnd(this.nlevel.livello);
13772
13772
  /** @type {?} */
13773
- var p = new QParam();
13773
+ let p = new QParam();
13774
13774
  p.sql = "UPDATE_DATA_CHIUSURA";
13775
13775
  p.values = [this.id_applicativo, this.id_documento];
13776
13776
  p.types = ['string', 'string'];
13777
13777
  this.m_dataService.doQuery(p).subscribe(data => {
13778
- /** @type {?} */
13779
- let ok_op = false;
13780
13778
  if (data != null)
13781
- if (data.result_msg == "OK") {
13782
- ok_op = true;
13783
- }
13784
- if (!ok_op) {
13785
- this.alert(data.msg, 1);
13786
- }
13787
- }, err => {
13788
- this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
13779
+ if (data.result_msg == "OK") ;
13789
13780
  });
13790
13781
  }
13791
13782
  /** @type {?} */
@@ -13810,7 +13801,7 @@ class dati_aggiuntivi {
13810
13801
  if (this.nlevel.descri_livello != null)
13811
13802
  this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
13812
13803
  /** @type {?} */
13813
- var p = new QParam();
13804
+ let p = new QParam();
13814
13805
  p.sql = "doWKF";
13815
13806
  p.values = [this.app_info.descrizione_breve,
13816
13807
  this.m_obj.codice,
@@ -13823,40 +13814,21 @@ class dati_aggiuntivi {
13823
13814
  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];
13824
13815
  this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.clevel.livello + "_PLAYER", this.user_idp);
13825
13816
  this.m_wkf.doQuery(p).subscribe(data => {
13826
- /** @type {?} */
13827
- let ok_op = false;
13828
13817
  if (data != null)
13829
- if (data.result_msg == "OK") {
13830
- ok_op = true;
13831
- }
13832
- if (!ok_op) {
13833
- this.alert(data.msg, 1);
13834
- }
13835
- }, err => {
13836
- this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
13818
+ if (data.result_msg == "OK") ;
13837
13819
  });
13838
- /** @type {?} */
13839
- var p = new QParam();
13820
+ p = new QParam();
13840
13821
  p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
13841
13822
  p.values = a;
13842
13823
  p.types = t;
13843
13824
  this.m_dataService.doQuery(p).subscribe(data => {
13844
- /** @type {?} */
13845
- let ok_op = false;
13846
13825
  if (data != null)
13847
- if (data.result_msg == "OK") {
13848
- ok_op = true;
13849
- }
13850
- if (!ok_op) {
13851
- this.alert(data.msg, 1);
13852
- }
13853
- }, err => {
13854
- this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
13826
+ if (data.result_msg == "OK") ;
13855
13827
  });
13856
13828
  //myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
13857
13829
  if (this.m_danotificare != "") {
13858
13830
  /** @type {?} */
13859
- var comm = "";
13831
+ let comm = "";
13860
13832
  if (this.nota != "")
13861
13833
  comm = "<br>Commento: " + this.nota;
13862
13834
  if (this.clevel.ccn_mittente == 1) {
@@ -13864,16 +13836,13 @@ class dati_aggiuntivi {
13864
13836
  this.m_danotificare = this.m_danotificare + ",";
13865
13837
  this.m_danotificare = this.m_danotificare + this.user_idp;
13866
13838
  }
13867
- /** @type {?} */
13868
- var p = new QParam();
13839
+ p = new QParam();
13869
13840
  p.sql = "exec_app_workflow";
13870
13841
  p.values = [this.app_info.codice_documento, this.id_documento, '' + this.clevel.livello, '' + this.nlevel.livello, this.user_idp];
13871
13842
  this.m_wkf.doQuery(p).subscribe(data => {
13872
- }, err => {
13873
13843
  });
13874
13844
  if (this.nlevel.approvazione_email == 1) ;
13875
13845
  else {
13876
- console.log('this.nlevel.ical ', this.nlevel.ical);
13877
13846
  /** @type {?} */
13878
13847
  let ical = null;
13879
13848
  if (this.nlevel.ical == 1) {
@@ -13897,8 +13866,6 @@ class dati_aggiuntivi {
13897
13866
  if (this.b_respingi)
13898
13867
  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);
13899
13868
  else {
13900
- console.log("--------------this.clevel.oggetto_text----------------------");
13901
- console.log(this.nlevel.oggetto_email);
13902
13869
  if (this.nlevel.oggetto_email == null)
13903
13870
  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);
13904
13871
  else if (this.nlevel.oggetto_email == "")
@@ -13923,6 +13890,53 @@ class dati_aggiuntivi {
13923
13890
  }
13924
13891
  else
13925
13892
  this.goto_edit_doc();
13893
+ if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
13894
+ if (this.nlevel.tipo_notifica_aggiuntiva == 1)
13895
+ 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, 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, false);
13896
+ if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
13897
+ /** @type {?} */
13898
+ let p = new QParam();
13899
+ p.sql = "SELECT_PARTECIPANTI_DOC";
13900
+ p.values = [this.id_applicativo, this.id_documento];
13901
+ p.types = ['string', 'string'];
13902
+ this.m_dataService.doQuery(p).subscribe(data => {
13903
+ if (data != null)
13904
+ if (data.result_msg == "OK") {
13905
+ /** @type {?} */
13906
+ let lista_p = this.user_idp;
13907
+ for (let i = 0; i < data.result_data.length; i++)
13908
+ if (lista_p.indexOf(data.result_data[i].username) == -1) {
13909
+ console.log('username:', data.result_data[i].username);
13910
+ lista_p += ',';
13911
+ lista_p += data.result_data[i].username;
13912
+ }
13913
+ console.log('lista_p ', lista_p);
13914
+ 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, 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, false);
13915
+ }
13916
+ });
13917
+ }
13918
+ if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
13919
+ /** @type {?} */
13920
+ let p = new QParam();
13921
+ p.sql = "SELECT_ALL_USERS_DOC";
13922
+ p.values = [this.id_applicativo, this.id_documento];
13923
+ p.types = ['string', 'string'];
13924
+ this.m_dataService.doQuery(p).subscribe(data => {
13925
+ if (data != null)
13926
+ if (data.result_msg == "OK") {
13927
+ /** @type {?} */
13928
+ let lista_p = this.user_idp;
13929
+ for (let i = 0; i < data.result_data.length; i++)
13930
+ if (lista_p.indexOf(data.result_data[i].username) == -1) {
13931
+ console.log('username:', data.result_data[i].username);
13932
+ lista_p += ',';
13933
+ lista_p += data.result_data[i].username;
13934
+ }
13935
+ 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, 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, false);
13936
+ }
13937
+ });
13938
+ }
13939
+ }
13926
13940
  }
13927
13941
  }
13928
13942
  }
@@ -13938,9 +13952,10 @@ class dati_aggiuntivi {
13938
13952
  * @param {?} nota
13939
13953
  * @param {?=} notif_av
13940
13954
  * @param {?=} ical
13955
+ * @param {?=} b_exit
13941
13956
  * @return {?}
13942
13957
  */
13943
- sendEMail_ex(mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av = true, ical = '') {
13958
+ sendEMail_ex(mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av = true, ical = '', b_exit = true) {
13944
13959
  /** @type {?} */
13945
13960
  let p = new QParam();
13946
13961
  p.sql = "send_wkf_mail";
@@ -13954,7 +13969,8 @@ class dati_aggiuntivi {
13954
13969
  ical = JSON.stringify(ical);
13955
13970
  p.values = [mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical];
13956
13971
  this.m_wkf.doQuery(p).subscribe(data => {
13957
- this.goto_edit_doc(notif_av);
13972
+ if (b_exit)
13973
+ this.goto_edit_doc(notif_av);
13958
13974
  });
13959
13975
  }
13960
13976
  /**