@fluxhub/fluxhub-lib 1.0.457 → 1.0.459

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.
@@ -10876,7 +10876,7 @@
10876
10876
  FHPickListComponent.decorators = [
10877
10877
  { type: core.Component, args: [{
10878
10878
  selector: 'FHPickList',
10879
- template: "\n \n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex style=\"width:600px;height:400px\">\n <div fxLayout=\"row\" style=\"width:550\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n\n \n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr><td> <input [(ngModel)]=\"fltr_user\" (ngModelChange)=\"filtra()\" style='padding:8px;margin:15px auto;width:100%;'\n placeholder='Ricerca...'>\n </td></tr>\n <tr *ngFor=\"let u of value_list_sel;let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\" (click)=\"addTo(u)\" (dblclick)=\"do_add()\" class=\"selector\"\n [ngClass]=\"{ 'active': selectedAdd == u }\">\n <td>{{u.descrizione_valore}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"18%\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\">\n <div style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\">\n <button mat-flat-button color=\"primary\" (click)=\"do_add()\" [disabled]=\"!option\">\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br><br>\n <button mat-flat-button color=\"primary\" (click)=\"do_rem()\" [disabled]=\"option\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"41%\">\n \n\n <div style=\"width:100%;height:420px;overflow:auto;\">\n\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let u of value_sel;let odd=odd; let even=even;\" (mouseover)=\"selectedRemove=u\" [ngClass]=\"{ odd: odd, even: even }\" (click)=\"removeTo(u)\" (dblclick)=\"do_rem()\" class=\"selector\"\n [ngClass]=\"{ 'active': selectedRemove == u }\">\n <td>{{u.descrizione_valore}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br><br>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok</button>&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close()\">Annulla</button>\n </div>\n </div>\n\n ",
10879
+ template: "\n \n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex >\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n\n \n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr><td> <input [(ngModel)]=\"fltr_user\" (ngModelChange)=\"filtra()\" style='padding:8px;margin:15px auto;width:100%;'\n placeholder='Ricerca...'>\n </td></tr>\n <tr *ngFor=\"let u of value_list_sel;let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\" (click)=\"addTo(u)\" (dblclick)=\"do_add()\" class=\"selector\"\n [ngClass]=\"{ 'active': selectedAdd == u }\">\n <td>{{u.descrizione_valore}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"18%\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\">\n <div style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\">\n <button mat-flat-button color=\"primary\" (click)=\"do_add()\" [disabled]=\"!option\">\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br><br>\n <button mat-flat-button color=\"primary\" (click)=\"do_rem()\" [disabled]=\"option\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"41%\">\n \n\n <div style=\"width:100%;height:420px;overflow:auto;\">\n\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let u of value_sel;let odd=odd; let even=even;\" (mouseover)=\"selectedRemove=u\" [ngClass]=\"{ odd: odd, even: even }\" (click)=\"removeTo(u)\" (dblclick)=\"do_rem()\" class=\"selector\"\n [ngClass]=\"{ 'active': selectedRemove == u }\">\n <td>{{u.descrizione_valore}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br><br>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok</button>&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close()\">Annulla</button>\n </div>\n </div>\n\n ",
10880
10880
  styles: ["\n .selector{\n cursor:hand\n }\n "]
10881
10881
  }] }
10882
10882
  ];
@@ -11847,6 +11847,7 @@
11847
11847
  this.toastr = toastr;
11848
11848
  this.m_appService = m_appService;
11849
11849
  this.label = "";
11850
+ this.title = "";
11850
11851
  this.sql = "";
11851
11852
  this.single_sel = false;
11852
11853
  this.sel_values = "";
@@ -11900,7 +11901,7 @@
11900
11901
  FHListPick.decorators = [
11901
11902
  { type: core.Component, args: [{
11902
11903
  selector: 'fhwincomboselect',
11903
- template: "\n <mat-dialog-content style=\"min-width:700px;font-size: 12px;\">\n <FHList #cmb_sel [label]=\"label\" [single_sel]=\"single_sel\" [label]=\"\" style=\"width:100%;min-height:90px\" init_fill=\"false\" (selchange)=\"ok_single()\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n<div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n \n <button mat-flat-button color=\"primary\" *ngIf=\"!single_sel\" (click)=\"ok()\">OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
11904
+ template: "\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"min-width:700px;min-height:500px;font-size: 12px\">\n <FHList #cmb_sel [label]=\"label\" [single_sel]=\"single_sel\" [label]=\"\" style=\"width:100%;height:100%\" init_fill=\"false\" (selchange)=\"ok_single()\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n<div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n \n <button mat-flat-button color=\"primary\" *ngIf=\"!single_sel\" (click)=\"ok()\">OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
11904
11905
  }] }
11905
11906
  ];
11906
11907
  /** @nocollapse */
@@ -13159,7 +13160,10 @@
13159
13160
  this.toastr = toastr;
13160
13161
  this._dataService = _dataService;
13161
13162
  this.m_wkf = m_wkf;
13162
- this.not_int = true;
13163
+ this.notifica_commenti = 1;
13164
+ this.notifica_commenti_obbl = 0;
13165
+ this.not_comm = false;
13166
+ this.not_comm_disabled = false;
13163
13167
  this.nota = "";
13164
13168
  this.title = "COMMENTI";
13165
13169
  this.b_edit = false;
@@ -13171,6 +13175,18 @@
13171
13175
  this.codice_doc = "";
13172
13176
  this.refresh_list();
13173
13177
  }
13178
+ /**
13179
+ * @return {?}
13180
+ */
13181
+ win_commenti.prototype.init_v = /**
13182
+ * @return {?}
13183
+ */
13184
+ function () {
13185
+ if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
13186
+ this.not_comm = true;
13187
+ this.not_comm_disabled = true;
13188
+ }
13189
+ };
13174
13190
  /**
13175
13191
  * @param {?} event
13176
13192
  * @return {?}
@@ -13231,16 +13247,71 @@
13231
13247
  * @return {?}
13232
13248
  */
13233
13249
  function () {
13234
- if (!this.not_int)
13250
+ if (!this.not_comm) {
13235
13251
  this.ok_op();
13252
+ }
13236
13253
  else {
13237
13254
  if (this.nota == '') {
13238
13255
  this.toastr.error("INSERIRE UN COMMENTO");
13239
13256
  return;
13240
13257
  }
13241
- this.select_destinatari();
13258
+ if (this.notifica_commenti == 1)
13259
+ this.select_destinatari();
13260
+ else
13261
+ this.select_destinatari_grp();
13242
13262
  }
13243
13263
  };
13264
+ /**
13265
+ * @return {?}
13266
+ */
13267
+ win_commenti.prototype.select_destinatari_grp = /**
13268
+ * @return {?}
13269
+ */
13270
+ function () {
13271
+ var _this = this;
13272
+ /** @type {?} */
13273
+ var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
13274
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
13275
+ dialo.componentInstance.types = ['string'];
13276
+ dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
13277
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
13278
+ dialo.componentInstance.doFill();
13279
+ dialo.afterClosed().subscribe((/**
13280
+ * @param {?} result
13281
+ * @return {?}
13282
+ */
13283
+ function (result) {
13284
+ if (result != null) {
13285
+ if (result == '')
13286
+ return;
13287
+ /** @type {?} */
13288
+ var s_users_1 = "";
13289
+ for (var i = 0; i < result.length; i++) {
13290
+ if (s_users_1 != "")
13291
+ s_users_1 = s_users_1 + ",";
13292
+ s_users_1 = s_users_1 + "" + result[i].valore + "";
13293
+ }
13294
+ /** @type {?} */
13295
+ var p = new QParam();
13296
+ p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
13297
+ p.types = ['string'];
13298
+ p.values = [s_users_1];
13299
+ _this._dataService.doQuery(p).subscribe((/**
13300
+ * @param {?} data
13301
+ * @return {?}
13302
+ */
13303
+ function (data) {
13304
+ s_users_1 = '';
13305
+ for (var i = 0; i < data.result_data.length; i++) {
13306
+ if (s_users_1 != "")
13307
+ s_users_1 = s_users_1 + ",";
13308
+ s_users_1 = s_users_1 + "" + data.result_data[i].username + "";
13309
+ }
13310
+ _this.ok_op(s_users_1);
13311
+ }));
13312
+ }
13313
+ }));
13314
+ };
13244
13315
  /**
13245
13316
  * @return {?}
13246
13317
  */
@@ -13343,8 +13414,8 @@
13343
13414
  /** @type {?} */
13344
13415
  var p = new QParam();
13345
13416
  p.sql = "INSERT_WKF_COMMENTO";
13346
- p.types = ['string', 'string', 'string', 'string'];
13347
- p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user];
13417
+ p.types = ['string', 'string', 'string', 'string', 'string'];
13418
+ p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user, sdest];
13348
13419
  this._dataService.doQuery(p).subscribe((/**
13349
13420
  * @param {?} data
13350
13421
  * @return {?}
@@ -13373,8 +13444,8 @@
13373
13444
  /** @type {?} */
13374
13445
  var p = new QParam();
13375
13446
  p.sql = "UPDATE_WKF_COMMENTO";
13376
- p.types = ['string', 'string', 'string', 'string'];
13377
- p.values = [this.nota, this.edit_id];
13447
+ p.types = ['string', 'string', 'string'];
13448
+ p.values = [this.nota, this.edit_id, sdest];
13378
13449
  this._dataService.doQuery(p).subscribe((/**
13379
13450
  * @param {?} data
13380
13451
  * @return {?}
@@ -13412,9 +13483,26 @@
13412
13483
  * @return {?}
13413
13484
  */
13414
13485
  function () {
13415
- this.nota = '';
13416
- this.b_edit = false;
13417
- this.title = 'COMMENTI';
13486
+ var _this = this;
13487
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
13488
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
13489
+ /** @type {?} */
13490
+ var dialogRef1 = this
13491
+ .m_dialogRef
13492
+ .open(FHConfirmComponent);
13493
+ dialogRef1
13494
+ .afterClosed()
13495
+ .subscribe((/**
13496
+ * @param {?} result
13497
+ * @return {?}
13498
+ */
13499
+ function (result) {
13500
+ if (result) {
13501
+ _this.nota = '';
13502
+ _this.b_edit = false;
13503
+ _this.title = 'COMMENTI';
13504
+ }
13505
+ }));
13418
13506
  };
13419
13507
  /**
13420
13508
  * @return {?}
@@ -13438,7 +13526,7 @@
13438
13526
  };
13439
13527
  win_commenti.decorators = [
13440
13528
  { type: core.Component, args: [{
13441
- template: "\n <mat-toolbar color=\"primary\">{{title}}\n <span class=\"fill-remaining-space\"></span>\n <button color=\"primary\" (click)=\"ins()\" *ngIf=\"!b_edit\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 12px;\" >\n\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n \n\n <div *ngIf=\"b_edit\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori===''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <section class=\"bs\" *ngIf=\"!b_edit\">\n <table style=\"min-width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>Commento</th>\n <th width=\"15%\">Autore</th>\n <th width=\"15%\">Data</th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n \n <tr *ngFor=\"let app of commenti_list;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\" >\n\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>{{app.COGNOME + ' ' + app.NOME}}</td>\n <td>{{app.v_data_creazione}}</td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n\n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n\n\n ",
13529
+ template: "\n <mat-toolbar color=\"primary\">{{title}}\n <span class=\"fill-remaining-space\"></span>\n <button color=\"primary\" (click)=\"ins()\" *ngIf=\"!b_edit\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 12px;\" >\n\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n \n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [disabled]=\"not_comm_disabled\" [(ngModel)]=\"not_comm\" [hidden]=\"notifica_commenti==0 || (notifica_commenti==1 && lettori=='')\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <section class=\"bs\" *ngIf=\"!b_edit\">\n <table style=\"min-width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>Commento</th>\n <th width=\"15%\">Autore</th>\n <th width=\"15%\">Data</th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n \n <tr *ngFor=\"let app of commenti_list;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\" >\n\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>{{app.COGNOME + ' ' + app.NOME}}</td>\n <td>{{app.v_data_creazione}}</td>\n <td><mat-icon [matTooltip]=\"app.dest_notif\" *ngIf=\"app.dest_notif!=null && app.dest_notif!=''\">mail</mat-icon></td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n \n </tr>\n </tbody>\n </table>\n </section>\n\n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n\n\n ",
13442
13530
  styles: ["\n\n \n\n "]
13443
13531
  }] }
13444
13532
  ];
@@ -13505,7 +13593,6 @@
13505
13593
  */
13506
13594
  var win_log = /** @class */ (function () {
13507
13595
  function win_log(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
13508
- // this.logs = this.m_appService.getState( ).appo_dialog.logs;
13509
13596
  this.appService = appService;
13510
13597
  this.dialogRef = dialogRef;
13511
13598
  this.m_dialogRef = m_dialogRef;
@@ -13514,16 +13601,19 @@
13514
13601
  this._dataService = _dataService;
13515
13602
  this.m_wkf = m_wkf;
13516
13603
  this.ossv = false;
13604
+ this.not_comm = false;
13605
+ this.not_comm_disabled = false;
13517
13606
  this.b_flussook = true;
13518
13607
  this.logs = new Array();
13608
+ this.notifica_commenti = 1;
13609
+ this.notifica_commenti_obbl = 0;
13519
13610
  this.title = "LOG WORKFLOW E COMMENTI";
13520
13611
  this.nota = "";
13521
13612
  this.commenti_insert = false;
13522
13613
  this.b_edit = false;
13523
13614
  this.b_ins = false;
13524
13615
  this.edit_id = 0;
13525
- this.lettori = "";
13526
- this.not_int = true;
13616
+ this.lettori = '';
13527
13617
  this.subject = "";
13528
13618
  this.link = "";
13529
13619
  this.codice_doc = "";
@@ -13537,6 +13627,18 @@
13537
13627
  function () {
13538
13628
  this.refresh_list();
13539
13629
  };
13630
+ /**
13631
+ * @return {?}
13632
+ */
13633
+ win_log.prototype.init_v = /**
13634
+ * @return {?}
13635
+ */
13636
+ function () {
13637
+ if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
13638
+ this.not_comm = true;
13639
+ this.not_comm_disabled = true;
13640
+ }
13641
+ };
13540
13642
  /**
13541
13643
  * @return {?}
13542
13644
  */
@@ -13557,7 +13659,6 @@
13557
13659
  function (data) {
13558
13660
  if (data != null)
13559
13661
  if (data.result_msg == "OK") {
13560
- console.log('data.result_data[0].diagramma_flusso ', data.result_data[0].diagramma_flusso);
13561
13662
  if (data.result_data.length > 0)
13562
13663
  if (data.result_data[0].diagramma_flusso != null)
13563
13664
  if (data.result_data[0].diagramma_flusso != '') {
@@ -13571,7 +13672,6 @@
13571
13672
  if (!b_found)
13572
13673
  if (_this.logs[i].liv_fin != null) {
13573
13674
  data.result_data[0].diagramma_flusso = data.result_data[0].diagramma_flusso.split('bpmnElement="STEP_' + _this.logs[i].liv_fin + '"').join('bpmnElement="STEP_' + _this.logs[i].liv_fin + '" bioc:stroke="#FB8C00" bioc:fill="#FFE0B2"');
13574
- console.log('this.logs[i].liv_fin ', _this.logs[i].liv_fin);
13575
13675
  b_found = true;
13576
13676
  }
13577
13677
  }
@@ -13581,7 +13681,6 @@
13581
13681
  * @return {?}
13582
13682
  */
13583
13683
  function (err) {
13584
- console.log('err', err);
13585
13684
  if (!err) {
13586
13685
  /** @type {?} */
13587
13686
  var canvas = _this.modeler.get('canvas');
@@ -13604,9 +13703,26 @@
13604
13703
  * @return {?}
13605
13704
  */
13606
13705
  function () {
13607
- this.nota = '';
13608
- this.b_edit = false;
13609
- this.title = 'LOG WORKFLOW E COMMENTI';
13706
+ var _this = this;
13707
+ localStorage.setItem(this.appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
13708
+ localStorage.setItem(this.appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
13709
+ /** @type {?} */
13710
+ var dialogRef1 = this
13711
+ .m_dialogRef
13712
+ .open(FHConfirmComponent);
13713
+ dialogRef1
13714
+ .afterClosed()
13715
+ .subscribe((/**
13716
+ * @param {?} result
13717
+ * @return {?}
13718
+ */
13719
+ function (result) {
13720
+ if (result) {
13721
+ _this.nota = '';
13722
+ _this.b_edit = false;
13723
+ _this.title = 'LOG WORKFLOW E COMMENTI';
13724
+ }
13725
+ }));
13610
13726
  };
13611
13727
  /**
13612
13728
  * @return {?}
@@ -13668,8 +13784,6 @@
13668
13784
  * @return {?}
13669
13785
  */
13670
13786
  function (data) {
13671
- /** @type {?} */
13672
- var ok_op = false;
13673
13787
  if (data != null)
13674
13788
  if (data.result_msg == "OK") {
13675
13789
  _this.logs = data.result_data;
@@ -13682,16 +13796,7 @@
13682
13796
  });
13683
13797
  _this.load_graph();
13684
13798
  _this.ossv = true;
13685
- ok_op = true;
13686
13799
  }
13687
- if (!ok_op) {
13688
- _this.toastr.error("ERRORE", data.msg);
13689
- }
13690
- }), (/**
13691
- * @param {?} err
13692
- * @return {?}
13693
- */
13694
- function (err) {
13695
13800
  }));
13696
13801
  };
13697
13802
  /**
@@ -13701,14 +13806,18 @@
13701
13806
  * @return {?}
13702
13807
  */
13703
13808
  function () {
13704
- if (!this.not_int)
13809
+ if (!this.not_comm) {
13705
13810
  this.ok_op();
13811
+ }
13706
13812
  else {
13707
13813
  if (this.nota == '') {
13708
13814
  this.toastr.error("INSERIRE UN COMMENTO");
13709
13815
  return;
13710
13816
  }
13711
- this.select_destinatari();
13817
+ if (this.notifica_commenti == 1)
13818
+ this.select_destinatari();
13819
+ else
13820
+ this.select_destinatari_grp();
13712
13821
  }
13713
13822
  };
13714
13823
  /**
@@ -13737,7 +13846,6 @@
13737
13846
  * @return {?}
13738
13847
  */
13739
13848
  function (result) {
13740
- // this.selectedOption = result;
13741
13849
  if (result != null) {
13742
13850
  /** @type {?} */
13743
13851
  var s_users = "";
@@ -13749,11 +13857,57 @@
13749
13857
  _this.ok_op(s_users);
13750
13858
  }
13751
13859
  }));
13752
- }), (/**
13753
- * @param {?} err
13860
+ }));
13861
+ };
13862
+ /**
13863
+ * @return {?}
13864
+ */
13865
+ win_log.prototype.select_destinatari_grp = /**
13866
+ * @return {?}
13867
+ */
13868
+ function () {
13869
+ var _this = this;
13870
+ /** @type {?} */
13871
+ var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
13872
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
13873
+ dialo.componentInstance.types = ['string'];
13874
+ dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
13875
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
13876
+ dialo.componentInstance.doFill();
13877
+ dialo.afterClosed().subscribe((/**
13878
+ * @param {?} result
13754
13879
  * @return {?}
13755
13880
  */
13756
- function (err) {
13881
+ function (result) {
13882
+ if (result != null) {
13883
+ if (result == '')
13884
+ return;
13885
+ /** @type {?} */
13886
+ var s_users_1 = "";
13887
+ for (var i = 0; i < result.length; i++) {
13888
+ if (s_users_1 != "")
13889
+ s_users_1 = s_users_1 + ",";
13890
+ s_users_1 = s_users_1 + "" + result[i].valore + "";
13891
+ }
13892
+ /** @type {?} */
13893
+ var p = new QParam();
13894
+ p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
13895
+ p.types = ['string'];
13896
+ p.values = [s_users_1];
13897
+ _this._dataService.doQuery(p).subscribe((/**
13898
+ * @param {?} data
13899
+ * @return {?}
13900
+ */
13901
+ function (data) {
13902
+ s_users_1 = '';
13903
+ for (var i = 0; i < data.result_data.length; i++) {
13904
+ if (s_users_1 != "")
13905
+ s_users_1 = s_users_1 + ",";
13906
+ s_users_1 = s_users_1 + "" + data.result_data[i].username + "";
13907
+ }
13908
+ _this.ok_op(s_users_1);
13909
+ }));
13910
+ }
13757
13911
  }));
13758
13912
  };
13759
13913
  /**
@@ -13796,11 +13950,6 @@
13796
13950
  * @return {?}
13797
13951
  */
13798
13952
  function (data) {
13799
- }), (/**
13800
- * @param {?} err
13801
- * @return {?}
13802
- */
13803
- function (err) {
13804
13953
  }));
13805
13954
  };
13806
13955
  /**
@@ -13818,35 +13967,24 @@
13818
13967
  /** @type {?} */
13819
13968
  var p = new QParam();
13820
13969
  p.sql = "INSERT_WKF_COMMENTO";
13821
- p.types = ['string', 'string', 'string', 'string'];
13822
- p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user];
13970
+ p.types = ['string', 'string', 'string', 'string', 'string'];
13971
+ p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user, sdest];
13823
13972
  this._dataService.doQuery(p).subscribe((/**
13824
13973
  * @param {?} data
13825
13974
  * @return {?}
13826
13975
  */
13827
13976
  function (data) {
13828
- /** @type {?} */
13829
- var ok_op = false;
13830
13977
  if (data != null)
13831
13978
  if (data.result_msg == "OK") {
13832
13979
  _this.toastr.info("INFO", "COMMENTO INSERITO", {
13833
13980
  timeOut: 1000,
13834
13981
  progressBar: true
13835
13982
  });
13836
- ok_op = true;
13837
13983
  _this.b_edit = false;
13838
13984
  if (sdest != "")
13839
13985
  _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" + _this.nota.split('\n').join("<br>"), _this.m_appService.getState().wkf_doc_info.uiid_app, _this.m_appService.getState().wkf_doc_info.uiid_doc, _this.link, _this.codice_doc, '');
13840
13986
  _this.refresh_list();
13841
13987
  }
13842
- if (!ok_op) {
13843
- _this.toastr.error("ERRORE", data.msg);
13844
- }
13845
- }), (/**
13846
- * @param {?} err
13847
- * @return {?}
13848
- */
13849
- function (err) {
13850
13988
  }));
13851
13989
  }
13852
13990
  else {
@@ -13860,34 +13998,23 @@
13860
13998
  * @return {?}
13861
13999
  */
13862
14000
  function (data) {
13863
- /** @type {?} */
13864
- var ok_op = false;
13865
14001
  if (data != null)
13866
14002
  if (data.result_msg == "OK") {
13867
14003
  _this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
13868
14004
  timeOut: 1000,
13869
14005
  progressBar: true
13870
14006
  });
13871
- ok_op = true;
13872
14007
  _this.b_edit = false;
13873
14008
  if (sdest != "")
13874
14009
  _this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join("E' stato modificato un commento"), "<br><br>Commento modificato: <br>" + _this.nota.split('\n').join("<br>"), _this.m_appService.getState().wkf_doc_info.uiid_app, _this.m_appService.getState().wkf_doc_info.uiid_doc, _this.link, _this.codice_doc, '');
13875
14010
  _this.refresh_list();
13876
14011
  }
13877
- if (!ok_op) {
13878
- _this.toastr.error("ERRORE", data.msg);
13879
- }
13880
- }), (/**
13881
- * @param {?} err
13882
- * @return {?}
13883
- */
13884
- function (err) {
13885
14012
  }));
13886
14013
  }
13887
14014
  };
13888
14015
  win_log.decorators = [
13889
14016
  { type: core.Component, args: [{
13890
- template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori===''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n \n ",
14017
+ template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [disabled]=\"not_comm_disabled\" [(ngModel)]=\"not_comm\" [hidden]=\"notifica_commenti==0 || (notifica_commenti==1 && lettori=='')\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n <td><mat-icon [matTooltip]=\"app.dest_notif\" *ngIf=\"app.dest_notif!=null && app.dest_notif!=''\">mail</mat-icon></td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n \n ",
13891
14018
  styles: ["\n\n\n "]
13892
14019
  }] }
13893
14020
  ];
@@ -16559,11 +16686,16 @@
16559
16686
  /** @type {?} */
16560
16687
  var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
16561
16688
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
16562
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
16689
+ if (this.m_obj.lettori != null)
16690
+ dialogRef.componentInstance.lettori = this.m_obj.lettori;
16691
+ else
16692
+ dialogRef.componentInstance.lettori = '';
16563
16693
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
16564
16694
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
16565
- dialogRef.componentInstance.not_int = this.app_info.notifica_commenti_default;
16695
+ dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
16696
+ dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
16566
16697
  dialogRef.componentInstance.commenti_insert = inser_c;
16698
+ dialogRef.componentInstance.init_v();
16567
16699
  dialogRef.afterClosed().subscribe((/**
16568
16700
  * @param {?} result
16569
16701
  * @return {?}
@@ -16583,10 +16715,15 @@
16583
16715
  /** @type {?} */
16584
16716
  var dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
16585
16717
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
16586
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
16718
+ if (this.m_obj.lettori != null)
16719
+ dialogRef.componentInstance.lettori = this.m_obj.lettori;
16720
+ else
16721
+ dialogRef.componentInstance.lettori = '';
16587
16722
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
16588
16723
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
16589
- dialogRef.componentInstance.not_int = this.app_info.notifica_commenti_default;
16724
+ dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
16725
+ dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
16726
+ dialogRef.componentInstance.init_v();
16590
16727
  dialogRef.afterClosed().subscribe((/**
16591
16728
  * @param {?} result
16592
16729
  * @return {?}