@fluxhub/fluxhub-lib 1.0.441 → 1.0.443
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +32 -42
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhautocomplete.js +6 -8
- package/esm2015/lib/wkf_engine/win_log.js +38 -23
- package/esm2015/lib/wkf_engine/wkfapp.js +7 -14
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +3 -6
- package/esm5/lib/controls/fhautocomplete.js +6 -8
- package/esm5/lib/wkf_engine/win_log.js +2 -2
- package/esm5/lib/wkf_engine/wkfapp.js +25 -32
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +3 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +50 -45
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +32 -42
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
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(
|
|
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
|
-
|
|
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 =
|
|
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
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
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(
|
|
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
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
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(
|
|
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
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
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(
|
|
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 =
|
|
8484
|
-
_this.values =
|
|
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 =
|
|
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 =
|
|
8536
|
+
this.searchItemsFiltered = [];
|
|
8542
8537
|
if (this.sItem != null) {
|
|
8543
8538
|
if (this.sItem != '') {
|
|
8544
|
-
this.searchItemsFiltered =
|
|
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
|
|
@@ -13891,7 +13884,7 @@
|
|
|
13891
13884
|
};
|
|
13892
13885
|
win_log.decorators = [
|
|
13893
13886
|
{ type: core.Component, args: [{
|
|
13894
|
-
template: "\n <
|
|
13887
|
+
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> \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> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button> \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
13888
|
styles: ["\n\n\n "]
|
|
13896
13889
|
}] }
|
|
13897
13890
|
];
|
|
@@ -16566,7 +16559,7 @@
|
|
|
16566
16559
|
var _this = this;
|
|
16567
16560
|
if (inser_c === void 0) { inser_c = false; }
|
|
16568
16561
|
/** @type {?} */
|
|
16569
|
-
var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%"
|
|
16562
|
+
var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%" });
|
|
16570
16563
|
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
16571
16564
|
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
16572
16565
|
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
@@ -16670,7 +16663,7 @@
|
|
|
16670
16663
|
p.names.push(arr[i].names);
|
|
16671
16664
|
if (arr[i].values != null) {
|
|
16672
16665
|
if (arr[i].types == 'boolean')
|
|
16673
|
-
if (arr[i].values
|
|
16666
|
+
if (arr[i].values)
|
|
16674
16667
|
p.values.push('1');
|
|
16675
16668
|
else
|
|
16676
16669
|
p.values.push('0');
|
|
@@ -17308,9 +17301,6 @@
|
|
|
17308
17301
|
* @return {?}
|
|
17309
17302
|
*/
|
|
17310
17303
|
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
17304
|
for (var i = 0; i < this.livs.length; i++)
|
|
17315
17305
|
if (this.livs[i].livello == this.m_obj.stato) {
|
|
17316
17306
|
if (this.livs[i].abilita_indietro == 1)
|