@fluxhub/fluxhub-lib 1.0.456 → 1.0.458

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.
@@ -39,7 +39,6 @@ import { TranslateModule } from '@ngx-translate/core';
39
39
  import { DragulaService, DragulaModule } from 'ng2-dragula';
40
40
  import { DomSanitizer } from '@angular/platform-browser';
41
41
  import { Http } from '@angular/http';
42
- import { isNotNullOrUndefined } from 'codelyzer/util/is-not-null-or-undefined';
43
42
 
44
43
  /**
45
44
  * @fileoverview added by tsickle
@@ -9999,7 +9998,7 @@ class FHPickListComponent {
9999
9998
  this.value_sel.push(o);
10000
9999
  }
10001
10000
  /** @type {?} */
10002
- var p = new QParam();
10001
+ let p = new QParam();
10003
10002
  p.sql = k;
10004
10003
  p.types = this.types;
10005
10004
  p.values = this.values;
@@ -10146,8 +10145,8 @@ FHPickListComponent.decorators = [
10146
10145
  selector: 'FHPickList',
10147
10146
  template: `
10148
10147
 
10149
- <div fxLayout="column" fxLayoutGap="15px" fxFlex style="width:600px;height:400px">
10150
- <div fxLayout="row" style="width:550">
10148
+ <div fxLayout="column" fxLayoutGap="15px" fxFlex >
10149
+ <div fxLayout="row">
10151
10150
  <div fxLayout="column" fxFlex="41%">
10152
10151
 
10153
10152
 
@@ -11139,6 +11138,7 @@ class FHListPick {
11139
11138
  this.toastr = toastr;
11140
11139
  this.m_appService = m_appService;
11141
11140
  this.label = "";
11141
+ this.title = "";
11142
11142
  this.sql = "";
11143
11143
  this.single_sel = false;
11144
11144
  this.sel_values = "";
@@ -11182,8 +11182,9 @@ FHListPick.decorators = [
11182
11182
  { type: Component, args: [{
11183
11183
  selector: 'fhwincomboselect',
11184
11184
  template: `
11185
- <mat-dialog-content style="min-width:700px;font-size: 12px;">
11186
- <FHList #cmb_sel [label]="label" [single_sel]="single_sel" [label]="" style="width:100%;min-height:90px" init_fill="false" (selchange)="ok_single()"></FHList>
11185
+ <h2 mat-dialog-title>{{title}}</h2>
11186
+ <mat-dialog-content style="min-width:700px;min-height:500px;font-size: 12px">
11187
+ <FHList #cmb_sel [label]="label" [single_sel]="single_sel" [label]="" style="width:100%;height:100%" init_fill="false" (selchange)="ok_single()"></FHList>
11187
11188
 
11188
11189
  </mat-dialog-content>
11189
11190
 
@@ -11192,7 +11193,7 @@ FHListPick.decorators = [
11192
11193
  <div fxLayout="row" fxLayoutAlign="center center" style="width: 100%">
11193
11194
 
11194
11195
  <button mat-flat-button color="primary" *ngIf="!single_sel" (click)="ok()">OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
11195
- <button mat-flat-button color="warn" style="background-color: #F5F5F5" (click)="dialogRef.close('')">ANNULLA</button>
11196
+ <button mat-flat-button style="background-color: #F5F5F5" (click)="dialogRef.close('')">ANNULLA</button>
11196
11197
  </div>
11197
11198
  </mat-dialog-actions>
11198
11199
  `
@@ -12591,7 +12592,10 @@ class win_commenti {
12591
12592
  this.toastr = toastr;
12592
12593
  this._dataService = _dataService;
12593
12594
  this.m_wkf = m_wkf;
12594
- this.not_int = true;
12595
+ this.notifica_commenti = 1;
12596
+ this.notifica_commenti_obbl = 0;
12597
+ this.not_comm = false;
12598
+ this.not_comm_disabled = false;
12595
12599
  this.nota = "";
12596
12600
  this.title = "COMMENTI";
12597
12601
  this.b_edit = false;
@@ -12603,6 +12607,15 @@ class win_commenti {
12603
12607
  this.codice_doc = "";
12604
12608
  this.refresh_list();
12605
12609
  }
12610
+ /**
12611
+ * @return {?}
12612
+ */
12613
+ init_v() {
12614
+ if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
12615
+ this.not_comm = true;
12616
+ this.not_comm_disabled = true;
12617
+ }
12618
+ }
12606
12619
  /**
12607
12620
  * @param {?} event
12608
12621
  * @return {?}
@@ -12652,16 +12665,67 @@ class win_commenti {
12652
12665
  * @return {?}
12653
12666
  */
12654
12667
  ok() {
12655
- if (!this.not_int)
12668
+ if (!this.notifica_commenti) {
12656
12669
  this.ok_op();
12670
+ }
12657
12671
  else {
12658
12672
  if (this.nota == '') {
12659
12673
  this.toastr.error("INSERIRE UN COMMENTO");
12660
12674
  return;
12661
12675
  }
12662
- this.select_destinatari();
12676
+ if (this.notifica_commenti == 1)
12677
+ this.select_destinatari();
12678
+ else
12679
+ this.select_destinatari_grp();
12663
12680
  }
12664
12681
  }
12682
+ /**
12683
+ * @return {?}
12684
+ */
12685
+ select_destinatari_grp() {
12686
+ /** @type {?} */
12687
+ let dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
12688
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
12689
+ dialo.componentInstance.types = ['string'];
12690
+ dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
12691
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
12692
+ dialo.componentInstance.doFill();
12693
+ dialo.afterClosed().subscribe((/**
12694
+ * @param {?} result
12695
+ * @return {?}
12696
+ */
12697
+ result => {
12698
+ if (result != null) {
12699
+ if (result == '')
12700
+ return;
12701
+ /** @type {?} */
12702
+ let s_users = "";
12703
+ for (let i = 0; i < result.length; i++) {
12704
+ if (s_users != "")
12705
+ s_users = s_users + ",";
12706
+ s_users = s_users + "" + result[i].valore + "";
12707
+ }
12708
+ /** @type {?} */
12709
+ let p = new QParam();
12710
+ p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
12711
+ p.types = ['string'];
12712
+ p.values = [s_users];
12713
+ this._dataService.doQuery(p).subscribe((/**
12714
+ * @param {?} data
12715
+ * @return {?}
12716
+ */
12717
+ data => {
12718
+ s_users = '';
12719
+ for (let i = 0; i < data.result_data.length; i++) {
12720
+ if (s_users != "")
12721
+ s_users = s_users + ",";
12722
+ s_users = s_users + "" + data.result_data[i].username + "";
12723
+ }
12724
+ this.ok_op(s_users);
12725
+ }));
12726
+ }
12727
+ }));
12728
+ }
12665
12729
  /**
12666
12730
  * @return {?}
12667
12731
  */
@@ -12736,10 +12800,10 @@ class win_commenti {
12736
12800
  ok_op(sdest = "") {
12737
12801
  if (this.b_ins) {
12738
12802
  /** @type {?} */
12739
- var p = new QParam();
12803
+ let p = new QParam();
12740
12804
  p.sql = "INSERT_WKF_COMMENTO";
12741
- p.types = ['string', 'string', 'string', 'string'];
12742
- 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];
12805
+ p.types = ['string', 'string', 'string', 'string', 'string'];
12806
+ 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];
12743
12807
  this._dataService.doQuery(p).subscribe((/**
12744
12808
  * @param {?} data
12745
12809
  * @return {?}
@@ -12766,10 +12830,10 @@ class win_commenti {
12766
12830
  }
12767
12831
  else {
12768
12832
  /** @type {?} */
12769
- var p = new QParam();
12833
+ let p = new QParam();
12770
12834
  p.sql = "UPDATE_WKF_COMMENTO";
12771
- p.types = ['string', 'string', 'string', 'string'];
12772
- p.values = [this.nota, this.edit_id];
12835
+ p.types = ['string', 'string', 'string'];
12836
+ p.values = [this.nota, this.edit_id, sdest];
12773
12837
  this._dataService.doQuery(p).subscribe((/**
12774
12838
  * @param {?} data
12775
12839
  * @return {?}
@@ -12804,9 +12868,25 @@ class win_commenti {
12804
12868
  * @return {?}
12805
12869
  */
12806
12870
  annulla() {
12807
- this.nota = '';
12808
- this.b_edit = false;
12809
- this.title = 'COMMENTI';
12871
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
12872
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
12873
+ /** @type {?} */
12874
+ let dialogRef1 = this
12875
+ .m_dialogRef
12876
+ .open(FHConfirmComponent);
12877
+ dialogRef1
12878
+ .afterClosed()
12879
+ .subscribe((/**
12880
+ * @param {?} result
12881
+ * @return {?}
12882
+ */
12883
+ result => {
12884
+ if (result) {
12885
+ this.nota = '';
12886
+ this.b_edit = false;
12887
+ this.title = 'COMMENTI';
12888
+ }
12889
+ }));
12810
12890
  }
12811
12891
  /**
12812
12892
  * @return {?}
@@ -12842,10 +12922,10 @@ win_commenti.decorators = [
12842
12922
  </mat-form-field>
12843
12923
 
12844
12924
 
12845
- <div *ngIf="b_edit">
12925
+ <div *ngIf="b_edit" fxLayoutAlign="center center" fxLayout="row">
12846
12926
  <button mat-flat-button color="primary" (click)="ok()"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
12847
12927
  <button mat-flat-button color="warn" (click)="annulla()">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
12848
- <mat-checkbox [(ngModel)]="not_int" [hidden]="lettori===''">
12928
+ <mat-checkbox [disabled]="not_comm_disabled" [(ngModel)]="not_comm" [hidden]="notifica_commenti==0 || (notifica_commenti==1 && lettori=='')">
12849
12929
  Notifica Interessati
12850
12930
  </mat-checkbox>
12851
12931
  </div>
@@ -12857,6 +12937,7 @@ win_commenti.decorators = [
12857
12937
  <th width="15%">Autore</th>
12858
12938
  <th width="15%">Data</th>
12859
12939
  <th></th>
12940
+ <th></th>
12860
12941
  </tr>
12861
12942
  </thead>
12862
12943
  <tbody>
@@ -12866,11 +12947,13 @@ win_commenti.decorators = [
12866
12947
  <td [innerHTML]="app.v_commento"></td>
12867
12948
  <td>{{app.COGNOME + ' ' + app.NOME}}</td>
12868
12949
  <td>{{app.v_data_creazione}}</td>
12950
+ <td><mat-icon [matTooltip]="app.dest_notif" *ngIf="app.dest_notif!=null && app.dest_notif!=''">mail</mat-icon></td>
12869
12951
  <td>
12870
12952
  <mat-icon *ngIf="i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user"
12871
12953
  (click)="edit_comm(app)">edit
12872
12954
  </mat-icon>
12873
12955
  </td>
12956
+
12874
12957
  </tr>
12875
12958
  </tbody>
12876
12959
  </table>
@@ -12879,7 +12962,7 @@ win_commenti.decorators = [
12879
12962
  </div>
12880
12963
  <br>
12881
12964
 
12882
- <div style="width:100%;text-align:center;">
12965
+ <div style="width:100%;text-align:center;" *ngIf="!b_edit">
12883
12966
  <button mat-flat-button style="background-color: #F5F5F5" (click)="dialogRef.close('')">CHIUDI</button>
12884
12967
 
12885
12968
  </div>
@@ -13031,7 +13114,6 @@ class win_log {
13031
13114
  * @param {?} m_wkf
13032
13115
  */
13033
13116
  constructor(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
13034
- // this.logs = this.m_appService.getState( ).appo_dialog.logs;
13035
13117
  this.appService = appService;
13036
13118
  this.dialogRef = dialogRef;
13037
13119
  this.m_dialogRef = m_dialogRef;
@@ -13040,16 +13122,19 @@ class win_log {
13040
13122
  this._dataService = _dataService;
13041
13123
  this.m_wkf = m_wkf;
13042
13124
  this.ossv = false;
13125
+ this.not_comm = false;
13126
+ this.not_comm_disabled = false;
13043
13127
  this.b_flussook = true;
13044
13128
  this.logs = new Array();
13129
+ this.notifica_commenti = 1;
13130
+ this.notifica_commenti_obbl = 0;
13045
13131
  this.title = "LOG WORKFLOW E COMMENTI";
13046
13132
  this.nota = "";
13047
13133
  this.commenti_insert = false;
13048
13134
  this.b_edit = false;
13049
13135
  this.b_ins = false;
13050
13136
  this.edit_id = 0;
13051
- this.lettori = "";
13052
- this.not_int = true;
13137
+ this.lettori = '';
13053
13138
  this.subject = "";
13054
13139
  this.link = "";
13055
13140
  this.codice_doc = "";
@@ -13060,6 +13145,15 @@ class win_log {
13060
13145
  ric_all() {
13061
13146
  this.refresh_list();
13062
13147
  }
13148
+ /**
13149
+ * @return {?}
13150
+ */
13151
+ init_v() {
13152
+ if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
13153
+ this.not_comm = true;
13154
+ this.not_comm_disabled = true;
13155
+ }
13156
+ }
13063
13157
  /**
13064
13158
  * @return {?}
13065
13159
  */
@@ -13076,7 +13170,6 @@ class win_log {
13076
13170
  data => {
13077
13171
  if (data != null)
13078
13172
  if (data.result_msg == "OK") {
13079
- console.log('data.result_data[0].diagramma_flusso ', data.result_data[0].diagramma_flusso);
13080
13173
  if (data.result_data.length > 0)
13081
13174
  if (data.result_data[0].diagramma_flusso != null)
13082
13175
  if (data.result_data[0].diagramma_flusso != '') {
@@ -13090,7 +13183,6 @@ class win_log {
13090
13183
  if (!b_found)
13091
13184
  if (this.logs[i].liv_fin != null) {
13092
13185
  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"');
13093
- console.log('this.logs[i].liv_fin ', this.logs[i].liv_fin);
13094
13186
  b_found = true;
13095
13187
  }
13096
13188
  }
@@ -13100,7 +13192,6 @@ class win_log {
13100
13192
  * @return {?}
13101
13193
  */
13102
13194
  (err) => {
13103
- console.log('err', err);
13104
13195
  if (!err) {
13105
13196
  /** @type {?} */
13106
13197
  let canvas = this.modeler.get('canvas');
@@ -13120,9 +13211,25 @@ class win_log {
13120
13211
  * @return {?}
13121
13212
  */
13122
13213
  annulla() {
13123
- this.nota = '';
13124
- this.b_edit = false;
13125
- this.title = 'LOG WORKFLOW E COMMENTI';
13214
+ localStorage.setItem(this.appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
13215
+ localStorage.setItem(this.appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
13216
+ /** @type {?} */
13217
+ let dialogRef1 = this
13218
+ .m_dialogRef
13219
+ .open(FHConfirmComponent);
13220
+ dialogRef1
13221
+ .afterClosed()
13222
+ .subscribe((/**
13223
+ * @param {?} result
13224
+ * @return {?}
13225
+ */
13226
+ result => {
13227
+ if (result) {
13228
+ this.nota = '';
13229
+ this.b_edit = false;
13230
+ this.title = 'LOG WORKFLOW E COMMENTI';
13231
+ }
13232
+ }));
13126
13233
  }
13127
13234
  /**
13128
13235
  * @return {?}
@@ -13169,8 +13276,6 @@ class win_log {
13169
13276
  * @return {?}
13170
13277
  */
13171
13278
  data => {
13172
- /** @type {?} */
13173
- let ok_op = false;
13174
13279
  if (data != null)
13175
13280
  if (data.result_msg == "OK") {
13176
13281
  this.logs = data.result_data;
@@ -13183,30 +13288,25 @@ class win_log {
13183
13288
  });
13184
13289
  this.load_graph();
13185
13290
  this.ossv = true;
13186
- ok_op = true;
13187
13291
  }
13188
- if (!ok_op) {
13189
- this.toastr.error("ERRORE", data.msg);
13190
- }
13191
- }), (/**
13192
- * @param {?} err
13193
- * @return {?}
13194
- */
13195
- err => {
13196
13292
  }));
13197
13293
  }
13198
13294
  /**
13199
13295
  * @return {?}
13200
13296
  */
13201
13297
  ok() {
13202
- if (!this.not_int)
13298
+ if (!this.notifica_commenti) {
13203
13299
  this.ok_op();
13300
+ }
13204
13301
  else {
13205
13302
  if (this.nota == '') {
13206
13303
  this.toastr.error("INSERIRE UN COMMENTO");
13207
13304
  return;
13208
13305
  }
13209
- this.select_destinatari();
13306
+ if (this.notifica_commenti == 1)
13307
+ this.select_destinatari();
13308
+ else
13309
+ this.select_destinatari_grp();
13210
13310
  }
13211
13311
  }
13212
13312
  /**
@@ -13214,7 +13314,7 @@ class win_log {
13214
13314
  */
13215
13315
  select_destinatari() {
13216
13316
  /** @type {?} */
13217
- var p = new QParam();
13317
+ let p = new QParam();
13218
13318
  p.sql = "SELECT_USERS_INFOS_BY_USERNAME_NOREP";
13219
13319
  p.types = ['string'];
13220
13320
  p.values = ["'" + this.lettori.split(',').join("','") + "'"];
@@ -13231,7 +13331,6 @@ class win_log {
13231
13331
  * @return {?}
13232
13332
  */
13233
13333
  result => {
13234
- // this.selectedOption = result;
13235
13334
  if (result != null) {
13236
13335
  /** @type {?} */
13237
13336
  let s_users = "";
@@ -13243,11 +13342,53 @@ class win_log {
13243
13342
  this.ok_op(s_users);
13244
13343
  }
13245
13344
  }));
13246
- }), (/**
13247
- * @param {?} err
13345
+ }));
13346
+ }
13347
+ /**
13348
+ * @return {?}
13349
+ */
13350
+ select_destinatari_grp() {
13351
+ /** @type {?} */
13352
+ let dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
13353
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
13354
+ dialo.componentInstance.types = ['string'];
13355
+ dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
13356
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
13357
+ dialo.componentInstance.doFill();
13358
+ dialo.afterClosed().subscribe((/**
13359
+ * @param {?} result
13248
13360
  * @return {?}
13249
13361
  */
13250
- err => {
13362
+ result => {
13363
+ if (result != null) {
13364
+ if (result == '')
13365
+ return;
13366
+ /** @type {?} */
13367
+ let s_users = "";
13368
+ for (let i = 0; i < result.length; i++) {
13369
+ if (s_users != "")
13370
+ s_users = s_users + ",";
13371
+ s_users = s_users + "" + result[i].valore + "";
13372
+ }
13373
+ /** @type {?} */
13374
+ let p = new QParam();
13375
+ p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
13376
+ p.types = ['string'];
13377
+ p.values = [s_users];
13378
+ this._dataService.doQuery(p).subscribe((/**
13379
+ * @param {?} data
13380
+ * @return {?}
13381
+ */
13382
+ data => {
13383
+ s_users = '';
13384
+ for (let i = 0; i < data.result_data.length; i++) {
13385
+ if (s_users != "")
13386
+ s_users = s_users + ",";
13387
+ s_users = s_users + "" + data.result_data[i].username + "";
13388
+ }
13389
+ this.ok_op(s_users);
13390
+ }));
13391
+ }
13251
13392
  }));
13252
13393
  }
13253
13394
  /**
@@ -13274,11 +13415,6 @@ class win_log {
13274
13415
  * @return {?}
13275
13416
  */
13276
13417
  data => {
13277
- }), (/**
13278
- * @param {?} err
13279
- * @return {?}
13280
- */
13281
- err => {
13282
13418
  }));
13283
13419
  }
13284
13420
  /**
@@ -13288,42 +13424,31 @@ class win_log {
13288
13424
  ok_op(sdest = "") {
13289
13425
  if (this.b_ins) {
13290
13426
  /** @type {?} */
13291
- var p = new QParam();
13427
+ let p = new QParam();
13292
13428
  p.sql = "INSERT_WKF_COMMENTO";
13293
- p.types = ['string', 'string', 'string', 'string'];
13294
- 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];
13429
+ p.types = ['string', 'string', 'string', 'string', 'string'];
13430
+ 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];
13295
13431
  this._dataService.doQuery(p).subscribe((/**
13296
13432
  * @param {?} data
13297
13433
  * @return {?}
13298
13434
  */
13299
13435
  data => {
13300
- /** @type {?} */
13301
- let ok_op = false;
13302
13436
  if (data != null)
13303
13437
  if (data.result_msg == "OK") {
13304
13438
  this.toastr.info("INFO", "COMMENTO INSERITO", {
13305
13439
  timeOut: 1000,
13306
13440
  progressBar: true
13307
13441
  });
13308
- ok_op = true;
13309
13442
  this.b_edit = false;
13310
13443
  if (sdest != "")
13311
13444
  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, '');
13312
13445
  this.refresh_list();
13313
13446
  }
13314
- if (!ok_op) {
13315
- this.toastr.error("ERRORE", data.msg);
13316
- }
13317
- }), (/**
13318
- * @param {?} err
13319
- * @return {?}
13320
- */
13321
- err => {
13322
13447
  }));
13323
13448
  }
13324
13449
  else {
13325
13450
  /** @type {?} */
13326
- var p = new QParam();
13451
+ let p = new QParam();
13327
13452
  p.sql = "UPDATE_WKF_COMMENTO";
13328
13453
  p.types = ['string', 'string', 'string', 'string'];
13329
13454
  p.values = [this.nota, this.edit_id];
@@ -13332,28 +13457,17 @@ class win_log {
13332
13457
  * @return {?}
13333
13458
  */
13334
13459
  data => {
13335
- /** @type {?} */
13336
- let ok_op = false;
13337
13460
  if (data != null)
13338
13461
  if (data.result_msg == "OK") {
13339
13462
  this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
13340
13463
  timeOut: 1000,
13341
13464
  progressBar: true
13342
13465
  });
13343
- ok_op = true;
13344
13466
  this.b_edit = false;
13345
13467
  if (sdest != "")
13346
13468
  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, '');
13347
13469
  this.refresh_list();
13348
13470
  }
13349
- if (!ok_op) {
13350
- this.toastr.error("ERRORE", data.msg);
13351
- }
13352
- }), (/**
13353
- * @param {?} err
13354
- * @return {?}
13355
- */
13356
- err => {
13357
13471
  }));
13358
13472
  }
13359
13473
  }
@@ -13404,10 +13518,10 @@ win_log.decorators = [
13404
13518
  <textarea matInput [(ngModel)]="nota" rows="12"></textarea>
13405
13519
  </mat-form-field>
13406
13520
 
13407
- <div *ngIf="b_edit">
13521
+ <div *ngIf="b_edit" fxLayoutAlign="center center" fxLayout="row">
13408
13522
  <button mat-flat-button color="primary" (click)="ok()"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;
13409
13523
  <button mat-flat-button style="background-color: #F5F5F5" (click)="annulla()">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
13410
- <mat-checkbox [(ngModel)]="not_int" [hidden]="lettori===''">
13524
+ <mat-checkbox [disabled]="not_comm_disabled" [(ngModel)]="not_comm" [hidden]="notifica_commenti==0 || (notifica_commenti==1 && lettori=='')">
13411
13525
  Notifica Interessati
13412
13526
  </mat-checkbox>
13413
13527
  </div>
@@ -13419,7 +13533,7 @@ win_log.decorators = [
13419
13533
  <th width="15%">Data</th>
13420
13534
  <th width="15%">Utente</th>
13421
13535
  <th>Operazione</th>
13422
-
13536
+ <td></td>
13423
13537
  <td></td>
13424
13538
  </tr>
13425
13539
  </thead>
@@ -13429,7 +13543,7 @@ win_log.decorators = [
13429
13543
  <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>
13430
13544
  <td>{{app.nc}}</td>
13431
13545
  <td>{{app.operazione}}</td>
13432
-
13546
+ <td><mat-icon [matTooltip]="app.dest_notif" *ngIf="app.dest_notif!=null && app.dest_notif!=''">mail</mat-icon></td>
13433
13547
  <td>
13434
13548
  <mat-icon *ngIf="i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user"
13435
13549
  (click)="edit_comm(app)">edit
@@ -15888,11 +16002,16 @@ class dati_aggiuntivi {
15888
16002
  /** @type {?} */
15889
16003
  let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
15890
16004
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
15891
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
16005
+ if (this.m_obj.lettori != null)
16006
+ dialogRef.componentInstance.lettori = this.m_obj.lettori;
16007
+ else
16008
+ dialogRef.componentInstance.lettori = '';
15892
16009
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
15893
16010
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
15894
- dialogRef.componentInstance.not_int = this.app_info.notifica_commenti_default;
16011
+ dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
16012
+ dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
15895
16013
  dialogRef.componentInstance.commenti_insert = inser_c;
16014
+ dialogRef.componentInstance.init_v();
15896
16015
  dialogRef.afterClosed().subscribe((/**
15897
16016
  * @param {?} result
15898
16017
  * @return {?}
@@ -15908,10 +16027,15 @@ class dati_aggiuntivi {
15908
16027
  /** @type {?} */
15909
16028
  let dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
15910
16029
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
15911
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
16030
+ if (this.m_obj.lettori != null)
16031
+ dialogRef.componentInstance.lettori = this.m_obj.lettori;
16032
+ else
16033
+ dialogRef.componentInstance.lettori = '';
15912
16034
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
15913
16035
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
15914
- dialogRef.componentInstance.not_int = this.app_info.notifica_commenti_default;
16036
+ dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
16037
+ dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
16038
+ dialogRef.componentInstance.init_v();
15915
16039
  dialogRef.afterClosed().subscribe((/**
15916
16040
  * @param {?} result
15917
16041
  * @return {?}
@@ -19517,7 +19641,7 @@ class FHGuard {
19517
19641
  p.sql = "SELECT_USER_ACCESS_AUTH";
19518
19642
  p.values = [];
19519
19643
  p.types = [];
19520
- if (!(isNotNullOrUndefined(this.app_s.user) && isNotNullOrUndefined(this.app_s.user_isadmin))) {
19644
+ if (this.app_s.user == null || this.app_s.user_isadmin == null) {
19521
19645
  this.querys.doQuery(p).subscribe((/**
19522
19646
  * @param {?} data
19523
19647
  * @return {?}