@fluxhub/fluxhub-lib 9.0.0 → 9.0.2
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 +476 -347
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/app_manager/fhrolemanager.js +13 -9
- package/esm2015/lib/controls/app_manager/fhtablevaluesmanager.js +13 -9
- package/esm2015/lib/controls/app_manager/win_manage_roles.js +4 -2
- package/esm2015/lib/controls/app_manager/win_manage_values.js +12 -10
- package/esm2015/lib/controls/fhautocomplete.js +14 -17
- package/esm2015/lib/controls/fhcombobox.js +15 -13
- package/esm2015/lib/controls/fhcurrencyfield.js +9 -7
- package/esm2015/lib/controls/fhcurrencyformatter.js +4 -2
- package/esm2015/lib/controls/fhdatepicker.js +4 -2
- package/esm2015/lib/controls/fhfieldpicklist.js +11 -9
- package/esm2015/lib/controls/fhgrid.js +18 -10
- package/esm2015/lib/controls/fhgrid_json.js +5 -3
- package/esm2015/lib/controls/fhimagepreview.js +4 -2
- package/esm2015/lib/controls/fhlist.js +16 -14
- package/esm2015/lib/controls/fhnumeric.js +10 -8
- package/esm2015/lib/controls/fhrichtext.js +35 -33
- package/esm2015/lib/controls/fhupload.js +42 -38
- package/esm2015/lib/controls/fhuploadpanel.js +24 -16
- package/esm2015/lib/controls/fhuserfield.js +11 -7
- package/esm2015/lib/controls/fhuserpicker.js +33 -31
- package/esm2015/lib/controls/grid_editors/fhcombobox_filter.js +15 -13
- package/esm2015/lib/controls/grid_editors/numeric-editor.component.js +6 -4
- package/esm2015/lib/controls/grid_editors/textarea-editor.component.js +2 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +6 -4
- package/esm2015/lib/controls/win_time_slider.js +11 -9
- package/esm2015/lib/controls/win_user_info.js +18 -16
- package/esm2015/lib/form_builder/form_builder.js +24 -20
- package/esm2015/lib/services/office_automator.service.js +4 -2
- package/esm2015/lib/wkf_engine/win_commenti.js +11 -7
- package/esm2015/lib/wkf_engine/win_insert_commento.js +4 -2
- package/esm2015/lib/wkf_engine/win_log.js +11 -7
- package/esm2015/lib/wkf_engine/win_uploads.js +6 -4
- package/esm2015/lib/wkf_engine/wkfapp.js +21 -11
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +38 -26
- package/esm2015/public_api.js +1 -1
- package/esm5/lib/controls/app_manager/fhrolemanager.js +15 -9
- package/esm5/lib/controls/app_manager/fhtablevaluesmanager.js +15 -9
- package/esm5/lib/controls/app_manager/win_manage_roles.js +5 -2
- package/esm5/lib/controls/app_manager/win_manage_values.js +13 -10
- package/esm5/lib/controls/fhautocomplete.js +15 -17
- package/esm5/lib/controls/fhcombobox.js +16 -13
- package/esm5/lib/controls/fhcurrencyfield.js +10 -7
- package/esm5/lib/controls/fhcurrencyformatter.js +5 -2
- package/esm5/lib/controls/fhdatepicker.js +5 -2
- package/esm5/lib/controls/fhfieldpicklist.js +11 -9
- package/esm5/lib/controls/fhgrid.js +19 -10
- package/esm5/lib/controls/fhgrid_json.js +5 -3
- package/esm5/lib/controls/fhimagepreview.js +5 -2
- package/esm5/lib/controls/fhlist.js +17 -14
- package/esm5/lib/controls/fhnumeric.js +11 -8
- package/esm5/lib/controls/fhrichtext.js +36 -33
- package/esm5/lib/controls/fhupload.js +42 -38
- package/esm5/lib/controls/fhuploadpanel.js +26 -18
- package/esm5/lib/controls/fhuserfield.js +12 -7
- package/esm5/lib/controls/fhuserpicker.js +33 -31
- package/esm5/lib/controls/grid_editors/fhcombobox_filter.js +16 -13
- package/esm5/lib/controls/grid_editors/numeric-editor.component.js +7 -4
- package/esm5/lib/controls/grid_editors/textarea-editor.component.js +2 -2
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +7 -4
- package/esm5/lib/controls/win_time_slider.js +12 -9
- package/esm5/lib/controls/win_user_info.js +18 -16
- package/esm5/lib/form_builder/form_builder.js +24 -20
- package/esm5/lib/services/office_automator.service.js +4 -2
- package/esm5/lib/wkf_engine/win_commenti.js +11 -7
- package/esm5/lib/wkf_engine/win_insert_commento.js +4 -2
- package/esm5/lib/wkf_engine/win_log.js +11 -7
- package/esm5/lib/wkf_engine/win_uploads.js +7 -4
- package/esm5/lib/wkf_engine/wkfapp.js +29 -19
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +42 -28
- package/esm5/public_api.js +1 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +440 -335
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +476 -347
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1105,9 +1105,12 @@
|
|
|
1105
1105
|
};
|
|
1106
1106
|
// dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
|
|
1107
1107
|
NumericEditorComponent.prototype.ngAfterViewInit = function () {
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1108
|
+
var _this = this;
|
|
1109
|
+
setTimeout(function () {
|
|
1110
|
+
//console.log(this.input.element.nativeElement);
|
|
1111
|
+
// this.input.first.nativeElement.focus();
|
|
1112
|
+
_this.input.element.nativeElement.focus();
|
|
1113
|
+
});
|
|
1111
1114
|
// this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
|
|
1112
1115
|
/*if (this.input.nativeElement.classList.contains('ng-untouched')) {
|
|
1113
1116
|
this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
|
|
@@ -1175,14 +1178,17 @@
|
|
|
1175
1178
|
this.dialogRef.close(this.res);
|
|
1176
1179
|
};
|
|
1177
1180
|
win_time_slider.prototype.ngAfterViewInit = function () {
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1181
|
+
var _this = this;
|
|
1182
|
+
setTimeout(function () {
|
|
1183
|
+
if (_this.m_appService.getState().appo_dialog != null)
|
|
1184
|
+
if (_this.m_appService.getState().appo_dialog.val != null) {
|
|
1185
|
+
var a = _this.m_appService.getState().appo_dialog.val.split(':');
|
|
1186
|
+
_this.h = parseInt(a[0]);
|
|
1187
|
+
_this.m = parseInt(a[1]);
|
|
1188
|
+
_this.res = _this.m_appService.getState().appo_dialog.val;
|
|
1189
|
+
return;
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1186
1192
|
};
|
|
1187
1193
|
win_time_slider.ctorParameters = function () { return [
|
|
1188
1194
|
{ type: dialog.MatDialogRef },
|
|
@@ -1894,20 +1900,23 @@
|
|
|
1894
1900
|
this.setByDescri(this.valDef);
|
|
1895
1901
|
};
|
|
1896
1902
|
FHListComponent.prototype.ngAfterViewInit = function () {
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1903
|
+
var _this = this;
|
|
1904
|
+
setTimeout(function () {
|
|
1905
|
+
// console.log("ngAfterViewInit"); console.log(this.init_fill);
|
|
1906
|
+
if (_this.init_fill == true) {
|
|
1907
|
+
if (_this.sql == '') {
|
|
1908
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
1909
|
+
return;
|
|
1910
|
+
}
|
|
1911
|
+
_this.fillCombo();
|
|
1902
1912
|
}
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
.emit();
|
|
1913
|
+
else {
|
|
1914
|
+
_this.errorMsg = "";
|
|
1915
|
+
}
|
|
1916
|
+
_this
|
|
1917
|
+
.initend
|
|
1918
|
+
.emit();
|
|
1919
|
+
});
|
|
1911
1920
|
};
|
|
1912
1921
|
FHListComponent.prototype.sc = function () {
|
|
1913
1922
|
this
|
|
@@ -2261,19 +2270,22 @@
|
|
|
2261
2270
|
this.setByDescri(this.valDef);
|
|
2262
2271
|
};
|
|
2263
2272
|
FHComboboxComponent.prototype.ngAfterViewInit = function () {
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2273
|
+
var _this = this;
|
|
2274
|
+
setTimeout(function () {
|
|
2275
|
+
if (_this.init_fill == true) {
|
|
2276
|
+
if (_this.sql == '') {
|
|
2277
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
2278
|
+
return;
|
|
2279
|
+
}
|
|
2280
|
+
_this.fillCombo();
|
|
2268
2281
|
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
.emit();
|
|
2282
|
+
else {
|
|
2283
|
+
_this.errorMsg = "";
|
|
2284
|
+
}
|
|
2285
|
+
_this
|
|
2286
|
+
.initend
|
|
2287
|
+
.emit();
|
|
2288
|
+
});
|
|
2277
2289
|
};
|
|
2278
2290
|
FHComboboxComponent.prototype.sc = function () {
|
|
2279
2291
|
this
|
|
@@ -2462,43 +2474,45 @@
|
|
|
2462
2474
|
};
|
|
2463
2475
|
FHUploadComponent.prototype.ngAfterViewInit = function () {
|
|
2464
2476
|
var _this = this;
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
_this.
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
if (_this.dialogRef
|
|
2474
|
-
_this.dialogRef.componentInstance
|
|
2475
|
-
|
|
2477
|
+
setTimeout(function () {
|
|
2478
|
+
var uo = {};
|
|
2479
|
+
uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(_this.app_s.COMPANY_KEY + "token") }];
|
|
2480
|
+
// console.log('ngAfterViewInit!!');
|
|
2481
|
+
_this.uploader.setOptions(uo);
|
|
2482
|
+
_this.uploader.onCompleteAll = function () {
|
|
2483
|
+
_this.loading = false;
|
|
2484
|
+
_this.upload_ended.emit();
|
|
2485
|
+
if (_this.dialogRef != null)
|
|
2486
|
+
if (_this.dialogRef.componentInstance != null) {
|
|
2487
|
+
_this.dialogRef.componentInstance.update_progess(100);
|
|
2488
|
+
_this.dialogRef = null;
|
|
2489
|
+
}
|
|
2490
|
+
};
|
|
2491
|
+
_this.uploader.onErrorItem = function (a, b, c, d) {
|
|
2492
|
+
_this.toastr.error(b);
|
|
2493
|
+
};
|
|
2494
|
+
_this.uploader.onAfterAddingFile = function (fileItem) {
|
|
2495
|
+
_this.ch(fileItem);
|
|
2496
|
+
};
|
|
2497
|
+
_this.uploader.onProgressItem = function (fileItem, progress) {
|
|
2498
|
+
// console.log(fileItem);
|
|
2499
|
+
// console.log(progress);
|
|
2500
|
+
_this.loading = true;
|
|
2501
|
+
if (_this.dialogRef != null)
|
|
2502
|
+
if (_this.dialogRef.componentInstance != null)
|
|
2503
|
+
_this.dialogRef.componentInstance.update_progess(progress);
|
|
2504
|
+
};
|
|
2505
|
+
_this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
|
|
2506
|
+
switch (filter.name) {
|
|
2507
|
+
case 'fileSize':
|
|
2508
|
+
var ar = Math.round(item.size / 1024 / 1024);
|
|
2509
|
+
_this.toastr.error(_this.limit_string.split('<size>').join('' + ar));
|
|
2510
|
+
break;
|
|
2511
|
+
default:
|
|
2512
|
+
_this.toastr.error("Errore: " + filter.name);
|
|
2476
2513
|
}
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
_this.toastr.error(b);
|
|
2480
|
-
};
|
|
2481
|
-
this.uploader.onAfterAddingFile = function (fileItem) {
|
|
2482
|
-
_this.ch(fileItem);
|
|
2483
|
-
};
|
|
2484
|
-
this.uploader.onProgressItem = function (fileItem, progress) {
|
|
2485
|
-
// console.log(fileItem);
|
|
2486
|
-
// console.log(progress);
|
|
2487
|
-
_this.loading = true;
|
|
2488
|
-
if (_this.dialogRef != null)
|
|
2489
|
-
if (_this.dialogRef.componentInstance != null)
|
|
2490
|
-
_this.dialogRef.componentInstance.update_progess(progress);
|
|
2491
|
-
};
|
|
2492
|
-
this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
|
|
2493
|
-
switch (filter.name) {
|
|
2494
|
-
case 'fileSize':
|
|
2495
|
-
var ar = Math.round(item.size / 1024 / 1024);
|
|
2496
|
-
_this.toastr.error(_this.limit_string.split('<size>').join('' + ar));
|
|
2497
|
-
break;
|
|
2498
|
-
default:
|
|
2499
|
-
_this.toastr.error("Errore: " + filter.name);
|
|
2500
|
-
}
|
|
2501
|
-
};
|
|
2514
|
+
};
|
|
2515
|
+
});
|
|
2502
2516
|
};
|
|
2503
2517
|
FHUploadComponent.prototype.download_all = function () {
|
|
2504
2518
|
window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
|
|
@@ -2531,7 +2545,9 @@
|
|
|
2531
2545
|
};
|
|
2532
2546
|
if (this.dialogRef == null) {
|
|
2533
2547
|
this.dialogRef = this.dialog.open(WinWait, { 'disableClose': true });
|
|
2534
|
-
|
|
2548
|
+
setTimeout(function () {
|
|
2549
|
+
_this.dialogRef.componentInstance.label = _this.label_attendere;
|
|
2550
|
+
});
|
|
2535
2551
|
this.dialogRef.afterClosed().subscribe(function (result) {
|
|
2536
2552
|
if (result != "") {
|
|
2537
2553
|
}
|
|
@@ -3063,11 +3079,13 @@
|
|
|
3063
3079
|
.subscribe(function (data) {
|
|
3064
3080
|
if (data != null)
|
|
3065
3081
|
if (data.result_msg == "OK") {
|
|
3066
|
-
var
|
|
3082
|
+
var dialogRef_1 = _this
|
|
3067
3083
|
.dialog
|
|
3068
3084
|
.open(FHWinComboSelect);
|
|
3069
|
-
|
|
3070
|
-
|
|
3085
|
+
setTimeout(function () {
|
|
3086
|
+
dialogRef_1.componentInstance.set_selection("Tipologia Allegato", data.result_data);
|
|
3087
|
+
});
|
|
3088
|
+
dialogRef_1
|
|
3071
3089
|
.afterClosed()
|
|
3072
3090
|
.subscribe(function (result) {
|
|
3073
3091
|
if (result != null) {
|
|
@@ -3094,9 +3112,11 @@
|
|
|
3094
3112
|
var dialogRef = this
|
|
3095
3113
|
.dialog
|
|
3096
3114
|
.open(WinAskTextBigComponent);
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3115
|
+
setTimeout(function () {
|
|
3116
|
+
dialogRef.componentInstance.label = "Descrizione Allegato";
|
|
3117
|
+
dialogRef.componentInstance.valore = ax.descrizione;
|
|
3118
|
+
dialogRef.componentInstance.min_chars = 0;
|
|
3119
|
+
});
|
|
3100
3120
|
dialogRef
|
|
3101
3121
|
.afterClosed()
|
|
3102
3122
|
.subscribe(function (result) {
|
|
@@ -3159,17 +3179,21 @@
|
|
|
3159
3179
|
};
|
|
3160
3180
|
FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
|
|
3161
3181
|
var _this = this;
|
|
3162
|
-
setTimeout(function () {
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
.
|
|
3168
|
-
.
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3182
|
+
setTimeout(function () {
|
|
3183
|
+
setTimeout(function () {
|
|
3184
|
+
_this.b_initt = true;
|
|
3185
|
+
}, 700);
|
|
3186
|
+
_this.upc.single = false;
|
|
3187
|
+
_this.b_mobile = _this._appservice.getState().pageFullscreen;
|
|
3188
|
+
console.log('this.m_p_tipo ', _this.m_p_tipo);
|
|
3189
|
+
_this
|
|
3190
|
+
.upc
|
|
3191
|
+
.init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
|
|
3192
|
+
if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
|
|
3193
|
+
_this.multi_list = true;
|
|
3194
|
+
}
|
|
3195
|
+
_this.ref_allegato();
|
|
3196
|
+
});
|
|
3173
3197
|
};
|
|
3174
3198
|
FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
|
|
3175
3199
|
if (p_tipo === void 0) { p_tipo = ""; }
|
|
@@ -3638,38 +3662,40 @@
|
|
|
3638
3662
|
};
|
|
3639
3663
|
FHUserPickerComponent.prototype.ngAfterViewInit = function () {
|
|
3640
3664
|
var _this = this;
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
var p = new QParam();
|
|
3644
|
-
p.sql = "SELECT_ALL_USERS";
|
|
3645
|
-
p.types = [];
|
|
3646
|
-
p.values = [];
|
|
3647
|
-
this
|
|
3648
|
-
._dataService
|
|
3649
|
-
.doQuery(p)
|
|
3650
|
-
.subscribe(function (data) {
|
|
3665
|
+
setTimeout(function () {
|
|
3666
|
+
if (_this.all_users) {
|
|
3651
3667
|
var ok_op = false;
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3668
|
+
var p = new QParam();
|
|
3669
|
+
p.sql = "SELECT_ALL_USERS";
|
|
3670
|
+
p.types = [];
|
|
3671
|
+
p.values = [];
|
|
3672
|
+
_this
|
|
3673
|
+
._dataService
|
|
3674
|
+
.doQuery(p)
|
|
3675
|
+
.subscribe(function (data) {
|
|
3676
|
+
var ok_op = false;
|
|
3677
|
+
if (data != null)
|
|
3678
|
+
if (data.result_msg == "OK") {
|
|
3679
|
+
_this.users_list = data.result_data;
|
|
3680
|
+
_this.filtra();
|
|
3681
|
+
ok_op = true;
|
|
3682
|
+
}
|
|
3683
|
+
if (!ok_op) {
|
|
3657
3684
|
}
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
}
|
|
3685
|
+
}, function (err) {
|
|
3686
|
+
_this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
3687
|
+
});
|
|
3688
|
+
}
|
|
3689
|
+
else {
|
|
3690
|
+
if (_this.user_sel != null)
|
|
3691
|
+
if (_this.user_sel.length > 0)
|
|
3692
|
+
return;
|
|
3693
|
+
_this.users_list_sel = new Array();
|
|
3694
|
+
if (_this.users_list != null)
|
|
3695
|
+
for (var i = 0; i < _this.users_list.length; i++)
|
|
3696
|
+
_this.users_list_sel.push(_this.users_list[i]);
|
|
3697
|
+
}
|
|
3698
|
+
});
|
|
3673
3699
|
};
|
|
3674
3700
|
FHUserPickerComponent.prototype.close = function () { this.dialogRef.close(null); };
|
|
3675
3701
|
FHUserPickerComponent.prototype.do_add = function () {
|
|
@@ -3844,8 +3870,11 @@
|
|
|
3844
3870
|
};
|
|
3845
3871
|
}
|
|
3846
3872
|
FHUserFieldComponent.prototype.ngAfterViewInit = function () {
|
|
3847
|
-
|
|
3848
|
-
|
|
3873
|
+
var _this = this;
|
|
3874
|
+
setTimeout(function () {
|
|
3875
|
+
if (_this.required)
|
|
3876
|
+
_this.label = _this.label + ' *';
|
|
3877
|
+
});
|
|
3849
3878
|
};
|
|
3850
3879
|
FHUserFieldComponent.prototype.getUsersNc = function () {
|
|
3851
3880
|
var s_nc = '';
|
|
@@ -3997,10 +4026,12 @@
|
|
|
3997
4026
|
var dialogRef = this.dialog.open(FHUserPickerComponent, {
|
|
3998
4027
|
disableClose: true, width: "700px", height: "550px"
|
|
3999
4028
|
});
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4029
|
+
setTimeout(function () {
|
|
4030
|
+
dialogRef.componentInstance.user_sel = _this.selectedUser;
|
|
4031
|
+
dialogRef.componentInstance.users_list = Object.assign([], _this.all_user);
|
|
4032
|
+
dialogRef.componentInstance.single_sel = !_this.multi;
|
|
4033
|
+
dialogRef.componentInstance.filtra();
|
|
4034
|
+
});
|
|
4004
4035
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
4005
4036
|
if (result == null)
|
|
4006
4037
|
return;
|
|
@@ -4234,7 +4265,9 @@
|
|
|
4234
4265
|
wkfapp.prototype.recupera_richiesta = function () {
|
|
4235
4266
|
var _this = this;
|
|
4236
4267
|
var dialogRef = this.dialog.open(win_recupera_doc, { 'disableClose': true });
|
|
4237
|
-
|
|
4268
|
+
setTimeout(function () {
|
|
4269
|
+
dialogRef.componentInstance.init_w(_this.id_applicativo);
|
|
4270
|
+
});
|
|
4238
4271
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
4239
4272
|
if (result == 'ok')
|
|
4240
4273
|
_this.get_grid().doFill('');
|
|
@@ -4257,10 +4290,12 @@
|
|
|
4257
4290
|
.subscribe(function (data) {
|
|
4258
4291
|
if (data != null)
|
|
4259
4292
|
if (data.result_msg == "OK") {
|
|
4260
|
-
var
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4293
|
+
var dialogRef_1 = _this.dialog.open(win_sostituisci_utente, { 'disableClose': true, 'width': '450px' });
|
|
4294
|
+
setTimeout(function () {
|
|
4295
|
+
dialogRef_1.componentInstance.up.all_user = data.result_data;
|
|
4296
|
+
dialogRef_1.componentInstance.title = "Sostituzione utente: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
|
|
4297
|
+
});
|
|
4298
|
+
dialogRef_1.afterClosed().subscribe(function (result) {
|
|
4264
4299
|
if (result != null)
|
|
4265
4300
|
if (result.result != null)
|
|
4266
4301
|
if (result.result == 'ok') {
|
|
@@ -4300,17 +4335,19 @@
|
|
|
4300
4335
|
if (data != null)
|
|
4301
4336
|
if (data.result_msg == "OK") {
|
|
4302
4337
|
_this.livs_adm = data.result_data;
|
|
4303
|
-
var
|
|
4338
|
+
var s_i_1 = new Array();
|
|
4304
4339
|
var ap_lvl = "";
|
|
4305
4340
|
for (var i = 0; i < _this.livs_adm.length; i++)
|
|
4306
4341
|
if (ap_lvl.indexOf(String(_this.livs_adm[i].livello)) == -1) {
|
|
4307
4342
|
ap_lvl = ap_lvl + String(_this.livs_adm[i].livello) + "|";
|
|
4308
|
-
|
|
4343
|
+
s_i_1.push(_this.livs_adm[i]);
|
|
4309
4344
|
}
|
|
4310
|
-
var
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4345
|
+
var dialogRef_2 = _this.dialog.open(win_riassegna_select_level, { 'disableClose': true });
|
|
4346
|
+
setTimeout(function () {
|
|
4347
|
+
dialogRef_2.componentInstance.setStepCombo(s_i_1);
|
|
4348
|
+
dialogRef_2.componentInstance.title = "Riassegnazione documento: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
|
|
4349
|
+
});
|
|
4350
|
+
dialogRef_2.afterClosed().subscribe(function (result) {
|
|
4314
4351
|
if (result != null)
|
|
4315
4352
|
if (result.result != null)
|
|
4316
4353
|
if (result.result == 'ok') {
|
|
@@ -4334,8 +4371,10 @@
|
|
|
4334
4371
|
if (arrAutori[i].idp != null && arrAutori[i].username == null)
|
|
4335
4372
|
arrAutori[i].username = arrAutori[i].idp;
|
|
4336
4373
|
}
|
|
4337
|
-
|
|
4338
|
-
|
|
4374
|
+
setTimeout(function () {
|
|
4375
|
+
dialogRef.componentInstance.arrAutori = arrAutori;
|
|
4376
|
+
dialogRef.componentInstance.title = "Riassegnazione documento: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
|
|
4377
|
+
});
|
|
4339
4378
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
4340
4379
|
if (result != null)
|
|
4341
4380
|
if (result.result != null)
|
|
@@ -4502,11 +4541,13 @@
|
|
|
4502
4541
|
.subscribe(function (data) {
|
|
4503
4542
|
if (data != null)
|
|
4504
4543
|
if (data.result_msg == "OK") {
|
|
4505
|
-
var
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4544
|
+
var dialogRef_3 = _this.dialog.open(win_riassegna_select_user, { 'disableClose': true, width: '850px' });
|
|
4545
|
+
setTimeout(function () {
|
|
4546
|
+
dialogRef_3.componentInstance.arrAutori = data.result_data;
|
|
4547
|
+
dialogRef_3.componentInstance.title = "Impersona Utente";
|
|
4548
|
+
dialogRef_3.componentInstance.commento_hidden = true;
|
|
4549
|
+
});
|
|
4550
|
+
dialogRef_3.afterClosed().subscribe(function (result) {
|
|
4510
4551
|
if (result != null)
|
|
4511
4552
|
if (result.result != null)
|
|
4512
4553
|
if (result.result == 'ok') {
|
|
@@ -4955,7 +4996,9 @@
|
|
|
4955
4996
|
this.eprog += 10;
|
|
4956
4997
|
if (this.eprog >= 100)
|
|
4957
4998
|
this.eprog = 95;
|
|
4958
|
-
|
|
4999
|
+
setTimeout(function () {
|
|
5000
|
+
dialogRef_W.componentInstance.update_progess(_this.eprog);
|
|
5001
|
+
});
|
|
4959
5002
|
setTimeout(function () {
|
|
4960
5003
|
_this.progress_update(dialogRef_W);
|
|
4961
5004
|
}, 2000);
|
|
@@ -5546,8 +5589,10 @@
|
|
|
5546
5589
|
FHGridComponent.prototype.insert_config = function () {
|
|
5547
5590
|
var _this = this;
|
|
5548
5591
|
this.win_opt = this.m_dialog.open(WinAskTextComponent, { 'disableClose': true });
|
|
5549
|
-
|
|
5550
|
-
|
|
5592
|
+
setTimeout(function () {
|
|
5593
|
+
_this.win_opt.componentInstance.title = 'Salva Configurazione';
|
|
5594
|
+
_this.win_opt.componentInstance.label = 'Nome';
|
|
5595
|
+
});
|
|
5551
5596
|
this.win_opt.afterClosed().subscribe(function (result) {
|
|
5552
5597
|
if (result)
|
|
5553
5598
|
if (result != null) {
|
|
@@ -5737,11 +5782,14 @@
|
|
|
5737
5782
|
return "NA";
|
|
5738
5783
|
};
|
|
5739
5784
|
FHGridComponent.prototype.ngAfterViewInit = function () {
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5785
|
+
var _this = this;
|
|
5786
|
+
setTimeout(function () {
|
|
5787
|
+
if (_this.end_point == null)
|
|
5788
|
+
_this.end_point = _this.m_appService.API_ENDPOINT + _this.m_appService.GRID_ENDPOINT;
|
|
5789
|
+
if (localStorage.getItem(_this.grid_key + '_FILTER_UP') != null)
|
|
5790
|
+
_this.ric_libera = localStorage.getItem(_this.grid_key + '_FILTER_UP');
|
|
5791
|
+
_this.onResize();
|
|
5792
|
+
});
|
|
5745
5793
|
};
|
|
5746
5794
|
FHGridComponent.prototype.okr = function (event) {
|
|
5747
5795
|
//console.log(event.column.colDef.field);
|
|
@@ -5865,7 +5913,9 @@
|
|
|
5865
5913
|
this.dialogRef_W = this.m_dialog.open(WinWait, {
|
|
5866
5914
|
disableClose: true
|
|
5867
5915
|
});
|
|
5868
|
-
|
|
5916
|
+
setTimeout(function () {
|
|
5917
|
+
_this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
|
|
5918
|
+
});
|
|
5869
5919
|
var cmds = [];
|
|
5870
5920
|
var str_fields = "";
|
|
5871
5921
|
var p_col = this.gridOptions.columnApi.getColumnState();
|
|
@@ -5890,7 +5940,9 @@
|
|
|
5890
5940
|
cmds.push(this.officeService.operation("GB_CREA_TABELLA_FROM_DB", "select " + str_fields + " from " + this.tbl_name + " " + this.str_curr_q_p, "3", this.xxopx++));
|
|
5891
5941
|
cmds.push(this.officeService.operation("GB_XLS_SAVE", this.m_appService.LOCAL_PATH + "grid_reports\\" + this.uiid_stampa + "_" + this.m_appService.user + format, "", this.xxopx++));
|
|
5892
5942
|
this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe(function (data) {
|
|
5893
|
-
|
|
5943
|
+
setTimeout(function () {
|
|
5944
|
+
_this.dialogRef_W.componentInstance.update_progess(100);
|
|
5945
|
+
});
|
|
5894
5946
|
var p = new FSInput();
|
|
5895
5947
|
p.p1 =
|
|
5896
5948
|
_this.m_appService.LOCAL_PATH + "grid_reports\\" + _this.uiid_stampa + "_" + _this.m_appService.user +
|
|
@@ -6793,23 +6845,21 @@
|
|
|
6793
6845
|
}
|
|
6794
6846
|
};
|
|
6795
6847
|
FHAutoCompleteComponent.prototype.ngAfterViewInit = function () {
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6848
|
+
var _this = this;
|
|
6849
|
+
setTimeout(function () {
|
|
6850
|
+
if (_this.init_fill) {
|
|
6851
|
+
if (_this.sql == '') {
|
|
6852
|
+
return;
|
|
6853
|
+
}
|
|
6854
|
+
_this.fillCombo();
|
|
6802
6855
|
}
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
}
|
|
6810
|
-
this
|
|
6811
|
-
.initend
|
|
6812
|
-
.emit();
|
|
6856
|
+
else {
|
|
6857
|
+
_this.errorMsg = "";
|
|
6858
|
+
}
|
|
6859
|
+
_this
|
|
6860
|
+
.initend
|
|
6861
|
+
.emit();
|
|
6862
|
+
});
|
|
6813
6863
|
};
|
|
6814
6864
|
/// override some FHValueAccessor implementation
|
|
6815
6865
|
/**
|
|
@@ -7203,7 +7253,10 @@
|
|
|
7203
7253
|
return this.date_sel.toDate();
|
|
7204
7254
|
};
|
|
7205
7255
|
FHDatePickerComponent.prototype.ngAfterViewInit = function () {
|
|
7206
|
-
this
|
|
7256
|
+
var _this = this;
|
|
7257
|
+
setTimeout(function () {
|
|
7258
|
+
_this.setLimits();
|
|
7259
|
+
});
|
|
7207
7260
|
// this.myDatePickerOptions.componentDisabled=!this.enabled;
|
|
7208
7261
|
};
|
|
7209
7262
|
FHDatePickerComponent.prototype.setLimits = function () {
|
|
@@ -7372,7 +7425,10 @@
|
|
|
7372
7425
|
this.el = this.elementRef.nativeElement;
|
|
7373
7426
|
}
|
|
7374
7427
|
FHCurrencyFormatterDirective.prototype.ngAfterViewInit = function () {
|
|
7375
|
-
|
|
7428
|
+
var _this = this;
|
|
7429
|
+
setTimeout(function () {
|
|
7430
|
+
_this.el.value = _this.currencyPipe.transform(_this.el.value);
|
|
7431
|
+
});
|
|
7376
7432
|
};
|
|
7377
7433
|
FHCurrencyFormatterDirective.prototype.onFocus = function (value) {
|
|
7378
7434
|
this.el.value = this.currencyPipe.parse(value); // opossite of transform
|
|
@@ -7476,7 +7532,7 @@
|
|
|
7476
7532
|
TextAreaEditor.prototype.ngAfterViewInit = function () {
|
|
7477
7533
|
var _this = this;
|
|
7478
7534
|
// console.log(this.appdt.nativeElement);
|
|
7479
|
-
setTimeout(function () { return _this.appdt.nativeElement.focus(); }
|
|
7535
|
+
setTimeout(function () { return _this.appdt.nativeElement.focus(); });
|
|
7480
7536
|
};
|
|
7481
7537
|
TextAreaEditor.prototype.agInit = function (params) {
|
|
7482
7538
|
this.params = params;
|
|
@@ -8139,12 +8195,15 @@
|
|
|
8139
8195
|
this.el.nativeElement.focus();
|
|
8140
8196
|
};
|
|
8141
8197
|
FHCurrencyFieldComponent.prototype.ngAfterViewInit = function () {
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8198
|
+
var _this = this;
|
|
8199
|
+
setTimeout(function () {
|
|
8200
|
+
if (_this.required)
|
|
8201
|
+
_this.el.nativeElement.required = _this.required;
|
|
8202
|
+
_this.el.nativeElement.disabled = !_this.enabled;
|
|
8203
|
+
if (_this.value == null)
|
|
8204
|
+
_this.value = 0;
|
|
8205
|
+
_this.formattedAmount = _this.transform(_this.value, _this.decimal);
|
|
8206
|
+
});
|
|
8148
8207
|
};
|
|
8149
8208
|
__decorate([
|
|
8150
8209
|
core.ViewChild('el'),
|
|
@@ -8232,38 +8291,41 @@
|
|
|
8232
8291
|
this.blur.emit(o);
|
|
8233
8292
|
};
|
|
8234
8293
|
FHRichText.prototype.ngAfterViewInit = function () {
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8294
|
+
var _this = this;
|
|
8295
|
+
setTimeout(function () {
|
|
8296
|
+
_this.config = { height: _this.height };
|
|
8297
|
+
if (_this.enabled) {
|
|
8298
|
+
_this.config.toolbarGroups = [
|
|
8299
|
+
{ name: 'document', groups: ['mode', 'document', 'doctools'] },
|
|
8300
|
+
{ name: 'clipboard', groups: ['clipboard', 'undo'] },
|
|
8301
|
+
{ name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
|
|
8302
|
+
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
|
|
8303
|
+
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
|
|
8304
|
+
{ name: 'links' },
|
|
8305
|
+
{ name: 'insert' },
|
|
8306
|
+
{ name: 'styles' },
|
|
8307
|
+
{ name: 'colors' },
|
|
8308
|
+
{ name: 'tools' },
|
|
8309
|
+
{ name: 'others' },
|
|
8310
|
+
{ name: 'about' }
|
|
8311
|
+
];
|
|
8312
|
+
}
|
|
8313
|
+
else {
|
|
8314
|
+
_this.config.allowedContent = true;
|
|
8315
|
+
_this.config.toolbarGroups = [];
|
|
8316
|
+
}
|
|
8317
|
+
/*
|
|
8318
|
+
var element = document.querySelector( '.cke_top' );
|
|
8319
|
+
console.log("Just to do some debugging we check " + element);
|
|
8320
|
+
var myEl = this.ced.toolbarButtons
|
|
8321
|
+
myEl.toggle();
|
|
8322
|
+
element = document.querySelector( '.cke_bottom' );
|
|
8323
|
+
myEl = ced.element( element );
|
|
8324
|
+
myEl.toggle();
|
|
8325
|
+
|
|
8326
|
+
var myEl2 = angular.element( document.querySelector( '.test' ) );
|
|
8327
|
+
myEl2.toggleClass("invisible")*/
|
|
8328
|
+
});
|
|
8267
8329
|
};
|
|
8268
8330
|
FHRichText.prototype.writeValue = function (value) {
|
|
8269
8331
|
this.value = value;
|
|
@@ -8471,13 +8533,16 @@
|
|
|
8471
8533
|
this.el.nativeElement.focus();
|
|
8472
8534
|
};
|
|
8473
8535
|
FHNumericFieldComponent.prototype.ngAfterViewInit = function () {
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8536
|
+
var _this = this;
|
|
8537
|
+
setTimeout(function () {
|
|
8538
|
+
if (_this.required)
|
|
8539
|
+
_this.el.nativeElement.required = _this.required;
|
|
8540
|
+
_this.el.nativeElement.disabled = !_this.enabled;
|
|
8541
|
+
if (_this.value == null)
|
|
8542
|
+
_this.value = 0;
|
|
8543
|
+
// console.log('tttttttttttt',this.decimal);
|
|
8544
|
+
_this.formattedAmount = _this.transform(_this.value, _this.decimal);
|
|
8545
|
+
});
|
|
8481
8546
|
};
|
|
8482
8547
|
FHNumericFieldComponent.ctorParameters = function () { return [
|
|
8483
8548
|
{ type: UtilityService }
|
|
@@ -8890,9 +8955,12 @@
|
|
|
8890
8955
|
}
|
|
8891
8956
|
win_uploads.prototype.close = function () { this.dialogRef.close(null); };
|
|
8892
8957
|
win_uploads.prototype.ngAfterViewInit = function () {
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8958
|
+
var _this = this;
|
|
8959
|
+
setTimeout(function () {
|
|
8960
|
+
_this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
|
|
8961
|
+
_this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
8962
|
+
_this.init(_this.App, _this.K);
|
|
8963
|
+
});
|
|
8896
8964
|
};
|
|
8897
8965
|
win_uploads.prototype.init = function (p_app, p_k) {
|
|
8898
8966
|
this.App = p_app;
|
|
@@ -9130,11 +9198,13 @@
|
|
|
9130
9198
|
win_commenti.prototype.select_destinatari_grp = function () {
|
|
9131
9199
|
var _this = this;
|
|
9132
9200
|
var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9201
|
+
setTimeout(function () {
|
|
9202
|
+
dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
|
|
9203
|
+
dialo.componentInstance.types = ['string'];
|
|
9204
|
+
dialo.componentInstance.values = [_this.m_appService.getState().wkf_doc_info.uiid_app];
|
|
9205
|
+
dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
|
|
9206
|
+
dialo.componentInstance.doFill();
|
|
9207
|
+
});
|
|
9138
9208
|
dialo.afterClosed().subscribe(function (result) {
|
|
9139
9209
|
if (result != null) {
|
|
9140
9210
|
if (result == '')
|
|
@@ -9170,7 +9240,9 @@
|
|
|
9170
9240
|
var ok_op = false;
|
|
9171
9241
|
this._dataService.doQuery(p).subscribe(function (data) {
|
|
9172
9242
|
var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
|
|
9173
|
-
|
|
9243
|
+
setTimeout(function () {
|
|
9244
|
+
dialo.componentInstance.init_arr(data.result_data);
|
|
9245
|
+
});
|
|
9174
9246
|
dialo.afterClosed().subscribe(function (result) {
|
|
9175
9247
|
// this.selectedOption = result;
|
|
9176
9248
|
if (result != null) {
|
|
@@ -9512,7 +9584,9 @@
|
|
|
9512
9584
|
var ok_op = false;
|
|
9513
9585
|
this._dataService.doQuery(p).subscribe(function (data) {
|
|
9514
9586
|
var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
|
|
9515
|
-
|
|
9587
|
+
setTimeout(function () {
|
|
9588
|
+
dialo.componentInstance.init_arr(data.result_data);
|
|
9589
|
+
});
|
|
9516
9590
|
dialo.afterClosed().subscribe(function (result) {
|
|
9517
9591
|
if (result != null) {
|
|
9518
9592
|
var s_users = "";
|
|
@@ -9529,11 +9603,13 @@
|
|
|
9529
9603
|
win_log.prototype.select_destinatari_grp = function () {
|
|
9530
9604
|
var _this = this;
|
|
9531
9605
|
var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9606
|
+
setTimeout(function () {
|
|
9607
|
+
dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
|
|
9608
|
+
dialo.componentInstance.types = ['string'];
|
|
9609
|
+
dialo.componentInstance.values = [_this.m_appService.getState().wkf_doc_info.uiid_app];
|
|
9610
|
+
dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
|
|
9611
|
+
dialo.componentInstance.doFill();
|
|
9612
|
+
});
|
|
9537
9613
|
dialo.afterClosed().subscribe(function (result) {
|
|
9538
9614
|
if (result != null) {
|
|
9539
9615
|
if (result == '')
|
|
@@ -10013,8 +10089,10 @@
|
|
|
10013
10089
|
FHGridJSONComponent.prototype.insert_config = function () {
|
|
10014
10090
|
var _this = this;
|
|
10015
10091
|
this.win_opt = this.m_dialog.open(WinAskTextComponent, { 'disableClose': true });
|
|
10016
|
-
|
|
10017
|
-
|
|
10092
|
+
setTimeout(function () {
|
|
10093
|
+
_this.win_opt.componentInstance.title = 'Salva Configurazione';
|
|
10094
|
+
_this.win_opt.componentInstance.label = 'Nome';
|
|
10095
|
+
});
|
|
10018
10096
|
this.win_opt.afterClosed().subscribe(function (result) {
|
|
10019
10097
|
if (result)
|
|
10020
10098
|
if (result != null) {
|
|
@@ -11163,11 +11241,13 @@
|
|
|
11163
11241
|
return 0;
|
|
11164
11242
|
});
|
|
11165
11243
|
;
|
|
11166
|
-
var
|
|
11244
|
+
var dialogRef_1 = this.m_dialog.open(win_assegna, {
|
|
11167
11245
|
disableClose: true
|
|
11168
11246
|
});
|
|
11169
|
-
|
|
11170
|
-
|
|
11247
|
+
setTimeout(function () {
|
|
11248
|
+
dialogRef_1.componentInstance.comm_notrequired = _this.nlevel.commenti_opzionali;
|
|
11249
|
+
});
|
|
11250
|
+
dialogRef_1.afterClosed().subscribe(function (result) {
|
|
11171
11251
|
if (result == "") {
|
|
11172
11252
|
_this.edit_b(true);
|
|
11173
11253
|
if (_this.respingi_enabled)
|
|
@@ -11533,17 +11613,19 @@
|
|
|
11533
11613
|
if (inser_c === void 0) { inser_c = false; }
|
|
11534
11614
|
var s_h = (this.app_s.getState().body_h - 40) + 'px';
|
|
11535
11615
|
var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: s_h });
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11616
|
+
setTimeout(function () {
|
|
11617
|
+
dialogRef.componentInstance.subject = _this.app_info.descrizione_breve + ", <OP>: " + _this.m_obj.codice + " " + _this.getTitle();
|
|
11618
|
+
if (_this.m_obj.lettori != null)
|
|
11619
|
+
dialogRef.componentInstance.lettori = _this.m_obj.lettori;
|
|
11620
|
+
else
|
|
11621
|
+
dialogRef.componentInstance.lettori = '';
|
|
11622
|
+
dialogRef.componentInstance.link = _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit";
|
|
11623
|
+
dialogRef.componentInstance.codice_doc = _this.m_obj.codice;
|
|
11624
|
+
dialogRef.componentInstance.notifica_commenti = _this.app_info.notifica_commenti;
|
|
11625
|
+
dialogRef.componentInstance.notifica_commenti_obbl = _this.app_info.notifica_commenti_obbl;
|
|
11626
|
+
dialogRef.componentInstance.commenti_insert = inser_c;
|
|
11627
|
+
dialogRef.componentInstance.init_v();
|
|
11628
|
+
});
|
|
11547
11629
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
11548
11630
|
_this.r_count();
|
|
11549
11631
|
});
|
|
@@ -11551,16 +11633,18 @@
|
|
|
11551
11633
|
dati_aggiuntivi.prototype.open_commenti = function () {
|
|
11552
11634
|
var _this = this;
|
|
11553
11635
|
var dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11636
|
+
setTimeout(function () {
|
|
11637
|
+
dialogRef.componentInstance.subject = _this.app_info.descrizione_breve + ", <OP>: " + _this.m_obj.codice + " " + _this.getTitle();
|
|
11638
|
+
if (_this.m_obj.lettori != null)
|
|
11639
|
+
dialogRef.componentInstance.lettori = _this.m_obj.lettori;
|
|
11640
|
+
else
|
|
11641
|
+
dialogRef.componentInstance.lettori = '';
|
|
11642
|
+
dialogRef.componentInstance.link = _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit";
|
|
11643
|
+
dialogRef.componentInstance.codice_doc = _this.m_obj.codice;
|
|
11644
|
+
dialogRef.componentInstance.notifica_commenti = _this.app_info.notifica_commenti;
|
|
11645
|
+
dialogRef.componentInstance.notifica_commenti_obbl = _this.app_info.notifica_commenti_obbl;
|
|
11646
|
+
dialogRef.componentInstance.init_v();
|
|
11647
|
+
});
|
|
11564
11648
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
11565
11649
|
_this.r_count();
|
|
11566
11650
|
});
|
|
@@ -11569,7 +11653,9 @@
|
|
|
11569
11653
|
var _this = this;
|
|
11570
11654
|
if (sovra_path === void 0) { sovra_path = ''; }
|
|
11571
11655
|
var dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%" });
|
|
11572
|
-
|
|
11656
|
+
setTimeout(function () {
|
|
11657
|
+
dialogRef.componentInstance.sovrascrivi_path = sovra_path;
|
|
11658
|
+
});
|
|
11573
11659
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
11574
11660
|
_this.r_count();
|
|
11575
11661
|
});
|
|
@@ -11806,10 +11892,13 @@
|
|
|
11806
11892
|
}
|
|
11807
11893
|
};
|
|
11808
11894
|
dati_aggiuntivi.prototype.open_info = function () {
|
|
11895
|
+
var _this = this;
|
|
11809
11896
|
var dialogRef = this.m_dialog.open(win_info_doc, {
|
|
11810
11897
|
disableClose: true
|
|
11811
11898
|
});
|
|
11812
|
-
|
|
11899
|
+
setTimeout(function () {
|
|
11900
|
+
dialogRef.componentInstance.hide_richiedente = _this.hide_richiedente;
|
|
11901
|
+
});
|
|
11813
11902
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
11814
11903
|
// this.selectedOption = result;
|
|
11815
11904
|
});
|
|
@@ -12118,7 +12207,10 @@
|
|
|
12118
12207
|
});
|
|
12119
12208
|
};
|
|
12120
12209
|
dati_aggiuntivi.prototype.ngAfterViewInit = function () {
|
|
12121
|
-
this
|
|
12210
|
+
var _this = this;
|
|
12211
|
+
setTimeout(function () {
|
|
12212
|
+
_this.init_engine();
|
|
12213
|
+
});
|
|
12122
12214
|
};
|
|
12123
12215
|
dati_aggiuntivi.prototype.setta_info_app = function (o) {
|
|
12124
12216
|
this.app_info = o;
|
|
@@ -12276,8 +12368,10 @@
|
|
|
12276
12368
|
FormBuilderComponent.prototype.del_item = function (uiid_obj) {
|
|
12277
12369
|
var _this = this;
|
|
12278
12370
|
var dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
|
|
12279
|
-
|
|
12280
|
-
|
|
12371
|
+
setTimeout(function () {
|
|
12372
|
+
dialogRef.componentInstance.title = 'Confirm';
|
|
12373
|
+
dialogRef.componentInstance.msg = "Remove Element?";
|
|
12374
|
+
});
|
|
12281
12375
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
12282
12376
|
if (result) {
|
|
12283
12377
|
for (var i = 0; i < _this.items.length; i++)
|
|
@@ -12291,24 +12385,26 @@
|
|
|
12291
12385
|
};
|
|
12292
12386
|
FormBuilderComponent.prototype.ngAfterViewInit = function () {
|
|
12293
12387
|
var _this = this;
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12388
|
+
setTimeout(function () {
|
|
12389
|
+
try {
|
|
12390
|
+
_this.dragula.createGroup('bag-items', {
|
|
12391
|
+
revertOnSpill: true
|
|
12392
|
+
});
|
|
12393
|
+
}
|
|
12394
|
+
catch (e) {
|
|
12395
|
+
console.log(e);
|
|
12396
|
+
}
|
|
12397
|
+
_this.dragula
|
|
12398
|
+
.drag.call(function (value) {
|
|
12399
|
+
_this.change.emit();
|
|
12400
|
+
_this.edit_obj = null;
|
|
12401
|
+
});
|
|
12402
|
+
_this.dragula
|
|
12403
|
+
.drop
|
|
12404
|
+
.call(function (value) {
|
|
12405
|
+
_this.change.emit();
|
|
12406
|
+
_this.edit_obj = null;
|
|
12297
12407
|
});
|
|
12298
|
-
}
|
|
12299
|
-
catch (e) {
|
|
12300
|
-
console.log(e);
|
|
12301
|
-
}
|
|
12302
|
-
this.dragula
|
|
12303
|
-
.drag.call(function (value) {
|
|
12304
|
-
_this.change.emit();
|
|
12305
|
-
_this.edit_obj = null;
|
|
12306
|
-
});
|
|
12307
|
-
this.dragula
|
|
12308
|
-
.drop
|
|
12309
|
-
.call(function (value) {
|
|
12310
|
-
_this.change.emit();
|
|
12311
|
-
_this.edit_obj = null;
|
|
12312
12408
|
});
|
|
12313
12409
|
};
|
|
12314
12410
|
FormBuilderComponent.ctorParameters = function () { return [
|
|
@@ -12520,9 +12616,12 @@
|
|
|
12520
12616
|
this.fullScreenEvent = new core.EventEmitter();
|
|
12521
12617
|
}
|
|
12522
12618
|
FHViewerComponent.prototype.ngAfterViewInit = function () {
|
|
12523
|
-
var
|
|
12524
|
-
|
|
12525
|
-
|
|
12619
|
+
var _this = this;
|
|
12620
|
+
setTimeout(function () {
|
|
12621
|
+
var merged = _this.mergeConfig(DEFAULT_CONFIG, _this.moduleConfig);
|
|
12622
|
+
_this.config = _this.mergeConfig(merged, _this.config);
|
|
12623
|
+
_this.triggerConfigBinding();
|
|
12624
|
+
});
|
|
12526
12625
|
};
|
|
12527
12626
|
FHViewerComponent.prototype.nextImage = function ($event) {
|
|
12528
12627
|
console.log('this.src.length ', this.src.length);
|
|
@@ -12779,7 +12878,10 @@
|
|
|
12779
12878
|
this.already_open = true;
|
|
12780
12879
|
};
|
|
12781
12880
|
fhimagepreview.prototype.ngAfterViewInit = function () {
|
|
12782
|
-
this
|
|
12881
|
+
var _this = this;
|
|
12882
|
+
setTimeout(function () {
|
|
12883
|
+
_this.init();
|
|
12884
|
+
});
|
|
12783
12885
|
};
|
|
12784
12886
|
fhimagepreview.prototype.openFullscreen = function () {
|
|
12785
12887
|
console.log('cc', this.photo_c.imgx);
|
|
@@ -13004,14 +13106,16 @@
|
|
|
13004
13106
|
var dialogRef = this.m_dialog.open(FHListPick, {
|
|
13005
13107
|
disableClose: true
|
|
13006
13108
|
});
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13109
|
+
setTimeout(function () {
|
|
13110
|
+
dialogRef.componentInstance.single_sel = _this.single_sel;
|
|
13111
|
+
dialogRef.componentInstance.sel_values = _this.value;
|
|
13112
|
+
dialogRef.componentInstance.separator = _this.separator;
|
|
13113
|
+
dialogRef.componentInstance.label = _this.label;
|
|
13114
|
+
dialogRef.componentInstance.sql = _this.sql;
|
|
13115
|
+
dialogRef.componentInstance.types = _this.types;
|
|
13116
|
+
dialogRef.componentInstance.values = _this.values;
|
|
13117
|
+
dialogRef.componentInstance.doFill();
|
|
13118
|
+
});
|
|
13015
13119
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
13016
13120
|
if (result != null && result != '') {
|
|
13017
13121
|
_this.value = '';
|
|
@@ -13163,15 +13267,18 @@
|
|
|
13163
13267
|
win_manage_values.prototype.ok = function () {
|
|
13164
13268
|
};
|
|
13165
13269
|
win_manage_values.prototype.ngAfterViewInit = function () {
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13270
|
+
var _this = this;
|
|
13271
|
+
setTimeout(function () {
|
|
13272
|
+
_this.nValori = new Object();
|
|
13273
|
+
//this.nValori.valore=0;
|
|
13274
|
+
_this.nValori.descrizione = '';
|
|
13275
|
+
_this.nValori.v1 = null;
|
|
13276
|
+
_this.nValori.v2 = null;
|
|
13277
|
+
_this.nValori.id_valore = -1;
|
|
13278
|
+
_this.nValori.v3 = null;
|
|
13279
|
+
_this.nValori.lingua = null;
|
|
13280
|
+
_this.ref_user_list();
|
|
13281
|
+
});
|
|
13175
13282
|
};
|
|
13176
13283
|
win_manage_values.ctorParameters = function () { return [
|
|
13177
13284
|
{ type: dialog.MatDialogRef },
|
|
@@ -13198,23 +13305,29 @@
|
|
|
13198
13305
|
this.b_init = false;
|
|
13199
13306
|
}
|
|
13200
13307
|
FHTableManager.prototype.edit_values = function () {
|
|
13308
|
+
var _this = this;
|
|
13201
13309
|
if (this.cmb_sel.getValue() == "-1")
|
|
13202
13310
|
return;
|
|
13203
13311
|
var dialogRef = this._dialog.open(win_manage_values, { width: '90%', height: '550px' });
|
|
13204
|
-
|
|
13312
|
+
setTimeout(function () {
|
|
13313
|
+
dialogRef.componentInstance.id_tipo = Number(_this.cmb_sel.getValue());
|
|
13314
|
+
});
|
|
13205
13315
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
13206
13316
|
if (result) {
|
|
13207
13317
|
}
|
|
13208
13318
|
});
|
|
13209
13319
|
};
|
|
13210
13320
|
FHTableManager.prototype.ngAfterViewInit = function () {
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13321
|
+
var _this = this;
|
|
13322
|
+
setTimeout(function () {
|
|
13323
|
+
if (_this.application == "")
|
|
13324
|
+
return;
|
|
13325
|
+
_this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
|
|
13326
|
+
_this.cmb_sel.types = ['string'];
|
|
13327
|
+
_this.cmb_sel.values = [_this.application];
|
|
13328
|
+
_this.cmb_sel.fillCombo();
|
|
13329
|
+
_this.b_init = true;
|
|
13330
|
+
});
|
|
13218
13331
|
};
|
|
13219
13332
|
FHTableManager.ctorParameters = function () { return [
|
|
13220
13333
|
{ type: QueryService },
|
|
@@ -13308,7 +13421,10 @@
|
|
|
13308
13421
|
});
|
|
13309
13422
|
};
|
|
13310
13423
|
win_manage_roles.prototype.ngAfterViewInit = function () {
|
|
13311
|
-
this
|
|
13424
|
+
var _this = this;
|
|
13425
|
+
setTimeout(function () {
|
|
13426
|
+
_this.ref_user_list();
|
|
13427
|
+
});
|
|
13312
13428
|
};
|
|
13313
13429
|
win_manage_roles.ctorParameters = function () { return [
|
|
13314
13430
|
{ type: dialog.MatDialogRef },
|
|
@@ -13339,23 +13455,29 @@
|
|
|
13339
13455
|
this.b_init = false;
|
|
13340
13456
|
}
|
|
13341
13457
|
FHRoleManager.prototype.edit_values = function () {
|
|
13458
|
+
var _this = this;
|
|
13342
13459
|
if (this.cmb_sel.getValue() == "-1")
|
|
13343
13460
|
return;
|
|
13344
13461
|
var dialogRef = this._dialog.open(win_manage_roles, { width: '90%', height: '550px' });
|
|
13345
|
-
|
|
13462
|
+
setTimeout(function () {
|
|
13463
|
+
dialogRef.componentInstance.role_id = Number(_this.cmb_sel.getValue());
|
|
13464
|
+
});
|
|
13346
13465
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
13347
13466
|
if (result) {
|
|
13348
13467
|
}
|
|
13349
13468
|
});
|
|
13350
13469
|
};
|
|
13351
13470
|
FHRoleManager.prototype.ngAfterViewInit = function () {
|
|
13352
|
-
|
|
13353
|
-
|
|
13354
|
-
|
|
13355
|
-
|
|
13356
|
-
|
|
13357
|
-
|
|
13358
|
-
|
|
13471
|
+
var _this = this;
|
|
13472
|
+
setTimeout(function () {
|
|
13473
|
+
if (_this.application == "")
|
|
13474
|
+
return;
|
|
13475
|
+
_this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
|
|
13476
|
+
_this.cmb_sel.types = ['string'];
|
|
13477
|
+
_this.cmb_sel.values = [_this.application];
|
|
13478
|
+
_this.cmb_sel.fillCombo();
|
|
13479
|
+
_this.b_init = true;
|
|
13480
|
+
});
|
|
13359
13481
|
};
|
|
13360
13482
|
FHRoleManager.ctorParameters = function () { return [
|
|
13361
13483
|
{ type: QueryService },
|
|
@@ -13631,19 +13753,22 @@
|
|
|
13631
13753
|
this.setByDescri(this.valDef);
|
|
13632
13754
|
};
|
|
13633
13755
|
FHComboboxComponentFilter.prototype.ngAfterViewInit = function () {
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13756
|
+
var _this = this;
|
|
13757
|
+
setTimeout(function () {
|
|
13758
|
+
if (_this.init_fill == true) {
|
|
13759
|
+
if (_this.sql == '') {
|
|
13760
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
13761
|
+
return;
|
|
13762
|
+
}
|
|
13763
|
+
_this.fillCombo();
|
|
13638
13764
|
}
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
.emit();
|
|
13765
|
+
else {
|
|
13766
|
+
_this.errorMsg = "";
|
|
13767
|
+
}
|
|
13768
|
+
_this
|
|
13769
|
+
.initend
|
|
13770
|
+
.emit();
|
|
13771
|
+
});
|
|
13647
13772
|
};
|
|
13648
13773
|
FHComboboxComponentFilter.prototype.sc = function () {
|
|
13649
13774
|
this
|
|
@@ -13764,7 +13889,9 @@
|
|
|
13764
13889
|
var ok_op = false;
|
|
13765
13890
|
this._dataService.doQuery(p).subscribe(function (data) {
|
|
13766
13891
|
var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
|
|
13767
|
-
|
|
13892
|
+
setTimeout(function () {
|
|
13893
|
+
dialo.componentInstance.init_arr(data.result_data);
|
|
13894
|
+
});
|
|
13768
13895
|
dialo.afterClosed().subscribe(function (result) {
|
|
13769
13896
|
// this.selectedOption = result;
|
|
13770
13897
|
if (result != null) {
|
|
@@ -13868,22 +13995,24 @@
|
|
|
13868
13995
|
win_user_info.prototype.close = function () { this.dialogRef.close(null); };
|
|
13869
13996
|
win_user_info.prototype.ngAfterViewInit = function () {
|
|
13870
13997
|
var _this = this;
|
|
13871
|
-
|
|
13872
|
-
if (
|
|
13873
|
-
if (
|
|
13874
|
-
|
|
13875
|
-
|
|
13876
|
-
|
|
13877
|
-
|
|
13878
|
-
|
|
13879
|
-
|
|
13880
|
-
|
|
13881
|
-
if (data
|
|
13882
|
-
if (data.
|
|
13883
|
-
|
|
13884
|
-
|
|
13998
|
+
setTimeout(function () {
|
|
13999
|
+
if (_this.isadmin == '1')
|
|
14000
|
+
if (_this.appService.dev_mode != null)
|
|
14001
|
+
if (_this.appService.dev_mode == '1')
|
|
14002
|
+
_this.dev_mode = true;
|
|
14003
|
+
var p = new QParam();
|
|
14004
|
+
p.sql = "SELECT_ALLEGATI_DOCUMENTO";
|
|
14005
|
+
p.types = ['string', 'string'];
|
|
14006
|
+
p.values = ['FOTO_UTENTI', _this.appService.user];
|
|
14007
|
+
_this._dataService.doQuery(p).subscribe(function (data) {
|
|
14008
|
+
if (data != null)
|
|
14009
|
+
if (data.result_msg == "OK") {
|
|
14010
|
+
if (data.result_data.length > 0) {
|
|
14011
|
+
_this.b_filef = true;
|
|
14012
|
+
_this.foto_ut = _this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
|
|
14013
|
+
}
|
|
13885
14014
|
}
|
|
13886
|
-
|
|
14015
|
+
});
|
|
13887
14016
|
});
|
|
13888
14017
|
};
|
|
13889
14018
|
win_user_info.prototype.upd_dev = function (dv) {
|