@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
|
@@ -945,9 +945,11 @@ let NumericEditorComponent = class NumericEditorComponent {
|
|
|
945
945
|
}
|
|
946
946
|
// dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
|
|
947
947
|
ngAfterViewInit() {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
948
|
+
setTimeout(() => {
|
|
949
|
+
//console.log(this.input.element.nativeElement);
|
|
950
|
+
// this.input.first.nativeElement.focus();
|
|
951
|
+
this.input.element.nativeElement.focus();
|
|
952
|
+
});
|
|
951
953
|
// this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
|
|
952
954
|
/*if (this.input.nativeElement.classList.contains('ng-untouched')) {
|
|
953
955
|
this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
|
|
@@ -1014,14 +1016,16 @@ let win_time_slider = class win_time_slider {
|
|
|
1014
1016
|
this.dialogRef.close(this.res);
|
|
1015
1017
|
}
|
|
1016
1018
|
ngAfterViewInit() {
|
|
1017
|
-
|
|
1018
|
-
if (this.m_appService.getState().appo_dialog
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1019
|
+
setTimeout(() => {
|
|
1020
|
+
if (this.m_appService.getState().appo_dialog != null)
|
|
1021
|
+
if (this.m_appService.getState().appo_dialog.val != null) {
|
|
1022
|
+
let a = this.m_appService.getState().appo_dialog.val.split(':');
|
|
1023
|
+
this.h = parseInt(a[0]);
|
|
1024
|
+
this.m = parseInt(a[1]);
|
|
1025
|
+
this.res = this.m_appService.getState().appo_dialog.val;
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1025
1029
|
}
|
|
1026
1030
|
};
|
|
1027
1031
|
win_time_slider.ctorParameters = () => [
|
|
@@ -1808,20 +1812,22 @@ let FHListComponent = class FHListComponent {
|
|
|
1808
1812
|
this.setByDescri(this.valDef);
|
|
1809
1813
|
}
|
|
1810
1814
|
ngAfterViewInit() {
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
if (this.
|
|
1814
|
-
|
|
1815
|
-
|
|
1815
|
+
setTimeout(() => {
|
|
1816
|
+
// console.log("ngAfterViewInit"); console.log(this.init_fill);
|
|
1817
|
+
if (this.init_fill == true) {
|
|
1818
|
+
if (this.sql == '') {
|
|
1819
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
1820
|
+
return;
|
|
1821
|
+
}
|
|
1822
|
+
this.fillCombo();
|
|
1816
1823
|
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
this
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
.emit();
|
|
1824
|
+
else {
|
|
1825
|
+
this.errorMsg = "";
|
|
1826
|
+
}
|
|
1827
|
+
this
|
|
1828
|
+
.initend
|
|
1829
|
+
.emit();
|
|
1830
|
+
});
|
|
1825
1831
|
}
|
|
1826
1832
|
sc() {
|
|
1827
1833
|
this
|
|
@@ -2218,19 +2224,21 @@ let FHComboboxComponent = class FHComboboxComponent {
|
|
|
2218
2224
|
this.setByDescri(this.valDef);
|
|
2219
2225
|
}
|
|
2220
2226
|
ngAfterViewInit() {
|
|
2221
|
-
|
|
2222
|
-
if (this.
|
|
2223
|
-
|
|
2224
|
-
|
|
2227
|
+
setTimeout(() => {
|
|
2228
|
+
if (this.init_fill == true) {
|
|
2229
|
+
if (this.sql == '') {
|
|
2230
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
2231
|
+
return;
|
|
2232
|
+
}
|
|
2233
|
+
this.fillCombo();
|
|
2225
2234
|
}
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
this
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
.emit();
|
|
2235
|
+
else {
|
|
2236
|
+
this.errorMsg = "";
|
|
2237
|
+
}
|
|
2238
|
+
this
|
|
2239
|
+
.initend
|
|
2240
|
+
.emit();
|
|
2241
|
+
});
|
|
2234
2242
|
}
|
|
2235
2243
|
sc() {
|
|
2236
2244
|
this
|
|
@@ -2427,43 +2435,45 @@ let FHUploadComponent = class FHUploadComponent {
|
|
|
2427
2435
|
this.cmb_tipo.fillCombo();
|
|
2428
2436
|
}
|
|
2429
2437
|
ngAfterViewInit() {
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
this.
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
if (this.dialogRef
|
|
2439
|
-
this.dialogRef.componentInstance
|
|
2440
|
-
|
|
2438
|
+
setTimeout(() => {
|
|
2439
|
+
let uo = {};
|
|
2440
|
+
uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
|
|
2441
|
+
// console.log('ngAfterViewInit!!');
|
|
2442
|
+
this.uploader.setOptions(uo);
|
|
2443
|
+
this.uploader.onCompleteAll = () => {
|
|
2444
|
+
this.loading = false;
|
|
2445
|
+
this.upload_ended.emit();
|
|
2446
|
+
if (this.dialogRef != null)
|
|
2447
|
+
if (this.dialogRef.componentInstance != null) {
|
|
2448
|
+
this.dialogRef.componentInstance.update_progess(100);
|
|
2449
|
+
this.dialogRef = null;
|
|
2450
|
+
}
|
|
2451
|
+
};
|
|
2452
|
+
this.uploader.onErrorItem = (a, b, c, d) => {
|
|
2453
|
+
this.toastr.error(b);
|
|
2454
|
+
};
|
|
2455
|
+
this.uploader.onAfterAddingFile = (fileItem) => {
|
|
2456
|
+
this.ch(fileItem);
|
|
2457
|
+
};
|
|
2458
|
+
this.uploader.onProgressItem = (fileItem, progress) => {
|
|
2459
|
+
// console.log(fileItem);
|
|
2460
|
+
// console.log(progress);
|
|
2461
|
+
this.loading = true;
|
|
2462
|
+
if (this.dialogRef != null)
|
|
2463
|
+
if (this.dialogRef.componentInstance != null)
|
|
2464
|
+
this.dialogRef.componentInstance.update_progess(progress);
|
|
2465
|
+
};
|
|
2466
|
+
this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
|
|
2467
|
+
switch (filter.name) {
|
|
2468
|
+
case 'fileSize':
|
|
2469
|
+
let ar = Math.round(item.size / 1024 / 1024);
|
|
2470
|
+
this.toastr.error(this.limit_string.split('<size>').join('' + ar));
|
|
2471
|
+
break;
|
|
2472
|
+
default:
|
|
2473
|
+
this.toastr.error("Errore: " + filter.name);
|
|
2441
2474
|
}
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
this.toastr.error(b);
|
|
2445
|
-
};
|
|
2446
|
-
this.uploader.onAfterAddingFile = (fileItem) => {
|
|
2447
|
-
this.ch(fileItem);
|
|
2448
|
-
};
|
|
2449
|
-
this.uploader.onProgressItem = (fileItem, progress) => {
|
|
2450
|
-
// console.log(fileItem);
|
|
2451
|
-
// console.log(progress);
|
|
2452
|
-
this.loading = true;
|
|
2453
|
-
if (this.dialogRef != null)
|
|
2454
|
-
if (this.dialogRef.componentInstance != null)
|
|
2455
|
-
this.dialogRef.componentInstance.update_progess(progress);
|
|
2456
|
-
};
|
|
2457
|
-
this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
|
|
2458
|
-
switch (filter.name) {
|
|
2459
|
-
case 'fileSize':
|
|
2460
|
-
let ar = Math.round(item.size / 1024 / 1024);
|
|
2461
|
-
this.toastr.error(this.limit_string.split('<size>').join('' + ar));
|
|
2462
|
-
break;
|
|
2463
|
-
default:
|
|
2464
|
-
this.toastr.error("Errore: " + filter.name);
|
|
2465
|
-
}
|
|
2466
|
-
};
|
|
2475
|
+
};
|
|
2476
|
+
});
|
|
2467
2477
|
}
|
|
2468
2478
|
download_all() {
|
|
2469
2479
|
window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
|
|
@@ -2495,7 +2505,9 @@ let FHUploadComponent = class FHUploadComponent {
|
|
|
2495
2505
|
};
|
|
2496
2506
|
if (this.dialogRef == null) {
|
|
2497
2507
|
this.dialogRef = this.dialog.open(WinWait, { 'disableClose': true });
|
|
2498
|
-
|
|
2508
|
+
setTimeout(() => {
|
|
2509
|
+
this.dialogRef.componentInstance.label = this.label_attendere;
|
|
2510
|
+
});
|
|
2499
2511
|
this.dialogRef.afterClosed().subscribe(result => {
|
|
2500
2512
|
if (result != "") {
|
|
2501
2513
|
}
|
|
@@ -3085,7 +3097,9 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
|
|
|
3085
3097
|
let dialogRef = this
|
|
3086
3098
|
.dialog
|
|
3087
3099
|
.open(FHWinComboSelect);
|
|
3088
|
-
|
|
3100
|
+
setTimeout(() => {
|
|
3101
|
+
dialogRef.componentInstance.set_selection("Tipologia Allegato", data.result_data);
|
|
3102
|
+
});
|
|
3089
3103
|
dialogRef
|
|
3090
3104
|
.afterClosed()
|
|
3091
3105
|
.subscribe(result => {
|
|
@@ -3112,9 +3126,11 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
|
|
|
3112
3126
|
let dialogRef = this
|
|
3113
3127
|
.dialog
|
|
3114
3128
|
.open(WinAskTextBigComponent);
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3129
|
+
setTimeout(() => {
|
|
3130
|
+
dialogRef.componentInstance.label = "Descrizione Allegato";
|
|
3131
|
+
dialogRef.componentInstance.valore = ax.descrizione;
|
|
3132
|
+
dialogRef.componentInstance.min_chars = 0;
|
|
3133
|
+
});
|
|
3118
3134
|
dialogRef
|
|
3119
3135
|
.afterClosed()
|
|
3120
3136
|
.subscribe(result => {
|
|
@@ -3175,17 +3191,21 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
|
|
|
3175
3191
|
});
|
|
3176
3192
|
}
|
|
3177
3193
|
ngAfterViewInit() {
|
|
3178
|
-
setTimeout(() => {
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
.
|
|
3184
|
-
.
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3194
|
+
setTimeout(() => {
|
|
3195
|
+
setTimeout(() => {
|
|
3196
|
+
this.b_initt = true;
|
|
3197
|
+
}, 700);
|
|
3198
|
+
this.upc.single = false;
|
|
3199
|
+
this.b_mobile = this._appservice.getState().pageFullscreen;
|
|
3200
|
+
console.log('this.m_p_tipo ', this.m_p_tipo);
|
|
3201
|
+
this
|
|
3202
|
+
.upc
|
|
3203
|
+
.init(this.App, this.K, 'Descrizione Allegato', this.m_p_tipo, this.m_programma_da_eseguire);
|
|
3204
|
+
if (this.m_p_tipo.indexOf('SELECT_') > -1) {
|
|
3205
|
+
this.multi_list = true;
|
|
3206
|
+
}
|
|
3207
|
+
this.ref_allegato();
|
|
3208
|
+
});
|
|
3189
3209
|
}
|
|
3190
3210
|
init(p_app, p_k, p_tipo = "", programma_da_eseguire = "") {
|
|
3191
3211
|
this.App = p_app;
|
|
@@ -3935,38 +3955,40 @@ let FHUserPickerComponent = class FHUserPickerComponent {
|
|
|
3935
3955
|
}
|
|
3936
3956
|
}
|
|
3937
3957
|
ngAfterViewInit() {
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
var p = new QParam();
|
|
3941
|
-
p.sql = "SELECT_ALL_USERS";
|
|
3942
|
-
p.types = [];
|
|
3943
|
-
p.values = [];
|
|
3944
|
-
this
|
|
3945
|
-
._dataService
|
|
3946
|
-
.doQuery(p)
|
|
3947
|
-
.subscribe(data => {
|
|
3958
|
+
setTimeout(() => {
|
|
3959
|
+
if (this.all_users) {
|
|
3948
3960
|
let ok_op = false;
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3961
|
+
var p = new QParam();
|
|
3962
|
+
p.sql = "SELECT_ALL_USERS";
|
|
3963
|
+
p.types = [];
|
|
3964
|
+
p.values = [];
|
|
3965
|
+
this
|
|
3966
|
+
._dataService
|
|
3967
|
+
.doQuery(p)
|
|
3968
|
+
.subscribe(data => {
|
|
3969
|
+
let ok_op = false;
|
|
3970
|
+
if (data != null)
|
|
3971
|
+
if (data.result_msg == "OK") {
|
|
3972
|
+
this.users_list = data.result_data;
|
|
3973
|
+
this.filtra();
|
|
3974
|
+
ok_op = true;
|
|
3975
|
+
}
|
|
3976
|
+
if (!ok_op) {
|
|
3954
3977
|
}
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
}
|
|
3978
|
+
}, err => {
|
|
3979
|
+
this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
3980
|
+
});
|
|
3981
|
+
}
|
|
3982
|
+
else {
|
|
3983
|
+
if (this.user_sel != null)
|
|
3984
|
+
if (this.user_sel.length > 0)
|
|
3985
|
+
return;
|
|
3986
|
+
this.users_list_sel = new Array();
|
|
3987
|
+
if (this.users_list != null)
|
|
3988
|
+
for (var i = 0; i < this.users_list.length; i++)
|
|
3989
|
+
this.users_list_sel.push(this.users_list[i]);
|
|
3990
|
+
}
|
|
3991
|
+
});
|
|
3970
3992
|
}
|
|
3971
3993
|
close() { this.dialogRef.close(null); }
|
|
3972
3994
|
do_add() {
|
|
@@ -4239,8 +4261,10 @@ let FHUserFieldComponent = class FHUserFieldComponent {
|
|
|
4239
4261
|
};
|
|
4240
4262
|
}
|
|
4241
4263
|
ngAfterViewInit() {
|
|
4242
|
-
|
|
4243
|
-
|
|
4264
|
+
setTimeout(() => {
|
|
4265
|
+
if (this.required)
|
|
4266
|
+
this.label = this.label + ' *';
|
|
4267
|
+
});
|
|
4244
4268
|
}
|
|
4245
4269
|
getUsersNc() {
|
|
4246
4270
|
let s_nc = '';
|
|
@@ -4388,10 +4412,12 @@ let FHUserFieldComponent = class FHUserFieldComponent {
|
|
|
4388
4412
|
let dialogRef = this.dialog.open(FHUserPickerComponent, {
|
|
4389
4413
|
disableClose: true, width: "700px", height: "550px"
|
|
4390
4414
|
});
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4415
|
+
setTimeout(() => {
|
|
4416
|
+
dialogRef.componentInstance.user_sel = this.selectedUser;
|
|
4417
|
+
dialogRef.componentInstance.users_list = Object.assign([], this.all_user);
|
|
4418
|
+
dialogRef.componentInstance.single_sel = !this.multi;
|
|
4419
|
+
dialogRef.componentInstance.filtra();
|
|
4420
|
+
});
|
|
4395
4421
|
dialogRef.afterClosed().subscribe(result => {
|
|
4396
4422
|
if (result == null)
|
|
4397
4423
|
return;
|
|
@@ -4676,7 +4702,9 @@ class wkfapp {
|
|
|
4676
4702
|
}
|
|
4677
4703
|
recupera_richiesta() {
|
|
4678
4704
|
let dialogRef = this.dialog.open(win_recupera_doc, { 'disableClose': true });
|
|
4679
|
-
|
|
4705
|
+
setTimeout(() => {
|
|
4706
|
+
dialogRef.componentInstance.init_w(this.id_applicativo);
|
|
4707
|
+
});
|
|
4680
4708
|
dialogRef.afterClosed().subscribe(result => {
|
|
4681
4709
|
if (result == 'ok')
|
|
4682
4710
|
this.get_grid().doFill('');
|
|
@@ -4699,8 +4727,10 @@ class wkfapp {
|
|
|
4699
4727
|
if (data != null)
|
|
4700
4728
|
if (data.result_msg == "OK") {
|
|
4701
4729
|
let dialogRef = this.dialog.open(win_sostituisci_utente, { 'disableClose': true, 'width': '450px' });
|
|
4702
|
-
|
|
4703
|
-
|
|
4730
|
+
setTimeout(() => {
|
|
4731
|
+
dialogRef.componentInstance.up.all_user = data.result_data;
|
|
4732
|
+
dialogRef.componentInstance.title = "Sostituzione utente: " + this.get_grid().sRow.codice + " - " + this.get_grid().sRow.oggetto;
|
|
4733
|
+
});
|
|
4704
4734
|
dialogRef.afterClosed().subscribe(result => {
|
|
4705
4735
|
if (result != null)
|
|
4706
4736
|
if (result.result != null)
|
|
@@ -4748,8 +4778,10 @@ class wkfapp {
|
|
|
4748
4778
|
s_i.push(this.livs_adm[i]);
|
|
4749
4779
|
}
|
|
4750
4780
|
let dialogRef = this.dialog.open(win_riassegna_select_level, { 'disableClose': true });
|
|
4751
|
-
|
|
4752
|
-
|
|
4781
|
+
setTimeout(() => {
|
|
4782
|
+
dialogRef.componentInstance.setStepCombo(s_i);
|
|
4783
|
+
dialogRef.componentInstance.title = "Riassegnazione documento: " + this.get_grid().sRow.codice + " - " + this.get_grid().sRow.oggetto;
|
|
4784
|
+
});
|
|
4753
4785
|
dialogRef.afterClosed().subscribe(result => {
|
|
4754
4786
|
if (result != null)
|
|
4755
4787
|
if (result.result != null)
|
|
@@ -4773,8 +4805,10 @@ class wkfapp {
|
|
|
4773
4805
|
if (arrAutori[i].idp != null && arrAutori[i].username == null)
|
|
4774
4806
|
arrAutori[i].username = arrAutori[i].idp;
|
|
4775
4807
|
}
|
|
4776
|
-
|
|
4777
|
-
|
|
4808
|
+
setTimeout(() => {
|
|
4809
|
+
dialogRef.componentInstance.arrAutori = arrAutori;
|
|
4810
|
+
dialogRef.componentInstance.title = "Riassegnazione documento: " + this.get_grid().sRow.codice + " - " + this.get_grid().sRow.oggetto;
|
|
4811
|
+
});
|
|
4778
4812
|
dialogRef.afterClosed().subscribe(result => {
|
|
4779
4813
|
if (result != null)
|
|
4780
4814
|
if (result.result != null)
|
|
@@ -4939,9 +4973,11 @@ class wkfapp {
|
|
|
4939
4973
|
if (data != null)
|
|
4940
4974
|
if (data.result_msg == "OK") {
|
|
4941
4975
|
let dialogRef = this.dialog.open(win_riassegna_select_user, { 'disableClose': true, width: '850px' });
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4976
|
+
setTimeout(() => {
|
|
4977
|
+
dialogRef.componentInstance.arrAutori = data.result_data;
|
|
4978
|
+
dialogRef.componentInstance.title = "Impersona Utente";
|
|
4979
|
+
dialogRef.componentInstance.commento_hidden = true;
|
|
4980
|
+
});
|
|
4945
4981
|
dialogRef.afterClosed().subscribe(result => {
|
|
4946
4982
|
if (result != null)
|
|
4947
4983
|
if (result.result != null)
|
|
@@ -5379,7 +5415,9 @@ let OfficeAutomatorService = class OfficeAutomatorService {
|
|
|
5379
5415
|
this.eprog += 10;
|
|
5380
5416
|
if (this.eprog >= 100)
|
|
5381
5417
|
this.eprog = 95;
|
|
5382
|
-
|
|
5418
|
+
setTimeout(() => {
|
|
5419
|
+
dialogRef_W.componentInstance.update_progess(this.eprog);
|
|
5420
|
+
});
|
|
5383
5421
|
setTimeout(() => {
|
|
5384
5422
|
this.progress_update(dialogRef_W);
|
|
5385
5423
|
}, 2000);
|
|
@@ -5963,8 +6001,10 @@ let FHGridComponent = class FHGridComponent {
|
|
|
5963
6001
|
}
|
|
5964
6002
|
insert_config() {
|
|
5965
6003
|
this.win_opt = this.m_dialog.open(WinAskTextComponent, { 'disableClose': true });
|
|
5966
|
-
|
|
5967
|
-
|
|
6004
|
+
setTimeout(() => {
|
|
6005
|
+
this.win_opt.componentInstance.title = 'Salva Configurazione';
|
|
6006
|
+
this.win_opt.componentInstance.label = 'Nome';
|
|
6007
|
+
});
|
|
5968
6008
|
this.win_opt.afterClosed().subscribe(result => {
|
|
5969
6009
|
if (result)
|
|
5970
6010
|
if (result != null) {
|
|
@@ -6153,11 +6193,13 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6153
6193
|
return "NA";
|
|
6154
6194
|
}
|
|
6155
6195
|
ngAfterViewInit() {
|
|
6156
|
-
|
|
6157
|
-
this.end_point
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6196
|
+
setTimeout(() => {
|
|
6197
|
+
if (this.end_point == null)
|
|
6198
|
+
this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
6199
|
+
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
6200
|
+
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
6201
|
+
this.onResize();
|
|
6202
|
+
});
|
|
6161
6203
|
}
|
|
6162
6204
|
okr(event) {
|
|
6163
6205
|
//console.log(event.column.colDef.field);
|
|
@@ -6276,7 +6318,9 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6276
6318
|
this.dialogRef_W = this.m_dialog.open(WinWait, {
|
|
6277
6319
|
disableClose: true
|
|
6278
6320
|
});
|
|
6279
|
-
|
|
6321
|
+
setTimeout(() => {
|
|
6322
|
+
this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
|
|
6323
|
+
});
|
|
6280
6324
|
let cmds = [];
|
|
6281
6325
|
let str_fields = "";
|
|
6282
6326
|
let p_col = this.gridOptions.columnApi.getColumnState();
|
|
@@ -6301,7 +6345,9 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6301
6345
|
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++));
|
|
6302
6346
|
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++));
|
|
6303
6347
|
this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe((data) => {
|
|
6304
|
-
|
|
6348
|
+
setTimeout(() => {
|
|
6349
|
+
this.dialogRef_W.componentInstance.update_progess(100);
|
|
6350
|
+
});
|
|
6305
6351
|
let p = new FSInput();
|
|
6306
6352
|
p.p1 =
|
|
6307
6353
|
this.m_appService.LOCAL_PATH + "grid_reports\\" + this.uiid_stampa + "_" + this.m_appService.user +
|
|
@@ -7190,23 +7236,20 @@ let FHAutoCompleteComponent = FHAutoCompleteComponent_1 = class FHAutoCompleteCo
|
|
|
7190
7236
|
}
|
|
7191
7237
|
}
|
|
7192
7238
|
ngAfterViewInit() {
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7239
|
+
setTimeout(() => {
|
|
7240
|
+
if (this.init_fill) {
|
|
7241
|
+
if (this.sql == '') {
|
|
7242
|
+
return;
|
|
7243
|
+
}
|
|
7244
|
+
this.fillCombo();
|
|
7199
7245
|
}
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
}
|
|
7207
|
-
this
|
|
7208
|
-
.initend
|
|
7209
|
-
.emit();
|
|
7246
|
+
else {
|
|
7247
|
+
this.errorMsg = "";
|
|
7248
|
+
}
|
|
7249
|
+
this
|
|
7250
|
+
.initend
|
|
7251
|
+
.emit();
|
|
7252
|
+
});
|
|
7210
7253
|
}
|
|
7211
7254
|
/// override some FHValueAccessor implementation
|
|
7212
7255
|
/**
|
|
@@ -7614,7 +7657,9 @@ let FHDatePickerComponent = FHDatePickerComponent_1 = class FHDatePickerComponen
|
|
|
7614
7657
|
return this.date_sel.toDate();
|
|
7615
7658
|
}
|
|
7616
7659
|
ngAfterViewInit() {
|
|
7617
|
-
|
|
7660
|
+
setTimeout(() => {
|
|
7661
|
+
this.setLimits();
|
|
7662
|
+
});
|
|
7618
7663
|
// this.myDatePickerOptions.componentDisabled=!this.enabled;
|
|
7619
7664
|
}
|
|
7620
7665
|
setLimits() {
|
|
@@ -7841,7 +7886,9 @@ let FHCurrencyFormatterDirective = class FHCurrencyFormatterDirective {
|
|
|
7841
7886
|
this.el = this.elementRef.nativeElement;
|
|
7842
7887
|
}
|
|
7843
7888
|
ngAfterViewInit() {
|
|
7844
|
-
|
|
7889
|
+
setTimeout(() => {
|
|
7890
|
+
this.el.value = this.currencyPipe.transform(this.el.value);
|
|
7891
|
+
});
|
|
7845
7892
|
}
|
|
7846
7893
|
onFocus(value) {
|
|
7847
7894
|
this.el.value = this.currencyPipe.parse(value); // opossite of transform
|
|
@@ -7979,7 +8026,7 @@ let TextAreaEditor = class TextAreaEditor {
|
|
|
7979
8026
|
// dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
|
|
7980
8027
|
ngAfterViewInit() {
|
|
7981
8028
|
// console.log(this.appdt.nativeElement);
|
|
7982
|
-
setTimeout(() => this.appdt.nativeElement.focus()
|
|
8029
|
+
setTimeout(() => this.appdt.nativeElement.focus());
|
|
7983
8030
|
}
|
|
7984
8031
|
agInit(params) {
|
|
7985
8032
|
this.params = params;
|
|
@@ -8821,12 +8868,14 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
8821
8868
|
this.el.nativeElement.focus();
|
|
8822
8869
|
}
|
|
8823
8870
|
ngAfterViewInit() {
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
this.value
|
|
8829
|
-
|
|
8871
|
+
setTimeout(() => {
|
|
8872
|
+
if (this.required)
|
|
8873
|
+
this.el.nativeElement.required = this.required;
|
|
8874
|
+
this.el.nativeElement.disabled = !this.enabled;
|
|
8875
|
+
if (this.value == null)
|
|
8876
|
+
this.value = 0;
|
|
8877
|
+
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8878
|
+
});
|
|
8830
8879
|
}
|
|
8831
8880
|
};
|
|
8832
8881
|
__decorate([
|
|
@@ -8928,38 +8977,40 @@ let FHRichText = class FHRichText {
|
|
|
8928
8977
|
this.blur.emit(o);
|
|
8929
8978
|
}
|
|
8930
8979
|
ngAfterViewInit() {
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
this.
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8980
|
+
setTimeout(() => {
|
|
8981
|
+
this.config = { height: this.height };
|
|
8982
|
+
if (this.enabled) {
|
|
8983
|
+
this.config.toolbarGroups = [
|
|
8984
|
+
{ name: 'document', groups: ['mode', 'document', 'doctools'] },
|
|
8985
|
+
{ name: 'clipboard', groups: ['clipboard', 'undo'] },
|
|
8986
|
+
{ name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
|
|
8987
|
+
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
|
|
8988
|
+
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
|
|
8989
|
+
{ name: 'links' },
|
|
8990
|
+
{ name: 'insert' },
|
|
8991
|
+
{ name: 'styles' },
|
|
8992
|
+
{ name: 'colors' },
|
|
8993
|
+
{ name: 'tools' },
|
|
8994
|
+
{ name: 'others' },
|
|
8995
|
+
{ name: 'about' }
|
|
8996
|
+
];
|
|
8997
|
+
}
|
|
8998
|
+
else {
|
|
8999
|
+
this.config.allowedContent = true;
|
|
9000
|
+
this.config.toolbarGroups = [];
|
|
9001
|
+
}
|
|
9002
|
+
/*
|
|
9003
|
+
var element = document.querySelector( '.cke_top' );
|
|
9004
|
+
console.log("Just to do some debugging we check " + element);
|
|
9005
|
+
var myEl = this.ced.toolbarButtons
|
|
9006
|
+
myEl.toggle();
|
|
9007
|
+
element = document.querySelector( '.cke_bottom' );
|
|
9008
|
+
myEl = ced.element( element );
|
|
9009
|
+
myEl.toggle();
|
|
9010
|
+
|
|
9011
|
+
var myEl2 = angular.element( document.querySelector( '.test' ) );
|
|
9012
|
+
myEl2.toggleClass("invisible")*/
|
|
9013
|
+
});
|
|
8963
9014
|
}
|
|
8964
9015
|
writeValue(value) {
|
|
8965
9016
|
this.value = value;
|
|
@@ -9193,13 +9244,15 @@ let FHNumericFieldComponent = class FHNumericFieldComponent {
|
|
|
9193
9244
|
this.el.nativeElement.focus();
|
|
9194
9245
|
}
|
|
9195
9246
|
ngAfterViewInit() {
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
this.value
|
|
9201
|
-
|
|
9202
|
-
|
|
9247
|
+
setTimeout(() => {
|
|
9248
|
+
if (this.required)
|
|
9249
|
+
this.el.nativeElement.required = this.required;
|
|
9250
|
+
this.el.nativeElement.disabled = !this.enabled;
|
|
9251
|
+
if (this.value == null)
|
|
9252
|
+
this.value = 0;
|
|
9253
|
+
// console.log('tttttttttttt',this.decimal);
|
|
9254
|
+
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
9255
|
+
});
|
|
9203
9256
|
}
|
|
9204
9257
|
};
|
|
9205
9258
|
FHNumericFieldComponent.ctorParameters = () => [
|
|
@@ -9749,9 +9802,11 @@ let win_uploads = class win_uploads {
|
|
|
9749
9802
|
}
|
|
9750
9803
|
close() { this.dialogRef.close(null); }
|
|
9751
9804
|
ngAfterViewInit() {
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9805
|
+
setTimeout(() => {
|
|
9806
|
+
this.App = this.app_s.getState().wkf_doc_info.uiid_app;
|
|
9807
|
+
this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
|
|
9808
|
+
this.init(this.App, this.K);
|
|
9809
|
+
});
|
|
9755
9810
|
}
|
|
9756
9811
|
init(p_app, p_k) {
|
|
9757
9812
|
this.App = p_app;
|
|
@@ -10025,11 +10080,13 @@ let win_commenti = class win_commenti {
|
|
|
10025
10080
|
}
|
|
10026
10081
|
select_destinatari_grp() {
|
|
10027
10082
|
let dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10083
|
+
setTimeout(() => {
|
|
10084
|
+
dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
|
|
10085
|
+
dialo.componentInstance.types = ['string'];
|
|
10086
|
+
dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
|
|
10087
|
+
dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
|
|
10088
|
+
dialo.componentInstance.doFill();
|
|
10089
|
+
});
|
|
10033
10090
|
dialo.afterClosed().subscribe(result => {
|
|
10034
10091
|
if (result != null) {
|
|
10035
10092
|
if (result == '')
|
|
@@ -10064,7 +10121,9 @@ let win_commenti = class win_commenti {
|
|
|
10064
10121
|
let ok_op = false;
|
|
10065
10122
|
this._dataService.doQuery(p).subscribe(data => {
|
|
10066
10123
|
let dialo = this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
|
|
10067
|
-
|
|
10124
|
+
setTimeout(() => {
|
|
10125
|
+
dialo.componentInstance.init_arr(data.result_data);
|
|
10126
|
+
});
|
|
10068
10127
|
dialo.afterClosed().subscribe(result => {
|
|
10069
10128
|
// this.selectedOption = result;
|
|
10070
10129
|
if (result != null) {
|
|
@@ -10533,7 +10592,9 @@ let win_log = class win_log {
|
|
|
10533
10592
|
let ok_op = false;
|
|
10534
10593
|
this._dataService.doQuery(p).subscribe(data => {
|
|
10535
10594
|
let dialo = this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
|
|
10536
|
-
|
|
10595
|
+
setTimeout(() => {
|
|
10596
|
+
dialo.componentInstance.init_arr(data.result_data);
|
|
10597
|
+
});
|
|
10537
10598
|
dialo.afterClosed().subscribe(result => {
|
|
10538
10599
|
if (result != null) {
|
|
10539
10600
|
let s_users = "";
|
|
@@ -10549,11 +10610,13 @@ let win_log = class win_log {
|
|
|
10549
10610
|
}
|
|
10550
10611
|
select_destinatari_grp() {
|
|
10551
10612
|
let dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10613
|
+
setTimeout(() => {
|
|
10614
|
+
dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
|
|
10615
|
+
dialo.componentInstance.types = ['string'];
|
|
10616
|
+
dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
|
|
10617
|
+
dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
|
|
10618
|
+
dialo.componentInstance.doFill();
|
|
10619
|
+
});
|
|
10557
10620
|
dialo.afterClosed().subscribe(result => {
|
|
10558
10621
|
if (result != null) {
|
|
10559
10622
|
if (result == '')
|
|
@@ -11090,8 +11153,10 @@ let FHGridJSONComponent = class FHGridJSONComponent {
|
|
|
11090
11153
|
}
|
|
11091
11154
|
insert_config() {
|
|
11092
11155
|
this.win_opt = this.m_dialog.open(WinAskTextComponent, { 'disableClose': true });
|
|
11093
|
-
|
|
11094
|
-
|
|
11156
|
+
setTimeout(() => {
|
|
11157
|
+
this.win_opt.componentInstance.title = 'Salva Configurazione';
|
|
11158
|
+
this.win_opt.componentInstance.label = 'Nome';
|
|
11159
|
+
});
|
|
11095
11160
|
this.win_opt.afterClosed().subscribe(result => {
|
|
11096
11161
|
if (result)
|
|
11097
11162
|
if (result != null) {
|
|
@@ -12349,7 +12414,9 @@ class dati_aggiuntivi {
|
|
|
12349
12414
|
let dialogRef = this.m_dialog.open(win_assegna, {
|
|
12350
12415
|
disableClose: true
|
|
12351
12416
|
});
|
|
12352
|
-
|
|
12417
|
+
setTimeout(() => {
|
|
12418
|
+
dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
|
|
12419
|
+
});
|
|
12353
12420
|
dialogRef.afterClosed().subscribe(result => {
|
|
12354
12421
|
if (result == "") {
|
|
12355
12422
|
this.edit_b(true);
|
|
@@ -12707,40 +12774,46 @@ class dati_aggiuntivi {
|
|
|
12707
12774
|
open_wkf(inser_c = false) {
|
|
12708
12775
|
let s_h = (this.app_s.getState().body_h - 40) + 'px';
|
|
12709
12776
|
let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: s_h });
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12777
|
+
setTimeout(() => {
|
|
12778
|
+
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
12779
|
+
if (this.m_obj.lettori != null)
|
|
12780
|
+
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
12781
|
+
else
|
|
12782
|
+
dialogRef.componentInstance.lettori = '';
|
|
12783
|
+
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
12784
|
+
dialogRef.componentInstance.codice_doc = this.m_obj.codice;
|
|
12785
|
+
dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
|
|
12786
|
+
dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
|
|
12787
|
+
dialogRef.componentInstance.commenti_insert = inser_c;
|
|
12788
|
+
dialogRef.componentInstance.init_v();
|
|
12789
|
+
});
|
|
12721
12790
|
dialogRef.afterClosed().subscribe(result => {
|
|
12722
12791
|
this.r_count();
|
|
12723
12792
|
});
|
|
12724
12793
|
}
|
|
12725
12794
|
open_commenti() {
|
|
12726
12795
|
let dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
|
|
12796
|
+
setTimeout(() => {
|
|
12797
|
+
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
12798
|
+
if (this.m_obj.lettori != null)
|
|
12799
|
+
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
12800
|
+
else
|
|
12801
|
+
dialogRef.componentInstance.lettori = '';
|
|
12802
|
+
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
12803
|
+
dialogRef.componentInstance.codice_doc = this.m_obj.codice;
|
|
12804
|
+
dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
|
|
12805
|
+
dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
|
|
12806
|
+
dialogRef.componentInstance.init_v();
|
|
12807
|
+
});
|
|
12737
12808
|
dialogRef.afterClosed().subscribe(result => {
|
|
12738
12809
|
this.r_count();
|
|
12739
12810
|
});
|
|
12740
12811
|
}
|
|
12741
12812
|
open_upload(sovra_path = '') {
|
|
12742
12813
|
let dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%" });
|
|
12743
|
-
|
|
12814
|
+
setTimeout(() => {
|
|
12815
|
+
dialogRef.componentInstance.sovrascrivi_path = sovra_path;
|
|
12816
|
+
});
|
|
12744
12817
|
dialogRef.afterClosed().subscribe(result => {
|
|
12745
12818
|
this.r_count();
|
|
12746
12819
|
});
|
|
@@ -12974,7 +13047,9 @@ class dati_aggiuntivi {
|
|
|
12974
13047
|
let dialogRef = this.m_dialog.open(win_info_doc, {
|
|
12975
13048
|
disableClose: true
|
|
12976
13049
|
});
|
|
12977
|
-
|
|
13050
|
+
setTimeout(() => {
|
|
13051
|
+
dialogRef.componentInstance.hide_richiedente = this.hide_richiedente;
|
|
13052
|
+
});
|
|
12978
13053
|
dialogRef.afterClosed().subscribe(result => {
|
|
12979
13054
|
// this.selectedOption = result;
|
|
12980
13055
|
});
|
|
@@ -13278,7 +13353,9 @@ class dati_aggiuntivi {
|
|
|
13278
13353
|
});
|
|
13279
13354
|
}
|
|
13280
13355
|
ngAfterViewInit() {
|
|
13281
|
-
|
|
13356
|
+
setTimeout(() => {
|
|
13357
|
+
this.init_engine();
|
|
13358
|
+
});
|
|
13282
13359
|
}
|
|
13283
13360
|
setta_info_app(o) {
|
|
13284
13361
|
this.app_info = o;
|
|
@@ -13453,8 +13530,10 @@ let FormBuilderComponent = class FormBuilderComponent {
|
|
|
13453
13530
|
}
|
|
13454
13531
|
del_item(uiid_obj) {
|
|
13455
13532
|
let dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
|
|
13456
|
-
|
|
13457
|
-
|
|
13533
|
+
setTimeout(() => {
|
|
13534
|
+
dialogRef.componentInstance.title = 'Confirm';
|
|
13535
|
+
dialogRef.componentInstance.msg = "Remove Element?";
|
|
13536
|
+
});
|
|
13458
13537
|
dialogRef.afterClosed().subscribe(result => {
|
|
13459
13538
|
if (result) {
|
|
13460
13539
|
for (let i = 0; i < this.items.length; i++)
|
|
@@ -13467,24 +13546,26 @@ let FormBuilderComponent = class FormBuilderComponent {
|
|
|
13467
13546
|
});
|
|
13468
13547
|
}
|
|
13469
13548
|
ngAfterViewInit() {
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13549
|
+
setTimeout(() => {
|
|
13550
|
+
try {
|
|
13551
|
+
this.dragula.createGroup('bag-items', {
|
|
13552
|
+
revertOnSpill: true
|
|
13553
|
+
});
|
|
13554
|
+
}
|
|
13555
|
+
catch (e) {
|
|
13556
|
+
console.log(e);
|
|
13557
|
+
}
|
|
13558
|
+
this.dragula
|
|
13559
|
+
.drag.call(value => {
|
|
13560
|
+
this.change.emit();
|
|
13561
|
+
this.edit_obj = null;
|
|
13562
|
+
});
|
|
13563
|
+
this.dragula
|
|
13564
|
+
.drop
|
|
13565
|
+
.call(value => {
|
|
13566
|
+
this.change.emit();
|
|
13567
|
+
this.edit_obj = null;
|
|
13473
13568
|
});
|
|
13474
|
-
}
|
|
13475
|
-
catch (e) {
|
|
13476
|
-
console.log(e);
|
|
13477
|
-
}
|
|
13478
|
-
this.dragula
|
|
13479
|
-
.drag.call(value => {
|
|
13480
|
-
this.change.emit();
|
|
13481
|
-
this.edit_obj = null;
|
|
13482
|
-
});
|
|
13483
|
-
this.dragula
|
|
13484
|
-
.drop
|
|
13485
|
-
.call(value => {
|
|
13486
|
-
this.change.emit();
|
|
13487
|
-
this.edit_obj = null;
|
|
13488
13569
|
});
|
|
13489
13570
|
}
|
|
13490
13571
|
};
|
|
@@ -13887,9 +13968,11 @@ let FHViewerComponent = class FHViewerComponent {
|
|
|
13887
13968
|
this.fullScreenEvent = new EventEmitter();
|
|
13888
13969
|
}
|
|
13889
13970
|
ngAfterViewInit() {
|
|
13890
|
-
|
|
13891
|
-
|
|
13892
|
-
|
|
13971
|
+
setTimeout(() => {
|
|
13972
|
+
const merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
|
|
13973
|
+
this.config = this.mergeConfig(merged, this.config);
|
|
13974
|
+
this.triggerConfigBinding();
|
|
13975
|
+
});
|
|
13893
13976
|
}
|
|
13894
13977
|
nextImage($event) {
|
|
13895
13978
|
console.log('this.src.length ', this.src.length);
|
|
@@ -14145,7 +14228,9 @@ let fhimagepreview = class fhimagepreview {
|
|
|
14145
14228
|
this.already_open = true;
|
|
14146
14229
|
}
|
|
14147
14230
|
ngAfterViewInit() {
|
|
14148
|
-
|
|
14231
|
+
setTimeout(() => {
|
|
14232
|
+
this.init();
|
|
14233
|
+
});
|
|
14149
14234
|
}
|
|
14150
14235
|
openFullscreen() {
|
|
14151
14236
|
console.log('cc', this.photo_c.imgx);
|
|
@@ -14365,14 +14450,16 @@ let FHFieldPickListComponent = class FHFieldPickListComponent {
|
|
|
14365
14450
|
let dialogRef = this.m_dialog.open(FHListPick, {
|
|
14366
14451
|
disableClose: true
|
|
14367
14452
|
});
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14453
|
+
setTimeout(() => {
|
|
14454
|
+
dialogRef.componentInstance.single_sel = this.single_sel;
|
|
14455
|
+
dialogRef.componentInstance.sel_values = this.value;
|
|
14456
|
+
dialogRef.componentInstance.separator = this.separator;
|
|
14457
|
+
dialogRef.componentInstance.label = this.label;
|
|
14458
|
+
dialogRef.componentInstance.sql = this.sql;
|
|
14459
|
+
dialogRef.componentInstance.types = this.types;
|
|
14460
|
+
dialogRef.componentInstance.values = this.values;
|
|
14461
|
+
dialogRef.componentInstance.doFill();
|
|
14462
|
+
});
|
|
14376
14463
|
dialogRef.afterClosed().subscribe(result => {
|
|
14377
14464
|
if (result != null && result != '') {
|
|
14378
14465
|
this.value = '';
|
|
@@ -14528,15 +14615,17 @@ let win_manage_values = class win_manage_values {
|
|
|
14528
14615
|
ok() {
|
|
14529
14616
|
}
|
|
14530
14617
|
ngAfterViewInit() {
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14618
|
+
setTimeout(() => {
|
|
14619
|
+
this.nValori = new Object();
|
|
14620
|
+
//this.nValori.valore=0;
|
|
14621
|
+
this.nValori.descrizione = '';
|
|
14622
|
+
this.nValori.v1 = null;
|
|
14623
|
+
this.nValori.v2 = null;
|
|
14624
|
+
this.nValori.id_valore = -1;
|
|
14625
|
+
this.nValori.v3 = null;
|
|
14626
|
+
this.nValori.lingua = null;
|
|
14627
|
+
this.ref_user_list();
|
|
14628
|
+
});
|
|
14540
14629
|
}
|
|
14541
14630
|
};
|
|
14542
14631
|
win_manage_values.ctorParameters = () => [
|
|
@@ -14635,20 +14724,24 @@ let FHTableManager = class FHTableManager {
|
|
|
14635
14724
|
if (this.cmb_sel.getValue() == "-1")
|
|
14636
14725
|
return;
|
|
14637
14726
|
let dialogRef = this._dialog.open(win_manage_values, { width: '90%', height: '550px' });
|
|
14638
|
-
|
|
14727
|
+
setTimeout(() => {
|
|
14728
|
+
dialogRef.componentInstance.id_tipo = Number(this.cmb_sel.getValue());
|
|
14729
|
+
});
|
|
14639
14730
|
dialogRef.afterClosed().subscribe(result => {
|
|
14640
14731
|
if (result) {
|
|
14641
14732
|
}
|
|
14642
14733
|
});
|
|
14643
14734
|
}
|
|
14644
14735
|
ngAfterViewInit() {
|
|
14645
|
-
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14736
|
+
setTimeout(() => {
|
|
14737
|
+
if (this.application == "")
|
|
14738
|
+
return;
|
|
14739
|
+
this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
|
|
14740
|
+
this.cmb_sel.types = ['string'];
|
|
14741
|
+
this.cmb_sel.values = [this.application];
|
|
14742
|
+
this.cmb_sel.fillCombo();
|
|
14743
|
+
this.b_init = true;
|
|
14744
|
+
});
|
|
14652
14745
|
}
|
|
14653
14746
|
};
|
|
14654
14747
|
FHTableManager.ctorParameters = () => [
|
|
@@ -14754,7 +14847,9 @@ let win_manage_roles = class win_manage_roles {
|
|
|
14754
14847
|
});
|
|
14755
14848
|
}
|
|
14756
14849
|
ngAfterViewInit() {
|
|
14757
|
-
|
|
14850
|
+
setTimeout(() => {
|
|
14851
|
+
this.ref_user_list();
|
|
14852
|
+
});
|
|
14758
14853
|
}
|
|
14759
14854
|
};
|
|
14760
14855
|
win_manage_roles.ctorParameters = () => [
|
|
@@ -14843,20 +14938,24 @@ let FHRoleManager = class FHRoleManager {
|
|
|
14843
14938
|
if (this.cmb_sel.getValue() == "-1")
|
|
14844
14939
|
return;
|
|
14845
14940
|
let dialogRef = this._dialog.open(win_manage_roles, { width: '90%', height: '550px' });
|
|
14846
|
-
|
|
14941
|
+
setTimeout(() => {
|
|
14942
|
+
dialogRef.componentInstance.role_id = Number(this.cmb_sel.getValue());
|
|
14943
|
+
});
|
|
14847
14944
|
dialogRef.afterClosed().subscribe(result => {
|
|
14848
14945
|
if (result) {
|
|
14849
14946
|
}
|
|
14850
14947
|
});
|
|
14851
14948
|
}
|
|
14852
14949
|
ngAfterViewInit() {
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14859
|
-
|
|
14950
|
+
setTimeout(() => {
|
|
14951
|
+
if (this.application == "")
|
|
14952
|
+
return;
|
|
14953
|
+
this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
|
|
14954
|
+
this.cmb_sel.types = ['string'];
|
|
14955
|
+
this.cmb_sel.values = [this.application];
|
|
14956
|
+
this.cmb_sel.fillCombo();
|
|
14957
|
+
this.b_init = true;
|
|
14958
|
+
});
|
|
14860
14959
|
}
|
|
14861
14960
|
};
|
|
14862
14961
|
FHRoleManager.ctorParameters = () => [
|
|
@@ -15145,19 +15244,21 @@ let FHComboboxComponentFilter = class FHComboboxComponentFilter {
|
|
|
15145
15244
|
this.setByDescri(this.valDef);
|
|
15146
15245
|
}
|
|
15147
15246
|
ngAfterViewInit() {
|
|
15148
|
-
|
|
15149
|
-
if (this.
|
|
15150
|
-
|
|
15151
|
-
|
|
15247
|
+
setTimeout(() => {
|
|
15248
|
+
if (this.init_fill == true) {
|
|
15249
|
+
if (this.sql == '') {
|
|
15250
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
15251
|
+
return;
|
|
15252
|
+
}
|
|
15253
|
+
this.fillCombo();
|
|
15152
15254
|
}
|
|
15153
|
-
|
|
15154
|
-
|
|
15155
|
-
|
|
15156
|
-
this
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15160
|
-
.emit();
|
|
15255
|
+
else {
|
|
15256
|
+
this.errorMsg = "";
|
|
15257
|
+
}
|
|
15258
|
+
this
|
|
15259
|
+
.initend
|
|
15260
|
+
.emit();
|
|
15261
|
+
});
|
|
15161
15262
|
}
|
|
15162
15263
|
sc() {
|
|
15163
15264
|
this
|
|
@@ -15289,7 +15390,9 @@ let win_insert_commento = class win_insert_commento {
|
|
|
15289
15390
|
let ok_op = false;
|
|
15290
15391
|
this._dataService.doQuery(p).subscribe(data => {
|
|
15291
15392
|
let dialo = this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
|
|
15292
|
-
|
|
15393
|
+
setTimeout(() => {
|
|
15394
|
+
dialo.componentInstance.init_arr(data.result_data);
|
|
15395
|
+
});
|
|
15293
15396
|
dialo.afterClosed().subscribe(result => {
|
|
15294
15397
|
// this.selectedOption = result;
|
|
15295
15398
|
if (result != null) {
|
|
@@ -15411,22 +15514,24 @@ let win_user_info = class win_user_info {
|
|
|
15411
15514
|
}
|
|
15412
15515
|
close() { this.dialogRef.close(null); }
|
|
15413
15516
|
ngAfterViewInit() {
|
|
15414
|
-
|
|
15415
|
-
if (this.
|
|
15416
|
-
if (this.appService.dev_mode
|
|
15417
|
-
this.dev_mode
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
if (data
|
|
15425
|
-
if (data.
|
|
15426
|
-
|
|
15427
|
-
|
|
15517
|
+
setTimeout(() => {
|
|
15518
|
+
if (this.isadmin == '1')
|
|
15519
|
+
if (this.appService.dev_mode != null)
|
|
15520
|
+
if (this.appService.dev_mode == '1')
|
|
15521
|
+
this.dev_mode = true;
|
|
15522
|
+
let p = new QParam();
|
|
15523
|
+
p.sql = "SELECT_ALLEGATI_DOCUMENTO";
|
|
15524
|
+
p.types = ['string', 'string'];
|
|
15525
|
+
p.values = ['FOTO_UTENTI', this.appService.user];
|
|
15526
|
+
this._dataService.doQuery(p).subscribe(data => {
|
|
15527
|
+
if (data != null)
|
|
15528
|
+
if (data.result_msg == "OK") {
|
|
15529
|
+
if (data.result_data.length > 0) {
|
|
15530
|
+
this.b_filef = true;
|
|
15531
|
+
this.foto_ut = this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
|
|
15532
|
+
}
|
|
15428
15533
|
}
|
|
15429
|
-
|
|
15534
|
+
});
|
|
15430
15535
|
});
|
|
15431
15536
|
}
|
|
15432
15537
|
upd_dev(dv) {
|