@fluxhub/fluxhub-lib 19.0.136 → 19.0.138
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.
|
@@ -26422,6 +26422,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
26422
26422
|
args: ['bottoml']
|
|
26423
26423
|
}] } });
|
|
26424
26424
|
|
|
26425
|
+
class FHToolBarCustomAction {
|
|
26426
|
+
command;
|
|
26427
|
+
label = '';
|
|
26428
|
+
color;
|
|
26429
|
+
icon;
|
|
26430
|
+
hidden = false;
|
|
26431
|
+
}
|
|
26432
|
+
|
|
26425
26433
|
class OfficeOperation {
|
|
26426
26434
|
op = '';
|
|
26427
26435
|
v1;
|
|
@@ -26886,2076 +26894,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
26886
26894
|
args: ['up']
|
|
26887
26895
|
}] } });
|
|
26888
26896
|
|
|
26889
|
-
class FHGridInternalComponent {
|
|
26890
|
-
_gridservice;
|
|
26891
|
-
_toast;
|
|
26892
|
-
_dataService;
|
|
26893
|
-
m_appService;
|
|
26894
|
-
m_dialog;
|
|
26895
|
-
uti_s;
|
|
26896
|
-
officeService;
|
|
26897
|
-
_fileService;
|
|
26898
|
-
clipboard;
|
|
26899
|
-
_trs;
|
|
26900
|
-
http;
|
|
26901
|
-
flt_aggiuntivo = [];
|
|
26902
|
-
flt_aggiuntivo_value = '';
|
|
26903
|
-
flt_aggiuntivo_label = '';
|
|
26904
|
-
rowHeight = 30;
|
|
26905
|
-
sc() {
|
|
26906
|
-
this.flt_aggiuntivo_event.emit(this.flt_aggiuntivo_value);
|
|
26907
|
-
}
|
|
26908
|
-
width_max = '100%';
|
|
26909
|
-
browser = 'nd';
|
|
26910
|
-
getBrowserName() {
|
|
26911
|
-
const agent = window.navigator.userAgent.toLowerCase();
|
|
26912
|
-
switch (true) {
|
|
26913
|
-
case agent.indexOf('edge') > -1:
|
|
26914
|
-
return 'edge';
|
|
26915
|
-
case agent.indexOf('opr') > -1 && !!window.opr:
|
|
26916
|
-
return 'opera';
|
|
26917
|
-
case agent.indexOf('chrome') > -1 && !!window.chrome:
|
|
26918
|
-
return 'chrome';
|
|
26919
|
-
case agent.indexOf('trident') > -1:
|
|
26920
|
-
return 'ie';
|
|
26921
|
-
case agent.indexOf('firefox') > -1:
|
|
26922
|
-
return 'firefox';
|
|
26923
|
-
case agent.indexOf('safari') > -1:
|
|
26924
|
-
return 'safari';
|
|
26925
|
-
default:
|
|
26926
|
-
return 'other';
|
|
26927
|
-
}
|
|
26928
|
-
}
|
|
26929
|
-
gridCursorPointer = false;
|
|
26930
|
-
overwrite_help_url = '';
|
|
26931
|
-
over_fulltext = false;
|
|
26932
|
-
b_wait = false;
|
|
26933
|
-
over_fulltext_types = [];
|
|
26934
|
-
over_fulltext_values = [];
|
|
26935
|
-
over_fulltext_sql = '';
|
|
26936
|
-
forceFitSize = false;
|
|
26937
|
-
tooltipShowDelay = 2000;
|
|
26938
|
-
elimina_label = 'ELIMINA';
|
|
26939
|
-
show_selected_number = false;
|
|
26940
|
-
export_field_aggiuntivi = '';
|
|
26941
|
-
end_point = null;
|
|
26942
|
-
grid_config_key = '';
|
|
26943
|
-
columnDefs = [];
|
|
26944
|
-
count_tbl_name = '';
|
|
26945
|
-
search_field_tooltip = '';
|
|
26946
|
-
loading_fulltext = false;
|
|
26947
|
-
num_per_pag = 0;
|
|
26948
|
-
grid_customer_preference_key = 'PRO_H';
|
|
26949
|
-
sort_field = '';
|
|
26950
|
-
fields = '*';
|
|
26951
|
-
filters = '1=1';
|
|
26952
|
-
enabled = true;
|
|
26953
|
-
show_link = false;
|
|
26954
|
-
show_help_bar = false;
|
|
26955
|
-
help_label_bar = 'HELP';
|
|
26956
|
-
auto_load = true;
|
|
26957
|
-
customKeyField = null;
|
|
26958
|
-
auto_height = false;
|
|
26959
|
-
enable_export = true;
|
|
26960
|
-
enabled_pag = true;
|
|
26961
|
-
show_help = true;
|
|
26962
|
-
show_num_elem = true;
|
|
26963
|
-
private_pref = false;
|
|
26964
|
-
system_dest = 1;
|
|
26965
|
-
header_h = 35;
|
|
26966
|
-
selection_mode = {
|
|
26967
|
-
mode: 'multiRow'
|
|
26968
|
-
};
|
|
26969
|
-
init_fill = true;
|
|
26970
|
-
no_pref = false;
|
|
26971
|
-
pref_hidden = true;
|
|
26972
|
-
enable_export_pdf = true;
|
|
26973
|
-
enable_export_xls = true;
|
|
26974
|
-
translateFilterEnabled = true;
|
|
26975
|
-
enable_copy = true;
|
|
26976
|
-
full_text_added_columns = [];
|
|
26977
|
-
full_text_added_query = [];
|
|
26978
|
-
autosize_at_ini = true;
|
|
26979
|
-
event;
|
|
26980
|
-
label_elementi = ' Elementi';
|
|
26981
|
-
trova_label = 'TROVA';
|
|
26982
|
-
mantieni_impostazioni = 'Mantieni Imp.';
|
|
26983
|
-
curr_filter = '';
|
|
26984
|
-
num_s = 0;
|
|
26985
|
-
label_elementi_s = 'Sel.';
|
|
26986
|
-
flt_aggiuntivo_event = new EventEmitter();
|
|
26987
|
-
show_buttons = true;
|
|
26988
|
-
fill_end = new EventEmitter();
|
|
26989
|
-
cell_edited = new EventEmitter();
|
|
26990
|
-
clicked = new EventEmitter();
|
|
26991
|
-
dclicked = new EventEmitter();
|
|
26992
|
-
columndclicked = new EventEmitter();
|
|
26993
|
-
cell_clicked = new EventEmitter();
|
|
26994
|
-
selection_change = new EventEmitter();
|
|
26995
|
-
custom_export = false;
|
|
26996
|
-
toolbar_type = 'NONE';
|
|
26997
|
-
toolbar_wkfapp = null;
|
|
26998
|
-
toolbar_custom_commands = [];
|
|
26999
|
-
toolbar_custom_commands_primary = [];
|
|
27000
|
-
command = new EventEmitter();
|
|
27001
|
-
filterCleared = new EventEmitter();
|
|
27002
|
-
check_width() {
|
|
27003
|
-
if (!this.autosize_at_ini)
|
|
27004
|
-
return;
|
|
27005
|
-
setTimeout(() => {
|
|
27006
|
-
//get columns size
|
|
27007
|
-
let go = this.gridApi;
|
|
27008
|
-
if (go.getColumnState()[0].width < 24) {
|
|
27009
|
-
setTimeout(() => {
|
|
27010
|
-
this.autoSizeAll();
|
|
27011
|
-
}, 1000);
|
|
27012
|
-
}
|
|
27013
|
-
}, 100);
|
|
27014
|
-
}
|
|
27015
|
-
docmd(o) {
|
|
27016
|
-
this.command.emit(o);
|
|
27017
|
-
}
|
|
27018
|
-
b_ensure = false;
|
|
27019
|
-
translate_back(val) {
|
|
27020
|
-
if (!this.translateFilterEnabled)
|
|
27021
|
-
return val;
|
|
27022
|
-
if (this._trs == null)
|
|
27023
|
-
return val;
|
|
27024
|
-
if (this._trs.store == null)
|
|
27025
|
-
return val;
|
|
27026
|
-
if (this._trs.store.translations == null)
|
|
27027
|
-
return val;
|
|
27028
|
-
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_lng') == null)
|
|
27029
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + '_lng', 'it');
|
|
27030
|
-
let lng = localStorage.getItem(this.m_appService.COMPANY_KEY + '_lng') || 'it';
|
|
27031
|
-
for (const property in this._trs.store.translations[lng]) {
|
|
27032
|
-
if (this._trs.store.translations[lng][property] == val)
|
|
27033
|
-
return property;
|
|
27034
|
-
}
|
|
27035
|
-
return val;
|
|
27036
|
-
}
|
|
27037
|
-
ensure_visible() {
|
|
27038
|
-
if (this.b_ensure)
|
|
27039
|
-
return;
|
|
27040
|
-
this.b_ensure = true;
|
|
27041
|
-
try {
|
|
27042
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_POS') != null) {
|
|
27043
|
-
if (this.gridApi)
|
|
27044
|
-
this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_customer_preference_key + '_POS') || '0'));
|
|
27045
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_POS');
|
|
27046
|
-
}
|
|
27047
|
-
}
|
|
27048
|
-
catch (e) {
|
|
27049
|
-
}
|
|
27050
|
-
}
|
|
27051
|
-
gf = null;
|
|
27052
|
-
toggle_mantieni = null;
|
|
27053
|
-
ck_flag() {
|
|
27054
|
-
setTimeout(() => {
|
|
27055
|
-
if (this.toggle_mantieni)
|
|
27056
|
-
if (this.toggle_mantieni.checked) {
|
|
27057
|
-
localStorage.setItem(this.grid_customer_preference_key + '_MANTIENI', 'SI');
|
|
27058
|
-
}
|
|
27059
|
-
else {
|
|
27060
|
-
localStorage.setItem(this.grid_customer_preference_key + '_MANTIENI', 'NO');
|
|
27061
|
-
}
|
|
27062
|
-
}, 100);
|
|
27063
|
-
}
|
|
27064
|
-
curr_config = '-1';
|
|
27065
|
-
refresh_all_rows() {
|
|
27066
|
-
setTimeout(() => {
|
|
27067
|
-
if (this.gridApi)
|
|
27068
|
-
this.gridApi.refreshCells({
|
|
27069
|
-
force: true,
|
|
27070
|
-
});
|
|
27071
|
-
}, 0);
|
|
27072
|
-
}
|
|
27073
|
-
ch_config() {
|
|
27074
|
-
if (this.no_pref)
|
|
27075
|
-
return;
|
|
27076
|
-
if (this.gf)
|
|
27077
|
-
this.curr_config = this.gf.getValue();
|
|
27078
|
-
if (this.curr_config == '-1')
|
|
27079
|
-
return;
|
|
27080
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_COLS');
|
|
27081
|
-
// localStorage.removeItem(this.grid_customer_preference_key + "_SORT");
|
|
27082
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_FILTER');
|
|
27083
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_CFG_DEFAULT');
|
|
27084
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_FILTER_UP');
|
|
27085
|
-
if (this.gf)
|
|
27086
|
-
if (this.gf.getObj().COL != null)
|
|
27087
|
-
if (this.gf.getObj().COL != '')
|
|
27088
|
-
localStorage.setItem(this.grid_customer_preference_key + '_COLS', this.gf.getObj().COL);
|
|
27089
|
-
// if (this.gf.getObj().SORT != null)
|
|
27090
|
-
// if (this.gf.getObj().SORT != "")
|
|
27091
|
-
// localStorage.setItem(this.grid_customer_preference_key + "_SORT", this.gf.getObj().SORT);
|
|
27092
|
-
if (this.gf)
|
|
27093
|
-
if (this.gf.getObj().FILTER != null)
|
|
27094
|
-
if (this.gf.getObj().FILTER != '')
|
|
27095
|
-
localStorage.setItem(this.grid_customer_preference_key + '_FILTER', this.gf.getObj().FILTER);
|
|
27096
|
-
if (this.gf)
|
|
27097
|
-
if (this.gf.getDescri() != null)
|
|
27098
|
-
if (this.gf.getDescri() != '-1')
|
|
27099
|
-
localStorage.setItem(this.grid_customer_preference_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
|
|
27100
|
-
if (this.gf)
|
|
27101
|
-
this.curr_config = this.gf.getValue();
|
|
27102
|
-
this.res_columns(true);
|
|
27103
|
-
}
|
|
27104
|
-
elimina_config() {
|
|
27105
|
-
if (this.gf)
|
|
27106
|
-
if (this.gf.getObj().username != null)
|
|
27107
|
-
if (this.m_appService.user != this.gf.getObj().username) {
|
|
27108
|
-
this._toast.error('Configurazione gestibile da: ' + this.gf.getObj().username);
|
|
27109
|
-
return;
|
|
27110
|
-
}
|
|
27111
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + 'title_dialog', 'Conferma Operazione');
|
|
27112
|
-
if (this.gf)
|
|
27113
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + 'msg_dialog', 'Confermi di voler cancellare la configurazione ' +
|
|
27114
|
-
this.gf.getDescri() +
|
|
27115
|
-
'?');
|
|
27116
|
-
let dialogRef = this.m_dialog.open(FHWinConfirmComponent, {
|
|
27117
|
-
disableClose: true,
|
|
27118
|
-
});
|
|
27119
|
-
dialogRef.afterClosed().subscribe((result) => {
|
|
27120
|
-
if (result) {
|
|
27121
|
-
let p = new QParam();
|
|
27122
|
-
p.sql = 'DELETE_CFG_GRID';
|
|
27123
|
-
p.types = ['string', 'string'];
|
|
27124
|
-
if (this.gf)
|
|
27125
|
-
p.values = [this.gf.getDescri(), this.grid_customer_preference_key];
|
|
27126
|
-
let ok_op = false;
|
|
27127
|
-
this._dataService.doQuery(p).subscribe((data) => {
|
|
27128
|
-
let ok_op = false;
|
|
27129
|
-
if (data != null)
|
|
27130
|
-
if (data.result_msg == 'OK') {
|
|
27131
|
-
this._toast.info('Configurazione eliminata');
|
|
27132
|
-
if (this.gf) {
|
|
27133
|
-
this.gf.types = ['string'];
|
|
27134
|
-
this.gf.values = [this.grid_customer_preference_key];
|
|
27135
|
-
this.gf.fillCombo();
|
|
27136
|
-
}
|
|
27137
|
-
this.curr_config = '-1';
|
|
27138
|
-
}
|
|
27139
|
-
});
|
|
27140
|
-
}
|
|
27141
|
-
});
|
|
27142
|
-
}
|
|
27143
|
-
edit_config() {
|
|
27144
|
-
if (this.gf)
|
|
27145
|
-
if (this.gf.getObj().username != null)
|
|
27146
|
-
if (this.m_appService.user != this.gf.getObj().username) {
|
|
27147
|
-
this._toast.error('Configurazione gestibile da: ' + this.gf.getObj().username);
|
|
27148
|
-
return;
|
|
27149
|
-
}
|
|
27150
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + 'title_dialog', 'Conferma Operazione');
|
|
27151
|
-
if (this.gf)
|
|
27152
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + 'msg_dialog', 'Confermi di voler sovrascrivere la configurazione ' +
|
|
27153
|
-
this.gf.getDescri() +
|
|
27154
|
-
'?');
|
|
27155
|
-
let dialogRef = this.m_dialog.open(FHWinConfirmComponent, {
|
|
27156
|
-
disableClose: true,
|
|
27157
|
-
});
|
|
27158
|
-
dialogRef.afterClosed().subscribe((result) => {
|
|
27159
|
-
if (result) {
|
|
27160
|
-
let p = new QParam();
|
|
27161
|
-
p.sql = 'INSERT_UPDATE_CFG_GRID';
|
|
27162
|
-
let p_col = '';
|
|
27163
|
-
// let p_sort: string = "";
|
|
27164
|
-
let p_filter = '';
|
|
27165
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_COLS') != null)
|
|
27166
|
-
p_col = localStorage.getItem(this.grid_customer_preference_key + '_COLS');
|
|
27167
|
-
// if (localStorage.getItem(this.grid_customer_preference_key + "_SORT") != null)
|
|
27168
|
-
// p_sort = localStorage.getItem(this.grid_customer_preference_key + "_SORT");
|
|
27169
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_FILTER') != null)
|
|
27170
|
-
p_filter = localStorage.getItem(this.grid_customer_preference_key + '_FILTER');
|
|
27171
|
-
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
27172
|
-
if (this.gf)
|
|
27173
|
-
p.values = [
|
|
27174
|
-
this.gf.getDescri(),
|
|
27175
|
-
this.grid_customer_preference_key,
|
|
27176
|
-
p_col,
|
|
27177
|
-
'',
|
|
27178
|
-
p_filter,
|
|
27179
|
-
this.m_appService.user,
|
|
27180
|
-
];
|
|
27181
|
-
let ok_op = false;
|
|
27182
|
-
this._dataService.doQuery(p).subscribe((data) => {
|
|
27183
|
-
let ok_op = false;
|
|
27184
|
-
if (data != null)
|
|
27185
|
-
if (data.result_msg == 'OK') {
|
|
27186
|
-
this._toast.info('Configurazione salvata');
|
|
27187
|
-
if (this.gf) {
|
|
27188
|
-
this.gf.types = ['string'];
|
|
27189
|
-
this.gf.values = [this.grid_customer_preference_key];
|
|
27190
|
-
this.gf.fillCombo();
|
|
27191
|
-
}
|
|
27192
|
-
this.curr_config = '-1';
|
|
27193
|
-
}
|
|
27194
|
-
if (!ok_op) {
|
|
27195
|
-
}
|
|
27196
|
-
}, (err) => { });
|
|
27197
|
-
}
|
|
27198
|
-
});
|
|
27199
|
-
}
|
|
27200
|
-
refresh_access(wkfx) {
|
|
27201
|
-
this.toolbar_wkfapp = wkfx;
|
|
27202
|
-
}
|
|
27203
|
-
getGridApi() {
|
|
27204
|
-
return this.gridApi;
|
|
27205
|
-
}
|
|
27206
|
-
getGridOptions() {
|
|
27207
|
-
return this.gridOptions;
|
|
27208
|
-
}
|
|
27209
|
-
win_opt = null;
|
|
27210
|
-
insert_config() {
|
|
27211
|
-
this.win_opt = this.m_dialog.open(FHWinAskTextComponent, {
|
|
27212
|
-
disableClose: true,
|
|
27213
|
-
});
|
|
27214
|
-
setTimeout(() => {
|
|
27215
|
-
if (this.win_opt) {
|
|
27216
|
-
this.win_opt.componentInstance.title = 'Salva Configurazione';
|
|
27217
|
-
this.win_opt.componentInstance.label = 'Nome';
|
|
27218
|
-
}
|
|
27219
|
-
});
|
|
27220
|
-
this.win_opt.afterClosed().subscribe((result) => {
|
|
27221
|
-
if (result)
|
|
27222
|
-
if (result != null) {
|
|
27223
|
-
let p = new QParam();
|
|
27224
|
-
p.sql = 'INSERT_UPDATE_CFG_GRID';
|
|
27225
|
-
let p_col;
|
|
27226
|
-
// let p_sort: string = "";
|
|
27227
|
-
let p_filter;
|
|
27228
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_COLS') != null)
|
|
27229
|
-
p_col = localStorage.getItem(this.grid_customer_preference_key + '_COLS');
|
|
27230
|
-
// if (localStorage.getItem(this.grid_customer_preference_key + "_SORT") != null)
|
|
27231
|
-
// p_sort = localStorage.getItem(this.grid_customer_preference_key + "_SORT");
|
|
27232
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_FILTER') != null)
|
|
27233
|
-
p_filter = localStorage.getItem(this.grid_customer_preference_key + '_FILTER');
|
|
27234
|
-
p.types = [
|
|
27235
|
-
'string',
|
|
27236
|
-
'string',
|
|
27237
|
-
'string',
|
|
27238
|
-
'string',
|
|
27239
|
-
'string',
|
|
27240
|
-
'string',
|
|
27241
|
-
];
|
|
27242
|
-
p.values = [
|
|
27243
|
-
result,
|
|
27244
|
-
this.grid_customer_preference_key,
|
|
27245
|
-
p_col,
|
|
27246
|
-
'',
|
|
27247
|
-
p_filter,
|
|
27248
|
-
this.m_appService.user,
|
|
27249
|
-
];
|
|
27250
|
-
let ok_op = false;
|
|
27251
|
-
this._dataService.doQuery(p).subscribe((data) => {
|
|
27252
|
-
let ok_op = false;
|
|
27253
|
-
if (data != null)
|
|
27254
|
-
if (data.result_msg == 'OK') {
|
|
27255
|
-
this._toast.info('Configurazione salvata');
|
|
27256
|
-
ok_op = true;
|
|
27257
|
-
if (this.gf) {
|
|
27258
|
-
this.gf.types = ['string'];
|
|
27259
|
-
this.gf.values = [this.grid_customer_preference_key];
|
|
27260
|
-
this.gf.fillCombo();
|
|
27261
|
-
}
|
|
27262
|
-
}
|
|
27263
|
-
if (!ok_op) {
|
|
27264
|
-
}
|
|
27265
|
-
}, (err) => { });
|
|
27266
|
-
}
|
|
27267
|
-
});
|
|
27268
|
-
}
|
|
27269
|
-
prepare_filter(s) {
|
|
27270
|
-
return s
|
|
27271
|
-
.split("'")
|
|
27272
|
-
.join("$''")
|
|
27273
|
-
.split('*')
|
|
27274
|
-
.join('$*')
|
|
27275
|
-
.split('?')
|
|
27276
|
-
.join('$?')
|
|
27277
|
-
.split('[')
|
|
27278
|
-
.join('$[')
|
|
27279
|
-
.split(']')
|
|
27280
|
-
.join('$]')
|
|
27281
|
-
.split('!')
|
|
27282
|
-
.join('!$')
|
|
27283
|
-
.split('ì')
|
|
27284
|
-
.join('_')
|
|
27285
|
-
.split('ù')
|
|
27286
|
-
.join('_')
|
|
27287
|
-
.split('à')
|
|
27288
|
-
.join('_')
|
|
27289
|
-
.split('ò')
|
|
27290
|
-
.join('_')
|
|
27291
|
-
.toUpperCase();
|
|
27292
|
-
}
|
|
27293
|
-
calcola_filtro(obj_filtro, filter_v, key, add_end = true) {
|
|
27294
|
-
let b_filter = false;
|
|
27295
|
-
if (obj_filtro.type != null) {
|
|
27296
|
-
if (obj_filtro.filter != null) {
|
|
27297
|
-
if (add_end)
|
|
27298
|
-
filter_v = filter_v + ' and ';
|
|
27299
|
-
b_filter = true;
|
|
27300
|
-
if (obj_filtro.filterType == 'number') {
|
|
27301
|
-
if (obj_filtro.type == 'greaterThan')
|
|
27302
|
-
filter_v = filter_v + ' ' + key + ' > ' + obj_filtro.filter;
|
|
27303
|
-
if (obj_filtro.type == 'equals')
|
|
27304
|
-
filter_v = filter_v + ' ' + key + ' = ' + obj_filtro.filter;
|
|
27305
|
-
if (obj_filtro.type == 'notEqual')
|
|
27306
|
-
filter_v = filter_v + ' ' + key + ' <> ' + obj_filtro.filter;
|
|
27307
|
-
if (obj_filtro.type == 'lessThan')
|
|
27308
|
-
filter_v = filter_v + ' ' + key + ' < ' + obj_filtro.filter;
|
|
27309
|
-
if (obj_filtro.type == 'lessThanOrEqual')
|
|
27310
|
-
filter_v = filter_v + ' ' + key + ' <= ' + obj_filtro.filter;
|
|
27311
|
-
if (obj_filtro.type == 'greaterThanOrEqual')
|
|
27312
|
-
filter_v = filter_v + ' ' + key + ' >= ' + obj_filtro.filter;
|
|
27313
|
-
if (obj_filtro.type == 'inRange')
|
|
27314
|
-
filter_v =
|
|
27315
|
-
filter_v +
|
|
27316
|
-
' (' +
|
|
27317
|
-
key +
|
|
27318
|
-
' >= ' +
|
|
27319
|
-
obj_filtro.filter +
|
|
27320
|
-
' and ' +
|
|
27321
|
-
key +
|
|
27322
|
-
' <= ' +
|
|
27323
|
-
obj_filtro.filterTo +
|
|
27324
|
-
')';
|
|
27325
|
-
}
|
|
27326
|
-
else {
|
|
27327
|
-
if (obj_filtro.type == 'contains')
|
|
27328
|
-
filter_v =
|
|
27329
|
-
filter_v +
|
|
27330
|
-
' upper(' +
|
|
27331
|
-
key +
|
|
27332
|
-
") like '%" +
|
|
27333
|
-
this.prepare_filter(obj_filtro.filter) +
|
|
27334
|
-
"%' ESCAPE '$'";
|
|
27335
|
-
if (obj_filtro.type == 'startsWith')
|
|
27336
|
-
filter_v =
|
|
27337
|
-
filter_v +
|
|
27338
|
-
' upper(' +
|
|
27339
|
-
key +
|
|
27340
|
-
") like '" +
|
|
27341
|
-
this.prepare_filter(obj_filtro.filter) +
|
|
27342
|
-
"%' ESCAPE '$'";
|
|
27343
|
-
if (obj_filtro.type == 'equals')
|
|
27344
|
-
filter_v =
|
|
27345
|
-
filter_v +
|
|
27346
|
-
' upper(' +
|
|
27347
|
-
key +
|
|
27348
|
-
") = '" +
|
|
27349
|
-
obj_filtro.filter.replace("'", "''").toUpperCase() +
|
|
27350
|
-
"'";
|
|
27351
|
-
if (obj_filtro.type == 'notContains')
|
|
27352
|
-
filter_v =
|
|
27353
|
-
filter_v +
|
|
27354
|
-
'not upper(' +
|
|
27355
|
-
key +
|
|
27356
|
-
") like '%" +
|
|
27357
|
-
this.prepare_filter(obj_filtro.filter) +
|
|
27358
|
-
"%' ESCAPE '$'";
|
|
27359
|
-
if (obj_filtro.type == 'notEqual')
|
|
27360
|
-
filter_v =
|
|
27361
|
-
filter_v +
|
|
27362
|
-
' upper(' +
|
|
27363
|
-
key +
|
|
27364
|
-
") <> '" +
|
|
27365
|
-
obj_filtro.filter.replace("'", "''").toUpperCase() +
|
|
27366
|
-
"'";
|
|
27367
|
-
if (obj_filtro.type == 'endsWith')
|
|
27368
|
-
filter_v =
|
|
27369
|
-
filter_v +
|
|
27370
|
-
' upper(' +
|
|
27371
|
-
key +
|
|
27372
|
-
") like '%" +
|
|
27373
|
-
this.prepare_filter(obj_filtro.filter) +
|
|
27374
|
-
"' ESCAPE '$'";
|
|
27375
|
-
// if(obj_filtro.type=="startsWith") filter_v = filter_v +' upper('+ key + ') like \'' + obj_filtro.filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
27376
|
-
}
|
|
27377
|
-
}
|
|
27378
|
-
if (obj_filtro.type == 'inRange') {
|
|
27379
|
-
if (obj_filtro.dateTo != null && obj_filtro.dateFrom != null) {
|
|
27380
|
-
if (obj_filtro.dateFrom >= obj_filtro.dateTo) {
|
|
27381
|
-
this._toast.error('Data inizio range deve essere maggiore di data fine range');
|
|
27382
|
-
return;
|
|
27383
|
-
}
|
|
27384
|
-
b_filter = true;
|
|
27385
|
-
if (add_end)
|
|
27386
|
-
filter_v = filter_v + ' and ';
|
|
27387
|
-
filter_v =
|
|
27388
|
-
filter_v +
|
|
27389
|
-
' (' +
|
|
27390
|
-
key +
|
|
27391
|
-
'>=' +
|
|
27392
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) +
|
|
27393
|
-
' and ' +
|
|
27394
|
-
key +
|
|
27395
|
-
'<=' +
|
|
27396
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) +
|
|
27397
|
-
') ';
|
|
27398
|
-
}
|
|
27399
|
-
}
|
|
27400
|
-
else if (obj_filtro.dateTo != null || obj_filtro.dateFrom != null) {
|
|
27401
|
-
b_filter = true;
|
|
27402
|
-
if (add_end)
|
|
27403
|
-
filter_v = filter_v + ' and ';
|
|
27404
|
-
filter_v = filter_v + ' (';
|
|
27405
|
-
if (obj_filtro.dateFrom != null &&
|
|
27406
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) != 'dbnull') {
|
|
27407
|
-
let q = '';
|
|
27408
|
-
if (obj_filtro.type == 'greaterThan')
|
|
27409
|
-
q =
|
|
27410
|
-
' ' +
|
|
27411
|
-
key +
|
|
27412
|
-
' >= ' +
|
|
27413
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) +
|
|
27414
|
-
'';
|
|
27415
|
-
if (obj_filtro.type == 'equals')
|
|
27416
|
-
q =
|
|
27417
|
-
' (' +
|
|
27418
|
-
key +
|
|
27419
|
-
' >=' +
|
|
27420
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) +
|
|
27421
|
-
' and ' +
|
|
27422
|
-
key +
|
|
27423
|
-
' <=' +
|
|
27424
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5), 'T23:59:00') +
|
|
27425
|
-
')';
|
|
27426
|
-
if (obj_filtro.type == 'notEqual')
|
|
27427
|
-
q =
|
|
27428
|
-
' ' +
|
|
27429
|
-
key +
|
|
27430
|
-
' <> ' +
|
|
27431
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) +
|
|
27432
|
-
'';
|
|
27433
|
-
if (obj_filtro.type == 'lessThan')
|
|
27434
|
-
q =
|
|
27435
|
-
' ' +
|
|
27436
|
-
key +
|
|
27437
|
-
' <= ' +
|
|
27438
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) +
|
|
27439
|
-
'';
|
|
27440
|
-
let dtx = this.uti_s.string2date(obj_filtro.dateFrom, 5);
|
|
27441
|
-
if (dtx) {
|
|
27442
|
-
dtx.setHours(23);
|
|
27443
|
-
dtx.setMinutes(59);
|
|
27444
|
-
}
|
|
27445
|
-
if (obj_filtro.type == 'lessThanOrEqual')
|
|
27446
|
-
q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(dtx) + '';
|
|
27447
|
-
if (obj_filtro.type == 'greaterThanOrEqual')
|
|
27448
|
-
q =
|
|
27449
|
-
' ' +
|
|
27450
|
-
key +
|
|
27451
|
-
' >= ' +
|
|
27452
|
-
this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) +
|
|
27453
|
-
'';
|
|
27454
|
-
filter_v = filter_v + q;
|
|
27455
|
-
}
|
|
27456
|
-
else
|
|
27457
|
-
filter_v = filter_v + '1=1';
|
|
27458
|
-
filter_v = filter_v + ' )';
|
|
27459
|
-
}
|
|
27460
|
-
}
|
|
27461
|
-
else {
|
|
27462
|
-
// if(obj_filtro.length>0)filter_v= filter_v+' and ';
|
|
27463
|
-
let like_f = '';
|
|
27464
|
-
let sq = '';
|
|
27465
|
-
let include_null_value = false;
|
|
27466
|
-
if (obj_filtro.values != null)
|
|
27467
|
-
for (let i = 0; i < obj_filtro.values.length; i++)
|
|
27468
|
-
if (obj_filtro.values[i] != null) {
|
|
27469
|
-
if (sq != '')
|
|
27470
|
-
sq = sq + ',';
|
|
27471
|
-
sq =
|
|
27472
|
-
sq +
|
|
27473
|
-
"'" +
|
|
27474
|
-
this.translate_back(obj_filtro.values[i].replace("'", "''")) +
|
|
27475
|
-
"'";
|
|
27476
|
-
if (like_f != '')
|
|
27477
|
-
like_f = like_f + ' or ';
|
|
27478
|
-
like_f =
|
|
27479
|
-
like_f +
|
|
27480
|
-
' upper(' +
|
|
27481
|
-
key +
|
|
27482
|
-
") like '%" +
|
|
27483
|
-
obj_filtro.values[i]
|
|
27484
|
-
.replace("'", "$'")
|
|
27485
|
-
.replace('*', '$*')
|
|
27486
|
-
.replace('?', '$?')
|
|
27487
|
-
.replace('[', '$[')
|
|
27488
|
-
.replace(']', '$]')
|
|
27489
|
-
.replace('!', "'$")
|
|
27490
|
-
.toUpperCase() +
|
|
27491
|
-
"%' ESCAPE '$'";
|
|
27492
|
-
}
|
|
27493
|
-
else {
|
|
27494
|
-
include_null_value = true;
|
|
27495
|
-
}
|
|
27496
|
-
let num_all = -1;
|
|
27497
|
-
let countryFilterComponent;
|
|
27498
|
-
if (this.gridApi)
|
|
27499
|
-
if (this.gridApi.getColumnDef(key))
|
|
27500
|
-
countryFilterComponent = this.gridApi.getColumnDef(key);
|
|
27501
|
-
if (countryFilterComponent != null)
|
|
27502
|
-
if (countryFilterComponent.filterParams != null)
|
|
27503
|
-
if (countryFilterComponent.filterParams.values != null) {
|
|
27504
|
-
let model = countryFilterComponent.filterParams.values;
|
|
27505
|
-
model = model.filter((n, i) => model.indexOf(n) === i);
|
|
27506
|
-
if (model != null)
|
|
27507
|
-
num_all = model.length;
|
|
27508
|
-
}
|
|
27509
|
-
if (key != 'pers_int') {
|
|
27510
|
-
if (sq != '') {
|
|
27511
|
-
if (obj_filtro.values.length != num_all) {
|
|
27512
|
-
b_filter = true;
|
|
27513
|
-
if (add_end)
|
|
27514
|
-
filter_v = filter_v + ' and ';
|
|
27515
|
-
if (!include_null_value)
|
|
27516
|
-
filter_v = filter_v + key + ' in (' + sq + ')';
|
|
27517
|
-
else
|
|
27518
|
-
filter_v =
|
|
27519
|
-
filter_v +
|
|
27520
|
-
'(' +
|
|
27521
|
-
key +
|
|
27522
|
-
' in (' +
|
|
27523
|
-
sq +
|
|
27524
|
-
') or ' +
|
|
27525
|
-
key +
|
|
27526
|
-
' is null)';
|
|
27527
|
-
}
|
|
27528
|
-
}
|
|
27529
|
-
else {
|
|
27530
|
-
b_filter = true;
|
|
27531
|
-
if (add_end)
|
|
27532
|
-
filter_v = filter_v + ' and ';
|
|
27533
|
-
if (!include_null_value)
|
|
27534
|
-
filter_v = filter_v + ' (1=0)';
|
|
27535
|
-
else
|
|
27536
|
-
filter_v = filter_v + ' ' + key + ' is null';
|
|
27537
|
-
}
|
|
27538
|
-
}
|
|
27539
|
-
else {
|
|
27540
|
-
if (like_f != '') {
|
|
27541
|
-
b_filter = true;
|
|
27542
|
-
if (add_end)
|
|
27543
|
-
filter_v = filter_v + ' and ';
|
|
27544
|
-
filter_v = filter_v + '(' + like_f + ')';
|
|
27545
|
-
}
|
|
27546
|
-
}
|
|
27547
|
-
}
|
|
27548
|
-
return filter_v;
|
|
27549
|
-
}
|
|
27550
|
-
init_end = new EventEmitter();
|
|
27551
|
-
off_set = 0;
|
|
27552
|
-
include_always = '';
|
|
27553
|
-
str_curr_q_p = '';
|
|
27554
|
-
dataSource = {
|
|
27555
|
-
getRows: (params) => {
|
|
27556
|
-
this.m_appService.start();
|
|
27557
|
-
let p = new QGParam();
|
|
27558
|
-
p.table = this.grid_config_key;
|
|
27559
|
-
p.table_count = this.grid_config_key;
|
|
27560
|
-
if (this.count_tbl_name != '')
|
|
27561
|
-
p.table_count = this.count_tbl_name;
|
|
27562
|
-
p.num_per_pag = (params.request.endRow || 0) - (params.request.startRow || 0);
|
|
27563
|
-
p.curr_page = Math.round((params.request.startRow || 0) / p.num_per_pag);
|
|
27564
|
-
if (p.curr_page == null)
|
|
27565
|
-
p.curr_page = 0;
|
|
27566
|
-
if (p.num_per_pag == null)
|
|
27567
|
-
p.num_per_pag = 100;
|
|
27568
|
-
if (this.num_per_pag != 0)
|
|
27569
|
-
p.num_per_pag = this.num_per_pag;
|
|
27570
|
-
p.sort_field = this.sort_field;
|
|
27571
|
-
if (params.request.sortModel != null)
|
|
27572
|
-
if (params.request.sortModel.length > 0) {
|
|
27573
|
-
p.sort_field = '';
|
|
27574
|
-
for (var i = 0; i < params.request.sortModel.length; i++) {
|
|
27575
|
-
if (p.sort_field != '')
|
|
27576
|
-
p.sort_field = p.sort_field + ',';
|
|
27577
|
-
if (params.request.sortModel[i].colId == 'autori')
|
|
27578
|
-
p.sort_field =
|
|
27579
|
-
p.sort_field +
|
|
27580
|
-
"case when CHARINDEX('" +
|
|
27581
|
-
this.m_appService.user +
|
|
27582
|
-
"',autori)>0 then 1 else 0 end" +
|
|
27583
|
-
' ' +
|
|
27584
|
-
params.request.sortModel[i].sort;
|
|
27585
|
-
else
|
|
27586
|
-
p.sort_field =
|
|
27587
|
-
p.sort_field +
|
|
27588
|
-
params.request.sortModel[i].colId +
|
|
27589
|
-
' ' +
|
|
27590
|
-
params.request.sortModel[i].sort;
|
|
27591
|
-
}
|
|
27592
|
-
}
|
|
27593
|
-
p.system_dest = this.system_dest;
|
|
27594
|
-
p.field = this.fields;
|
|
27595
|
-
if (this.filters != null)
|
|
27596
|
-
p.filter = this.filters;
|
|
27597
|
-
if (this.fix_flt != '') {
|
|
27598
|
-
if (p.filter != '')
|
|
27599
|
-
p.filter = p.filter + ' and ';
|
|
27600
|
-
p.filter = p.filter + ' (' + this.fix_flt + ' )';
|
|
27601
|
-
}
|
|
27602
|
-
if (this.ric_libera == '' || !this.over_fulltext)
|
|
27603
|
-
if (this.fix_flt_temp != '') {
|
|
27604
|
-
if (p.filter != '')
|
|
27605
|
-
p.filter = p.filter + ' and ';
|
|
27606
|
-
p.filter = p.filter + ' (' + this.fix_flt_temp + ' )';
|
|
27607
|
-
}
|
|
27608
|
-
let p_fi = p.filter;
|
|
27609
|
-
let b_init = false;
|
|
27610
|
-
if (params.request.filterModel != null) {
|
|
27611
|
-
for (let key in params.request.filterModel) {
|
|
27612
|
-
if (!b_init) {
|
|
27613
|
-
if (this.include_always != '') {
|
|
27614
|
-
if (p.filter != '')
|
|
27615
|
-
p.filter += ' and ';
|
|
27616
|
-
p.filter = p.filter + ' (' + this.include_always + ' or (';
|
|
27617
|
-
}
|
|
27618
|
-
}
|
|
27619
|
-
let obj_filtro_test = params.request.filterModel[key];
|
|
27620
|
-
if (obj_filtro_test.operator == null) {
|
|
27621
|
-
if (!(p.filter != '' && (b_init || this.include_always == '')))
|
|
27622
|
-
p.filter += this.calcola_filtro(params.request.filterModel[key], '', key, false);
|
|
27623
|
-
else
|
|
27624
|
-
p.filter += this.calcola_filtro(params.request.filterModel[key], '', key, true);
|
|
27625
|
-
}
|
|
27626
|
-
else {
|
|
27627
|
-
if (p.filter != '' && (b_init || this.include_always == ''))
|
|
27628
|
-
p.filter += ' and ';
|
|
27629
|
-
p.filter += ' (';
|
|
27630
|
-
p.filter += this.calcola_filtro(params.request.filterModel[key].condition1, '', key, false);
|
|
27631
|
-
p.filter += ' ' + obj_filtro_test.operator + ' ';
|
|
27632
|
-
p.filter += this.calcola_filtro(params.request.filterModel[key].condition2, '', key, false);
|
|
27633
|
-
p.filter += ')';
|
|
27634
|
-
}
|
|
27635
|
-
b_init = true;
|
|
27636
|
-
}
|
|
27637
|
-
}
|
|
27638
|
-
if (b_init) {
|
|
27639
|
-
if (this.include_always != '') {
|
|
27640
|
-
p.filter = p.filter + ' ))';
|
|
27641
|
-
}
|
|
27642
|
-
}
|
|
27643
|
-
b_init = true;
|
|
27644
|
-
if (this.m_appService.user)
|
|
27645
|
-
p.filter = p.filter.split('{{user}}').join(this.m_appService.user);
|
|
27646
|
-
if (this.ric_libera != '')
|
|
27647
|
-
this.last_riclib = true;
|
|
27648
|
-
else
|
|
27649
|
-
this.last_riclib = false;
|
|
27650
|
-
if ((p.filter == '' || p_fi == p.filter) &&
|
|
27651
|
-
(this.ric_libera == null || this.ric_libera == ''))
|
|
27652
|
-
this.show_pulisci_filtri = false;
|
|
27653
|
-
else
|
|
27654
|
-
this.show_pulisci_filtri = true;
|
|
27655
|
-
//p.num_per_pag=5000;
|
|
27656
|
-
this.loading_fulltext = true;
|
|
27657
|
-
this.str_curr_q_p = '';
|
|
27658
|
-
if (p.filter != '')
|
|
27659
|
-
this.str_curr_q_p = 'where ' + p.filter;
|
|
27660
|
-
if (p.sort_field != '')
|
|
27661
|
-
this.str_curr_q_p = this.str_curr_q_p + ' order by ' + p.sort_field;
|
|
27662
|
-
this.curr_filter = p.filter;
|
|
27663
|
-
if (this.ric_libera == '' || !this.over_fulltext) {
|
|
27664
|
-
this._gridservice.doQuery(p, true, this.end_point).subscribe((data) => {
|
|
27665
|
-
let ok_op = false;
|
|
27666
|
-
if (data != null)
|
|
27667
|
-
if (data.result_msg == 'OK') {
|
|
27668
|
-
ok_op = true;
|
|
27669
|
-
this.rowData = data.result_data;
|
|
27670
|
-
params.success({ rowData: data.result_data, rowCount: data.count });
|
|
27671
|
-
this.b_init = true;
|
|
27672
|
-
this.myData = data.result_data.slice();
|
|
27673
|
-
this.num_r = data.count;
|
|
27674
|
-
this.m_appService.complete();
|
|
27675
|
-
this.fill_end.emit();
|
|
27676
|
-
this.check_width();
|
|
27677
|
-
localStorage.setItem(this.grid_customer_preference_key + '_POS1', JSON.stringify(p));
|
|
27678
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_POS2') != null)
|
|
27679
|
-
if (this.gridOptions != null)
|
|
27680
|
-
if (this.gridApi != null)
|
|
27681
|
-
this.gridApi.forEachNode((node) => {
|
|
27682
|
-
if (this.getRowId(node) ===
|
|
27683
|
-
localStorage.getItem(this.grid_customer_preference_key + '_POS2')) {
|
|
27684
|
-
node.setSelected(true);
|
|
27685
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_POS2');
|
|
27686
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_LAST_ROW') !=
|
|
27687
|
-
null)
|
|
27688
|
-
this.sRow = JSON.parse(localStorage.getItem(this.grid_customer_preference_key + '_LAST_ROW') || '{}');
|
|
27689
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_LAST_ROW');
|
|
27690
|
-
}
|
|
27691
|
-
});
|
|
27692
|
-
let b_mantieni_ck = false;
|
|
27693
|
-
if (this.toggle_mantieni != null)
|
|
27694
|
-
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
27695
|
-
this.loading_fulltext = false;
|
|
27696
|
-
if (this.no_pref && !this.b_init1) {
|
|
27697
|
-
this.set_init_size();
|
|
27698
|
-
}
|
|
27699
|
-
this.b_init1 = true;
|
|
27700
|
-
this.ensure_visible();
|
|
27701
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_COLS') == null &&
|
|
27702
|
-
this.autosize_at_ini)
|
|
27703
|
-
setTimeout(() => {
|
|
27704
|
-
this.set_init_size();
|
|
27705
|
-
}, 300);
|
|
27706
|
-
}
|
|
27707
|
-
if (!ok_op) {
|
|
27708
|
-
this.errorMsg = data.msg + ' [' + data.result_msg + ']';
|
|
27709
|
-
}
|
|
27710
|
-
}, (err) => {
|
|
27711
|
-
this.errorMsg =
|
|
27712
|
-
"ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI";
|
|
27713
|
-
});
|
|
27714
|
-
}
|
|
27715
|
-
else {
|
|
27716
|
-
this.loading_fulltext = true;
|
|
27717
|
-
let filter_x = '';
|
|
27718
|
-
if (p.filter != '')
|
|
27719
|
-
filter_x = ' and (' + p.filter + ')';
|
|
27720
|
-
var px = new QParam();
|
|
27721
|
-
px.sql = this.over_fulltext_sql;
|
|
27722
|
-
if (JSON.stringify(params.filterModel) == '{}')
|
|
27723
|
-
px.sql = this.over_fulltext_sql + '_FT';
|
|
27724
|
-
px.types = ['string', 'string', 'string'];
|
|
27725
|
-
px.values = [this.ric_libera, p.sort_field, filter_x];
|
|
27726
|
-
this.over_fulltext_types.map((v) => {
|
|
27727
|
-
px.types.push(v);
|
|
27728
|
-
});
|
|
27729
|
-
this.over_fulltext_values.map((v) => {
|
|
27730
|
-
px.values.push(v);
|
|
27731
|
-
});
|
|
27732
|
-
this._dataService.doQuery(px).subscribe((data) => {
|
|
27733
|
-
let ok_op = false;
|
|
27734
|
-
if (data != null)
|
|
27735
|
-
if (data.result_msg == 'OK') {
|
|
27736
|
-
ok_op = true;
|
|
27737
|
-
this.rowData = data.result_data;
|
|
27738
|
-
params.success({ rowData: data.result_data, rowCount: data.result_data.length });
|
|
27739
|
-
this.b_init = true;
|
|
27740
|
-
this.myData = data.result_data.slice();
|
|
27741
|
-
this.num_r = data.result_data.length;
|
|
27742
|
-
this.m_appService.complete();
|
|
27743
|
-
this.fill_end.emit();
|
|
27744
|
-
this.check_width();
|
|
27745
|
-
localStorage.setItem(this.grid_customer_preference_key + '_POS1', JSON.stringify(p));
|
|
27746
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_POS2') != null)
|
|
27747
|
-
if (this.gridOptions != null)
|
|
27748
|
-
if (this.gridApi != null)
|
|
27749
|
-
this.gridApi.forEachNode((node) => {
|
|
27750
|
-
if (this.getRowId(node) ===
|
|
27751
|
-
localStorage.getItem(this.grid_customer_preference_key + '_POS2')) {
|
|
27752
|
-
node.setSelected(true);
|
|
27753
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_POS2');
|
|
27754
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_LAST_ROW') !=
|
|
27755
|
-
null)
|
|
27756
|
-
this.sRow = JSON.parse(localStorage.getItem(this.grid_customer_preference_key + '_LAST_ROW') || '{}');
|
|
27757
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_LAST_ROW');
|
|
27758
|
-
}
|
|
27759
|
-
});
|
|
27760
|
-
let b_mantieni_ck = false;
|
|
27761
|
-
if (this.toggle_mantieni != null)
|
|
27762
|
-
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
27763
|
-
this.loading_fulltext = false;
|
|
27764
|
-
if (this.no_pref && !this.b_init1) {
|
|
27765
|
-
this.autoSizeAll();
|
|
27766
|
-
}
|
|
27767
|
-
this.b_init1 = true;
|
|
27768
|
-
this.ensure_visible();
|
|
27769
|
-
/*if (localStorage.getItem(this.grid_customer_preference_key + '_COLS')==null && this.first_ref) {
|
|
27770
|
-
setTimeout(() => {
|
|
27771
|
-
this.autoSizeAll();
|
|
27772
|
-
}, 300);
|
|
27773
|
-
this.first_ref = false;
|
|
27774
|
-
|
|
27775
|
-
|
|
27776
|
-
} else*/ if (localStorage.getItem(this.grid_customer_preference_key + '_COLS') == null &&
|
|
27777
|
-
this.autosize_at_ini)
|
|
27778
|
-
setTimeout(() => {
|
|
27779
|
-
this.autoSizeAll();
|
|
27780
|
-
}, 300);
|
|
27781
|
-
//if(this.m_appService.getState().grid_obj[this.grid_customer_preference_key+'_NODE']!=null)
|
|
27782
|
-
/*
|
|
27783
|
-
|
|
27784
|
-
this.gridApi.forEachNode( (node:any) =>{
|
|
27785
|
-
// select the node
|
|
27786
|
-
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_customer_preference_key+'_POS'))){
|
|
27787
|
-
node.setSelected(true);
|
|
27788
|
-
|
|
27789
|
-
}}*/
|
|
27790
|
-
// if(this.m_appService.getState().grid_obj[this.grid_customer_preference_key+'_NODE']!=null)
|
|
27791
|
-
//this.gridApi.get(parseInt(localStorage.getItem(this.grid_customer_preference_key+'_POS'))).setSelected(true);
|
|
27792
|
-
}
|
|
27793
|
-
if (!ok_op) {
|
|
27794
|
-
this.errorMsg = data.msg + ' [' + data.result_msg + ']';
|
|
27795
|
-
}
|
|
27796
|
-
}, (err) => {
|
|
27797
|
-
this.errorMsg =
|
|
27798
|
-
"ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI";
|
|
27799
|
-
});
|
|
27800
|
-
}
|
|
27801
|
-
// this.gridApi.setDatasource(this.dataSource);
|
|
27802
|
-
},
|
|
27803
|
-
};
|
|
27804
|
-
getContextMenuItems_n_e = () => [
|
|
27805
|
-
'autoSizeAll',
|
|
27806
|
-
'expandAll',
|
|
27807
|
-
'contractAll',
|
|
27808
|
-
'copy',
|
|
27809
|
-
'copyWithHeaders',
|
|
27810
|
-
'paste',
|
|
27811
|
-
];
|
|
27812
|
-
getContextMenuItems_e = () => [
|
|
27813
|
-
'autoSizeAll',
|
|
27814
|
-
'expandAll',
|
|
27815
|
-
'contractAll',
|
|
27816
|
-
'copy',
|
|
27817
|
-
'copyWithHeaders',
|
|
27818
|
-
'paste',
|
|
27819
|
-
// 'resetColumns',
|
|
27820
|
-
{
|
|
27821
|
-
name: 'Esporta',
|
|
27822
|
-
action: () => {
|
|
27823
|
-
this.export_excel();
|
|
27824
|
-
},
|
|
27825
|
-
icon: '<img src="assets/icons/square-o/xlsx.svg"/>',
|
|
27826
|
-
},
|
|
27827
|
-
];
|
|
27828
|
-
onBtExport() {
|
|
27829
|
-
this.export_excel();
|
|
27830
|
-
}
|
|
27831
|
-
b_restored = false;
|
|
27832
|
-
gridOptions = {};
|
|
27833
|
-
last_copy = '';
|
|
27834
|
-
setHeaderHeight(n) {
|
|
27835
|
-
this.header_h = n;
|
|
27836
|
-
if (this.gridApi)
|
|
27837
|
-
this.gridApi.setGridOption('headerHeight', this.header_h);
|
|
27838
|
-
this.gridOptions.suppressCopyRowsToClipboard = true;
|
|
27839
|
-
this.gridOptions.sendToClipboard = (v) => {
|
|
27840
|
-
if (this.enable_copy) {
|
|
27841
|
-
//this.gridApi.copySelectedRangeToClipboard();
|
|
27842
|
-
this.clipboard.copy(v.data.split('\n')[0]);
|
|
27843
|
-
}
|
|
27844
|
-
};
|
|
27845
|
-
}
|
|
27846
|
-
getRowId(item) {
|
|
27847
|
-
if (!item)
|
|
27848
|
-
return 'NA';
|
|
27849
|
-
if (item.ID != null)
|
|
27850
|
-
return String(item.ID);
|
|
27851
|
-
if (item.id != null)
|
|
27852
|
-
return String(item.id);
|
|
27853
|
-
if (item.uiid != null)
|
|
27854
|
-
return item.uiid;
|
|
27855
|
-
if (item.id_gruppo != null)
|
|
27856
|
-
return item.id_gruppo;
|
|
27857
|
-
if (item.codice != null)
|
|
27858
|
-
return item.codice;
|
|
27859
|
-
if (item.id_doc != null)
|
|
27860
|
-
return item.id_doc;
|
|
27861
|
-
if (item.notesid != null)
|
|
27862
|
-
return item.notesid;
|
|
27863
|
-
if (item.ord != null)
|
|
27864
|
-
return item.ord;
|
|
27865
|
-
return 'NA';
|
|
27866
|
-
}
|
|
27867
|
-
showGrid = true;
|
|
27868
|
-
rowData = [];
|
|
27869
|
-
rowCount = null;
|
|
27870
|
-
agGrid;
|
|
27871
|
-
b_init = false;
|
|
27872
|
-
b_init1 = false;
|
|
27873
|
-
errorMsg = '';
|
|
27874
|
-
innerWidth = 750;
|
|
27875
|
-
size;
|
|
27876
|
-
ngAfterViewInit() {
|
|
27877
|
-
if (this.grid_customer_preference_key == 'PRO_H')
|
|
27878
|
-
this.no_pref = true;
|
|
27879
|
-
setTimeout(() => {
|
|
27880
|
-
if (this.end_point == null)
|
|
27881
|
-
this.end_point =
|
|
27882
|
-
this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
27883
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_FILTER_UP') != null)
|
|
27884
|
-
this.ric_libera = localStorage.getItem(this.grid_customer_preference_key + '_FILTER_UP');
|
|
27885
|
-
this.onResize();
|
|
27886
|
-
});
|
|
27887
|
-
}
|
|
27888
|
-
okr(event) {
|
|
27889
|
-
event.data.nome_colonna = event.column.colDef.field;
|
|
27890
|
-
this.cell_edited.emit(event.data);
|
|
27891
|
-
}
|
|
27892
|
-
help_window() {
|
|
27893
|
-
if (this.overwrite_help_url != '') {
|
|
27894
|
-
window.open(this.overwrite_help_url);
|
|
27895
|
-
return;
|
|
27896
|
-
}
|
|
27897
|
-
let dialogRef = this.m_dialog.open(win_grid_help, { disableClose: true });
|
|
27898
|
-
dialogRef.afterClosed().subscribe((result) => {
|
|
27899
|
-
return;
|
|
27900
|
-
});
|
|
27901
|
-
}
|
|
27902
|
-
onResize(event) {
|
|
27903
|
-
return;
|
|
27904
|
-
//if(bodyWidth>1400){
|
|
27905
|
-
// this.g_height= number(this.m_appService.getState().body_height.split('px').join(''))-40-this.off_set+'px';
|
|
27906
|
-
//if(this.m_appService.getState( ).mobile)this.g_height=number(this.m_appService.getState().body_height.split('px').join(''))-40+'px';
|
|
27907
|
-
// this.num_per_pag=Math.round((700-50-this.off_set)/50);
|
|
27908
|
-
//}
|
|
27909
|
-
//else
|
|
27910
|
-
//if(bodyWidth>800){
|
|
27911
|
-
//this.g_height=520-this.off_set+'px';
|
|
27912
|
-
// this.num_per_pag=Math.round((520-50-this.off_set)/50);
|
|
27913
|
-
//}
|
|
27914
|
-
//else{
|
|
27915
|
-
//this.g_height=400-this.off_set+'px';
|
|
27916
|
-
// this.num_per_pag=Math.round((400-50-this.off_set)/50);
|
|
27917
|
-
//}
|
|
27918
|
-
}
|
|
27919
|
-
show_pulisci_filtri = false;
|
|
27920
|
-
autoSizeAll() {
|
|
27921
|
-
if (this.gridOptions == null)
|
|
27922
|
-
return;
|
|
27923
|
-
if (this.gridApi == null)
|
|
27924
|
-
return;
|
|
27925
|
-
let allColumnIds = [];
|
|
27926
|
-
this.gridApi.getAllGridColumns().map((v) => {
|
|
27927
|
-
allColumnIds.push(v.getColId());
|
|
27928
|
-
});
|
|
27929
|
-
this.gridApi.autoSizeColumns(allColumnIds);
|
|
27930
|
-
if (this.gridApi.getColumnState().length > 0)
|
|
27931
|
-
if (this.gridApi.getColumnState()[0].width == 24) {
|
|
27932
|
-
setTimeout(() => {
|
|
27933
|
-
this.autoSizeAll();
|
|
27934
|
-
}, 300);
|
|
27935
|
-
return;
|
|
27936
|
-
}
|
|
27937
|
-
this.save_cfg();
|
|
27938
|
-
}
|
|
27939
|
-
fitSizeAll() {
|
|
27940
|
-
if (this.gridApi)
|
|
27941
|
-
this.gridApi.sizeColumnsToFit();
|
|
27942
|
-
this.save_cfg();
|
|
27943
|
-
}
|
|
27944
|
-
selectCount() {
|
|
27945
|
-
let i = 0;
|
|
27946
|
-
if (this.gridApi)
|
|
27947
|
-
this.gridApi.forEachNode((node) => {
|
|
27948
|
-
if (node.isSelected())
|
|
27949
|
-
i++;
|
|
27950
|
-
});
|
|
27951
|
-
return i;
|
|
27952
|
-
}
|
|
27953
|
-
getquerySelected(f, t) {
|
|
27954
|
-
let s = '';
|
|
27955
|
-
if (t == 'string') {
|
|
27956
|
-
if (this.gridApi)
|
|
27957
|
-
this.gridApi.forEachNode((node) => {
|
|
27958
|
-
if (node.isSelected())
|
|
27959
|
-
if (node.data[f] != null) {
|
|
27960
|
-
if (s != '')
|
|
27961
|
-
s = s + ',';
|
|
27962
|
-
s = s + "'" + node.data[f] + "'";
|
|
27963
|
-
}
|
|
27964
|
-
});
|
|
27965
|
-
}
|
|
27966
|
-
if (t == 'number') {
|
|
27967
|
-
if (this.gridApi)
|
|
27968
|
-
this.gridApi.forEachNode((node) => {
|
|
27969
|
-
if (node.isSelected())
|
|
27970
|
-
if (node.data[f] != null) {
|
|
27971
|
-
if (s != '')
|
|
27972
|
-
s = s + ',';
|
|
27973
|
-
s = s + node.data[f];
|
|
27974
|
-
}
|
|
27975
|
-
});
|
|
27976
|
-
}
|
|
27977
|
-
return s;
|
|
27978
|
-
}
|
|
27979
|
-
selectAllFiltered() {
|
|
27980
|
-
if (this.gridApi)
|
|
27981
|
-
this.gridApi.forEachNode((node) => {
|
|
27982
|
-
node.setSelected(true);
|
|
27983
|
-
});
|
|
27984
|
-
}
|
|
27985
|
-
deselectAllFiltered() {
|
|
27986
|
-
if (this.gridApi)
|
|
27987
|
-
this.gridApi.forEachNode((node) => {
|
|
27988
|
-
node.setSelected(false);
|
|
27989
|
-
});
|
|
27990
|
-
}
|
|
27991
|
-
last_riclib = false;
|
|
27992
|
-
pulisci_filtri(resetr = true) {
|
|
27993
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_FILTER');
|
|
27994
|
-
if (resetr) {
|
|
27995
|
-
if (this.ric_libera != '' || this.last_riclib)
|
|
27996
|
-
this.doFill('', true, false);
|
|
27997
|
-
this.ric_libera = '';
|
|
27998
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_FILTER_UP');
|
|
27999
|
-
}
|
|
28000
|
-
this.fix_flt_temp = '';
|
|
28001
|
-
if (this.gridApi)
|
|
28002
|
-
this.gridApi.setFilterModel(null);
|
|
28003
|
-
let filtrtm = {}; /*
|
|
28004
|
-
this.columnDefs.map((v:any)=>{
|
|
28005
|
-
if(v.filter=='agSetColumnFilter'){
|
|
28006
|
-
filtrtm[v.field]={type:'set',values:[]}
|
|
28007
|
-
}
|
|
28008
|
-
});*/
|
|
28009
|
-
this.filterCleared.emit();
|
|
28010
|
-
if (this.gridApi)
|
|
28011
|
-
this.gridApi.setFilterModel(filtrtm);
|
|
28012
|
-
}
|
|
28013
|
-
constructor(_gridservice, _toast, _dataService, m_appService, m_dialog, uti_s, officeService, _fileService, clipboard, _trs, http) {
|
|
28014
|
-
this._gridservice = _gridservice;
|
|
28015
|
-
this._toast = _toast;
|
|
28016
|
-
this._dataService = _dataService;
|
|
28017
|
-
this.m_appService = m_appService;
|
|
28018
|
-
this.m_dialog = m_dialog;
|
|
28019
|
-
this.uti_s = uti_s;
|
|
28020
|
-
this.officeService = officeService;
|
|
28021
|
-
this._fileService = _fileService;
|
|
28022
|
-
this.clipboard = clipboard;
|
|
28023
|
-
this._trs = _trs;
|
|
28024
|
-
this.http = http;
|
|
28025
|
-
if (this.m_appService.getState().grid_obj == null)
|
|
28026
|
-
this.m_appService.getState().grid_obj = {};
|
|
28027
|
-
this.browser = this.getBrowserName();
|
|
28028
|
-
if (this.browser == 'ie')
|
|
28029
|
-
this.width_max = '';
|
|
28030
|
-
this.gridOptions = {
|
|
28031
|
-
rowClassRules: {
|
|
28032
|
-
'gridCursorPointer': (params) => { return this.gridCursorPointer; }
|
|
28033
|
-
},
|
|
28034
|
-
debug: false,
|
|
28035
|
-
headerHeight: this.header_h,
|
|
28036
|
-
cellSelection: true,
|
|
28037
|
-
defaultColDef: { resizable: true, sortable: true, floatingFilter: true },
|
|
28038
|
-
rowHeight: this.rowHeight,
|
|
28039
|
-
allowContextMenuWithControlKey: true,
|
|
28040
|
-
rowModelType: 'serverSide',
|
|
28041
|
-
localeText: {
|
|
28042
|
-
// for filter panel
|
|
28043
|
-
page: this._trs.instant('pagina'),
|
|
28044
|
-
more: this._trs.instant('altre'),
|
|
28045
|
-
to: this._trs.instant('a'),
|
|
28046
|
-
of: this._trs.instant('di'),
|
|
28047
|
-
next: this._trs.instant('prossima'),
|
|
28048
|
-
last: this._trs.instant('ultima'),
|
|
28049
|
-
first: this._trs.instant('prima'),
|
|
28050
|
-
previous: this._trs.instant('precedente'),
|
|
28051
|
-
loadingOoo: this._trs.instant('Caricamento...'),
|
|
28052
|
-
// for set filter
|
|
28053
|
-
selectAll: this._trs.instant('Seleziona Tutto'),
|
|
28054
|
-
searchOoo: this._trs.instant('Trova...'),
|
|
28055
|
-
blanks: this._trs.instant('Vuoto'),
|
|
28056
|
-
// for number filter and text filter
|
|
28057
|
-
filterOoo: this._trs.instant('Filtro...'),
|
|
28058
|
-
applyFilter: this._trs.instant('Applica Filtro...'),
|
|
28059
|
-
// for number filter
|
|
28060
|
-
equals: this._trs.instant('Uguale'),
|
|
28061
|
-
notEqual: this._trs.instant('Diverso'),
|
|
28062
|
-
lessThan: this._trs.instant('Minore o Uguale'),
|
|
28063
|
-
greaterThan: this._trs.instant('Maggiore o Uguale'),
|
|
28064
|
-
// for text filter
|
|
28065
|
-
notContains: this._trs.instant('Non Contiene'),
|
|
28066
|
-
contains: this._trs.instant('Contiene'),
|
|
28067
|
-
startsWith: this._trs.instant('Inizia Con'),
|
|
28068
|
-
endsWith: this._trs.instant('Finisce Con'),
|
|
28069
|
-
// the header of the default group column
|
|
28070
|
-
group: this._trs.instant('Gruppo'),
|
|
28071
|
-
// tool panel
|
|
28072
|
-
columns: this._trs.instant('Colonne'),
|
|
28073
|
-
rowGroupColumns: this._trs.instant('Colonne Pivot'),
|
|
28074
|
-
rowGroupColumnsEmptyMessage: this._trs.instant('trascina le colonne per raggrupparle'),
|
|
28075
|
-
valueColumns: this._trs.instant('Colonne Valore'),
|
|
28076
|
-
pivotMode: this._trs.instant('Modalità Pivot'),
|
|
28077
|
-
groups: this._trs.instant('Gruppi'),
|
|
28078
|
-
values: this._trs.instant('Valori'),
|
|
28079
|
-
pivots: this._trs.instant('Pivots'),
|
|
28080
|
-
valueColumnsEmptyMessage: this._trs.instant('trascina le colonne per aggreare'),
|
|
28081
|
-
pivotColumnsEmptyMessage: this._trs.instant('trascina le colonne per pivot'),
|
|
28082
|
-
// other
|
|
28083
|
-
noRowsToShow: this._trs.instant('nessun dato'),
|
|
28084
|
-
// enterprise menu
|
|
28085
|
-
pinColumn: this._trs.instant('Sposta Colonna'),
|
|
28086
|
-
valueAggregation: this._trs.instant('Aggregazione'),
|
|
28087
|
-
autosizeThiscolumn: this._trs.instant('Autosize colonna'),
|
|
28088
|
-
autosizeAllColumns: this._trs.instant('Autosize tutte le colonne'),
|
|
28089
|
-
groupBy: this._trs.instant('Raggruppa per'),
|
|
28090
|
-
ungroupBy: this._trs.instant('Spacca per'),
|
|
28091
|
-
resetColumns: this._trs.instant('Resetta queste colonna'),
|
|
28092
|
-
expandAll: this._trs.instant('Espandi'),
|
|
28093
|
-
collapseAll: this._trs.instant('Chiudi'),
|
|
28094
|
-
toolPanel: this._trs.instant('Impostazioni'),
|
|
28095
|
-
// enterprise menu pinning
|
|
28096
|
-
pinLeft: this._trs.instant('Sposta <<'),
|
|
28097
|
-
pinRight: this._trs.instant('Sposta >>'),
|
|
28098
|
-
noPin: this._trs.instant('Sposta <>'),
|
|
28099
|
-
// enterprise menu aggregation and status panel
|
|
28100
|
-
sum: this._trs.instant('Somma'),
|
|
28101
|
-
min: this._trs.instant('Minimo'),
|
|
28102
|
-
max: this._trs.instant('Massimo'),
|
|
28103
|
-
none: this._trs.instant('Nessuno'),
|
|
28104
|
-
count: this._trs.instant('Numero'),
|
|
28105
|
-
average: this._trs.instant('Media'),
|
|
28106
|
-
// standard menu
|
|
28107
|
-
copy: this._trs.instant('Copia'),
|
|
28108
|
-
ctrlC: this._trs.instant('ctrl & C'),
|
|
28109
|
-
paste: this._trs.instant('Incolla'),
|
|
28110
|
-
ctrlV: this._trs.instant('ctrl & V'),
|
|
28111
|
-
},
|
|
28112
|
-
getRowId: (itemg) => {
|
|
28113
|
-
if (itemg == null)
|
|
28114
|
-
return this.uti_s.newGuid();
|
|
28115
|
-
if (itemg.data == null)
|
|
28116
|
-
return this.uti_s.newGuid();
|
|
28117
|
-
let item = itemg.data;
|
|
28118
|
-
if (item.customKeyField != null)
|
|
28119
|
-
return [item.customKeyField];
|
|
28120
|
-
if (item.ID != null)
|
|
28121
|
-
return String(item.ID);
|
|
28122
|
-
if (item.id != null)
|
|
28123
|
-
return String(item.id);
|
|
28124
|
-
if (item.uiid != null)
|
|
28125
|
-
return item.uiid;
|
|
28126
|
-
if (item.codice != null)
|
|
28127
|
-
return item.codice;
|
|
28128
|
-
if (item.id_gruppo != null)
|
|
28129
|
-
return item.id_gruppo;
|
|
28130
|
-
if (item.id_doc != null)
|
|
28131
|
-
return item.id_doc;
|
|
28132
|
-
if (item.notesid != null)
|
|
28133
|
-
return item.notesid;
|
|
28134
|
-
if (item.ord != null)
|
|
28135
|
-
return item.ord;
|
|
28136
|
-
return this.uti_s.newGuid();
|
|
28137
|
-
}
|
|
28138
|
-
};
|
|
28139
|
-
}
|
|
28140
|
-
uiid_stampa = '';
|
|
28141
|
-
xxopx = 0;
|
|
28142
|
-
dialogRef_W;
|
|
28143
|
-
export_excel(format = 'xlsx') {
|
|
28144
|
-
if (this.custom_export) {
|
|
28145
|
-
this.command.emit({ cmd: 'export_excel', v: format });
|
|
28146
|
-
return;
|
|
28147
|
-
}
|
|
28148
|
-
if (this.num_r > 20000) {
|
|
28149
|
-
this._toast.error('Massimo 20000 elementi esportabili');
|
|
28150
|
-
return;
|
|
28151
|
-
}
|
|
28152
|
-
format = '.' + format;
|
|
28153
|
-
this.uiid_stampa = this.uti_s.newGuid();
|
|
28154
|
-
this.xxopx = 0;
|
|
28155
|
-
let q = '';
|
|
28156
|
-
this.dialogRef_W = this.m_dialog.open(FHWinWaitComponent, {
|
|
28157
|
-
disableClose: true,
|
|
28158
|
-
});
|
|
28159
|
-
setTimeout(() => {
|
|
28160
|
-
this.dialogRef_W.componentInstance.label = 'EXPORT IN CORSO';
|
|
28161
|
-
});
|
|
28162
|
-
let cmds = [];
|
|
28163
|
-
let str_fields = '';
|
|
28164
|
-
let p_col = [];
|
|
28165
|
-
if (this.gridApi)
|
|
28166
|
-
p_col = this.gridApi.getAllDisplayedColumns();
|
|
28167
|
-
for (let j = 0; j < p_col.length; j++)
|
|
28168
|
-
if (p_col[j].getColDef().field.length < 60) {
|
|
28169
|
-
if (str_fields != '')
|
|
28170
|
-
str_fields += ',';
|
|
28171
|
-
if (p_col[j].getColDef().headerName == null)
|
|
28172
|
-
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
28173
|
-
else if (p_col[j].getColDef().headerName == '')
|
|
28174
|
-
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
28175
|
-
else
|
|
28176
|
-
str_fields +=
|
|
28177
|
-
'[' +
|
|
28178
|
-
p_col[j].getColDef().field +
|
|
28179
|
-
'] [' +
|
|
28180
|
-
p_col[j]
|
|
28181
|
-
.getColDef()
|
|
28182
|
-
.headerName.split('[')
|
|
28183
|
-
.join('')
|
|
28184
|
-
.split(']')
|
|
28185
|
-
.join('') +
|
|
28186
|
-
']';
|
|
28187
|
-
}
|
|
28188
|
-
if (this.fields.indexOf('DISTINCT') != -1)
|
|
28189
|
-
str_fields = 'DISTINCT ' + str_fields;
|
|
28190
|
-
cmds.push(this.officeService.operation('GB_XLS_APRI', 'tpl_report.xlsx', '' + this.uiid_stampa + '.xlsx', this.xxopx++));
|
|
28191
|
-
let opx = 'GB_CREA_TABELLA_FROM_DB';
|
|
28192
|
-
if (this.system_dest == 2)
|
|
28193
|
-
opx = 'GB_CREA_TABELLA_FROM_DB1';
|
|
28194
|
-
if (this.export_field_aggiuntivi == '')
|
|
28195
|
-
cmds.push(this.officeService.operation(opx, 'select ' +
|
|
28196
|
-
str_fields +
|
|
28197
|
-
' from ' +
|
|
28198
|
-
this.grid_config_key +
|
|
28199
|
-
' ' +
|
|
28200
|
-
this.str_curr_q_p, '3', this.xxopx++));
|
|
28201
|
-
else
|
|
28202
|
-
cmds.push(this.officeService.operation(opx, 'select ' +
|
|
28203
|
-
str_fields +
|
|
28204
|
-
',' +
|
|
28205
|
-
this.export_field_aggiuntivi +
|
|
28206
|
-
' from ' +
|
|
28207
|
-
this.grid_config_key +
|
|
28208
|
-
' ' +
|
|
28209
|
-
this.str_curr_q_p, '3', this.xxopx++));
|
|
28210
|
-
cmds.push(this.officeService.operation('GB_XLS_SAVE', this.m_appService.LOCAL_PATH +
|
|
28211
|
-
'grid_reports' + (this.m_appService.LOCAL_PATH.indexOf('/') >= 0 ? '/' : '\\') +
|
|
28212
|
-
this.uiid_stampa +
|
|
28213
|
-
'_' +
|
|
28214
|
-
this.m_appService.user +
|
|
28215
|
-
format, '', this.xxopx++));
|
|
28216
|
-
this.officeService
|
|
28217
|
-
.runCommands(this.uiid_stampa, cmds, this.dialogRef_W, false)
|
|
28218
|
-
.subscribe((data) => {
|
|
28219
|
-
this.check_end(format);
|
|
28220
|
-
});
|
|
28221
|
-
}
|
|
28222
|
-
check_end(format) {
|
|
28223
|
-
let p = new FSInput();
|
|
28224
|
-
p.p1 =
|
|
28225
|
-
this.m_appService.LOCAL_PATH +
|
|
28226
|
-
'grid_reports\\' + (this.m_appService.LOCAL_PATH.indexOf('/') >= 0 ? '/' : '\\') +
|
|
28227
|
-
this.uiid_stampa +
|
|
28228
|
-
'_' +
|
|
28229
|
-
this.m_appService.user +
|
|
28230
|
-
format;
|
|
28231
|
-
p.command = 'check_file';
|
|
28232
|
-
this._fileService.doQuery(p).subscribe((data) => {
|
|
28233
|
-
if (data != null)
|
|
28234
|
-
if (data.msg == 'N') {
|
|
28235
|
-
setTimeout(() => {
|
|
28236
|
-
this.check_end(format);
|
|
28237
|
-
}, 5000);
|
|
28238
|
-
}
|
|
28239
|
-
else {
|
|
28240
|
-
setTimeout(() => {
|
|
28241
|
-
this.dialogRef_W.componentInstance.update_progess(100);
|
|
28242
|
-
});
|
|
28243
|
-
setTimeout(() => {
|
|
28244
|
-
this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
|
|
28245
|
-
'/grid_reports/' +
|
|
28246
|
-
this.uiid_stampa +
|
|
28247
|
-
'_' +
|
|
28248
|
-
this.m_appService.user +
|
|
28249
|
-
format, this.uiid_stampa +
|
|
28250
|
-
'_' +
|
|
28251
|
-
this.m_appService.user +
|
|
28252
|
-
format);
|
|
28253
|
-
}, 2000);
|
|
28254
|
-
}
|
|
28255
|
-
});
|
|
28256
|
-
}
|
|
28257
|
-
downloadFile(fn, filename) {
|
|
28258
|
-
const url = fn;
|
|
28259
|
-
this.http.get(url, { responseType: 'blob' }).subscribe((blob) => {
|
|
28260
|
-
const fileURL = window.URL.createObjectURL(blob);
|
|
28261
|
-
const a = document.createElement('a');
|
|
28262
|
-
a.href = fileURL;
|
|
28263
|
-
a.download = filename;
|
|
28264
|
-
document.body.appendChild(a);
|
|
28265
|
-
a.click();
|
|
28266
|
-
document.body.removeChild(a);
|
|
28267
|
-
window.URL.revokeObjectURL(fileURL);
|
|
28268
|
-
}, (error) => {
|
|
28269
|
-
console.error('Errore nel download', error);
|
|
28270
|
-
});
|
|
28271
|
-
}
|
|
28272
|
-
print() {
|
|
28273
|
-
if (this.custom_export)
|
|
28274
|
-
this.command.emit({ cmd: 'print_pdf' });
|
|
28275
|
-
else
|
|
28276
|
-
this.export_excel('pdf');
|
|
28277
|
-
}
|
|
28278
|
-
init_conf() {
|
|
28279
|
-
//this.ckk();
|
|
28280
|
-
}
|
|
28281
|
-
createColumnDefs(em) { }
|
|
28282
|
-
num_r = 0;
|
|
28283
|
-
ready = false;
|
|
28284
|
-
ckk_ed = false;
|
|
28285
|
-
myData = new Array();
|
|
28286
|
-
ckk() {
|
|
28287
|
-
if (!this.auto_load)
|
|
28288
|
-
return;
|
|
28289
|
-
if (this.columnDefs == null) {
|
|
28290
|
-
setTimeout(() => {
|
|
28291
|
-
this.ckk();
|
|
28292
|
-
}, 500);
|
|
28293
|
-
return;
|
|
28294
|
-
}
|
|
28295
|
-
if (this.columnDefs.length == 0) {
|
|
28296
|
-
setTimeout(() => {
|
|
28297
|
-
this.ckk();
|
|
28298
|
-
}, 500);
|
|
28299
|
-
return;
|
|
28300
|
-
}
|
|
28301
|
-
if (this.ckk_ed)
|
|
28302
|
-
return;
|
|
28303
|
-
this.ckk_ed = true;
|
|
28304
|
-
if (this.toggle_mantieni != null) {
|
|
28305
|
-
this.toggle_mantieni.checked = true;
|
|
28306
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_MANTIENI') != null)
|
|
28307
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_MANTIENI') == 'NO') {
|
|
28308
|
-
this.toggle_mantieni.checked = false;
|
|
28309
|
-
}
|
|
28310
|
-
}
|
|
28311
|
-
this.res_columns();
|
|
28312
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_POS') != null)
|
|
28313
|
-
this.b_restored = true;
|
|
28314
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_FILTER_UP') != null)
|
|
28315
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_FILTER_UP') != '') {
|
|
28316
|
-
this.ric_libera = localStorage.getItem(this.grid_customer_preference_key + '_FILTER_UP');
|
|
28317
|
-
let arr = (this.ric_libera || '').split(' ');
|
|
28318
|
-
let arr_F = new Array();
|
|
28319
|
-
for (let i = 0; i < arr.length; i++)
|
|
28320
|
-
arr_F.push(arr[i]);
|
|
28321
|
-
//if (arr[i].length > 2)
|
|
28322
|
-
//else
|
|
28323
|
-
// this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
|
|
28324
|
-
if (arr_F.length == 0)
|
|
28325
|
-
return;
|
|
28326
|
-
let ss = '';
|
|
28327
|
-
for (let i = 0; i < arr_F.length; i++) {
|
|
28328
|
-
let ss_r = '';
|
|
28329
|
-
for (let y = 0; y < this.columnDefs.length; y++) {
|
|
28330
|
-
if (this.columnDefs[y] != null)
|
|
28331
|
-
if (this.columnDefs[y].no_filter == null)
|
|
28332
|
-
if (this.columnDefs[y].field != null)
|
|
28333
|
-
if (this.columnDefs[y].field != '')
|
|
28334
|
-
if (this.columnDefs[y].filter != 'agDateColumnFilter') {
|
|
28335
|
-
if (ss_r != '')
|
|
28336
|
-
ss_r += ' or ';
|
|
28337
|
-
ss_r +=
|
|
28338
|
-
this.columnDefs[y].field +
|
|
28339
|
-
" LIKE '%" +
|
|
28340
|
-
this.prepare_filter(arr_F[i]) +
|
|
28341
|
-
"%' ESCAPE '$'";
|
|
28342
|
-
}
|
|
28343
|
-
}
|
|
28344
|
-
if (this.full_text_added_columns != null)
|
|
28345
|
-
this.full_text_added_columns.map((v) => {
|
|
28346
|
-
if (v != null)
|
|
28347
|
-
if (v != '') {
|
|
28348
|
-
if (ss_r != '')
|
|
28349
|
-
ss_r += ' or ';
|
|
28350
|
-
ss_r +=
|
|
28351
|
-
v +
|
|
28352
|
-
" LIKE '%" +
|
|
28353
|
-
this.prepare_filter(arr_F[i]) +
|
|
28354
|
-
"%' ESCAPE '$'";
|
|
28355
|
-
}
|
|
28356
|
-
});
|
|
28357
|
-
if (ss_r != '') {
|
|
28358
|
-
if (ss != '')
|
|
28359
|
-
ss += ' and ';
|
|
28360
|
-
ss += '(' + ss_r + ')';
|
|
28361
|
-
}
|
|
28362
|
-
}
|
|
28363
|
-
if (this.full_text_added_query != null)
|
|
28364
|
-
this.full_text_added_query.map((v) => {
|
|
28365
|
-
if (v != null)
|
|
28366
|
-
if (v != '') {
|
|
28367
|
-
if (ss != '')
|
|
28368
|
-
ss = '(' + ss + ') or ';
|
|
28369
|
-
ss += v.split('_VALORE_').join(this.uti_s
|
|
28370
|
-
.string_sqlvalue(this.ric_libera || '')
|
|
28371
|
-
.replace("'", "$'")
|
|
28372
|
-
.replace('*', '$*')
|
|
28373
|
-
.replace('?', '$?')
|
|
28374
|
-
.replace('[', '$[')
|
|
28375
|
-
.replace(']', '$]')
|
|
28376
|
-
.replace('!', "'$")
|
|
28377
|
-
.toUpperCase());
|
|
28378
|
-
}
|
|
28379
|
-
});
|
|
28380
|
-
this.fix_flt_temp = ss;
|
|
28381
|
-
}
|
|
28382
|
-
if (this.init_fill) {
|
|
28383
|
-
setTimeout(() => {
|
|
28384
|
-
this.ref_dt();
|
|
28385
|
-
}, 100);
|
|
28386
|
-
}
|
|
28387
|
-
// this.createNewDatasource();
|
|
28388
|
-
/*
|
|
28389
|
-
if(this.m_appService.getState().grid_obj[this.grid_customer_preference_key+'_startPage']!=null)
|
|
28390
|
-
{
|
|
28391
|
-
this.gridApi.paginationGoToPage(this.m_appService.getState().grid_obj[this.grid_customer_preference_key+'_startPage']);
|
|
28392
|
-
} */
|
|
28393
|
-
}
|
|
28394
|
-
set_init_size() {
|
|
28395
|
-
if (this.myData.length == 0) {
|
|
28396
|
-
setTimeout(() => {
|
|
28397
|
-
this.set_init_size();
|
|
28398
|
-
}, 500);
|
|
28399
|
-
return;
|
|
28400
|
-
}
|
|
28401
|
-
if (this.columnDefs.length <= 6 || this.forceFitSize)
|
|
28402
|
-
this.fitSizeAll();
|
|
28403
|
-
else
|
|
28404
|
-
this.autoSizeAll();
|
|
28405
|
-
}
|
|
28406
|
-
res_columns(forza = false) {
|
|
28407
|
-
if (this.columnDefs == null) {
|
|
28408
|
-
setTimeout(() => {
|
|
28409
|
-
this.res_columns(forza);
|
|
28410
|
-
}, 200);
|
|
28411
|
-
return;
|
|
28412
|
-
}
|
|
28413
|
-
if (this.columnDefs.length == 0) {
|
|
28414
|
-
setTimeout(() => {
|
|
28415
|
-
this.res_columns(forza);
|
|
28416
|
-
}, 200);
|
|
28417
|
-
return;
|
|
28418
|
-
}
|
|
28419
|
-
let b_mantieni_ck = false;
|
|
28420
|
-
let b_rip = false;
|
|
28421
|
-
if (this.toggle_mantieni != null)
|
|
28422
|
-
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
28423
|
-
if ((localStorage.getItem(this.grid_customer_preference_key + '_COLS') || '') == '') {
|
|
28424
|
-
this.set_init_size();
|
|
28425
|
-
return;
|
|
28426
|
-
}
|
|
28427
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_COLS') != null &&
|
|
28428
|
-
(b_mantieni_ck || forza))
|
|
28429
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_COLS') != '') {
|
|
28430
|
-
b_rip = true;
|
|
28431
|
-
try {
|
|
28432
|
-
let a = JSON.parse(localStorage.getItem(this.grid_customer_preference_key + '_COLS') || '[]');
|
|
28433
|
-
let annulla = true;
|
|
28434
|
-
for (let i = 0; i < a.length; i++) {
|
|
28435
|
-
if (!a[i].hide)
|
|
28436
|
-
annulla = false;
|
|
28437
|
-
}
|
|
28438
|
-
if (annulla)
|
|
28439
|
-
localStorage.getItem(this.grid_customer_preference_key + '_COLS');
|
|
28440
|
-
else {
|
|
28441
|
-
if (this.gridApi) {
|
|
28442
|
-
let saved_state = JSON.parse(localStorage.getItem(this.grid_customer_preference_key + '_COLS') || '[]');
|
|
28443
|
-
this.gridApi.applyColumnState({
|
|
28444
|
-
state: saved_state,
|
|
28445
|
-
applyOrder: true,
|
|
28446
|
-
});
|
|
28447
|
-
}
|
|
28448
|
-
}
|
|
28449
|
-
}
|
|
28450
|
-
catch (eer) {
|
|
28451
|
-
}
|
|
28452
|
-
}
|
|
28453
|
-
/* try {
|
|
28454
|
-
this.gridApi.setSortModel(null);
|
|
28455
|
-
} catch (eer) {
|
|
28456
|
-
}
|
|
28457
|
-
if (
|
|
28458
|
-
localStorage.getItem(this.grid_customer_preference_key + "_SORT") != null &&
|
|
28459
|
-
(b_mantieni_ck || forza)
|
|
28460
|
-
)
|
|
28461
|
-
if (localStorage.getItem(this.grid_customer_preference_key + "_SORT") != "") {
|
|
28462
|
-
try {
|
|
28463
|
-
this.gridApi.setSortModel(
|
|
28464
|
-
JSON.parse(localStorage.getItem(this.grid_customer_preference_key + "_SORT"))
|
|
28465
|
-
);
|
|
28466
|
-
} catch (eer) {
|
|
28467
|
-
}
|
|
28468
|
-
}
|
|
28469
|
-
try {
|
|
28470
|
-
this.gridApi.setFilterModel(null);
|
|
28471
|
-
} catch (eer) {
|
|
28472
|
-
}*/
|
|
28473
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_FILTER') != null &&
|
|
28474
|
-
(b_mantieni_ck || forza))
|
|
28475
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_FILTER') != '') {
|
|
28476
|
-
try {
|
|
28477
|
-
if (this.gridApi)
|
|
28478
|
-
this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.grid_customer_preference_key + '_FILTER') || ''));
|
|
28479
|
-
}
|
|
28480
|
-
catch (eer) {
|
|
28481
|
-
}
|
|
28482
|
-
}
|
|
28483
|
-
}
|
|
28484
|
-
getRows() {
|
|
28485
|
-
return this.rowData || [];
|
|
28486
|
-
}
|
|
28487
|
-
sortAndFilter(sortModel, filterModel) {
|
|
28488
|
-
// return sortData(sortModel, filterData(filterModel, allOfTheData))
|
|
28489
|
-
}
|
|
28490
|
-
ref_dt() {
|
|
28491
|
-
if (this.gridOptions == null)
|
|
28492
|
-
setTimeout(() => {
|
|
28493
|
-
this.ref_dt();
|
|
28494
|
-
}, 500);
|
|
28495
|
-
else {
|
|
28496
|
-
if (this.gridApi == null)
|
|
28497
|
-
setTimeout(() => {
|
|
28498
|
-
this.ref_dt();
|
|
28499
|
-
}, 500);
|
|
28500
|
-
else
|
|
28501
|
-
this.gridApi.setGridOption('serverSideDatasource', this.dataSource);
|
|
28502
|
-
}
|
|
28503
|
-
}
|
|
28504
|
-
updateRow() {
|
|
28505
|
-
this.refresh_all_rows();
|
|
28506
|
-
}
|
|
28507
|
-
onModelUpdated() {
|
|
28508
|
-
// this.calculateRowCount();
|
|
28509
|
-
}
|
|
28510
|
-
gridApi;
|
|
28511
|
-
onReady(event) {
|
|
28512
|
-
this.gridApi = event.api;
|
|
28513
|
-
this.setHeaderHeight(this.header_h);
|
|
28514
|
-
if (this.num_per_pag != 0) {
|
|
28515
|
-
this.gridOptions.paginationPageSize = this.num_per_pag;
|
|
28516
|
-
this.gridOptions.cacheBlockSize = this.num_per_pag;
|
|
28517
|
-
}
|
|
28518
|
-
if (this.gf != null && this.show_buttons && !this.pref_hidden) {
|
|
28519
|
-
if (!this.private_pref)
|
|
28520
|
-
this.gf.sql = 'SELECT_CFG_GRID';
|
|
28521
|
-
else
|
|
28522
|
-
this.gf.sql = 'SELECT_CFG_GRID_BY_USER';
|
|
28523
|
-
this.gf.types = ['string'];
|
|
28524
|
-
this.gf.values = [this.grid_customer_preference_key];
|
|
28525
|
-
this.gf.fillCombo();
|
|
28526
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_MANTIENI') != 'NO')
|
|
28527
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_CFG_DEFAULT') != null) {
|
|
28528
|
-
return;
|
|
28529
|
-
}
|
|
28530
|
-
}
|
|
28531
|
-
// let iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
28532
|
-
// if(!iOS)this.setAutoHeight();
|
|
28533
|
-
if (this.auto_load)
|
|
28534
|
-
this.onready_go();
|
|
28535
|
-
}
|
|
28536
|
-
init_grid() {
|
|
28537
|
-
this.auto_load = true;
|
|
28538
|
-
this.onready_go();
|
|
28539
|
-
}
|
|
28540
|
-
save_cfg() {
|
|
28541
|
-
if (this.gridApi)
|
|
28542
|
-
localStorage.setItem(this.grid_customer_preference_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
28543
|
-
}
|
|
28544
|
-
fe_cfg() {
|
|
28545
|
-
if (this.gf != null)
|
|
28546
|
-
if (this.gf.getObj() != null)
|
|
28547
|
-
if (localStorage.getItem(this.grid_customer_preference_key + '_MANTIENI') != 'NO') {
|
|
28548
|
-
this.gf.setByDescri(localStorage.getItem(this.grid_customer_preference_key + '_CFG_DEFAULT') || '');
|
|
28549
|
-
localStorage.setItem(this.grid_customer_preference_key + '_COLS', this.gf.getObj().COLS);
|
|
28550
|
-
// localStorage.setItem(this.grid_customer_preference_key + "_SORT", this.gf.getObj().SORT);
|
|
28551
|
-
localStorage.setItem(this.grid_customer_preference_key + '_FILTER', this.gf.getObj().FILTER);
|
|
28552
|
-
this.curr_config = this.gf.getValue();
|
|
28553
|
-
}
|
|
28554
|
-
this.onready_go();
|
|
28555
|
-
}
|
|
28556
|
-
b_iniended = false;
|
|
28557
|
-
onready_go() {
|
|
28558
|
-
this.ready = true;
|
|
28559
|
-
setTimeout(() => {
|
|
28560
|
-
this.ckk();
|
|
28561
|
-
}, 10);
|
|
28562
|
-
if (!this.b_iniended) {
|
|
28563
|
-
this.b_iniended = true;
|
|
28564
|
-
this.init_end.emit();
|
|
28565
|
-
}
|
|
28566
|
-
}
|
|
28567
|
-
ric_libera = '';
|
|
28568
|
-
init_filters() {
|
|
28569
|
-
//this.createNewDatasource();
|
|
28570
|
-
}
|
|
28571
|
-
keyDownFunctioncl(event) {
|
|
28572
|
-
if (event.keyCode == 13) {
|
|
28573
|
-
this.free_search();
|
|
28574
|
-
}
|
|
28575
|
-
}
|
|
28576
|
-
free_search() {
|
|
28577
|
-
if (this.ric_libera == '') {
|
|
28578
|
-
this.pulisci_filtri();
|
|
28579
|
-
this.fix_flt_temp = '';
|
|
28580
|
-
this.doFill('', true, false);
|
|
28581
|
-
localStorage.removeItem(this.grid_customer_preference_key + '_FILTER_UP');
|
|
28582
|
-
return;
|
|
28583
|
-
}
|
|
28584
|
-
localStorage.setItem(this.grid_customer_preference_key + '_FILTER_UP', this.ric_libera || '');
|
|
28585
|
-
let arr = (this.ric_libera || '').split(' ');
|
|
28586
|
-
let arr_F = new Array();
|
|
28587
|
-
for (let i = 0; i < arr.length; i++)
|
|
28588
|
-
arr_F.push(arr[i]);
|
|
28589
|
-
// if (arr[i].length > 2)
|
|
28590
|
-
// else this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
|
|
28591
|
-
if (arr_F.length == 0)
|
|
28592
|
-
return;
|
|
28593
|
-
let ss = '';
|
|
28594
|
-
for (let i = 0; i < arr_F.length; i++) {
|
|
28595
|
-
let ss_r = '';
|
|
28596
|
-
for (let y = 0; y < this.columnDefs.length; y++) {
|
|
28597
|
-
if (this.columnDefs[y] != null)
|
|
28598
|
-
if (this.columnDefs[y].no_filter == null)
|
|
28599
|
-
if (this.columnDefs[y].field != null)
|
|
28600
|
-
if (this.columnDefs[y].field != '')
|
|
28601
|
-
if (this.columnDefs[y].filter != 'agDateColumnFilter') {
|
|
28602
|
-
if (ss_r != '')
|
|
28603
|
-
ss_r += ' or ';
|
|
28604
|
-
ss_r +=
|
|
28605
|
-
this.columnDefs[y].field +
|
|
28606
|
-
" LIKE '%" +
|
|
28607
|
-
this.prepare_filter(arr_F[i]) +
|
|
28608
|
-
"%' ESCAPE '$'";
|
|
28609
|
-
}
|
|
28610
|
-
}
|
|
28611
|
-
if (this.full_text_added_columns != null)
|
|
28612
|
-
this.full_text_added_columns.map((v) => {
|
|
28613
|
-
if (v != null)
|
|
28614
|
-
if (v != '') {
|
|
28615
|
-
if (ss_r != '')
|
|
28616
|
-
ss_r += ' or ';
|
|
28617
|
-
ss_r +=
|
|
28618
|
-
v +
|
|
28619
|
-
" LIKE '%" +
|
|
28620
|
-
this.prepare_filter(arr_F[i]) +
|
|
28621
|
-
"%' ESCAPE '$'";
|
|
28622
|
-
}
|
|
28623
|
-
});
|
|
28624
|
-
if (ss_r != '') {
|
|
28625
|
-
if (ss != '')
|
|
28626
|
-
ss += ' and ';
|
|
28627
|
-
ss += '(' + ss_r + ')';
|
|
28628
|
-
}
|
|
28629
|
-
}
|
|
28630
|
-
if (this.full_text_added_query != null)
|
|
28631
|
-
this.full_text_added_query.map((v) => {
|
|
28632
|
-
if (v != null)
|
|
28633
|
-
if (v != '') {
|
|
28634
|
-
if (ss != '')
|
|
28635
|
-
ss = '(' + ss + ') or ';
|
|
28636
|
-
ss += v.split('_VALORE_').join(this.uti_s
|
|
28637
|
-
.string_sqlvalue(this.ric_libera || '')
|
|
28638
|
-
.replace("'", "$'")
|
|
28639
|
-
.replace('*', '$*')
|
|
28640
|
-
.replace('?', '$?')
|
|
28641
|
-
.replace('[', '$[')
|
|
28642
|
-
.replace(']', '$]')
|
|
28643
|
-
.replace('!', "'$")
|
|
28644
|
-
.toUpperCase());
|
|
28645
|
-
}
|
|
28646
|
-
});
|
|
28647
|
-
this.pulisci_filtri(false);
|
|
28648
|
-
this.doFill_Temp(ss, true);
|
|
28649
|
-
}
|
|
28650
|
-
onCellClicked(event) {
|
|
28651
|
-
this.cell_clicked.emit(event);
|
|
28652
|
-
// this.testom.element.nativeElement.value=event.data.descrizione;
|
|
28653
|
-
// this.testom.element.nativeElement.scrollTop =0;
|
|
28654
|
-
//this.testom.element.nativeElement.focus();
|
|
28655
|
-
//this.testom.element.nativeElement.setSelectionRange(0, 0);
|
|
28656
|
-
// this.myModalNormal.element.nativeElement.show();
|
|
28657
|
-
}
|
|
28658
|
-
onCellValueChanged(event) {
|
|
28659
|
-
}
|
|
28660
|
-
onCellDoubleClicked(event) {
|
|
28661
|
-
}
|
|
28662
|
-
onCellFocused(event) {
|
|
28663
|
-
}
|
|
28664
|
-
onSelectionChanged(event) {
|
|
28665
|
-
var rowCount = this.getGridApi().getSelectedNodes().length;
|
|
28666
|
-
this.selection_change.emit(rowCount);
|
|
28667
|
-
this.num_s = rowCount;
|
|
28668
|
-
}
|
|
28669
|
-
onBeforeFilterChanged() {
|
|
28670
|
-
}
|
|
28671
|
-
oncolumnEverythingChanged(event) {
|
|
28672
|
-
if (this.b_init) {
|
|
28673
|
-
if (this.gridApi)
|
|
28674
|
-
localStorage.setItem(this.grid_customer_preference_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
28675
|
-
}
|
|
28676
|
-
}
|
|
28677
|
-
onFilterModified() {
|
|
28678
|
-
if (this.no_pref)
|
|
28679
|
-
return;
|
|
28680
|
-
setTimeout(() => {
|
|
28681
|
-
if (this.b_init) {
|
|
28682
|
-
if (this.gridApi)
|
|
28683
|
-
localStorage.setItem(this.grid_customer_preference_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel() || '{}'));
|
|
28684
|
-
}
|
|
28685
|
-
}, 200);
|
|
28686
|
-
}
|
|
28687
|
-
onBeforeSortChanged() {
|
|
28688
|
-
}
|
|
28689
|
-
onAfterSortChanged() {
|
|
28690
|
-
if (this.no_pref)
|
|
28691
|
-
return;
|
|
28692
|
-
if (this.b_init) {
|
|
28693
|
-
if (this.gridApi)
|
|
28694
|
-
localStorage.setItem(this.grid_customer_preference_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
28695
|
-
/*
|
|
28696
|
-
|
|
28697
|
-
localStorage.setItem(
|
|
28698
|
-
this.grid_customer_preference_key + "_SORT",
|
|
28699
|
-
JSON.stringify(this.gridApi.getSortModel())
|
|
28700
|
-
);*/
|
|
28701
|
-
}
|
|
28702
|
-
}
|
|
28703
|
-
onVirtualRowRemoved($event) {
|
|
28704
|
-
// because this event gets fired LOTS of times, we don't print it to the
|
|
28705
|
-
// console. if you want to see it, just uncomment out this line
|
|
28706
|
-
}
|
|
28707
|
-
onRowClicked($event) {
|
|
28708
|
-
var selectedInGrid;
|
|
28709
|
-
if (this.gridApi)
|
|
28710
|
-
selectedInGrid = this.gridApi.getSelectedNodes();
|
|
28711
|
-
if (selectedInGrid != null)
|
|
28712
|
-
if (selectedInGrid[0] != null) {
|
|
28713
|
-
localStorage.setItem(this.grid_customer_preference_key + '_POS', String(selectedInGrid[0].rowIndex));
|
|
28714
|
-
if (this.gridApi)
|
|
28715
|
-
localStorage.setItem(this.grid_customer_preference_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
|
|
28716
|
-
localStorage.setItem(this.grid_customer_preference_key + '_POS2', this.getRowId(selectedInGrid[0]));
|
|
28717
|
-
// this.m_appService.getState().grid_obj=new Object();
|
|
28718
|
-
// this.m_appService.getState().grid_obj[this.grid_customer_preference_key+'_NODE']=this.gridApi.getSelectedRows[0];
|
|
28719
|
-
}
|
|
28720
|
-
this.sRow = $event.data;
|
|
28721
|
-
localStorage.setItem(this.grid_customer_preference_key + '_LAST_ROW', JSON.stringify(this.sRow));
|
|
28722
|
-
this.clicked.emit($event.data);
|
|
28723
|
-
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
28724
|
-
if (iOS) {
|
|
28725
|
-
this.columndclicked.emit($event);
|
|
28726
|
-
this.dclicked.emit($event.data);
|
|
28727
|
-
}
|
|
28728
|
-
}
|
|
28729
|
-
sRow;
|
|
28730
|
-
onRowDClicked($event) {
|
|
28731
|
-
this.dclicked.emit($event.data);
|
|
28732
|
-
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
28733
|
-
if (iOS) {
|
|
28734
|
-
this.columndclicked.emit($event);
|
|
28735
|
-
//this.dclicked.emit($event.data);
|
|
28736
|
-
}
|
|
28737
|
-
}
|
|
28738
|
-
onQuickFilterChanged($event) {
|
|
28739
|
-
if (this.gridApi)
|
|
28740
|
-
this.gridApi.setQuickFilter($event.target.value);
|
|
28741
|
-
}
|
|
28742
|
-
// here we use one generic event to handle all the column type events.
|
|
28743
|
-
// the method just prints the event name
|
|
28744
|
-
onColumnEvent($event) {
|
|
28745
|
-
this.columndclicked.emit($event);
|
|
28746
|
-
// localStorage.setItem(this.grid_customer_preference_key+'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
|
|
28747
|
-
}
|
|
28748
|
-
fix_flt = '';
|
|
28749
|
-
fix_flt_temp = '';
|
|
28750
|
-
doFill(flt, reset_prec = true, over_fixed = true) {
|
|
28751
|
-
if (reset_prec)
|
|
28752
|
-
this.filters = '';
|
|
28753
|
-
if (over_fixed)
|
|
28754
|
-
this.fix_flt = flt;
|
|
28755
|
-
this.ckk_ed = false;
|
|
28756
|
-
// this.createNewDatasource();
|
|
28757
|
-
this.b_init = true;
|
|
28758
|
-
this.init_fill = true;
|
|
28759
|
-
//this.createNewDatasource();
|
|
28760
|
-
setTimeout(() => {
|
|
28761
|
-
this.ckk();
|
|
28762
|
-
}, 10);
|
|
28763
|
-
}
|
|
28764
|
-
doFill_Temp(flt, reset_prec = true) {
|
|
28765
|
-
if (reset_prec)
|
|
28766
|
-
this.filters = '';
|
|
28767
|
-
this.fix_flt_temp = flt;
|
|
28768
|
-
this.ckk_ed = false;
|
|
28769
|
-
// this.createNewDatasource();
|
|
28770
|
-
this.b_init = true;
|
|
28771
|
-
this.init_fill = true;
|
|
28772
|
-
//this.createNewDatasource();
|
|
28773
|
-
setTimeout(() => {
|
|
28774
|
-
this.Refresh();
|
|
28775
|
-
}, 10);
|
|
28776
|
-
}
|
|
28777
|
-
Refresh() {
|
|
28778
|
-
this.ref_dt();
|
|
28779
|
-
}
|
|
28780
|
-
RefreshOnlyMemory() {
|
|
28781
|
-
this.updateRow();
|
|
28782
|
-
}
|
|
28783
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHGridInternalComponent, deps: [{ token: GridService }, { token: i3$1.ToastrService }, { token: QueryService }, { token: AppService }, { token: i1$2.MatDialog }, { token: UtilityService }, { token: OfficeAutomatorService }, { token: FileService }, { token: i8$4.Clipboard }, { token: i3.TranslateService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
28784
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHGridInternalComponent, isStandalone: true, selector: "FHGridInternal", inputs: { flt_aggiuntivo: "flt_aggiuntivo", flt_aggiuntivo_value: "flt_aggiuntivo_value", flt_aggiuntivo_label: "flt_aggiuntivo_label", rowHeight: "rowHeight", gridCursorPointer: "gridCursorPointer", overwrite_help_url: "overwrite_help_url", over_fulltext: "over_fulltext", b_wait: "b_wait", over_fulltext_types: "over_fulltext_types", over_fulltext_values: "over_fulltext_values", over_fulltext_sql: "over_fulltext_sql", forceFitSize: "forceFitSize", tooltipShowDelay: "tooltipShowDelay", elimina_label: "elimina_label", show_selected_number: "show_selected_number", export_field_aggiuntivi: "export_field_aggiuntivi", end_point: "end_point", grid_config_key: "grid_config_key", columnDefs: "columnDefs", count_tbl_name: "count_tbl_name", search_field_tooltip: "search_field_tooltip", num_per_pag: "num_per_pag", grid_customer_preference_key: "grid_customer_preference_key", sort_field: "sort_field", fields: "fields", filters: "filters", enabled: "enabled", show_link: "show_link", show_help_bar: "show_help_bar", help_label_bar: "help_label_bar", auto_load: "auto_load", customKeyField: "customKeyField", auto_height: "auto_height", enable_export: "enable_export", enabled_pag: "enabled_pag", show_help: "show_help", show_num_elem: "show_num_elem", private_pref: "private_pref", system_dest: "system_dest", header_h: "header_h", selection_mode: "selection_mode", init_fill: "init_fill", no_pref: "no_pref", pref_hidden: "pref_hidden", enable_export_pdf: "enable_export_pdf", enable_export_xls: "enable_export_xls", translateFilterEnabled: "translateFilterEnabled", enable_copy: "enable_copy", full_text_added_columns: "full_text_added_columns", full_text_added_query: "full_text_added_query", autosize_at_ini: "autosize_at_ini", label_elementi: "label_elementi", trova_label: "trova_label", mantieni_impostazioni: "mantieni_impostazioni", show_buttons: "show_buttons", custom_export: "custom_export", toolbar_type: "toolbar_type", toolbar_wkfapp: "toolbar_wkfapp", toolbar_custom_commands: "toolbar_custom_commands", toolbar_custom_commands_primary: "toolbar_custom_commands_primary", off_set: "off_set", include_always: "include_always" }, outputs: { flt_aggiuntivo_event: "flt_aggiuntivo_event", fill_end: "fill_end", cell_edited: "cell_edited", clicked: "clicked", dclicked: "dclicked", columndclicked: "columndclicked", cell_clicked: "cell_clicked", selection_change: "selection_change", command: "command", filterCleared: "filterCleared", init_end: "init_end" }, host: { listeners: { "window:resize": "onResize(event)" } }, viewQueries: [{ propertyName: "gf", first: true, predicate: ["gf"], descendants: true }, { propertyName: "toggle_mantieni", first: true, predicate: ["toggle_mantieni"], descendants: true }], ngImport: i0, template: "<div fxLayout=\"column\" fxFlexFill>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayout.xs=\"column\"\r\n fxLayoutAlign=\"center start\"\r\n fxLayoutGap=\"3px\"\r\n style=\"min-height: 55px;\"\r\n [hidden]=\"!show_buttons\"\r\n >\r\n \r\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\r\n <div *ngIf=\"show_num_elem\">\r\n <h5>{{num_r}} {{label_elementi | translate}}</h5>\r\n </div>\r\n \r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <input\r\n matInput\r\n [placeholder]=\"trova_label | translate\"\r\n (keydown)=\"keyDownFunctioncl($event)\"\r\n [(ngModel)]=\"ric_libera\"\r\n [matTooltip]=\"search_field_tooltip\"\r\n style=\"\r\n width: 160px;\r\n border: 1px solid;\r\n min-height: 30px;\r\n \"\r\n />\r\n </div>\r\n <div\r\n matTooltip=\"REMOVE FILTER\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"show_pulisci_filtri\"\r\n >\r\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\" class=\"fh_icon_button\">\r\n <mat-icon>filter_none</mat-icon>\r\n </button>\r\n </div>\r\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n (click)=\"autoSizeAll()\"\r\n color=\"primary\" class=\"fh_icon_button\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>swap_horiz</mat-icon>\r\n </button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n (click)=\"fitSizeAll()\" class=\"fh_icon_button\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>keyboard_tab</mat-icon>\r\n </button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n (click)=\"Refresh()\" class=\"fh_icon_button\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n </div>\r\n <FHFilterComboBox\r\n fxHide [label]=\"'Configurazioni Salvate' | translate\"\r\n fxShow.gt-sm\r\n [hidden]=\"!show_buttons || pref_hidden\"\r\n (selchange)=\"ch_config()\"\r\n (fillend)=\"fe_cfg()\"\r\n #gf\r\n [init_fill]=\"false\"\r\n ></FHFilterComboBox>\r\n <div\r\n matTooltip=\"Modifica Preferenza\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"curr_config!='-1'\"\r\n >\r\n <button\r\n mat-icon-button\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n style=\"color: rgb(248, 105, 10);\" class=\"fh_icon_button\"\r\n >\r\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n matTooltip=\"Elimina Preferenza\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"curr_config!='-1'\"\r\n >\r\n <button\r\n mat-icon-button class=\"fh_icon_button\"\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n style=\"color: rgb(248, 105, 10);\"\r\n >\r\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n matTooltip=\"Crea Nuova Preferenza\"\r\n matTooltipPosition=\"above\"\r\n >\r\n <button\r\n mat-icon-button class=\"fh_icon_button\"\r\n style=\"color: rgb(16, 98, 16);\"\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n >\r\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <mat-slide-toggle\r\n fxHide\r\n fxShow.gt-sm\r\n [hidden]=\"!show_buttons || pref_hidden\"\r\n (click)=\"ck_flag()\"\r\n #toggle_mantieni\r\n >\r\n {{mantieni_impostazioni}}\r\n </mat-slide-toggle>\r\n\r\n \r\n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n (click)=\"help_window()\"\r\n color=\"primary\" class=\"fh_icon_button\"\r\n *ngIf=\"show_buttons && show_help\"\r\n >\r\n <mat-icon>help</mat-icon>\r\n </button>\r\n </div>\r\n \r\n <div *ngIf=\"show_selected_number\">\r\n <h5>{{num_s}} {{label_elementi_s | translate}}</h5>\r\n </div>\r\n \r\n\r\n <img\r\n *ngIf=\"enable_export && enable_export_pdf\"\r\n matTooltip=\"EXPORT PDF\"\r\n matTooltipPosition=\"above\"\r\n src=\"assets/icons/square-o/pdf.svg\"\r\n style=\"width: 24px; height: 24px; cursor: pointer\"\r\n (click)=\"print()\"\r\n alt=\"Export Excel\"\r\n width=\"24\" height=\"24\"\r\n />\r\n\r\n\r\n <img *ngIf=\"enable_export && enable_export_xls\"\r\n matTooltip=\"EXPORT EXCEL\"\r\n matTooltipPosition=\"above\"\r\n src=\"assets/icons/square-o/xlsx.svg\"\r\n style=\"width: 24px; height: 24px; cursor: pointer\"\r\n (click)=\"export_excel()\"\r\n alt=\"Export Excel\"\r\n width=\"24\" height=\"24\"\r\n />\r\n\r\n <div *ngIf=\"flt_aggiuntivo.length!=0\"> </div>\r\n <mat-form-field *ngIf=\"flt_aggiuntivo.length!=0\"\r\n\r\n appearance=\"outline\"\r\n floatLabel=\"always\"\r\n ><mat-label>{{ flt_aggiuntivo_label|translate }}</mat-label>\r\n <mat-select\r\n\r\n [(ngModel)]=\"flt_aggiuntivo_value\"\r\n (selectionChange)=\"sc()\"\r\n >\r\n <mat-option value=\"{{ app.valore }}\" *ngFor=\"let app of flt_aggiuntivo\">{{\r\n app.descrizione_valore | translate\r\n }}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n \r\n <!-- <mat-spinner diameter=\"25\" *ngIf=\"loading_fulltext\"></mat-spinner> -->\r\n\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"end center\"\r\n\r\n [style.width]=\"width_max\"\r\n *ngIf=\"enabled\"\r\n >\r\n\r\n <FHGridToolBar\r\n (command)=\"docmd($event)\"\r\n [type]=\"toolbar_type\"\r\n [show_link]=\"show_link\"\r\n [show_help]=\"show_help_bar\"\r\n [help_label]=\"help_label_bar\"\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [custom_commands_primary]=\"toolbar_custom_commands_primary\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n [elimina_label]=\"elimina_label\"\r\n [b_wait]=\"b_wait\"\r\n [sRow]=\"sRow\"\r\n ></FHGridToolBar>\r\n </div>\r\n </div>\r\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\r\n <ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n class=\"ag-theme-quartz\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n [rowSelection]=\"(selection_mode||{\r\n mode: 'multiRow'\r\n })\"\r\n [tooltipShowDelay]=\"tooltipShowDelay\"\r\n (filterModified)=\"onFilterModified()\"\r\n (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n (sortChanged)=\"onAfterSortChanged()\"\r\n (selectionChanged)=\"onSelectionChanged($event)\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\"\r\n >\r\n </ag-grid-angular>\r\n </div>\r\n</div>\r\n", styles: [".label_elem{font-size:12px;font-weight:700}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: FHFilterComboboxComponent, selector: "FHFilterComboBox", inputs: ["init_fill", "sql", "types", "values", "hidden", "label", "enabled", "required", "sel_label", "valDef", "db_type"], outputs: ["fillend", "selchange", "initend"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i4$1.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i6$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: FHGridToolBarComponent, selector: "FHGridToolBar", inputs: ["show_help", "help_label", "show_link", "elimina_label", "b_wait", "type", "toolbar_wkfapp", "custom_commands", "custom_commands_primary", "sRow"], outputs: ["command"] }, { kind: "ngmodule", type: AgGridModule }, { kind: "component", type: i12.AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "components", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "findSearchValue", "findOptions", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableCellSpan", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "treeDataChildrenField", "treeDataParentIdField", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "pinnedTopRowData", "pinnedBottomRowData", "enableRowPinning", "isRowPinnable", "isRowPinned", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "rowNumbers", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "themeCssLayer", "styleNonce", "themeStyleContainer", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "advancedFilterBuilderVisibleChanged", "findChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "rowResizeStarted", "rowResizeEnded", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "pinnedRowsChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i8$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i8$1.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i8$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i10.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }] });
|
|
28785
|
-
}
|
|
28786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHGridInternalComponent, decorators: [{
|
|
28787
|
-
type: Component,
|
|
28788
|
-
args: [{ imports: [
|
|
28789
|
-
TranslateModule,
|
|
28790
|
-
CommonModule,
|
|
28791
|
-
FormsModule,
|
|
28792
|
-
MatTooltipModule,
|
|
28793
|
-
MatIconModule,
|
|
28794
|
-
FHFilterComboboxComponent,
|
|
28795
|
-
MatSlideToggleModule,
|
|
28796
|
-
MatFormFieldModule,
|
|
28797
|
-
MatSelectModule,
|
|
28798
|
-
FHGridToolBarComponent,
|
|
28799
|
-
AgGridModule,
|
|
28800
|
-
FlexLayoutModule
|
|
28801
|
-
], selector: 'FHGridInternal', template: "<div fxLayout=\"column\" fxFlexFill>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayout.xs=\"column\"\r\n fxLayoutAlign=\"center start\"\r\n fxLayoutGap=\"3px\"\r\n style=\"min-height: 55px;\"\r\n [hidden]=\"!show_buttons\"\r\n >\r\n \r\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\r\n <div *ngIf=\"show_num_elem\">\r\n <h5>{{num_r}} {{label_elementi | translate}}</h5>\r\n </div>\r\n \r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <input\r\n matInput\r\n [placeholder]=\"trova_label | translate\"\r\n (keydown)=\"keyDownFunctioncl($event)\"\r\n [(ngModel)]=\"ric_libera\"\r\n [matTooltip]=\"search_field_tooltip\"\r\n style=\"\r\n width: 160px;\r\n border: 1px solid;\r\n min-height: 30px;\r\n \"\r\n />\r\n </div>\r\n <div\r\n matTooltip=\"REMOVE FILTER\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"show_pulisci_filtri\"\r\n >\r\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\" class=\"fh_icon_button\">\r\n <mat-icon>filter_none</mat-icon>\r\n </button>\r\n </div>\r\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n (click)=\"autoSizeAll()\"\r\n color=\"primary\" class=\"fh_icon_button\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>swap_horiz</mat-icon>\r\n </button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n (click)=\"fitSizeAll()\" class=\"fh_icon_button\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>keyboard_tab</mat-icon>\r\n </button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n (click)=\"Refresh()\" class=\"fh_icon_button\"\r\n color=\"primary\"\r\n *ngIf=\"show_buttons\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n </div>\r\n <FHFilterComboBox\r\n fxHide [label]=\"'Configurazioni Salvate' | translate\"\r\n fxShow.gt-sm\r\n [hidden]=\"!show_buttons || pref_hidden\"\r\n (selchange)=\"ch_config()\"\r\n (fillend)=\"fe_cfg()\"\r\n #gf\r\n [init_fill]=\"false\"\r\n ></FHFilterComboBox>\r\n <div\r\n matTooltip=\"Modifica Preferenza\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"curr_config!='-1'\"\r\n >\r\n <button\r\n mat-icon-button\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n style=\"color: rgb(248, 105, 10);\" class=\"fh_icon_button\"\r\n >\r\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n matTooltip=\"Elimina Preferenza\"\r\n matTooltipPosition=\"above\"\r\n *ngIf=\"curr_config!='-1'\"\r\n >\r\n <button\r\n mat-icon-button class=\"fh_icon_button\"\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n style=\"color: rgb(248, 105, 10);\"\r\n >\r\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\r\n </button>\r\n </div>\r\n <div\r\n fxHide\r\n fxShow.gt-sm\r\n matTooltip=\"Crea Nuova Preferenza\"\r\n matTooltipPosition=\"above\"\r\n >\r\n <button\r\n mat-icon-button class=\"fh_icon_button\"\r\n style=\"color: rgb(16, 98, 16);\"\r\n *ngIf=\"show_buttons && !pref_hidden\"\r\n >\r\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <mat-slide-toggle\r\n fxHide\r\n fxShow.gt-sm\r\n [hidden]=\"!show_buttons || pref_hidden\"\r\n (click)=\"ck_flag()\"\r\n #toggle_mantieni\r\n >\r\n {{mantieni_impostazioni}}\r\n </mat-slide-toggle>\r\n\r\n \r\n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button\r\n mat-flat-button\r\n (click)=\"help_window()\"\r\n color=\"primary\" class=\"fh_icon_button\"\r\n *ngIf=\"show_buttons && show_help\"\r\n >\r\n <mat-icon>help</mat-icon>\r\n </button>\r\n </div>\r\n \r\n <div *ngIf=\"show_selected_number\">\r\n <h5>{{num_s}} {{label_elementi_s | translate}}</h5>\r\n </div>\r\n \r\n\r\n <img\r\n *ngIf=\"enable_export && enable_export_pdf\"\r\n matTooltip=\"EXPORT PDF\"\r\n matTooltipPosition=\"above\"\r\n src=\"assets/icons/square-o/pdf.svg\"\r\n style=\"width: 24px; height: 24px; cursor: pointer\"\r\n (click)=\"print()\"\r\n alt=\"Export Excel\"\r\n width=\"24\" height=\"24\"\r\n />\r\n\r\n\r\n <img *ngIf=\"enable_export && enable_export_xls\"\r\n matTooltip=\"EXPORT EXCEL\"\r\n matTooltipPosition=\"above\"\r\n src=\"assets/icons/square-o/xlsx.svg\"\r\n style=\"width: 24px; height: 24px; cursor: pointer\"\r\n (click)=\"export_excel()\"\r\n alt=\"Export Excel\"\r\n width=\"24\" height=\"24\"\r\n />\r\n\r\n <div *ngIf=\"flt_aggiuntivo.length!=0\"> </div>\r\n <mat-form-field *ngIf=\"flt_aggiuntivo.length!=0\"\r\n\r\n appearance=\"outline\"\r\n floatLabel=\"always\"\r\n ><mat-label>{{ flt_aggiuntivo_label|translate }}</mat-label>\r\n <mat-select\r\n\r\n [(ngModel)]=\"flt_aggiuntivo_value\"\r\n (selectionChange)=\"sc()\"\r\n >\r\n <mat-option value=\"{{ app.valore }}\" *ngFor=\"let app of flt_aggiuntivo\">{{\r\n app.descrizione_valore | translate\r\n }}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n \r\n <!-- <mat-spinner diameter=\"25\" *ngIf=\"loading_fulltext\"></mat-spinner> -->\r\n\r\n </div>\r\n <div\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"end center\"\r\n\r\n [style.width]=\"width_max\"\r\n *ngIf=\"enabled\"\r\n >\r\n\r\n <FHGridToolBar\r\n (command)=\"docmd($event)\"\r\n [type]=\"toolbar_type\"\r\n [show_link]=\"show_link\"\r\n [show_help]=\"show_help_bar\"\r\n [help_label]=\"help_label_bar\"\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [custom_commands_primary]=\"toolbar_custom_commands_primary\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n [elimina_label]=\"elimina_label\"\r\n [b_wait]=\"b_wait\"\r\n [sRow]=\"sRow\"\r\n ></FHGridToolBar>\r\n </div>\r\n </div>\r\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\r\n <ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n class=\"ag-theme-quartz\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n [rowSelection]=\"(selection_mode||{\r\n mode: 'multiRow'\r\n })\"\r\n [tooltipShowDelay]=\"tooltipShowDelay\"\r\n (filterModified)=\"onFilterModified()\"\r\n (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n (sortChanged)=\"onAfterSortChanged()\"\r\n (selectionChanged)=\"onSelectionChanged($event)\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\"\r\n >\r\n </ag-grid-angular>\r\n </div>\r\n</div>\r\n", styles: [".label_elem{font-size:12px;font-weight:700}\n"] }]
|
|
28802
|
-
}], ctorParameters: () => [{ type: GridService }, { type: i3$1.ToastrService }, { type: QueryService }, { type: AppService }, { type: i1$2.MatDialog }, { type: UtilityService }, { type: OfficeAutomatorService }, { type: FileService }, { type: i8$4.Clipboard }, { type: i3.TranslateService }, { type: i1$1.HttpClient }], propDecorators: { flt_aggiuntivo: [{
|
|
28803
|
-
type: Input
|
|
28804
|
-
}], flt_aggiuntivo_value: [{
|
|
28805
|
-
type: Input
|
|
28806
|
-
}], flt_aggiuntivo_label: [{
|
|
28807
|
-
type: Input
|
|
28808
|
-
}], rowHeight: [{
|
|
28809
|
-
type: Input
|
|
28810
|
-
}], gridCursorPointer: [{
|
|
28811
|
-
type: Input
|
|
28812
|
-
}], overwrite_help_url: [{
|
|
28813
|
-
type: Input
|
|
28814
|
-
}], over_fulltext: [{
|
|
28815
|
-
type: Input
|
|
28816
|
-
}], b_wait: [{
|
|
28817
|
-
type: Input
|
|
28818
|
-
}], over_fulltext_types: [{
|
|
28819
|
-
type: Input
|
|
28820
|
-
}], over_fulltext_values: [{
|
|
28821
|
-
type: Input
|
|
28822
|
-
}], over_fulltext_sql: [{
|
|
28823
|
-
type: Input
|
|
28824
|
-
}], forceFitSize: [{
|
|
28825
|
-
type: Input
|
|
28826
|
-
}], tooltipShowDelay: [{
|
|
28827
|
-
type: Input
|
|
28828
|
-
}], elimina_label: [{
|
|
28829
|
-
type: Input
|
|
28830
|
-
}], show_selected_number: [{
|
|
28831
|
-
type: Input
|
|
28832
|
-
}], export_field_aggiuntivi: [{
|
|
28833
|
-
type: Input
|
|
28834
|
-
}], end_point: [{
|
|
28835
|
-
type: Input
|
|
28836
|
-
}], grid_config_key: [{
|
|
28837
|
-
type: Input
|
|
28838
|
-
}], columnDefs: [{
|
|
28839
|
-
type: Input
|
|
28840
|
-
}], count_tbl_name: [{
|
|
28841
|
-
type: Input
|
|
28842
|
-
}], search_field_tooltip: [{
|
|
28843
|
-
type: Input
|
|
28844
|
-
}], num_per_pag: [{
|
|
28845
|
-
type: Input
|
|
28846
|
-
}], grid_customer_preference_key: [{
|
|
28847
|
-
type: Input
|
|
28848
|
-
}], sort_field: [{
|
|
28849
|
-
type: Input
|
|
28850
|
-
}], fields: [{
|
|
28851
|
-
type: Input
|
|
28852
|
-
}], filters: [{
|
|
28853
|
-
type: Input
|
|
28854
|
-
}], enabled: [{
|
|
28855
|
-
type: Input
|
|
28856
|
-
}], show_link: [{
|
|
28857
|
-
type: Input
|
|
28858
|
-
}], show_help_bar: [{
|
|
28859
|
-
type: Input
|
|
28860
|
-
}], help_label_bar: [{
|
|
28861
|
-
type: Input
|
|
28862
|
-
}], auto_load: [{
|
|
28863
|
-
type: Input
|
|
28864
|
-
}], customKeyField: [{
|
|
28865
|
-
type: Input
|
|
28866
|
-
}], auto_height: [{
|
|
28867
|
-
type: Input
|
|
28868
|
-
}], enable_export: [{
|
|
28869
|
-
type: Input
|
|
28870
|
-
}], enabled_pag: [{
|
|
28871
|
-
type: Input
|
|
28872
|
-
}], show_help: [{
|
|
28873
|
-
type: Input
|
|
28874
|
-
}], show_num_elem: [{
|
|
28875
|
-
type: Input
|
|
28876
|
-
}], private_pref: [{
|
|
28877
|
-
type: Input
|
|
28878
|
-
}], system_dest: [{
|
|
28879
|
-
type: Input
|
|
28880
|
-
}], header_h: [{
|
|
28881
|
-
type: Input
|
|
28882
|
-
}], selection_mode: [{
|
|
28883
|
-
type: Input
|
|
28884
|
-
}], init_fill: [{
|
|
28885
|
-
type: Input
|
|
28886
|
-
}], no_pref: [{
|
|
28887
|
-
type: Input
|
|
28888
|
-
}], pref_hidden: [{
|
|
28889
|
-
type: Input
|
|
28890
|
-
}], enable_export_pdf: [{
|
|
28891
|
-
type: Input
|
|
28892
|
-
}], enable_export_xls: [{
|
|
28893
|
-
type: Input
|
|
28894
|
-
}], translateFilterEnabled: [{
|
|
28895
|
-
type: Input
|
|
28896
|
-
}], enable_copy: [{
|
|
28897
|
-
type: Input
|
|
28898
|
-
}], full_text_added_columns: [{
|
|
28899
|
-
type: Input
|
|
28900
|
-
}], full_text_added_query: [{
|
|
28901
|
-
type: Input
|
|
28902
|
-
}], autosize_at_ini: [{
|
|
28903
|
-
type: Input
|
|
28904
|
-
}], label_elementi: [{
|
|
28905
|
-
type: Input
|
|
28906
|
-
}], trova_label: [{
|
|
28907
|
-
type: Input
|
|
28908
|
-
}], mantieni_impostazioni: [{
|
|
28909
|
-
type: Input
|
|
28910
|
-
}], flt_aggiuntivo_event: [{
|
|
28911
|
-
type: Output
|
|
28912
|
-
}], show_buttons: [{
|
|
28913
|
-
type: Input
|
|
28914
|
-
}], fill_end: [{
|
|
28915
|
-
type: Output
|
|
28916
|
-
}], cell_edited: [{
|
|
28917
|
-
type: Output
|
|
28918
|
-
}], clicked: [{
|
|
28919
|
-
type: Output
|
|
28920
|
-
}], dclicked: [{
|
|
28921
|
-
type: Output
|
|
28922
|
-
}], columndclicked: [{
|
|
28923
|
-
type: Output
|
|
28924
|
-
}], cell_clicked: [{
|
|
28925
|
-
type: Output
|
|
28926
|
-
}], selection_change: [{
|
|
28927
|
-
type: Output
|
|
28928
|
-
}], custom_export: [{
|
|
28929
|
-
type: Input
|
|
28930
|
-
}], toolbar_type: [{
|
|
28931
|
-
type: Input
|
|
28932
|
-
}], toolbar_wkfapp: [{
|
|
28933
|
-
type: Input
|
|
28934
|
-
}], toolbar_custom_commands: [{
|
|
28935
|
-
type: Input
|
|
28936
|
-
}], toolbar_custom_commands_primary: [{
|
|
28937
|
-
type: Input
|
|
28938
|
-
}], command: [{
|
|
28939
|
-
type: Output
|
|
28940
|
-
}], filterCleared: [{
|
|
28941
|
-
type: Output
|
|
28942
|
-
}], gf: [{
|
|
28943
|
-
type: ViewChild,
|
|
28944
|
-
args: ['gf']
|
|
28945
|
-
}], toggle_mantieni: [{
|
|
28946
|
-
type: ViewChild,
|
|
28947
|
-
args: ['toggle_mantieni']
|
|
28948
|
-
}], init_end: [{
|
|
28949
|
-
type: Output
|
|
28950
|
-
}], off_set: [{
|
|
28951
|
-
type: Input
|
|
28952
|
-
}], include_always: [{
|
|
28953
|
-
type: Input
|
|
28954
|
-
}], onResize: [{
|
|
28955
|
-
type: HostListener,
|
|
28956
|
-
args: ['window:resize', ['event']]
|
|
28957
|
-
}] } });
|
|
28958
|
-
|
|
28959
26897
|
class win_recupera_doc_v2 {
|
|
28960
26898
|
dialogRef;
|
|
28961
26899
|
m_appService;
|
|
@@ -29013,7 +26951,7 @@ class win_recupera_doc_v2 {
|
|
|
29013
26951
|
},
|
|
29014
26952
|
];
|
|
29015
26953
|
if (this.datagrid)
|
|
29016
|
-
this.datagrid.doFill(
|
|
26954
|
+
this.datagrid.doFill('FILTER_APP|' + id_app);
|
|
29017
26955
|
}
|
|
29018
26956
|
title = "RECUPERA DOCUMENTO";
|
|
29019
26957
|
constructor(dialogRef, m_appService, toastr, _dataService, _tsr) {
|
|
@@ -29051,7 +26989,7 @@ class win_recupera_doc_v2 {
|
|
|
29051
26989
|
<br />
|
|
29052
26990
|
<div style="width:100%;height:400px">
|
|
29053
26991
|
<div style="width:100%;height:100%">
|
|
29054
|
-
<
|
|
26992
|
+
<FHGrid
|
|
29055
26993
|
[init_fill]="false"
|
|
29056
26994
|
[show_buttons]="false"
|
|
29057
26995
|
vis
|
|
@@ -29059,12 +26997,12 @@ class win_recupera_doc_v2 {
|
|
|
29059
26997
|
(dclicked)="edit($event)"
|
|
29060
26998
|
g_width="100%"
|
|
29061
26999
|
g_height="100%"
|
|
29062
|
-
grid_config_key="
|
|
27000
|
+
grid_config_key="WKF_DOCUMENTS_RECOVERY"
|
|
29063
27001
|
grid_customer_preference_key="r_wkf_documents"
|
|
29064
27002
|
sort_field="codice desc"
|
|
29065
27003
|
[off_set]="50"
|
|
29066
27004
|
fields="*"
|
|
29067
|
-
></
|
|
27005
|
+
></FHGrid>
|
|
29068
27006
|
</div>
|
|
29069
27007
|
</div>
|
|
29070
27008
|
</mat-dialog-content>
|
|
@@ -29081,7 +27019,7 @@ class win_recupera_doc_v2 {
|
|
|
29081
27019
|
</div>
|
|
29082
27020
|
</mat-dialog-actions>
|
|
29083
27021
|
</div>
|
|
29084
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type:
|
|
27022
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["theme", "gridCursorPointer", "pagination", "paginationPageSize", "paginationAutoPageSize", "subtitle", "forceFitSize", "exportLanguage", "tooltipShowDelay", "elimina_label", "export_field_aggiuntivi", "end_point", "grid_config_key", "columnDefs", "num_per_pag", "grid_customer_preference_key", "service", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "icons", "system_dest", "header_h", "selection_mode", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "enable_copy", "full_text_added_columns", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "rowHeight", "master_detail", "detail_cell_renderer", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "exec_params", "off_set"], outputs: ["fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "cellValueChanged", "command", "init_end"] }] });
|
|
29085
27023
|
}
|
|
29086
27024
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: win_recupera_doc_v2, decorators: [{
|
|
29087
27025
|
type: Component,
|
|
@@ -29091,7 +27029,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
29091
27029
|
TranslateModule,
|
|
29092
27030
|
CommonModule,
|
|
29093
27031
|
MatDialogModule,
|
|
29094
|
-
|
|
27032
|
+
FHGridComponent
|
|
29095
27033
|
],
|
|
29096
27034
|
template: `
|
|
29097
27035
|
<div fxLayout="column">
|
|
@@ -29119,7 +27057,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
29119
27057
|
<br />
|
|
29120
27058
|
<div style="width:100%;height:400px">
|
|
29121
27059
|
<div style="width:100%;height:100%">
|
|
29122
|
-
<
|
|
27060
|
+
<FHGrid
|
|
29123
27061
|
[init_fill]="false"
|
|
29124
27062
|
[show_buttons]="false"
|
|
29125
27063
|
vis
|
|
@@ -29127,12 +27065,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
29127
27065
|
(dclicked)="edit($event)"
|
|
29128
27066
|
g_width="100%"
|
|
29129
27067
|
g_height="100%"
|
|
29130
|
-
grid_config_key="
|
|
27068
|
+
grid_config_key="WKF_DOCUMENTS_RECOVERY"
|
|
29131
27069
|
grid_customer_preference_key="r_wkf_documents"
|
|
29132
27070
|
sort_field="codice desc"
|
|
29133
27071
|
[off_set]="50"
|
|
29134
27072
|
fields="*"
|
|
29135
|
-
></
|
|
27073
|
+
></FHGrid>
|
|
29136
27074
|
</div>
|
|
29137
27075
|
</div>
|
|
29138
27076
|
</mat-dialog-content>
|
|
@@ -36934,5 +34872,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
36934
34872
|
* Generated bundle index. Do not edit.
|
|
36935
34873
|
*/
|
|
36936
34874
|
|
|
36937
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand };
|
|
34875
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand };
|
|
36938
34876
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|