@fluxhub/fluxhub-lib 1.0.442 → 1.0.444

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.
@@ -5439,7 +5439,6 @@
5439
5439
  if (!m_service.checkCredentials()) {
5440
5440
  return;
5441
5441
  }
5442
- this.sort_field = "case when CHARINDEX('" + this.user_idp + "',autori)>0 then 1 else 0 end desc,codice desc";
5443
5442
  }
5444
5443
  /**
5445
5444
  * @param {?} a
@@ -5894,13 +5893,14 @@
5894
5893
  if (result != null)
5895
5894
  if (result.result != null)
5896
5895
  if (result.result == 'ok') {
5897
- p = new QParam();
5898
- p.sql = "SELECT_USER_INFO_WKF";
5899
- p.types = ['string'];
5900
- p.values = [result.arrsel[0].username];
5896
+ /** @type {?} */
5897
+ var p_1 = new QParam();
5898
+ p_1.sql = "SELECT_USER_INFO_WKF";
5899
+ p_1.types = ['string'];
5900
+ p_1.values = [result.arrsel[0].username];
5901
5901
  _this
5902
5902
  .m_dataService
5903
- .doQuery(p)
5903
+ .doQuery(p_1)
5904
5904
  .subscribe((/**
5905
5905
  * @param {?} data
5906
5906
  * @return {?}
@@ -5922,18 +5922,12 @@
5922
5922
  _this.user_email = data.result_data[0].email;
5923
5923
  _this.imp = 'ANN. IMP: ' + data.result_data[0].cognome + ' ' + data.result_data[0].nome;
5924
5924
  _this.get_grid().doFill('');
5925
- //browser.refresh()
5925
+ console.log(' this.user_idp ', _this.user_idp);
5926
5926
  }
5927
5927
  }));
5928
5928
  }
5929
5929
  }));
5930
5930
  }
5931
- }), (/**
5932
- * @param {?} err
5933
- * @return {?}
5934
- */
5935
- function (err) {
5936
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5937
5931
  }));
5938
5932
  };
5939
5933
  /**
@@ -5946,7 +5940,7 @@
5946
5940
  this
5947
5941
  .app_s
5948
5942
  .getState()
5949
- .wkf_obj = new Object();
5943
+ .wkf_obj = {};
5950
5944
  this
5951
5945
  .app_s
5952
5946
  .getState()
@@ -6203,6 +6197,7 @@
6203
6197
  function () { _this.do_init(); }), 500);
6204
6198
  return;
6205
6199
  }
6200
+ this.sort_field = "case when CHARINDEX('" + this.user_idp + "',autori)>0 then 1 else 0 end desc,codice desc";
6206
6201
  /** @type {?} */
6207
6202
  var p = new QParam();
6208
6203
  p.sql = "SELECT_WKF_APP_INFO";
@@ -6234,15 +6229,15 @@
6234
6229
  _this.user_email = _this.app_s.user_email;
6235
6230
  _this.app_s.getState().topnavTitle = _this.att_panelcat;
6236
6231
  /** @type {?} */
6237
- var p_1 = new QParam();
6238
- p_1.sql = "SELECT_UTENTE_WKF_ADMIN";
6239
- p_1.types = ['string', 'string'];
6240
- p_1.values = [
6232
+ var p_2 = new QParam();
6233
+ p_2.sql = "SELECT_UTENTE_WKF_ADMIN";
6234
+ p_2.types = ['string', 'string'];
6235
+ p_2.values = [
6241
6236
  _this.id_applicativo, _this.app_s.user
6242
6237
  ];
6243
6238
  _this
6244
6239
  .m_dataService
6245
- .doQuery(p_1)
6240
+ .doQuery(p_2)
6246
6241
  .subscribe((/**
6247
6242
  * @param {?} data
6248
6243
  * @return {?}
@@ -6266,13 +6261,13 @@
6266
6261
  _this.is_PowerUser = true;
6267
6262
  }
6268
6263
  /** @type {?} */
6269
- var p_2 = new QParam();
6270
- p_2.sql = "SELECT_WLIVELLIV2";
6271
- p_2.types = ['string', 'string'];
6272
- p_2.values = [_this.id_applicativo, ''];
6264
+ var p_3 = new QParam();
6265
+ p_3.sql = "SELECT_WLIVELLIV2";
6266
+ p_3.types = ['string', 'string'];
6267
+ p_3.values = [_this.id_applicativo, ''];
6273
6268
  _this
6274
6269
  .m_dataService
6275
- .doQuery(p_2)
6270
+ .doQuery(p_3)
6276
6271
  .subscribe((/**
6277
6272
  * @param {?} data
6278
6273
  * @return {?}
@@ -6283,13 +6278,13 @@
6283
6278
  _this.run_grid();
6284
6279
  _this.ok_conf_s(data.result_data);
6285
6280
  /** @type {?} */
6286
- var p_3 = new QParam();
6287
- p_3.sql = "SELECT_ROLES_VISORI";
6288
- p_3.types = ['string'];
6289
- p_3.values = [_this.id_applicativo];
6281
+ var p_4 = new QParam();
6282
+ p_4.sql = "SELECT_ROLES_VISORI";
6283
+ p_4.types = ['string'];
6284
+ p_4.values = [_this.id_applicativo];
6290
6285
  _this
6291
6286
  .m_dataService
6292
- .doQuery(p_3)
6287
+ .doQuery(p_4)
6293
6288
  .subscribe((/**
6294
6289
  * @param {?} data
6295
6290
  * @return {?}
@@ -8480,8 +8475,8 @@
8480
8475
  //automatic load data from database default is true
8481
8476
  _this.sql = "";
8482
8477
  _this.label = "";
8483
- _this.types = new Array();
8484
- _this.values = new Array();
8478
+ _this.types = [];
8479
+ _this.values = [];
8485
8480
  _this.hidden = false;
8486
8481
  _this.db_type = "1";
8487
8482
  _this.enabled = true;
@@ -8495,7 +8490,7 @@
8495
8490
  _this.focusout = new core.EventEmitter();
8496
8491
  _this.descri_val = "";
8497
8492
  _this.sItem = "";
8498
- _this.searchItemsFiltered = new Array();
8493
+ _this.searchItemsFiltered = [];
8499
8494
  _this.is_loaded = false;
8500
8495
  _this.selval = null;
8501
8496
  _this.errorMsg = "";
@@ -8538,10 +8533,10 @@
8538
8533
  */
8539
8534
  function (e) {
8540
8535
  // console.log('onChange()');
8541
- this.searchItemsFiltered = new Array();
8536
+ this.searchItemsFiltered = [];
8542
8537
  if (this.sItem != null) {
8543
8538
  if (this.sItem != '') {
8544
- this.searchItemsFiltered = new Array();
8539
+ this.searchItemsFiltered = [];
8545
8540
  /** @type {?} */
8546
8541
  var ps = this.sItem.toLowerCase();
8547
8542
  for (var i = 0; i < this.myData.length; i++) {
@@ -8575,7 +8570,6 @@
8575
8570
  * @return {?}
8576
8571
  */
8577
8572
  function (event) {
8578
- console.log('selectedSearchItem ', event);
8579
8573
  this.setByDescri(event.option.value);
8580
8574
  this.sItem = event.option.value;
8581
8575
  this.ch(event);
@@ -8589,7 +8583,6 @@
8589
8583
  * @return {?}
8590
8584
  */
8591
8585
  function ($event) {
8592
- console.log('ch ', $event);
8593
8586
  /** @type {?} */
8594
8587
  var value = this.getValue();
8595
8588
  this
@@ -12707,6 +12700,7 @@
12707
12700
  this.b_edit_loaded = false;
12708
12701
  this.title = "ALLEGATI";
12709
12702
  this.b_ini = false;
12703
+ this.sovrascrivi_path = '';
12710
12704
  this.single = true;
12711
12705
  this.descrizione = '';
12712
12706
  this.label = 'Descrizione Allegato';
@@ -12755,9 +12749,10 @@
12755
12749
  */
12756
12750
  function (ax) {
12757
12751
  if (ax.App != null)
12758
- window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12759
- if (ax.APP != null)
12760
- window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.APP + '/' + ax.K + '/' + ax.Filename);
12752
+ if (this.sovrascrivi_path == '')
12753
+ window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12754
+ else
12755
+ window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12761
12756
  };
12762
12757
  /**
12763
12758
  * @param {?} ax
@@ -13891,7 +13886,7 @@
13891
13886
  };
13892
13887
  win_log.decorators = [
13893
13888
  { type: core.Component, args: [{
13894
- template: "\n <div mat-dialog-content style=\"width:100%;font-size: 12px;height: 90vh\">\n <mat-tab-group #zz style=\"width:100%;height: 100%\"\n [style.height]=\"m_appService.getState().body_height\">\n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n \n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\">{{title}}\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" style=\"width:100%;\">\n\n \n \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('')\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div mat-dialog-content>\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\">\n\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 </div>\n <br>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit && !commenti_insert\">\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\" >\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n ",
13889
+ 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=\"80\" >\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-90)+'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\n <mat-toolbar color=\"primary\">\n <div fxLayout=\"row\" >\n {{title}}\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" >\n \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('')\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div></div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-90)+'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\">\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 <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit && !commenti_insert\">\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\" >\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n ",
13895
13890
  styles: ["\n\n\n "]
13896
13891
  }] }
13897
13892
  ];
@@ -16566,7 +16561,7 @@
16566
16561
  var _this = this;
16567
16562
  if (inser_c === void 0) { inser_c = false; }
16568
16563
  /** @type {?} */
16569
- var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
16564
+ var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%" });
16570
16565
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
16571
16566
  dialogRef.componentInstance.lettori = this.m_obj.lettori;
16572
16567
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
@@ -16605,15 +16600,19 @@
16605
16600
  }));
16606
16601
  };
16607
16602
  /**
16603
+ * @param {?=} sovra_path
16608
16604
  * @return {?}
16609
16605
  */
16610
16606
  dati_aggiuntivi.prototype.open_upload = /**
16607
+ * @param {?=} sovra_path
16611
16608
  * @return {?}
16612
16609
  */
16613
- function () {
16610
+ function (sovra_path) {
16614
16611
  var _this = this;
16612
+ if (sovra_path === void 0) { sovra_path = ''; }
16615
16613
  /** @type {?} */
16616
16614
  var dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%", height: (this.app_s.getState().body_h - 300) + 'px' });
16615
+ dialogRef.componentInstance.sovrascrivi_path = sovra_path;
16617
16616
  dialogRef.afterClosed().subscribe((/**
16618
16617
  * @param {?} result
16619
16618
  * @return {?}
@@ -17308,9 +17307,6 @@
17308
17307
  * @return {?}
17309
17308
  */
17310
17309
  function () {
17311
- console.log('return_edit');
17312
- console.log('rthis.m_obj.autori ', this.m_obj.autori);
17313
- console.log('this.user_idp ', this.user_idp);
17314
17310
  for (var i = 0; i < this.livs.length; i++)
17315
17311
  if (this.livs[i].livello == this.m_obj.stato) {
17316
17312
  if (this.livs[i].abilita_indietro == 1)