@fluxhub/fluxhub-lib 1.0.427 → 1.0.429
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 +73 -19
- 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/auth_guard.js +5 -4
- package/esm2015/lib/controls/fhgrid.js +12 -12
- package/esm2015/lib/services/utility.service.js +46 -3
- package/esm2015/lib/wkf_engine/win_info_doc.js +13 -3
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +2 -2
- package/esm5/lib/auth_guard.js +5 -4
- package/esm5/lib/controls/fhgrid.js +12 -12
- package/esm5/lib/services/utility.service.js +50 -3
- package/esm5/lib/wkf_engine/win_info_doc.js +12 -3
- package/esm5/lib/wkf_engine/wkf_header_bar.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +70 -19
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +73 -19
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/services/utility.service.d.ts +2 -1
- package/lib/wkf_engine/win_info_doc.d.ts +3 -1
- package/package.json +1 -1
|
@@ -835,10 +835,58 @@
|
|
|
835
835
|
};
|
|
836
836
|
/**
|
|
837
837
|
* @param {?} dt
|
|
838
|
-
* @param {?=} adds
|
|
839
838
|
* @return {?}
|
|
840
839
|
*/
|
|
841
840
|
UtilityService.prototype.sql_date = /**
|
|
841
|
+
* @param {?} dt
|
|
842
|
+
* @return {?}
|
|
843
|
+
*/
|
|
844
|
+
function (dt) {
|
|
845
|
+
if (dt == null)
|
|
846
|
+
return 'dbnull';
|
|
847
|
+
if (typeof dt == "undefined")
|
|
848
|
+
return 'dbnull';
|
|
849
|
+
if (typeof dt == "string")
|
|
850
|
+
return 'dbnull';
|
|
851
|
+
if (dt.getFullYear() == 1970)
|
|
852
|
+
return 'dbnull';
|
|
853
|
+
/** @type {?} */
|
|
854
|
+
var mm = dt.getMonth() + 1;
|
|
855
|
+
// getMonth() is zero-based
|
|
856
|
+
/** @type {?} */
|
|
857
|
+
var dd = dt.getDate();
|
|
858
|
+
if (this.app_s.SQL_SERVER_LANG == 'it')
|
|
859
|
+
return [
|
|
860
|
+
(dd > 9
|
|
861
|
+
? ''
|
|
862
|
+
: '0') + dd,
|
|
863
|
+
'-',
|
|
864
|
+
(mm > 9
|
|
865
|
+
? ''
|
|
866
|
+
: '0') + mm,
|
|
867
|
+
'-',
|
|
868
|
+
dt.getFullYear()
|
|
869
|
+
].join('');
|
|
870
|
+
if (this.app_s.SQL_SERVER_LANG == 'uk')
|
|
871
|
+
return [
|
|
872
|
+
dt.getFullYear(),
|
|
873
|
+
'-',
|
|
874
|
+
(mm > 9
|
|
875
|
+
? ''
|
|
876
|
+
: '0') + mm,
|
|
877
|
+
'-',
|
|
878
|
+
(dd > 9
|
|
879
|
+
? ''
|
|
880
|
+
: '0') + dd
|
|
881
|
+
].join('');
|
|
882
|
+
return "Parametro SQL_SERVER_LANG non corretto";
|
|
883
|
+
};
|
|
884
|
+
/**
|
|
885
|
+
* @param {?} dt
|
|
886
|
+
* @param {?=} adds
|
|
887
|
+
* @return {?}
|
|
888
|
+
*/
|
|
889
|
+
UtilityService.prototype.sql_date_grid = /**
|
|
842
890
|
* @param {?} dt
|
|
843
891
|
* @param {?=} adds
|
|
844
892
|
* @return {?}
|
|
@@ -869,7 +917,6 @@
|
|
|
869
917
|
? ''
|
|
870
918
|
: '0') + dd
|
|
871
919
|
].join('') + adds + '\',127)';
|
|
872
|
-
return "Parametro SQL_SERVER_LANG non corretto";
|
|
873
920
|
};
|
|
874
921
|
/**
|
|
875
922
|
* @param {?} timeU
|
|
@@ -7234,26 +7281,26 @@
|
|
|
7234
7281
|
if (add_end)
|
|
7235
7282
|
filter_v = filter_v + ' and ';
|
|
7236
7283
|
filter_v = filter_v + ' (';
|
|
7237
|
-
if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.
|
|
7238
|
-
filter_v = filter_v + key + ">=" + this.uti_s.
|
|
7239
|
-
if (obj_filtro.dateTo != null && this.uti_s.
|
|
7284
|
+
if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull')
|
|
7285
|
+
filter_v = filter_v + key + ">=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1));
|
|
7286
|
+
if (obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 1)) != 'dbnull') {
|
|
7240
7287
|
if (obj_filtro.dateFrom != null)
|
|
7241
7288
|
filter_v = filter_v + ' and ';
|
|
7242
|
-
filter_v = filter_v + key + "<=" + this.uti_s.
|
|
7289
|
+
filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 1)) + "";
|
|
7243
7290
|
}
|
|
7244
|
-
else if (obj_filtro.dateFrom != null && this.uti_s.
|
|
7291
|
+
else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
|
|
7245
7292
|
if (obj_filtro.type == "greaterThan")
|
|
7246
|
-
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.
|
|
7293
|
+
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7247
7294
|
if (obj_filtro.type == "equals")
|
|
7248
|
-
filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.
|
|
7295
|
+
filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + ' and ' + key + ' <=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1), ' 23:59:00') + ')';
|
|
7249
7296
|
if (obj_filtro.type == "notEqual")
|
|
7250
|
-
filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.
|
|
7297
|
+
filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7251
7298
|
if (obj_filtro.type == "lessThan")
|
|
7252
|
-
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.
|
|
7299
|
+
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7253
7300
|
if (obj_filtro.type == "lessThanOrEqual")
|
|
7254
|
-
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.
|
|
7301
|
+
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7255
7302
|
if (obj_filtro.type == "greaterThanOrEqual")
|
|
7256
|
-
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.
|
|
7303
|
+
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) + '';
|
|
7257
7304
|
}
|
|
7258
7305
|
filter_v = filter_v + ' )';
|
|
7259
7306
|
}
|
|
@@ -13417,10 +13464,15 @@
|
|
|
13417
13464
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13418
13465
|
*/
|
|
13419
13466
|
var win_info_doc = /** @class */ (function () {
|
|
13420
|
-
function win_info_doc(dialogRef, m_appService) {
|
|
13467
|
+
function win_info_doc(dialogRef, m_appService, toast) {
|
|
13421
13468
|
this.dialogRef = dialogRef;
|
|
13422
13469
|
this.m_appService = m_appService;
|
|
13470
|
+
this.toast = toast;
|
|
13423
13471
|
this.hide_richiedente = false;
|
|
13472
|
+
if (this.m_appService.getState().wkf_doc_info.codice == null) {
|
|
13473
|
+
this.toast.info('Info non disponibili');
|
|
13474
|
+
return;
|
|
13475
|
+
}
|
|
13424
13476
|
this.codice = this.m_appService.getState().wkf_doc_info.codice;
|
|
13425
13477
|
this.data_richiesta = this.m_appService.getState().wkf_doc_info.data_richiesta;
|
|
13426
13478
|
this.richiedente = this.m_appService.getState().wkf_doc_info.richiedente;
|
|
@@ -13446,7 +13498,8 @@
|
|
|
13446
13498
|
/** @nocollapse */
|
|
13447
13499
|
win_info_doc.ctorParameters = function () { return [
|
|
13448
13500
|
{ type: material.MatDialogRef },
|
|
13449
|
-
{ type: AppService }
|
|
13501
|
+
{ type: AppService },
|
|
13502
|
+
{ type: ngxToastr.ToastrService }
|
|
13450
13503
|
]; };
|
|
13451
13504
|
return win_info_doc;
|
|
13452
13505
|
}());
|
|
@@ -17555,7 +17608,7 @@
|
|
|
17555
17608
|
wkf_header_bar.decorators = [
|
|
17556
17609
|
{ type: core.Component, args: [{
|
|
17557
17610
|
selector: 'wkf_header_bar',
|
|
17558
|
-
template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" style=\"background-color: #F5F5F5\">\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n\n<button mat-flat-button (click)=\"back()\" style=\"background-color: #F5F5F5\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>\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> \n-->\n\n</div>\n \n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n\n\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon> Info Doc</button>\n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon> Commenti {{dt_agg?.comm_c}}</button>\n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon> Allegati {{dt_agg?.all_c}}</button>\n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon> Workflow</button>\n\n</div>\n</div>\n\n "
|
|
17611
|
+
template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" style=\"background-color: #F5F5F5\">\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n\n<button mat-flat-button (click)=\"back()\" style=\"background-color: #FEFEFE\" style=\"background-color: #F5F5F5\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>\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> \n-->\n\n</div>\n \n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n\n\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon> Info Doc</button>\n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon> Commenti {{dt_agg?.comm_c}}</button>\n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon> Allegati {{dt_agg?.all_c}}</button>\n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon> Workflow</button>\n\n</div>\n</div>\n\n "
|
|
17559
17612
|
}] }
|
|
17560
17613
|
];
|
|
17561
17614
|
/** @nocollapse */
|
|
@@ -20051,7 +20104,7 @@
|
|
|
20051
20104
|
/** @type {?} */
|
|
20052
20105
|
var p_1 = new QParam();
|
|
20053
20106
|
p_1.sql = "SELECT_APPS_USER_ALL";
|
|
20054
|
-
_this.app_s.getState().app_enabled =
|
|
20107
|
+
_this.app_s.getState().app_enabled = [];
|
|
20055
20108
|
p_1.types = ['string'];
|
|
20056
20109
|
p_1.values = [_this.app_s.user];
|
|
20057
20110
|
//console.log('canActivate 8');
|
|
@@ -20086,6 +20139,7 @@
|
|
|
20086
20139
|
}));
|
|
20087
20140
|
}
|
|
20088
20141
|
else {
|
|
20142
|
+
console.log('this.app_s ', _this.app_s);
|
|
20089
20143
|
/** @type {?} */
|
|
20090
20144
|
var p_2 = new QParam();
|
|
20091
20145
|
if (_this.app_s.user_isadmin != null)
|
|
@@ -20094,7 +20148,7 @@
|
|
|
20094
20148
|
return;
|
|
20095
20149
|
}
|
|
20096
20150
|
p_2.sql = "SELECT_APPS_USER_ALL";
|
|
20097
|
-
_this.app_s.getState().app_enabled =
|
|
20151
|
+
_this.app_s.getState().app_enabled = [];
|
|
20098
20152
|
p_2.types = ['string'];
|
|
20099
20153
|
p_2.values = [_this.app_s.user];
|
|
20100
20154
|
//console.log('canActivate 8');
|
|
@@ -20114,7 +20168,7 @@
|
|
|
20114
20168
|
}
|
|
20115
20169
|
}
|
|
20116
20170
|
}
|
|
20117
|
-
|
|
20171
|
+
console.log(_this.arr_accessi, ' ', _this.routingDestination);
|
|
20118
20172
|
_this.toast.error("ACCESS DENIED [0X0005]");
|
|
20119
20173
|
resolve(false);
|
|
20120
20174
|
_this.slimLoadingBarService.complete();
|