@fluxhub/fluxhub-lib 9.0.114 → 9.0.115

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.
@@ -10305,18 +10305,18 @@ win_salva_annulla = __decorate([
10305
10305
  ], win_salva_annulla);
10306
10306
 
10307
10307
  let win_assegna = class win_assegna {
10308
- constructor(dialogRef, m_appService, toastr, _dataService) {
10308
+ constructor(dialogRef, m_appService, toastr, _dataService, data) {
10309
10309
  this.dialogRef = dialogRef;
10310
10310
  this.m_appService = m_appService;
10311
10311
  this.toastr = toastr;
10312
10312
  this._dataService = _dataService;
10313
+ this.data = data;
10313
10314
  this.lbl = "";
10314
10315
  this.nota = "";
10315
10316
  this.nota_commento = "";
10316
10317
  this.title = "ASSEGNA DOCUMENTO";
10317
10318
  this.comm_notrequired = 0;
10318
10319
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
10319
- console.log(' this.comm_notrequired ', this.comm_notrequired);
10320
10320
  this.title = this.m_appService.getState().wkf_doc_info.title;
10321
10321
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
10322
10322
  this.arrAutori = this.m_appService.getState().wkf_doc_info.arrAutori;
@@ -10326,6 +10326,12 @@ let win_assegna = class win_assegna {
10326
10326
  }
10327
10327
  if (this.comm_notrequired == 2)
10328
10328
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
10329
+ if (data != null) {
10330
+ if (data.commento_default != null)
10331
+ this.nota = data.commento_default;
10332
+ if (data.comm_notrequired != null)
10333
+ this.comm_notrequired = data.comm_notrequired;
10334
+ }
10329
10335
  }
10330
10336
  close() { this.dialogRef.close(null); }
10331
10337
  ok() {
@@ -10356,7 +10362,8 @@ win_assegna.ctorParameters = () => [
10356
10362
  { type: MatDialogRef },
10357
10363
  { type: AppService },
10358
10364
  { type: ToastrService },
10359
- { type: QueryService }
10365
+ { type: QueryService },
10366
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
10360
10367
  ];
10361
10368
  __decorate([
10362
10369
  ViewChild('up'),
@@ -10390,7 +10397,8 @@ win_assegna = __decorate([
10390
10397
 
10391
10398
  `
10392
10399
  }),
10393
- __metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService])
10400
+ __param(4, Inject(MAT_DIALOG_DATA)),
10401
+ __metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService, Object])
10394
10402
  ], win_assegna);
10395
10403
 
10396
10404
  let win_conferma = class win_conferma {
@@ -12854,6 +12862,7 @@ class dati_aggiuntivi {
12854
12862
  this.limite_salto_after = -1;
12855
12863
  this.respingi_enabled = false;
12856
12864
  this.oper = '';
12865
+ this.commento_default = '';
12857
12866
  this.b_edit_before = false;
12858
12867
  this.all_c = 0;
12859
12868
  this.comm_c = 0;
@@ -13216,10 +13225,7 @@ class dati_aggiuntivi {
13216
13225
  });
13217
13226
  ;
13218
13227
  let dialogRef = this.m_dialog.open(win_assegna, {
13219
- disableClose: true
13220
- });
13221
- setTimeout(() => {
13222
- dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
13228
+ disableClose: true, data: { commento_default: this.commento_default, comm_notrequired: this.nlevel.commenti_opzionali }
13223
13229
  });
13224
13230
  dialogRef.afterClosed().subscribe(result => {
13225
13231
  if (result == "" || result == null) {
@@ -13567,9 +13573,10 @@ class dati_aggiuntivi {
13567
13573
  this.resp_b(false);
13568
13574
  this.salva();
13569
13575
  }
13570
- procedi() {
13576
+ procedi(commento_default = '') {
13571
13577
  this.oper = 'procedi';
13572
13578
  this.btnprocedi = true;
13579
+ this.commento_default = commento_default;
13573
13580
  this.edit_b(false);
13574
13581
  this.resp_b(false);
13575
13582
  if (!this.ck_field()) {
@@ -14223,6 +14230,7 @@ let wkf_header_bar = class wkf_header_bar {
14223
14230
  this.edit_button = false;
14224
14231
  this.respingi_button = false;
14225
14232
  this.procedi_button = true;
14233
+ this.commento_default = '';
14226
14234
  }
14227
14235
  back() { if (this.dt_agg != null)
14228
14236
  this.dt_agg.back(this.edit_button); }
@@ -14231,7 +14239,7 @@ let wkf_header_bar = class wkf_header_bar {
14231
14239
  respingi() { if (this.dt_agg != null)
14232
14240
  this.dt_agg.respingi(); }
14233
14241
  procedi() { if (this.dt_agg != null)
14234
- this.dt_agg.procedi(); }
14242
+ this.dt_agg.procedi(this.commento_default); }
14235
14243
  open_info() { if (this.dt_agg != null)
14236
14244
  this.dt_agg.open_info(); }
14237
14245
  open_commenti() { if (this.dt_agg != null)
@@ -14262,6 +14270,10 @@ __decorate([
14262
14270
  Input(),
14263
14271
  __metadata("design:type", Boolean)
14264
14272
  ], wkf_header_bar.prototype, "procedi_button", void 0);
14273
+ __decorate([
14274
+ Input(),
14275
+ __metadata("design:type", String)
14276
+ ], wkf_header_bar.prototype, "commento_default", void 0);
14265
14277
  wkf_header_bar = __decorate([
14266
14278
  Component({
14267
14279
  selector: 'wkf_header_bar',
@@ -14279,12 +14291,12 @@ wkf_header_bar = __decorate([
14279
14291
          
14280
14292
  <div fxLayout="row" fxLayout.xs="column" fxLayoutGap="16px" fxLayoutGap.xs="3px">
14281
14293
  <div fxLayout="row" >
14282
- <button mat-flat-button (click)="open_info()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>&nbsp;&nbsp;
14283
- <button mat-flat-button [color]="(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'accent':''" [matBadge]="dt_agg?.comm_c?dt_agg?.comm_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_commenti()"> <mat-icon>insert_comment</mat-icon>Commenti</button>&nbsp;&nbsp;</div> <div fxLayout="row">
14284
- <button mat-flat-button [color]="(dt_agg?.all_c?dt_agg?.all_c:0>0)?'accent':''" [matBadge]="dt_agg?.all_c?dt_agg?.all_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_upload()"> <mat-icon>attach_file</mat-icon>Allegati</button>&nbsp;&nbsp;
14285
- <button mat-flat-button (click)="open_wkf()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>
14294
+ <button mat-flat-button (click)="open_info()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>&nbsp;&nbsp;
14295
+ <button mat-flat-button [color]="(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'accent':''" [matBadge]="dt_agg?.comm_c?dt_agg?.comm_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_commenti()"> <mat-icon>insert_comment</mat-icon>Commenti</button>&nbsp;&nbsp;</div> <div fxLayout="row">
14296
+ <button mat-flat-button [color]="(dt_agg?.all_c?dt_agg?.all_c:0>0)?'accent':''" [matBadge]="dt_agg?.all_c?dt_agg?.all_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_upload()"> <mat-icon>attach_file</mat-icon>Allegati</button>&nbsp;&nbsp;
14297
+ <button mat-flat-button (click)="open_wkf()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>
14298
+ </div>
14286
14299
  </div>
14287
- </div>
14288
14300
  `
14289
14301
  }),
14290
14302
  __metadata("design:paramtypes", [AppService])