@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.
@@ -10854,7 +10854,7 @@ var FHPickListComponent = /** @class */ (function () {
10854
10854
  FHPickListComponent.decorators = [
10855
10855
  { type: Component, args: [{
10856
10856
  selector: 'FHPickList',
10857
- 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 ",
10857
+ 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 ",
10858
10858
  styles: ["\n .selector{\n cursor:hand\n }\n "]
10859
10859
  }] }
10860
10860
  ];
@@ -11825,6 +11825,7 @@ var FHListPick = /** @class */ (function () {
11825
11825
  this.toastr = toastr;
11826
11826
  this.m_appService = m_appService;
11827
11827
  this.label = "";
11828
+ this.title = "";
11828
11829
  this.sql = "";
11829
11830
  this.single_sel = false;
11830
11831
  this.sel_values = "";
@@ -11878,7 +11879,7 @@ var FHListPick = /** @class */ (function () {
11878
11879
  FHListPick.decorators = [
11879
11880
  { type: Component, args: [{
11880
11881
  selector: 'fhwincomboselect',
11881
- 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 "
11882
+ 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 "
11882
11883
  }] }
11883
11884
  ];
11884
11885
  /** @nocollapse */
@@ -13137,7 +13138,10 @@ var win_commenti = /** @class */ (function () {
13137
13138
  this.toastr = toastr;
13138
13139
  this._dataService = _dataService;
13139
13140
  this.m_wkf = m_wkf;
13140
- this.not_int = true;
13141
+ this.notifica_commenti = 1;
13142
+ this.notifica_commenti_obbl = 0;
13143
+ this.not_comm = false;
13144
+ this.not_comm_disabled = false;
13141
13145
  this.nota = "";
13142
13146
  this.title = "COMMENTI";
13143
13147
  this.b_edit = false;
@@ -13149,6 +13153,18 @@ var win_commenti = /** @class */ (function () {
13149
13153
  this.codice_doc = "";
13150
13154
  this.refresh_list();
13151
13155
  }
13156
+ /**
13157
+ * @return {?}
13158
+ */
13159
+ win_commenti.prototype.init_v = /**
13160
+ * @return {?}
13161
+ */
13162
+ function () {
13163
+ if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
13164
+ this.not_comm = true;
13165
+ this.not_comm_disabled = true;
13166
+ }
13167
+ };
13152
13168
  /**
13153
13169
  * @param {?} event
13154
13170
  * @return {?}
@@ -13209,16 +13225,71 @@ var win_commenti = /** @class */ (function () {
13209
13225
  * @return {?}
13210
13226
  */
13211
13227
  function () {
13212
- if (!this.not_int)
13228
+ if (!this.not_comm) {
13213
13229
  this.ok_op();
13230
+ }
13214
13231
  else {
13215
13232
  if (this.nota == '') {
13216
13233
  this.toastr.error("INSERIRE UN COMMENTO");
13217
13234
  return;
13218
13235
  }
13219
- this.select_destinatari();
13236
+ if (this.notifica_commenti == 1)
13237
+ this.select_destinatari();
13238
+ else
13239
+ this.select_destinatari_grp();
13220
13240
  }
13221
13241
  };
13242
+ /**
13243
+ * @return {?}
13244
+ */
13245
+ win_commenti.prototype.select_destinatari_grp = /**
13246
+ * @return {?}
13247
+ */
13248
+ function () {
13249
+ var _this = this;
13250
+ /** @type {?} */
13251
+ var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
13252
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
13253
+ dialo.componentInstance.types = ['string'];
13254
+ dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
13255
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
13256
+ dialo.componentInstance.doFill();
13257
+ dialo.afterClosed().subscribe((/**
13258
+ * @param {?} result
13259
+ * @return {?}
13260
+ */
13261
+ function (result) {
13262
+ if (result != null) {
13263
+ if (result == '')
13264
+ return;
13265
+ /** @type {?} */
13266
+ var s_users_1 = "";
13267
+ for (var i = 0; i < result.length; i++) {
13268
+ if (s_users_1 != "")
13269
+ s_users_1 = s_users_1 + ",";
13270
+ s_users_1 = s_users_1 + "" + result[i].valore + "";
13271
+ }
13272
+ /** @type {?} */
13273
+ var p = new QParam();
13274
+ p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
13275
+ p.types = ['string'];
13276
+ p.values = [s_users_1];
13277
+ _this._dataService.doQuery(p).subscribe((/**
13278
+ * @param {?} data
13279
+ * @return {?}
13280
+ */
13281
+ function (data) {
13282
+ s_users_1 = '';
13283
+ for (var i = 0; i < data.result_data.length; i++) {
13284
+ if (s_users_1 != "")
13285
+ s_users_1 = s_users_1 + ",";
13286
+ s_users_1 = s_users_1 + "" + data.result_data[i].username + "";
13287
+ }
13288
+ _this.ok_op(s_users_1);
13289
+ }));
13290
+ }
13291
+ }));
13292
+ };
13222
13293
  /**
13223
13294
  * @return {?}
13224
13295
  */
@@ -13321,8 +13392,8 @@ var win_commenti = /** @class */ (function () {
13321
13392
  /** @type {?} */
13322
13393
  var p = new QParam();
13323
13394
  p.sql = "INSERT_WKF_COMMENTO";
13324
- p.types = ['string', 'string', 'string', 'string'];
13325
- 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];
13395
+ p.types = ['string', 'string', 'string', 'string', 'string'];
13396
+ 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];
13326
13397
  this._dataService.doQuery(p).subscribe((/**
13327
13398
  * @param {?} data
13328
13399
  * @return {?}
@@ -13351,8 +13422,8 @@ var win_commenti = /** @class */ (function () {
13351
13422
  /** @type {?} */
13352
13423
  var p = new QParam();
13353
13424
  p.sql = "UPDATE_WKF_COMMENTO";
13354
- p.types = ['string', 'string', 'string', 'string'];
13355
- p.values = [this.nota, this.edit_id];
13425
+ p.types = ['string', 'string', 'string'];
13426
+ p.values = [this.nota, this.edit_id, sdest];
13356
13427
  this._dataService.doQuery(p).subscribe((/**
13357
13428
  * @param {?} data
13358
13429
  * @return {?}
@@ -13390,9 +13461,26 @@ var win_commenti = /** @class */ (function () {
13390
13461
  * @return {?}
13391
13462
  */
13392
13463
  function () {
13393
- this.nota = '';
13394
- this.b_edit = false;
13395
- this.title = 'COMMENTI';
13464
+ var _this = this;
13465
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
13466
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
13467
+ /** @type {?} */
13468
+ var dialogRef1 = this
13469
+ .m_dialogRef
13470
+ .open(FHConfirmComponent);
13471
+ dialogRef1
13472
+ .afterClosed()
13473
+ .subscribe((/**
13474
+ * @param {?} result
13475
+ * @return {?}
13476
+ */
13477
+ function (result) {
13478
+ if (result) {
13479
+ _this.nota = '';
13480
+ _this.b_edit = false;
13481
+ _this.title = 'COMMENTI';
13482
+ }
13483
+ }));
13396
13484
  };
13397
13485
  /**
13398
13486
  * @return {?}
@@ -13416,7 +13504,7 @@ var win_commenti = /** @class */ (function () {
13416
13504
  };
13417
13505
  win_commenti.decorators = [
13418
13506
  { type: Component, args: [{
13419
- 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 ",
13507
+ 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 ",
13420
13508
  styles: ["\n\n \n\n "]
13421
13509
  }] }
13422
13510
  ];
@@ -13483,7 +13571,6 @@ var win_info_doc = /** @class */ (function () {
13483
13571
  */
13484
13572
  var win_log = /** @class */ (function () {
13485
13573
  function win_log(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
13486
- // this.logs = this.m_appService.getState( ).appo_dialog.logs;
13487
13574
  this.appService = appService;
13488
13575
  this.dialogRef = dialogRef;
13489
13576
  this.m_dialogRef = m_dialogRef;
@@ -13492,16 +13579,19 @@ var win_log = /** @class */ (function () {
13492
13579
  this._dataService = _dataService;
13493
13580
  this.m_wkf = m_wkf;
13494
13581
  this.ossv = false;
13582
+ this.not_comm = false;
13583
+ this.not_comm_disabled = false;
13495
13584
  this.b_flussook = true;
13496
13585
  this.logs = new Array();
13586
+ this.notifica_commenti = 1;
13587
+ this.notifica_commenti_obbl = 0;
13497
13588
  this.title = "LOG WORKFLOW E COMMENTI";
13498
13589
  this.nota = "";
13499
13590
  this.commenti_insert = false;
13500
13591
  this.b_edit = false;
13501
13592
  this.b_ins = false;
13502
13593
  this.edit_id = 0;
13503
- this.lettori = "";
13504
- this.not_int = true;
13594
+ this.lettori = '';
13505
13595
  this.subject = "";
13506
13596
  this.link = "";
13507
13597
  this.codice_doc = "";
@@ -13515,6 +13605,18 @@ var win_log = /** @class */ (function () {
13515
13605
  function () {
13516
13606
  this.refresh_list();
13517
13607
  };
13608
+ /**
13609
+ * @return {?}
13610
+ */
13611
+ win_log.prototype.init_v = /**
13612
+ * @return {?}
13613
+ */
13614
+ function () {
13615
+ if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
13616
+ this.not_comm = true;
13617
+ this.not_comm_disabled = true;
13618
+ }
13619
+ };
13518
13620
  /**
13519
13621
  * @return {?}
13520
13622
  */
@@ -13535,7 +13637,6 @@ var win_log = /** @class */ (function () {
13535
13637
  function (data) {
13536
13638
  if (data != null)
13537
13639
  if (data.result_msg == "OK") {
13538
- console.log('data.result_data[0].diagramma_flusso ', data.result_data[0].diagramma_flusso);
13539
13640
  if (data.result_data.length > 0)
13540
13641
  if (data.result_data[0].diagramma_flusso != null)
13541
13642
  if (data.result_data[0].diagramma_flusso != '') {
@@ -13549,7 +13650,6 @@ var win_log = /** @class */ (function () {
13549
13650
  if (!b_found)
13550
13651
  if (_this.logs[i].liv_fin != null) {
13551
13652
  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"');
13552
- console.log('this.logs[i].liv_fin ', _this.logs[i].liv_fin);
13553
13653
  b_found = true;
13554
13654
  }
13555
13655
  }
@@ -13559,7 +13659,6 @@ var win_log = /** @class */ (function () {
13559
13659
  * @return {?}
13560
13660
  */
13561
13661
  function (err) {
13562
- console.log('err', err);
13563
13662
  if (!err) {
13564
13663
  /** @type {?} */
13565
13664
  var canvas = _this.modeler.get('canvas');
@@ -13582,9 +13681,26 @@ var win_log = /** @class */ (function () {
13582
13681
  * @return {?}
13583
13682
  */
13584
13683
  function () {
13585
- this.nota = '';
13586
- this.b_edit = false;
13587
- this.title = 'LOG WORKFLOW E COMMENTI';
13684
+ var _this = this;
13685
+ localStorage.setItem(this.appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
13686
+ localStorage.setItem(this.appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
13687
+ /** @type {?} */
13688
+ var dialogRef1 = this
13689
+ .m_dialogRef
13690
+ .open(FHConfirmComponent);
13691
+ dialogRef1
13692
+ .afterClosed()
13693
+ .subscribe((/**
13694
+ * @param {?} result
13695
+ * @return {?}
13696
+ */
13697
+ function (result) {
13698
+ if (result) {
13699
+ _this.nota = '';
13700
+ _this.b_edit = false;
13701
+ _this.title = 'LOG WORKFLOW E COMMENTI';
13702
+ }
13703
+ }));
13588
13704
  };
13589
13705
  /**
13590
13706
  * @return {?}
@@ -13646,8 +13762,6 @@ var win_log = /** @class */ (function () {
13646
13762
  * @return {?}
13647
13763
  */
13648
13764
  function (data) {
13649
- /** @type {?} */
13650
- var ok_op = false;
13651
13765
  if (data != null)
13652
13766
  if (data.result_msg == "OK") {
13653
13767
  _this.logs = data.result_data;
@@ -13660,16 +13774,7 @@ var win_log = /** @class */ (function () {
13660
13774
  });
13661
13775
  _this.load_graph();
13662
13776
  _this.ossv = true;
13663
- ok_op = true;
13664
13777
  }
13665
- if (!ok_op) {
13666
- _this.toastr.error("ERRORE", data.msg);
13667
- }
13668
- }), (/**
13669
- * @param {?} err
13670
- * @return {?}
13671
- */
13672
- function (err) {
13673
13778
  }));
13674
13779
  };
13675
13780
  /**
@@ -13679,14 +13784,18 @@ var win_log = /** @class */ (function () {
13679
13784
  * @return {?}
13680
13785
  */
13681
13786
  function () {
13682
- if (!this.not_int)
13787
+ if (!this.not_comm) {
13683
13788
  this.ok_op();
13789
+ }
13684
13790
  else {
13685
13791
  if (this.nota == '') {
13686
13792
  this.toastr.error("INSERIRE UN COMMENTO");
13687
13793
  return;
13688
13794
  }
13689
- this.select_destinatari();
13795
+ if (this.notifica_commenti == 1)
13796
+ this.select_destinatari();
13797
+ else
13798
+ this.select_destinatari_grp();
13690
13799
  }
13691
13800
  };
13692
13801
  /**
@@ -13715,7 +13824,6 @@ var win_log = /** @class */ (function () {
13715
13824
  * @return {?}
13716
13825
  */
13717
13826
  function (result) {
13718
- // this.selectedOption = result;
13719
13827
  if (result != null) {
13720
13828
  /** @type {?} */
13721
13829
  var s_users = "";
@@ -13727,11 +13835,57 @@ var win_log = /** @class */ (function () {
13727
13835
  _this.ok_op(s_users);
13728
13836
  }
13729
13837
  }));
13730
- }), (/**
13731
- * @param {?} err
13838
+ }));
13839
+ };
13840
+ /**
13841
+ * @return {?}
13842
+ */
13843
+ win_log.prototype.select_destinatari_grp = /**
13844
+ * @return {?}
13845
+ */
13846
+ function () {
13847
+ var _this = this;
13848
+ /** @type {?} */
13849
+ var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
13850
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
13851
+ dialo.componentInstance.types = ['string'];
13852
+ dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
13853
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
13854
+ dialo.componentInstance.doFill();
13855
+ dialo.afterClosed().subscribe((/**
13856
+ * @param {?} result
13732
13857
  * @return {?}
13733
13858
  */
13734
- function (err) {
13859
+ function (result) {
13860
+ if (result != null) {
13861
+ if (result == '')
13862
+ return;
13863
+ /** @type {?} */
13864
+ var s_users_1 = "";
13865
+ for (var i = 0; i < result.length; i++) {
13866
+ if (s_users_1 != "")
13867
+ s_users_1 = s_users_1 + ",";
13868
+ s_users_1 = s_users_1 + "" + result[i].valore + "";
13869
+ }
13870
+ /** @type {?} */
13871
+ var p = new QParam();
13872
+ p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
13873
+ p.types = ['string'];
13874
+ p.values = [s_users_1];
13875
+ _this._dataService.doQuery(p).subscribe((/**
13876
+ * @param {?} data
13877
+ * @return {?}
13878
+ */
13879
+ function (data) {
13880
+ s_users_1 = '';
13881
+ for (var i = 0; i < data.result_data.length; i++) {
13882
+ if (s_users_1 != "")
13883
+ s_users_1 = s_users_1 + ",";
13884
+ s_users_1 = s_users_1 + "" + data.result_data[i].username + "";
13885
+ }
13886
+ _this.ok_op(s_users_1);
13887
+ }));
13888
+ }
13735
13889
  }));
13736
13890
  };
13737
13891
  /**
@@ -13774,11 +13928,6 @@ var win_log = /** @class */ (function () {
13774
13928
  * @return {?}
13775
13929
  */
13776
13930
  function (data) {
13777
- }), (/**
13778
- * @param {?} err
13779
- * @return {?}
13780
- */
13781
- function (err) {
13782
13931
  }));
13783
13932
  };
13784
13933
  /**
@@ -13796,35 +13945,24 @@ var win_log = /** @class */ (function () {
13796
13945
  /** @type {?} */
13797
13946
  var p = new QParam();
13798
13947
  p.sql = "INSERT_WKF_COMMENTO";
13799
- p.types = ['string', 'string', 'string', 'string'];
13800
- 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];
13948
+ p.types = ['string', 'string', 'string', 'string', 'string'];
13949
+ 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];
13801
13950
  this._dataService.doQuery(p).subscribe((/**
13802
13951
  * @param {?} data
13803
13952
  * @return {?}
13804
13953
  */
13805
13954
  function (data) {
13806
- /** @type {?} */
13807
- var ok_op = false;
13808
13955
  if (data != null)
13809
13956
  if (data.result_msg == "OK") {
13810
13957
  _this.toastr.info("INFO", "COMMENTO INSERITO", {
13811
13958
  timeOut: 1000,
13812
13959
  progressBar: true
13813
13960
  });
13814
- ok_op = true;
13815
13961
  _this.b_edit = false;
13816
13962
  if (sdest != "")
13817
13963
  _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, '');
13818
13964
  _this.refresh_list();
13819
13965
  }
13820
- if (!ok_op) {
13821
- _this.toastr.error("ERRORE", data.msg);
13822
- }
13823
- }), (/**
13824
- * @param {?} err
13825
- * @return {?}
13826
- */
13827
- function (err) {
13828
13966
  }));
13829
13967
  }
13830
13968
  else {
@@ -13838,34 +13976,23 @@ var win_log = /** @class */ (function () {
13838
13976
  * @return {?}
13839
13977
  */
13840
13978
  function (data) {
13841
- /** @type {?} */
13842
- var ok_op = false;
13843
13979
  if (data != null)
13844
13980
  if (data.result_msg == "OK") {
13845
13981
  _this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
13846
13982
  timeOut: 1000,
13847
13983
  progressBar: true
13848
13984
  });
13849
- ok_op = true;
13850
13985
  _this.b_edit = false;
13851
13986
  if (sdest != "")
13852
13987
  _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, '');
13853
13988
  _this.refresh_list();
13854
13989
  }
13855
- if (!ok_op) {
13856
- _this.toastr.error("ERRORE", data.msg);
13857
- }
13858
- }), (/**
13859
- * @param {?} err
13860
- * @return {?}
13861
- */
13862
- function (err) {
13863
13990
  }));
13864
13991
  }
13865
13992
  };
13866
13993
  win_log.decorators = [
13867
13994
  { type: Component, args: [{
13868
- 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 ",
13995
+ 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 ",
13869
13996
  styles: ["\n\n\n "]
13870
13997
  }] }
13871
13998
  ];
@@ -16537,11 +16664,16 @@ var dati_aggiuntivi = /** @class */ (function () {
16537
16664
  /** @type {?} */
16538
16665
  var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
16539
16666
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
16540
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
16667
+ if (this.m_obj.lettori != null)
16668
+ dialogRef.componentInstance.lettori = this.m_obj.lettori;
16669
+ else
16670
+ dialogRef.componentInstance.lettori = '';
16541
16671
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
16542
16672
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
16543
- dialogRef.componentInstance.not_int = this.app_info.notifica_commenti_default;
16673
+ dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
16674
+ dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
16544
16675
  dialogRef.componentInstance.commenti_insert = inser_c;
16676
+ dialogRef.componentInstance.init_v();
16545
16677
  dialogRef.afterClosed().subscribe((/**
16546
16678
  * @param {?} result
16547
16679
  * @return {?}
@@ -16561,10 +16693,15 @@ var dati_aggiuntivi = /** @class */ (function () {
16561
16693
  /** @type {?} */
16562
16694
  var dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
16563
16695
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
16564
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
16696
+ if (this.m_obj.lettori != null)
16697
+ dialogRef.componentInstance.lettori = this.m_obj.lettori;
16698
+ else
16699
+ dialogRef.componentInstance.lettori = '';
16565
16700
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
16566
16701
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
16567
- dialogRef.componentInstance.not_int = this.app_info.notifica_commenti_default;
16702
+ dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
16703
+ dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
16704
+ dialogRef.componentInstance.init_v();
16568
16705
  dialogRef.afterClosed().subscribe((/**
16569
16706
  * @param {?} result
16570
16707
  * @return {?}