@fluxhub/fluxhub-lib 9.0.113 → 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.
@@ -5378,6 +5378,7 @@
5378
5378
  else {
5379
5379
  // if(obj_filtro.length>0)filter_v= filter_v+' and ';
5380
5380
  var sq = '';
5381
+ var include_null_value = false;
5381
5382
  if (obj_filtro.values != null)
5382
5383
  for (var i = 0; i < obj_filtro.values.length; i++)
5383
5384
  if (obj_filtro.values[i] != null) {
@@ -5385,17 +5386,26 @@
5385
5386
  sq = sq + ',';
5386
5387
  sq = sq + '\'' + obj_filtro.values[i].replace('\'', '\'\'') + '\'';
5387
5388
  }
5389
+ else {
5390
+ include_null_value = true;
5391
+ }
5388
5392
  if (sq != '') {
5389
5393
  b_filter = true;
5390
5394
  if (add_end)
5391
5395
  filter_v = filter_v + ' and ';
5392
- filter_v = filter_v + key + ' in (' + sq + ')';
5396
+ if (!include_null_value)
5397
+ filter_v = filter_v + key + ' in (' + sq + ')';
5398
+ else
5399
+ filter_v = filter_v + '(' + key + ' in (' + sq + ') or ' + key + ' is null)';
5393
5400
  }
5394
5401
  else {
5395
5402
  b_filter = true;
5396
5403
  if (add_end)
5397
5404
  filter_v = filter_v + ' and ';
5398
- filter_v = filter_v + ' (1=0)';
5405
+ if (!include_null_value)
5406
+ filter_v = filter_v + ' (1=0)';
5407
+ else
5408
+ filter_v = filter_v + ' ' + key + ' is null';
5399
5409
  }
5400
5410
  }
5401
5411
  this.show_pulisci_filtri = b_filter;
@@ -9438,18 +9448,18 @@
9438
9448
  }());
9439
9449
 
9440
9450
  var win_assegna = /** @class */ (function () {
9441
- function win_assegna(dialogRef, m_appService, toastr, _dataService) {
9451
+ function win_assegna(dialogRef, m_appService, toastr, _dataService, data) {
9442
9452
  this.dialogRef = dialogRef;
9443
9453
  this.m_appService = m_appService;
9444
9454
  this.toastr = toastr;
9445
9455
  this._dataService = _dataService;
9456
+ this.data = data;
9446
9457
  this.lbl = "";
9447
9458
  this.nota = "";
9448
9459
  this.nota_commento = "";
9449
9460
  this.title = "ASSEGNA DOCUMENTO";
9450
9461
  this.comm_notrequired = 0;
9451
9462
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
9452
- console.log(' this.comm_notrequired ', this.comm_notrequired);
9453
9463
  this.title = this.m_appService.getState().wkf_doc_info.title;
9454
9464
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
9455
9465
  this.arrAutori = this.m_appService.getState().wkf_doc_info.arrAutori;
@@ -9459,6 +9469,12 @@
9459
9469
  }
9460
9470
  if (this.comm_notrequired == 2)
9461
9471
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
9472
+ if (data != null) {
9473
+ if (data.commento_default != null)
9474
+ this.nota = data.commento_default;
9475
+ if (data.comm_notrequired != null)
9476
+ this.comm_notrequired = data.comm_notrequired;
9477
+ }
9462
9478
  }
9463
9479
  win_assegna.prototype.close = function () { this.dialogRef.close(null); };
9464
9480
  win_assegna.prototype.ok = function () {
@@ -9488,7 +9504,8 @@
9488
9504
  { type: dialog.MatDialogRef },
9489
9505
  { type: AppService },
9490
9506
  { type: ngxToastr.ToastrService },
9491
- { type: QueryService }
9507
+ { type: QueryService },
9508
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
9492
9509
  ]; };
9493
9510
  __decorate([
9494
9511
  core.ViewChild('up'),
@@ -9498,7 +9515,8 @@
9498
9515
  core.Component({
9499
9516
  template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h4 mat-dialog-title>{{title}}\n </h4>\n <div mat-dialog-content fxLayout=\"column\" style=\"font-size: 15px;min-width: 750px\">\n <div style=\"width:100%;height:450px\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <div *ngIf=\"comm_notrequired!=1\">\n <br>\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento {{nota_commento}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"close()\">ANNULLA</button>\n </div>\n\n "
9500
9517
  }),
9501
- __metadata("design:paramtypes", [dialog.MatDialogRef, AppService, ngxToastr.ToastrService, QueryService])
9518
+ __param(4, core.Inject(dialog.MAT_DIALOG_DATA)),
9519
+ __metadata("design:paramtypes", [dialog.MatDialogRef, AppService, ngxToastr.ToastrService, QueryService, Object])
9502
9520
  ], win_assegna);
9503
9521
  return win_assegna;
9504
9522
  }());
@@ -11579,6 +11597,7 @@
11579
11597
  this.limite_salto_after = -1;
11580
11598
  this.respingi_enabled = false;
11581
11599
  this.oper = '';
11600
+ this.commento_default = '';
11582
11601
  this.b_edit_before = false;
11583
11602
  this.all_c = 0;
11584
11603
  this.comm_c = 0;
@@ -11943,13 +11962,10 @@
11943
11962
  return 0;
11944
11963
  });
11945
11964
  ;
11946
- var dialogRef_1 = this.m_dialog.open(win_assegna, {
11947
- disableClose: true
11948
- });
11949
- setTimeout(function () {
11950
- dialogRef_1.componentInstance.comm_notrequired = _this.nlevel.commenti_opzionali;
11965
+ var dialogRef = this.m_dialog.open(win_assegna, {
11966
+ disableClose: true, data: { commento_default: this.commento_default, comm_notrequired: this.nlevel.commenti_opzionali }
11951
11967
  });
11952
- dialogRef_1.afterClosed().subscribe(function (result) {
11968
+ dialogRef.afterClosed().subscribe(function (result) {
11953
11969
  if (result == "" || result == null) {
11954
11970
  _this.edit_b(true);
11955
11971
  if (_this.respingi_enabled)
@@ -12302,9 +12318,11 @@
12302
12318
  this.resp_b(false);
12303
12319
  this.salva();
12304
12320
  };
12305
- dati_aggiuntivi.prototype.procedi = function () {
12321
+ dati_aggiuntivi.prototype.procedi = function (commento_default) {
12322
+ if (commento_default === void 0) { commento_default = ''; }
12306
12323
  this.oper = 'procedi';
12307
12324
  this.btnprocedi = true;
12325
+ this.commento_default = commento_default;
12308
12326
  this.edit_b(false);
12309
12327
  this.resp_b(false);
12310
12328
  if (!this.ck_field()) {
@@ -12977,6 +12995,7 @@
12977
12995
  this.edit_button = false;
12978
12996
  this.respingi_button = false;
12979
12997
  this.procedi_button = true;
12998
+ this.commento_default = '';
12980
12999
  }
12981
13000
  wkf_header_bar.prototype.back = function () { if (this.dt_agg != null)
12982
13001
  this.dt_agg.back(this.edit_button); };
@@ -12985,7 +13004,7 @@
12985
13004
  wkf_header_bar.prototype.respingi = function () { if (this.dt_agg != null)
12986
13005
  this.dt_agg.respingi(); };
12987
13006
  wkf_header_bar.prototype.procedi = function () { if (this.dt_agg != null)
12988
- this.dt_agg.procedi(); };
13007
+ this.dt_agg.procedi(this.commento_default); };
12989
13008
  wkf_header_bar.prototype.open_info = function () { if (this.dt_agg != null)
12990
13009
  this.dt_agg.open_info(); };
12991
13010
  wkf_header_bar.prototype.open_commenti = function () { if (this.dt_agg != null)
@@ -13015,10 +13034,14 @@
13015
13034
  core.Input(),
13016
13035
  __metadata("design:type", Boolean)
13017
13036
  ], wkf_header_bar.prototype, "procedi_button", void 0);
13037
+ __decorate([
13038
+ core.Input(),
13039
+ __metadata("design:type", String)
13040
+ ], wkf_header_bar.prototype, "commento_default", void 0);
13018
13041
  wkf_header_bar = __decorate([
13019
13042
  core.Component({
13020
13043
  selector: 'wkf_header_bar',
13021
- template: "\n\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"16px\" fxLayoutGap.xs=\"3px\">\n <div fxLayout=\"row\" >\n<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;\n<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\">\n<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;\n <button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>\n</div>\n </div>\n "
13044
+ template: "\n\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"16px\" fxLayoutGap.xs=\"3px\">\n <div fxLayout=\"row\" >\n <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;\n <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\">\n <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;\n <button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>\n </div>\n</div>\n "
13022
13045
  }),
13023
13046
  __metadata("design:paramtypes", [AppService])
13024
13047
  ], wkf_header_bar);