@fluxhub/fluxhub-lib 10.0.518 → 10.0.520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/fluxhub-fluxhub-lib.umd.js +1848 -5
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +7 -6
- package/esm2015/lib/controls/fhgridn.js +1823 -0
- package/esm2015/lib/fluxhub-lib.module.js +4 -1
- package/esm2015/lib/services/app_maker.service.js +1 -1
- package/esm2015/lib/services/login.service.js +1 -1
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +1812 -6
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgridn.d.ts +186 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -6226,11 +6226,12 @@ class FHGridComponent {
|
|
|
6226
6226
|
p.filter = p.filter + " and ";
|
|
6227
6227
|
p.filter = p.filter + " (" + this.fix_flt + " )";
|
|
6228
6228
|
}
|
|
6229
|
-
if (this.
|
|
6230
|
-
if (
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6229
|
+
if (this.ric_libera == '' || !this.over_fulltext)
|
|
6230
|
+
if (this.fix_flt_temp != "") {
|
|
6231
|
+
if (p.filter != "")
|
|
6232
|
+
p.filter = p.filter + " and ";
|
|
6233
|
+
p.filter = p.filter + " (" + this.fix_flt_temp + " )";
|
|
6234
|
+
}
|
|
6234
6235
|
// console.log('Filter model');
|
|
6235
6236
|
//console.log(params.filterModel);
|
|
6236
6237
|
let p_fi = p.filter;
|
|
@@ -25765,6 +25766,1809 @@ fh_win_ask_richtext.ctorParameters = () => [
|
|
|
25765
25766
|
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
25766
25767
|
];
|
|
25767
25768
|
|
|
25769
|
+
class FHGridComponentN {
|
|
25770
|
+
constructor(_gridservice, _toast, _dataService, m_appService, slimLoadingBarService, m_dialog, uti_s, _fileService, clipboard) {
|
|
25771
|
+
this._gridservice = _gridservice;
|
|
25772
|
+
this._toast = _toast;
|
|
25773
|
+
this._dataService = _dataService;
|
|
25774
|
+
this.m_appService = m_appService;
|
|
25775
|
+
this.slimLoadingBarService = slimLoadingBarService;
|
|
25776
|
+
this.m_dialog = m_dialog;
|
|
25777
|
+
this.uti_s = uti_s;
|
|
25778
|
+
this._fileService = _fileService;
|
|
25779
|
+
this.clipboard = clipboard;
|
|
25780
|
+
this.width_max = '100%';
|
|
25781
|
+
this.browser = 'nd';
|
|
25782
|
+
this.tooltipShowDelay = 2000;
|
|
25783
|
+
this.elimina_label = 'ELIMINA';
|
|
25784
|
+
this.export_field_aggiuntivi = '';
|
|
25785
|
+
this.end_point = null;
|
|
25786
|
+
this.tbl_name = "";
|
|
25787
|
+
this.num_per_pag = 35;
|
|
25788
|
+
this.grid_key = "PRO_H";
|
|
25789
|
+
this.enabled = true;
|
|
25790
|
+
this.show_link = false;
|
|
25791
|
+
this.show_help_bar = false;
|
|
25792
|
+
this.help_label_bar = 'HELP';
|
|
25793
|
+
this.auto_load = true;
|
|
25794
|
+
this.auto_height = false;
|
|
25795
|
+
this.enable_export = true;
|
|
25796
|
+
this.enabled_pag = true;
|
|
25797
|
+
this.show_help = true;
|
|
25798
|
+
this.show_num_elem = true;
|
|
25799
|
+
this.system_dest = 1;
|
|
25800
|
+
this.header_h = 35;
|
|
25801
|
+
this.selection_mode = 'multiple';
|
|
25802
|
+
this.init_fill = true;
|
|
25803
|
+
this.no_pref = false;
|
|
25804
|
+
this.pref_hidden = true;
|
|
25805
|
+
this.enable_export_pdf = true;
|
|
25806
|
+
this.enable_export_xls = true;
|
|
25807
|
+
this.enable_copy = true;
|
|
25808
|
+
this.autosize_at_ini = true;
|
|
25809
|
+
this.label_elementi = " Elementi";
|
|
25810
|
+
this.trova_label = "TROVA";
|
|
25811
|
+
this.mantieni_impostazioni = "Mantieni Imp.";
|
|
25812
|
+
this.curr_filter = "";
|
|
25813
|
+
this.show_buttons = true;
|
|
25814
|
+
this.fill_end = new EventEmitter();
|
|
25815
|
+
this.cell_edited = new EventEmitter();
|
|
25816
|
+
this.clicked = new EventEmitter();
|
|
25817
|
+
this.dclicked = new EventEmitter();
|
|
25818
|
+
this.columndclicked = new EventEmitter();
|
|
25819
|
+
this.cell_clicked = new EventEmitter();
|
|
25820
|
+
this.custom_export = false;
|
|
25821
|
+
this.toolbar_type = "NONE";
|
|
25822
|
+
this.toolbar_wkfapp = null;
|
|
25823
|
+
this.toolbar_custom_commands = [];
|
|
25824
|
+
this.command = new EventEmitter();
|
|
25825
|
+
this.b_ensure = false;
|
|
25826
|
+
this.curr_config = "-1";
|
|
25827
|
+
/* calcola_filtro(obj_filtro, filter_v, key, add_end = true) {
|
|
25828
|
+
console.log('calcola_filtro ',key,add_end);
|
|
25829
|
+
let b_filter: boolean = false;
|
|
25830
|
+
if (obj_filtro.type != null) {
|
|
25831
|
+
if (obj_filtro.filter != null) {
|
|
25832
|
+
|
|
25833
|
+
if (add_end) filter_v = filter_v + " and ";
|
|
25834
|
+
b_filter = true;
|
|
25835
|
+
if (obj_filtro.filterType == "number") {
|
|
25836
|
+
if (obj_filtro.type == "greaterThan")
|
|
25837
|
+
filter_v = filter_v + " " + key + " > " + obj_filtro.filter;
|
|
25838
|
+
if (obj_filtro.type == "equals")
|
|
25839
|
+
filter_v = filter_v + " " + key + " = " + obj_filtro.filter;
|
|
25840
|
+
if (obj_filtro.type == "notEqual")
|
|
25841
|
+
filter_v = filter_v + " " + key + " <> " + obj_filtro.filter;
|
|
25842
|
+
if (obj_filtro.type == "lessThan")
|
|
25843
|
+
filter_v = filter_v + " " + key + " < " + obj_filtro.filter;
|
|
25844
|
+
if (obj_filtro.type == "lessThanOrEqual")
|
|
25845
|
+
filter_v = filter_v + " " + key + " <= " + obj_filtro.filter;
|
|
25846
|
+
if (obj_filtro.type == "greaterThanOrEqual")
|
|
25847
|
+
filter_v = filter_v + " " + key + " >= " + obj_filtro.filter;
|
|
25848
|
+
if (obj_filtro.type == "inRange")
|
|
25849
|
+
filter_v =
|
|
25850
|
+
filter_v +
|
|
25851
|
+
" (" +
|
|
25852
|
+
key +
|
|
25853
|
+
" >= " +
|
|
25854
|
+
obj_filtro.filter +
|
|
25855
|
+
" and " +
|
|
25856
|
+
key +
|
|
25857
|
+
" <= " +
|
|
25858
|
+
obj_filtro.filterTo +
|
|
25859
|
+
")";
|
|
25860
|
+
} else {
|
|
25861
|
+
if (obj_filtro.type == "contains")
|
|
25862
|
+
filter_v =
|
|
25863
|
+
filter_v +
|
|
25864
|
+
" upper(" +
|
|
25865
|
+
key +
|
|
25866
|
+
") like '%" +
|
|
25867
|
+
obj_filtro.filter.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
25868
|
+
"%' ESCAPE '$'";
|
|
25869
|
+
if (obj_filtro.type == "startsWith")
|
|
25870
|
+
filter_v =
|
|
25871
|
+
filter_v +
|
|
25872
|
+
" upper(" +
|
|
25873
|
+
key +
|
|
25874
|
+
") like '" +
|
|
25875
|
+
obj_filtro.filter.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
25876
|
+
"%' ESCAPE '$'";
|
|
25877
|
+
if (obj_filtro.type == "equals")
|
|
25878
|
+
filter_v =
|
|
25879
|
+
filter_v +
|
|
25880
|
+
" upper(" +
|
|
25881
|
+
key +
|
|
25882
|
+
") = '" +
|
|
25883
|
+
obj_filtro.filter.replace("'", "''").toUpperCase() +
|
|
25884
|
+
"%'";
|
|
25885
|
+
if (obj_filtro.type == "notContains")
|
|
25886
|
+
filter_v =
|
|
25887
|
+
filter_v +
|
|
25888
|
+
"not upper(" +
|
|
25889
|
+
key +
|
|
25890
|
+
") like '%" +
|
|
25891
|
+
obj_filtro.filter.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
25892
|
+
"%' ESCAPE '$'";
|
|
25893
|
+
|
|
25894
|
+
if (obj_filtro.type == "notEqual")
|
|
25895
|
+
filter_v =
|
|
25896
|
+
filter_v +
|
|
25897
|
+
" upper(" +
|
|
25898
|
+
key +
|
|
25899
|
+
") <> '" +
|
|
25900
|
+
obj_filtro.filter.replace("'", "''").toUpperCase() +
|
|
25901
|
+
"'";
|
|
25902
|
+
if (obj_filtro.type == "endsWith")
|
|
25903
|
+
filter_v =
|
|
25904
|
+
filter_v +
|
|
25905
|
+
" upper(" +
|
|
25906
|
+
key +
|
|
25907
|
+
") like '%" +
|
|
25908
|
+
obj_filtro.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
25909
|
+
"' ESCAPE '$'";
|
|
25910
|
+
// if(obj_filtro.type=="startsWith") filter_v = filter_v +' upper('+ key + ') like \'' + obj_filtro.filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
25911
|
+
}
|
|
25912
|
+
}
|
|
25913
|
+
if (obj_filtro.type == 'inRange'){
|
|
25914
|
+
if (obj_filtro.dateTo != null && obj_filtro.dateFrom != null) {
|
|
25915
|
+
if(obj_filtro.dateFrom>=obj_filtro.dateTo){
|
|
25916
|
+
this._toast.error('Data inizio range deve essere maggiore di data fine range');
|
|
25917
|
+
return;
|
|
25918
|
+
}
|
|
25919
|
+
b_filter = true;
|
|
25920
|
+
if (add_end) filter_v = filter_v + " and ";
|
|
25921
|
+
filter_v = filter_v + ' ('+key+'>='+ this.uti_s.sql_date_grid(
|
|
25922
|
+
this.uti_s.string2date(obj_filtro.dateFrom, 5)
|
|
25923
|
+
)+' and '+key+'<='+ this.uti_s.sql_date_grid(
|
|
25924
|
+
this.uti_s.string2date(obj_filtro.dateTo, 5)
|
|
25925
|
+
)+') ';
|
|
25926
|
+
}
|
|
25927
|
+
}else
|
|
25928
|
+
if (obj_filtro.dateTo != null || obj_filtro.dateFrom != null) {
|
|
25929
|
+
b_filter = true;
|
|
25930
|
+
if (add_end) filter_v = filter_v + " and ";
|
|
25931
|
+
filter_v = filter_v + " (";
|
|
25932
|
+
// if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5))!='dbnull') filter_v = filter_v + key + ">=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5));
|
|
25933
|
+
|
|
25934
|
+
if (
|
|
25935
|
+
obj_filtro.dateFrom != null &&
|
|
25936
|
+
this.uti_s.sql_date_grid(
|
|
25937
|
+
this.uti_s.string2date(obj_filtro.dateFrom, 5)
|
|
25938
|
+
) != "dbnull"
|
|
25939
|
+
) {
|
|
25940
|
+
let q: string = "";
|
|
25941
|
+
if (obj_filtro.type == "greaterThan")
|
|
25942
|
+
q =
|
|
25943
|
+
" " +
|
|
25944
|
+
key +
|
|
25945
|
+
" >= " +
|
|
25946
|
+
this.uti_s.sql_date_grid(
|
|
25947
|
+
this.uti_s.string2date(obj_filtro.dateFrom, 5)
|
|
25948
|
+
) +
|
|
25949
|
+
"";
|
|
25950
|
+
if (obj_filtro.type == "equals")
|
|
25951
|
+
q =
|
|
25952
|
+
" (" +
|
|
25953
|
+
key +
|
|
25954
|
+
" >=" +
|
|
25955
|
+
this.uti_s.sql_date_grid(
|
|
25956
|
+
this.uti_s.string2date(obj_filtro.dateFrom, 5)
|
|
25957
|
+
) +
|
|
25958
|
+
" and " +
|
|
25959
|
+
key +
|
|
25960
|
+
" <=" +
|
|
25961
|
+
this.uti_s.sql_date_grid(
|
|
25962
|
+
this.uti_s.string2date(obj_filtro.dateFrom, 5),
|
|
25963
|
+
"T23:59:00"
|
|
25964
|
+
) +
|
|
25965
|
+
")";
|
|
25966
|
+
if (obj_filtro.type == "notEqual")
|
|
25967
|
+
q =
|
|
25968
|
+
" " +
|
|
25969
|
+
key +
|
|
25970
|
+
" <> " +
|
|
25971
|
+
this.uti_s.sql_date_grid(
|
|
25972
|
+
this.uti_s.string2date(obj_filtro.dateFrom, 5)
|
|
25973
|
+
) +
|
|
25974
|
+
"";
|
|
25975
|
+
if (obj_filtro.type == "lessThan")
|
|
25976
|
+
q =
|
|
25977
|
+
" " +
|
|
25978
|
+
key +
|
|
25979
|
+
" <= " +
|
|
25980
|
+
this.uti_s.sql_date_grid(
|
|
25981
|
+
this.uti_s.string2date(obj_filtro.dateFrom, 5)
|
|
25982
|
+
) +
|
|
25983
|
+
"";
|
|
25984
|
+
let dtx:Date= this.uti_s.string2date(obj_filtro.dateFrom, 5)
|
|
25985
|
+
dtx.setHours(23);
|
|
25986
|
+
dtx.setMinutes(59);
|
|
25987
|
+
|
|
25988
|
+
if (obj_filtro.type == "lessThanOrEqual")
|
|
25989
|
+
q =
|
|
25990
|
+
" " +
|
|
25991
|
+
key +
|
|
25992
|
+
" <= " +
|
|
25993
|
+
this.uti_s.sql_date_grid(
|
|
25994
|
+
dtx
|
|
25995
|
+
) +
|
|
25996
|
+
"";
|
|
25997
|
+
if (obj_filtro.type == "greaterThanOrEqual")
|
|
25998
|
+
q =
|
|
25999
|
+
" " +
|
|
26000
|
+
key +
|
|
26001
|
+
" >= " +
|
|
26002
|
+
this.uti_s.sql_date_grid(
|
|
26003
|
+
this.uti_s.string2date(obj_filtro.dateFrom, 5)
|
|
26004
|
+
) +
|
|
26005
|
+
"";
|
|
26006
|
+
filter_v = filter_v + q;
|
|
26007
|
+
} else filter_v = filter_v + "1=1";
|
|
26008
|
+
filter_v = filter_v + " )";
|
|
26009
|
+
}
|
|
26010
|
+
} else {
|
|
26011
|
+
// if(obj_filtro.length>0)filter_v= filter_v+' and ';
|
|
26012
|
+
let like_f:string='';
|
|
26013
|
+
let sq: string = "";
|
|
26014
|
+
let include_null_value: boolean = false;
|
|
26015
|
+
if (obj_filtro.values != null)
|
|
26016
|
+
for (let i: number = 0; i < obj_filtro.values.length; i++)
|
|
26017
|
+
if (obj_filtro.values[i] != null) {
|
|
26018
|
+
if (sq != "") sq = sq + ",";
|
|
26019
|
+
|
|
26020
|
+
sq = sq + "'" + obj_filtro.values[i].replace("'", "''") + "'";
|
|
26021
|
+
if (like_f != "") like_f = like_f + " or ";
|
|
26022
|
+
like_f = like_f + " upper(" +
|
|
26023
|
+
key +
|
|
26024
|
+
") like '%" +
|
|
26025
|
+
obj_filtro.values[i].replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
26026
|
+
"%' ESCAPE '$'";
|
|
26027
|
+
|
|
26028
|
+
} else {
|
|
26029
|
+
include_null_value = true;
|
|
26030
|
+
}
|
|
26031
|
+
let num_all=-1;
|
|
26032
|
+
|
|
26033
|
+
let countryFilterComponent:ColDef = this.gridOptions.api.getColumnDef(key);
|
|
26034
|
+
|
|
26035
|
+
if(countryFilterComponent!=null)
|
|
26036
|
+
if(countryFilterComponent.filterParams!=null)
|
|
26037
|
+
if(countryFilterComponent.filterParams.values!=null)
|
|
26038
|
+
{
|
|
26039
|
+
let model = countryFilterComponent.filterParams.values;
|
|
26040
|
+
model=model.filter((n, i) => model.indexOf(n) === i);
|
|
26041
|
+
|
|
26042
|
+
if(model!=null)num_all=model.length;
|
|
26043
|
+
}
|
|
26044
|
+
console.log('KEY!!!! ',key);
|
|
26045
|
+
if(key!='pers_int'){
|
|
26046
|
+
if (sq != "" ) {
|
|
26047
|
+
if(obj_filtro.values.length!=num_all){
|
|
26048
|
+
b_filter = true;
|
|
26049
|
+
if (add_end) filter_v = filter_v + " and ";
|
|
26050
|
+
if (!include_null_value) filter_v = filter_v + key + " in (" + sq + ")";
|
|
26051
|
+
else
|
|
26052
|
+
filter_v =
|
|
26053
|
+
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
26054
|
+
}
|
|
26055
|
+
} else {
|
|
26056
|
+
b_filter = true;
|
|
26057
|
+
if (add_end) filter_v = filter_v + " and ";
|
|
26058
|
+
if (!include_null_value) filter_v = filter_v + " (1=0)";
|
|
26059
|
+
else filter_v = filter_v + " " + key + " is null";
|
|
26060
|
+
}
|
|
26061
|
+
}else
|
|
26062
|
+
{
|
|
26063
|
+
if(like_f!=''){
|
|
26064
|
+
console.log('like_f ',like_f);
|
|
26065
|
+
b_filter = true;
|
|
26066
|
+
if (add_end)filter_v = filter_v + " and ";
|
|
26067
|
+
filter_v = filter_v +"(" + like_f + ")";
|
|
26068
|
+
}
|
|
26069
|
+
}
|
|
26070
|
+
}
|
|
26071
|
+
|
|
26072
|
+
console.log('return filter_v ',filter_v);
|
|
26073
|
+
return filter_v;
|
|
26074
|
+
}*/
|
|
26075
|
+
this.init_end = new EventEmitter();
|
|
26076
|
+
this.off_set = 0;
|
|
26077
|
+
this.first_ref = true;
|
|
26078
|
+
this.b_restored = false;
|
|
26079
|
+
this.str_curr_q_p = "";
|
|
26080
|
+
this.p_fi = {};
|
|
26081
|
+
this.dataSource = {
|
|
26082
|
+
//rowCount: ???, - not setting the row count, infinite paging will be used
|
|
26083
|
+
getRows: (params) => {
|
|
26084
|
+
// this code should contact the server for rows. however for the purposes of the demo,
|
|
26085
|
+
// the data is generated locally, a timer is used to give the experience of
|
|
26086
|
+
// an asynchronous call
|
|
26087
|
+
// console.log('asking for ' + params.startRow + ' to ' + params.endRow);
|
|
26088
|
+
//console.log( params.filterModel);// + ' params.filterModel ' +params.filterModel);
|
|
26089
|
+
this.slimLoadingBarService.start(() => { });
|
|
26090
|
+
let p = { kd: this.tbl_name };
|
|
26091
|
+
// p.table = this.tbl_name;
|
|
26092
|
+
// p.table_count = this.tbl_name;
|
|
26093
|
+
//if (this.count_tbl_name != "") p.table_count = this.count_tbl_name;
|
|
26094
|
+
// console.log(params);
|
|
26095
|
+
p.num_per_pag = params.endRow - params.startRow;
|
|
26096
|
+
// this.gridOptions.paginationPageSize = this.num_per_pag;
|
|
26097
|
+
// this.gridOptions.cacheBlockSize = this.num_per_pag;
|
|
26098
|
+
// console.log(this.gridOptions.cacheBlockSize );
|
|
26099
|
+
// console.log(this.gridOptions.paginationPageSize );
|
|
26100
|
+
p.curr_page = Math.round(params.startRow / p.num_per_pag);
|
|
26101
|
+
if (p.curr_page == null)
|
|
26102
|
+
p.curr_page = 0;
|
|
26103
|
+
if (p.num_per_pag == null)
|
|
26104
|
+
p.num_per_pag = 100;
|
|
26105
|
+
p.system_dest = this.system_dest;
|
|
26106
|
+
p.p = JSON.stringify({ sort_model: params.sortModel, filter_model: params.filterModel, free_search: this.ric_libera });
|
|
26107
|
+
//p.sort_field = this.sort_field;
|
|
26108
|
+
/*
|
|
26109
|
+
if (params.sortModel != null)
|
|
26110
|
+
if (params.sortModel.length > 0) {
|
|
26111
|
+
p.sort_field = "";
|
|
26112
|
+
for (var i: number = 0; i < params.sortModel.length; i++) {
|
|
26113
|
+
if (p.sort_field != "") p.sort_field = p.sort_field + ",";
|
|
26114
|
+
if (params.sortModel[i].colId == "autori")
|
|
26115
|
+
p.sort_field =
|
|
26116
|
+
p.sort_field +
|
|
26117
|
+
"case when CHARINDEX('" +
|
|
26118
|
+
this.m_appService.user +
|
|
26119
|
+
"',autori)>0 then 1 else 0 end" +
|
|
26120
|
+
" " +
|
|
26121
|
+
params.sortModel[i].sort;
|
|
26122
|
+
else
|
|
26123
|
+
p.sort_field =
|
|
26124
|
+
p.sort_field +
|
|
26125
|
+
params.sortModel[i].colId +
|
|
26126
|
+
" " +
|
|
26127
|
+
params.sortModel[i].sort;
|
|
26128
|
+
}
|
|
26129
|
+
}
|
|
26130
|
+
|
|
26131
|
+
|
|
26132
|
+
|
|
26133
|
+
|
|
26134
|
+
if (this.filters != null) p.filter = this.filters;
|
|
26135
|
+
|
|
26136
|
+
if (this.fix_flt != "") {
|
|
26137
|
+
if (p.filter != "") p.filter = p.filter + " and ";
|
|
26138
|
+
p.filter = p.filter + " (" + this.fix_flt + " )";
|
|
26139
|
+
}
|
|
26140
|
+
|
|
26141
|
+
if (this.fix_flt_temp != "") {
|
|
26142
|
+
if (p.filter != "") p.filter = p.filter + " and ";
|
|
26143
|
+
p.filter = p.filter + " (" + this.fix_flt_temp + " )";
|
|
26144
|
+
}
|
|
26145
|
+
|
|
26146
|
+
// console.log('Filter model');
|
|
26147
|
+
//console.log(params.filterModel);
|
|
26148
|
+
|
|
26149
|
+
if (params.filterModel != null) {
|
|
26150
|
+
// console.log('Filtri');
|
|
26151
|
+
|
|
26152
|
+
for (let key in params.filterModel) {
|
|
26153
|
+
// console.log(key);
|
|
26154
|
+
// if (p.hasOwnProperty(key)) {
|
|
26155
|
+
// console.log( params.filterModel[key]);
|
|
26156
|
+
let obj_filtro_test = params.filterModel[key];
|
|
26157
|
+
console.log(params.filterModel[key], key);
|
|
26158
|
+
if (obj_filtro_test.operator == null) {
|
|
26159
|
+
if (p.filter == "")
|
|
26160
|
+
p.filter += this.calcola_filtro(
|
|
26161
|
+
params.filterModel[key],
|
|
26162
|
+
"",
|
|
26163
|
+
key,
|
|
26164
|
+
false
|
|
26165
|
+
);
|
|
26166
|
+
else
|
|
26167
|
+
p.filter += this.calcola_filtro(
|
|
26168
|
+
params.filterModel[key],
|
|
26169
|
+
"",
|
|
26170
|
+
key,
|
|
26171
|
+
true
|
|
26172
|
+
);
|
|
26173
|
+
} else {
|
|
26174
|
+
if (p.filter != "") p.filter += " and ";
|
|
26175
|
+
p.filter += " (";
|
|
26176
|
+
p.filter += this.calcola_filtro(
|
|
26177
|
+
params.filterModel[key].condition1,
|
|
26178
|
+
"",
|
|
26179
|
+
key,
|
|
26180
|
+
false
|
|
26181
|
+
);
|
|
26182
|
+
|
|
26183
|
+
p.filter += " " + obj_filtro_test.operator + " ";
|
|
26184
|
+
p.filter += this.calcola_filtro(
|
|
26185
|
+
params.filterModel[key].condition2,
|
|
26186
|
+
"",
|
|
26187
|
+
key,
|
|
26188
|
+
false
|
|
26189
|
+
);
|
|
26190
|
+
|
|
26191
|
+
p.filter += ")";
|
|
26192
|
+
}
|
|
26193
|
+
// }
|
|
26194
|
+
}
|
|
26195
|
+
}
|
|
26196
|
+
|
|
26197
|
+
(data) => {
|
|
26198
|
+
//p.num_per_pag=5000;
|
|
26199
|
+
// console.log(this._gridservice);
|
|
26200
|
+
this.str_curr_q_p = "";
|
|
26201
|
+
if (p.filter != "") this.str_curr_q_p = "where " + p.filter;
|
|
26202
|
+
if (p.sort_field != "")
|
|
26203
|
+
this.str_curr_q_p = this.str_curr_q_p + " order by " + p.sort_field;
|
|
26204
|
+
this.curr_filter = p.filter;*/
|
|
26205
|
+
//console.log('params.filterModel ',params.filterModel, JSON.stringify(params.filterModel));
|
|
26206
|
+
if ((params.filterModel == null || JSON.stringify(params.filterModel) == '{}') && (this.ric_libera == null || this.ric_libera == ''))
|
|
26207
|
+
this.show_pulisci_filtri = false;
|
|
26208
|
+
else
|
|
26209
|
+
this.show_pulisci_filtri = true;
|
|
26210
|
+
// this._gridservice.url='https://web.raytecvision.com/test/api/dogridn';
|
|
26211
|
+
this.p_fi = { kd: p.kd, system_dest: p.system_dest, p: p.p };
|
|
26212
|
+
this._gridservice.doQuery(p, true, this.m_appService.API_ENDPOINT + 'dogridn').subscribe((data) => {
|
|
26213
|
+
let ok_op = false;
|
|
26214
|
+
if (data != null)
|
|
26215
|
+
if (data.result_msg == "OK") {
|
|
26216
|
+
ok_op = true;
|
|
26217
|
+
// console.log(data.result_data);
|
|
26218
|
+
params.successCallback(data.result_data, data.count);
|
|
26219
|
+
this.b_init = true;
|
|
26220
|
+
this.myData = data.result_data.slice();
|
|
26221
|
+
this.num_r = data.count;
|
|
26222
|
+
this.slimLoadingBarService.complete();
|
|
26223
|
+
this.fill_end.emit();
|
|
26224
|
+
// console.log("end");
|
|
26225
|
+
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
26226
|
+
localStorage.setItem(this.grid_key + "_POS1", JSON.stringify(p));
|
|
26227
|
+
if (localStorage.getItem(this.grid_key + "_POS2") != null)
|
|
26228
|
+
if (this.gridOptions != null)
|
|
26229
|
+
if (this.gridOptions.api != null)
|
|
26230
|
+
this.gridOptions.api.forEachNode((node) => {
|
|
26231
|
+
// console.log(node)
|
|
26232
|
+
if (this.getRowNodeId(node) ===
|
|
26233
|
+
localStorage.getItem(this.grid_key + "_POS2")) {
|
|
26234
|
+
node.setSelected(true);
|
|
26235
|
+
localStorage.removeItem(this.grid_key + "_POS2");
|
|
26236
|
+
if (localStorage.getItem(this.grid_key + "_LAST_ROW") != null)
|
|
26237
|
+
this.sRow = JSON.parse(localStorage.getItem(this.grid_key + "_LAST_ROW"));
|
|
26238
|
+
localStorage.removeItem(this.grid_key + "_LAST_ROW");
|
|
26239
|
+
}
|
|
26240
|
+
});
|
|
26241
|
+
let b_mantieni_ck = false;
|
|
26242
|
+
if (this.toggle_mantieni != null)
|
|
26243
|
+
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
26244
|
+
if (this.no_pref && !this.b_init1) {
|
|
26245
|
+
this.autoSizeAll();
|
|
26246
|
+
}
|
|
26247
|
+
this.b_init1 = true;
|
|
26248
|
+
this.ensure_visible();
|
|
26249
|
+
/*if (localStorage.getItem(this.grid_key + '_COLS')==null && this.first_ref) {
|
|
26250
|
+
setTimeout(() => {
|
|
26251
|
+
this.autoSizeAll();
|
|
26252
|
+
}, 300);
|
|
26253
|
+
this.first_ref = false;
|
|
26254
|
+
|
|
26255
|
+
|
|
26256
|
+
} else*/ if (localStorage.getItem(this.grid_key + "_COLS") == null &&
|
|
26257
|
+
this.autosize_at_ini)
|
|
26258
|
+
setTimeout(() => {
|
|
26259
|
+
this.autoSizeAll();
|
|
26260
|
+
}, 300);
|
|
26261
|
+
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
26262
|
+
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
26263
|
+
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
26264
|
+
/*
|
|
26265
|
+
|
|
26266
|
+
this.gridOptions.api.forEachNode( (node) =>{
|
|
26267
|
+
// select the node
|
|
26268
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
26269
|
+
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
|
|
26270
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
26271
|
+
node.setSelected(true);
|
|
26272
|
+
|
|
26273
|
+
}}*/
|
|
26274
|
+
// if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
26275
|
+
//this.gridOptions.api.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
|
|
26276
|
+
// console.log(this.myData);
|
|
26277
|
+
}
|
|
26278
|
+
if (!ok_op) {
|
|
26279
|
+
this.errorMsg = data.msg + " [" + data.result_msg + "]";
|
|
26280
|
+
}
|
|
26281
|
+
}, (err) => {
|
|
26282
|
+
this.errorMsg =
|
|
26283
|
+
"ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI";
|
|
26284
|
+
});
|
|
26285
|
+
// this.gridOptions.api.setDatasource(this.dataSource);
|
|
26286
|
+
},
|
|
26287
|
+
};
|
|
26288
|
+
this.getContextMenuItems_n_e = () => [
|
|
26289
|
+
"autoSizeAll",
|
|
26290
|
+
"expandAll",
|
|
26291
|
+
"contractAll",
|
|
26292
|
+
"copy",
|
|
26293
|
+
"copyWithHeaders",
|
|
26294
|
+
"paste",
|
|
26295
|
+
];
|
|
26296
|
+
this.getContextMenuItems_e = () => [
|
|
26297
|
+
"autoSizeAll",
|
|
26298
|
+
"expandAll",
|
|
26299
|
+
"contractAll",
|
|
26300
|
+
"copy",
|
|
26301
|
+
"copyWithHeaders",
|
|
26302
|
+
"paste",
|
|
26303
|
+
// 'resetColumns',
|
|
26304
|
+
{
|
|
26305
|
+
name: "Esporta",
|
|
26306
|
+
action: () => {
|
|
26307
|
+
this.export_excel();
|
|
26308
|
+
},
|
|
26309
|
+
icon: '<img src="assets/icons/square-o/xlsx.svg"/>',
|
|
26310
|
+
},
|
|
26311
|
+
];
|
|
26312
|
+
this.gridOptions = {
|
|
26313
|
+
debug: false,
|
|
26314
|
+
headerHeight: this.header_h,
|
|
26315
|
+
enableRangeSelection: true,
|
|
26316
|
+
defaultColDef: { resizable: true, sortable: true, floatingFilter: true },
|
|
26317
|
+
allowContextMenuWithControlKey: true,
|
|
26318
|
+
rowModelType: "infinite",
|
|
26319
|
+
localeText: {
|
|
26320
|
+
// for filter panel
|
|
26321
|
+
page: "pagina",
|
|
26322
|
+
more: "altre",
|
|
26323
|
+
to: "a",
|
|
26324
|
+
of: "di",
|
|
26325
|
+
next: "prossima",
|
|
26326
|
+
last: "ultima",
|
|
26327
|
+
first: "prima",
|
|
26328
|
+
previous: "precedente",
|
|
26329
|
+
loadingOoo: "Caricamento...",
|
|
26330
|
+
// for set filter
|
|
26331
|
+
selectAll: "Seleziona Tutto",
|
|
26332
|
+
searchOoo: "Trova...",
|
|
26333
|
+
blanks: "Vuoto",
|
|
26334
|
+
// for number filter and text filter
|
|
26335
|
+
filterOoo: "Filtro...",
|
|
26336
|
+
applyFilter: "Applica Filtro...",
|
|
26337
|
+
// for number filter
|
|
26338
|
+
equals: "Uguale",
|
|
26339
|
+
notEqual: "Diverso",
|
|
26340
|
+
lessThan: "Minore o Uguale",
|
|
26341
|
+
greaterThan: "Maggiore o Uguale",
|
|
26342
|
+
// for text filter
|
|
26343
|
+
notContains: "Non Contiene",
|
|
26344
|
+
contains: "Contiene",
|
|
26345
|
+
startsWith: "Inizia Con",
|
|
26346
|
+
endsWith: "Finisce Con",
|
|
26347
|
+
// the header of the default group column
|
|
26348
|
+
group: "Gruppo",
|
|
26349
|
+
// tool panel
|
|
26350
|
+
columns: "Colonne",
|
|
26351
|
+
rowGroupColumns: "Colonne Pivot",
|
|
26352
|
+
rowGroupColumnsEmptyMessage: "trascina le colonne per raggrupparle",
|
|
26353
|
+
valueColumns: "Colonne Valore",
|
|
26354
|
+
pivotMode: "Modalità Pivot",
|
|
26355
|
+
groups: "Gruppi",
|
|
26356
|
+
values: "Valori",
|
|
26357
|
+
pivots: "Pivots",
|
|
26358
|
+
valueColumnsEmptyMessage: "trascina le colonne per aggreare",
|
|
26359
|
+
pivotColumnsEmptyMessage: "trascina le colonne per pivot",
|
|
26360
|
+
// other
|
|
26361
|
+
noRowsToShow: "nessun dato",
|
|
26362
|
+
// enterprise menu
|
|
26363
|
+
pinColumn: "Sposta Colonna",
|
|
26364
|
+
valueAggregation: "Aggregazione",
|
|
26365
|
+
autosizeThiscolumn: "Autosize colonna",
|
|
26366
|
+
autosizeAllColumns: "Autosize tutte le colonne",
|
|
26367
|
+
groupBy: "Raggruppa per",
|
|
26368
|
+
ungroupBy: "Spacca per",
|
|
26369
|
+
resetColumns: "Resetta queste colonna",
|
|
26370
|
+
expandAll: "Espandi",
|
|
26371
|
+
collapseAll: "Chiudi",
|
|
26372
|
+
toolPanel: "Impostazioni",
|
|
26373
|
+
// enterprise menu pinning
|
|
26374
|
+
pinLeft: "Sposta <<",
|
|
26375
|
+
pinRight: "Sposta >>",
|
|
26376
|
+
noPin: "Sposta <>",
|
|
26377
|
+
// enterprise menu aggregation and status panel
|
|
26378
|
+
sum: "Somma",
|
|
26379
|
+
min: "Minimo",
|
|
26380
|
+
max: "Massimo",
|
|
26381
|
+
none: "Nessuno",
|
|
26382
|
+
count: "Numero",
|
|
26383
|
+
average: "Media",
|
|
26384
|
+
// standard menu
|
|
26385
|
+
copy: "Copia",
|
|
26386
|
+
ctrlC: "ctrl n C",
|
|
26387
|
+
paste: "Incolla",
|
|
26388
|
+
ctrlV: "ctrl n C",
|
|
26389
|
+
},
|
|
26390
|
+
getRowNodeId: function (item) {
|
|
26391
|
+
// console.log(item);
|
|
26392
|
+
if (item.ID != null)
|
|
26393
|
+
return String(item.ID);
|
|
26394
|
+
if (item.id != null)
|
|
26395
|
+
return String(item.id);
|
|
26396
|
+
if (item.uiid != null)
|
|
26397
|
+
return item.uiid;
|
|
26398
|
+
if (item.codice != null)
|
|
26399
|
+
return item.codice;
|
|
26400
|
+
if (item.id_doc != null)
|
|
26401
|
+
return item.id_doc;
|
|
26402
|
+
if (item.notesid != null)
|
|
26403
|
+
return item.notesid;
|
|
26404
|
+
if (item.ord != null)
|
|
26405
|
+
return item.ord;
|
|
26406
|
+
},
|
|
26407
|
+
};
|
|
26408
|
+
this.last_copy = '';
|
|
26409
|
+
this.b_init = false;
|
|
26410
|
+
this.b_init1 = false;
|
|
26411
|
+
this.errorMsg = "";
|
|
26412
|
+
this.innerWidth = 750;
|
|
26413
|
+
this.show_pulisci_filtri = false;
|
|
26414
|
+
this.uiid_stampa = "";
|
|
26415
|
+
this.xxopx = 0;
|
|
26416
|
+
this.num_r = 0;
|
|
26417
|
+
this.ready = false;
|
|
26418
|
+
this.ckk_ed = false;
|
|
26419
|
+
this.myData = new Array();
|
|
26420
|
+
this.b_iniended = false;
|
|
26421
|
+
this.ric_libera = "";
|
|
26422
|
+
this.fix_flt = "";
|
|
26423
|
+
this.fix_flt_temp = "";
|
|
26424
|
+
if (this.m_appService.getState().grid_obj == null)
|
|
26425
|
+
this.m_appService.getState().grid_obj = {};
|
|
26426
|
+
this.browser = this.getBrowserName();
|
|
26427
|
+
if (this.browser == 'ie')
|
|
26428
|
+
this.width_max = '';
|
|
26429
|
+
}
|
|
26430
|
+
getBrowserName() {
|
|
26431
|
+
const agent = window.navigator.userAgent.toLowerCase();
|
|
26432
|
+
switch (true) {
|
|
26433
|
+
case agent.indexOf('edge') > -1:
|
|
26434
|
+
return 'edge';
|
|
26435
|
+
case agent.indexOf('opr') > -1 && !!window.opr:
|
|
26436
|
+
return 'opera';
|
|
26437
|
+
case agent.indexOf('chrome') > -1 && !!window.chrome:
|
|
26438
|
+
return 'chrome';
|
|
26439
|
+
case agent.indexOf('trident') > -1:
|
|
26440
|
+
return 'ie';
|
|
26441
|
+
case agent.indexOf('firefox') > -1:
|
|
26442
|
+
return 'firefox';
|
|
26443
|
+
case agent.indexOf('safari') > -1:
|
|
26444
|
+
return 'safari';
|
|
26445
|
+
default:
|
|
26446
|
+
return 'other';
|
|
26447
|
+
}
|
|
26448
|
+
}
|
|
26449
|
+
docmd(o) {
|
|
26450
|
+
this.command.emit(o);
|
|
26451
|
+
}
|
|
26452
|
+
ensure_visible() {
|
|
26453
|
+
if (this.b_ensure)
|
|
26454
|
+
return;
|
|
26455
|
+
this.b_ensure = true;
|
|
26456
|
+
try {
|
|
26457
|
+
if (localStorage.getItem(this.grid_key + "_POS") != null) {
|
|
26458
|
+
this.gridOptions.api.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + "_POS")));
|
|
26459
|
+
localStorage.removeItem(this.grid_key + "_POS");
|
|
26460
|
+
}
|
|
26461
|
+
}
|
|
26462
|
+
catch (e) {
|
|
26463
|
+
console.log(e);
|
|
26464
|
+
}
|
|
26465
|
+
}
|
|
26466
|
+
ck_flag() {
|
|
26467
|
+
if (!this.toggle_mantieni.checked) {
|
|
26468
|
+
localStorage.setItem(this.grid_key + "_MANTIENI", "SI");
|
|
26469
|
+
}
|
|
26470
|
+
else {
|
|
26471
|
+
localStorage.setItem(this.grid_key + "_MANTIENI", "NO");
|
|
26472
|
+
}
|
|
26473
|
+
}
|
|
26474
|
+
refresh_all_rows() {
|
|
26475
|
+
setTimeout(() => {
|
|
26476
|
+
this.gridOptions.api.refreshCells({
|
|
26477
|
+
force: true,
|
|
26478
|
+
});
|
|
26479
|
+
}, 0);
|
|
26480
|
+
}
|
|
26481
|
+
ch_config() {
|
|
26482
|
+
if (this.no_pref)
|
|
26483
|
+
return;
|
|
26484
|
+
this.curr_config = this.gf.getValue();
|
|
26485
|
+
if (this.curr_config == "-1")
|
|
26486
|
+
return;
|
|
26487
|
+
localStorage.removeItem(this.grid_key + "_COLS");
|
|
26488
|
+
// localStorage.removeItem(this.grid_key + "_SORT");
|
|
26489
|
+
localStorage.removeItem(this.grid_key + "_FILTER");
|
|
26490
|
+
localStorage.removeItem(this.grid_key + "_CFG_DEFAULT");
|
|
26491
|
+
localStorage.removeItem(this.grid_key + "_FILTER_UP");
|
|
26492
|
+
if (this.gf.getObj().COL != null)
|
|
26493
|
+
if (this.gf.getObj().COL != "")
|
|
26494
|
+
localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COL);
|
|
26495
|
+
// if (this.gf.getObj().SORT != null)
|
|
26496
|
+
// if (this.gf.getObj().SORT != "")
|
|
26497
|
+
// localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
26498
|
+
if (this.gf.getObj().FILTER != null)
|
|
26499
|
+
if (this.gf.getObj().FILTER != "")
|
|
26500
|
+
localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
|
|
26501
|
+
if (this.gf.getDescri() != null)
|
|
26502
|
+
if (this.gf.getDescri() != "-1")
|
|
26503
|
+
localStorage.setItem(this.grid_key + "_CFG_DEFAULT", this.gf.getDescri());
|
|
26504
|
+
this.curr_config = this.gf.getValue();
|
|
26505
|
+
this.res_columns(true);
|
|
26506
|
+
}
|
|
26507
|
+
elimina_config() {
|
|
26508
|
+
if (this.gf.getObj().username != null)
|
|
26509
|
+
if (this.m_appService.user != this.gf.getObj().username) {
|
|
26510
|
+
this._toast.error("Configurazione gestibile da: " + this.gf.getObj().username);
|
|
26511
|
+
return;
|
|
26512
|
+
}
|
|
26513
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
26514
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler cancellare la configurazione " +
|
|
26515
|
+
this.gf.getDescri() +
|
|
26516
|
+
"?");
|
|
26517
|
+
let dialogRef = this.m_dialog.open(fh_win_confirm, {
|
|
26518
|
+
disableClose: true,
|
|
26519
|
+
});
|
|
26520
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
26521
|
+
if (result) {
|
|
26522
|
+
let p = new QParam();
|
|
26523
|
+
p.sql = "DELETE_CFG_GRID";
|
|
26524
|
+
p.types = ["string", "string"];
|
|
26525
|
+
p.values = [this.gf.getDescri(), this.grid_key];
|
|
26526
|
+
let ok_op = false;
|
|
26527
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
26528
|
+
let ok_op = false;
|
|
26529
|
+
if (data != null)
|
|
26530
|
+
if (data.result_msg == "OK") {
|
|
26531
|
+
this._toast.info("Configurazione eliminata");
|
|
26532
|
+
this.gf.types = ["string"];
|
|
26533
|
+
this.gf.values = [this.grid_key];
|
|
26534
|
+
this.gf.fillCombo();
|
|
26535
|
+
this.curr_config = "-1";
|
|
26536
|
+
}
|
|
26537
|
+
});
|
|
26538
|
+
}
|
|
26539
|
+
});
|
|
26540
|
+
}
|
|
26541
|
+
edit_config() {
|
|
26542
|
+
if (this.gf.getObj().username != null)
|
|
26543
|
+
if (this.m_appService.user != this.gf.getObj().username) {
|
|
26544
|
+
this._toast.error("Configurazione gestibile da: " + this.gf.getObj().username);
|
|
26545
|
+
return;
|
|
26546
|
+
}
|
|
26547
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
26548
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler sovrascrivere la configurazione " +
|
|
26549
|
+
this.gf.getDescri() +
|
|
26550
|
+
"?");
|
|
26551
|
+
let dialogRef = this.m_dialog.open(fh_win_confirm, {
|
|
26552
|
+
disableClose: true,
|
|
26553
|
+
});
|
|
26554
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
26555
|
+
if (result) {
|
|
26556
|
+
let p = new QParam();
|
|
26557
|
+
p.sql = "INSERT_UPDATE_CFG_GRID";
|
|
26558
|
+
let p_col = "";
|
|
26559
|
+
// let p_sort: string = "";
|
|
26560
|
+
let p_filter = "";
|
|
26561
|
+
if (localStorage.getItem(this.grid_key + "_COLS") != null)
|
|
26562
|
+
p_col = localStorage.getItem(this.grid_key + "_COLS");
|
|
26563
|
+
// if (localStorage.getItem(this.grid_key + "_SORT") != null)
|
|
26564
|
+
// p_sort = localStorage.getItem(this.grid_key + "_SORT");
|
|
26565
|
+
if (localStorage.getItem(this.grid_key + "_FILTER") != null)
|
|
26566
|
+
p_filter = localStorage.getItem(this.grid_key + "_FILTER");
|
|
26567
|
+
p.types = ["string", "string", "string", "string", "string", "string"];
|
|
26568
|
+
p.values = [
|
|
26569
|
+
this.gf.getDescri(),
|
|
26570
|
+
this.grid_key,
|
|
26571
|
+
p_col,
|
|
26572
|
+
'',
|
|
26573
|
+
p_filter,
|
|
26574
|
+
this.m_appService.user,
|
|
26575
|
+
];
|
|
26576
|
+
let ok_op = false;
|
|
26577
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
26578
|
+
let ok_op = false;
|
|
26579
|
+
if (data != null)
|
|
26580
|
+
if (data.result_msg == "OK") {
|
|
26581
|
+
this._toast.info("Configurazione salvata");
|
|
26582
|
+
this.gf.types = ["string"];
|
|
26583
|
+
this.gf.values = [this.grid_key];
|
|
26584
|
+
this.gf.fillCombo();
|
|
26585
|
+
this.curr_config = "-1";
|
|
26586
|
+
}
|
|
26587
|
+
if (!ok_op) {
|
|
26588
|
+
}
|
|
26589
|
+
}, (err) => { });
|
|
26590
|
+
}
|
|
26591
|
+
});
|
|
26592
|
+
}
|
|
26593
|
+
refresh_access(wkfx) {
|
|
26594
|
+
this.toolbar_wkfapp = wkfx;
|
|
26595
|
+
}
|
|
26596
|
+
getGridApi() {
|
|
26597
|
+
return this.gridOptions.api;
|
|
26598
|
+
}
|
|
26599
|
+
getGridOptions() {
|
|
26600
|
+
return this.gridOptions;
|
|
26601
|
+
}
|
|
26602
|
+
insert_config() {
|
|
26603
|
+
this.win_opt = this.m_dialog.open(fh_win_ask_text, {
|
|
26604
|
+
disableClose: true,
|
|
26605
|
+
});
|
|
26606
|
+
setTimeout(() => {
|
|
26607
|
+
this.win_opt.componentInstance.title = "Salva Configurazione";
|
|
26608
|
+
this.win_opt.componentInstance.label = "Nome";
|
|
26609
|
+
});
|
|
26610
|
+
this.win_opt.afterClosed().subscribe((result) => {
|
|
26611
|
+
if (result)
|
|
26612
|
+
if (result != null) {
|
|
26613
|
+
let p = new QParam();
|
|
26614
|
+
p.sql = "INSERT_UPDATE_CFG_GRID";
|
|
26615
|
+
let p_col = "";
|
|
26616
|
+
// let p_sort: string = "";
|
|
26617
|
+
let p_filter = "";
|
|
26618
|
+
if (localStorage.getItem(this.grid_key + "_COLS") != null)
|
|
26619
|
+
p_col = localStorage.getItem(this.grid_key + "_COLS");
|
|
26620
|
+
// if (localStorage.getItem(this.grid_key + "_SORT") != null)
|
|
26621
|
+
// p_sort = localStorage.getItem(this.grid_key + "_SORT");
|
|
26622
|
+
if (localStorage.getItem(this.grid_key + "_FILTER") != null)
|
|
26623
|
+
p_filter = localStorage.getItem(this.grid_key + "_FILTER");
|
|
26624
|
+
p.types = [
|
|
26625
|
+
"string",
|
|
26626
|
+
"string",
|
|
26627
|
+
"string",
|
|
26628
|
+
"string",
|
|
26629
|
+
"string",
|
|
26630
|
+
"string",
|
|
26631
|
+
];
|
|
26632
|
+
p.values = [
|
|
26633
|
+
result,
|
|
26634
|
+
this.grid_key,
|
|
26635
|
+
p_col,
|
|
26636
|
+
'',
|
|
26637
|
+
p_filter,
|
|
26638
|
+
this.m_appService.user,
|
|
26639
|
+
];
|
|
26640
|
+
let ok_op = false;
|
|
26641
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
26642
|
+
let ok_op = false;
|
|
26643
|
+
if (data != null)
|
|
26644
|
+
if (data.result_msg == "OK") {
|
|
26645
|
+
this._toast.info("Configurazione salvata");
|
|
26646
|
+
ok_op = true;
|
|
26647
|
+
this.gf.types = ["string"];
|
|
26648
|
+
this.gf.values = [this.grid_key];
|
|
26649
|
+
this.gf.fillCombo();
|
|
26650
|
+
}
|
|
26651
|
+
if (!ok_op) {
|
|
26652
|
+
}
|
|
26653
|
+
}, (err) => { });
|
|
26654
|
+
}
|
|
26655
|
+
});
|
|
26656
|
+
}
|
|
26657
|
+
onBtExport() {
|
|
26658
|
+
this.export_excel();
|
|
26659
|
+
/*
|
|
26660
|
+
var params = {
|
|
26661
|
+
skipHeader: false,
|
|
26662
|
+
columnGroups: false,
|
|
26663
|
+
skipFooters: true,
|
|
26664
|
+
skipGroups: true,
|
|
26665
|
+
skipPinnedTop: true,
|
|
26666
|
+
skipPinnedBottom: true,
|
|
26667
|
+
allColumns: true,
|
|
26668
|
+
onlySelected: false,
|
|
26669
|
+
suppressQuotes: false,
|
|
26670
|
+
processCellCallback: (params) => {
|
|
26671
|
+
if (params.value) {
|
|
26672
|
+
// console.log(params.value);
|
|
26673
|
+
if (params.value == null) return '';
|
|
26674
|
+
if (typeof params.value.getMonth === 'function') {
|
|
26675
|
+
|
|
26676
|
+
return this.uti_s.pad(params.value.getDate(), 2) + '/' + this.uti_s.pad(params.value.getMonth() + 1, 2) + '/' + params.value.getFullYear();
|
|
26677
|
+
} else if (params.value.length == 24 && params.value.indexOf(':00.000Z') > -1) {
|
|
26678
|
+
// console.log( new Date(params.value));
|
|
26679
|
+
let arrdt: Date = new Date(params.value);
|
|
26680
|
+
|
|
26681
|
+
// let arrdt2=arrdt[1].split(':');
|
|
26682
|
+
return this.uti_s.pad(arrdt.getDate(), 2) + '/' + this.uti_s.pad(arrdt.getMonth() + 1, 2) + '/' + arrdt.getFullYear() + ' ' + this.uti_s.pad(arrdt.getHours(), 2) + ':' + this.uti_s.pad(arrdt.getMinutes(), 2);
|
|
26683
|
+
|
|
26684
|
+
|
|
26685
|
+
}
|
|
26686
|
+
else
|
|
26687
|
+
return params.value;
|
|
26688
|
+
}
|
|
26689
|
+
|
|
26690
|
+
}
|
|
26691
|
+
}
|
|
26692
|
+
|
|
26693
|
+
this.gridOptions.api.exportDataAsExcel(params);*/
|
|
26694
|
+
}
|
|
26695
|
+
export_excel(type = 'excel') {
|
|
26696
|
+
this.dialogRef_W = this.m_dialog.open(fh_win_wait, {
|
|
26697
|
+
disableClose: true,
|
|
26698
|
+
});
|
|
26699
|
+
setTimeout(() => {
|
|
26700
|
+
this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
|
|
26701
|
+
});
|
|
26702
|
+
// this._toast.info('da implementare lato server');
|
|
26703
|
+
this.p_fi.type = type;
|
|
26704
|
+
this.p_fi.uiid_stampa = this.uti_s.newGuid();
|
|
26705
|
+
this.uiid_stampa = this.p_fi.uiid_stampa;
|
|
26706
|
+
this._gridservice.doQuery(this.p_fi, true, this.m_appService.API_ENDPOINT + 'doexportn').subscribe((data) => {
|
|
26707
|
+
this.check_end(type == 'pdf' ? '.pdf' : '.xlsx');
|
|
26708
|
+
});
|
|
26709
|
+
}
|
|
26710
|
+
check_end(format) {
|
|
26711
|
+
let p = new FSInput();
|
|
26712
|
+
p.p1 =
|
|
26713
|
+
this.m_appService.LOCAL_PATH +
|
|
26714
|
+
"grid_reports\\" +
|
|
26715
|
+
this.uiid_stampa +
|
|
26716
|
+
"_" +
|
|
26717
|
+
this.m_appService.user +
|
|
26718
|
+
format;
|
|
26719
|
+
p.command = "check_file";
|
|
26720
|
+
this._fileService.doQuery(p).subscribe((data) => {
|
|
26721
|
+
if (data != null)
|
|
26722
|
+
if (data.msg == "N") {
|
|
26723
|
+
setTimeout(() => {
|
|
26724
|
+
this.check_end(format);
|
|
26725
|
+
}, 1000);
|
|
26726
|
+
}
|
|
26727
|
+
else {
|
|
26728
|
+
setTimeout(() => {
|
|
26729
|
+
this.dialogRef_W.componentInstance.update_progess(100);
|
|
26730
|
+
});
|
|
26731
|
+
window.open(this.m_appService.COMPANY_SITE_ROOT +
|
|
26732
|
+
"/grid_reports/" +
|
|
26733
|
+
this.uiid_stampa +
|
|
26734
|
+
"_" +
|
|
26735
|
+
this.m_appService.user +
|
|
26736
|
+
format);
|
|
26737
|
+
}
|
|
26738
|
+
});
|
|
26739
|
+
}
|
|
26740
|
+
setHeaderHeight(n) {
|
|
26741
|
+
this.header_h = n;
|
|
26742
|
+
this.gridOptions.api.setHeaderHeight(this.header_h);
|
|
26743
|
+
this.gridOptions.suppressCopyRowsToClipboard = true;
|
|
26744
|
+
this.gridOptions.sendToClipboard = (v) => {
|
|
26745
|
+
console.log('v ', v);
|
|
26746
|
+
if (this.enable_copy)
|
|
26747
|
+
this.gridApi.copySelectedRangeToClipboard();
|
|
26748
|
+
{
|
|
26749
|
+
this.clipboard.copy(v.data.split('\n')[0]);
|
|
26750
|
+
}
|
|
26751
|
+
};
|
|
26752
|
+
}
|
|
26753
|
+
getRowNodeId(item) {
|
|
26754
|
+
// console.log(item);
|
|
26755
|
+
if (item == null)
|
|
26756
|
+
return this.uti_s.newGuid();
|
|
26757
|
+
if (item.data == null)
|
|
26758
|
+
return this.uti_s.newGuid();
|
|
26759
|
+
if (item.data.id != null)
|
|
26760
|
+
return String(item.data.id);
|
|
26761
|
+
if (item.data.uiid != null)
|
|
26762
|
+
return item.data.uiid;
|
|
26763
|
+
if (item.data.codice != null)
|
|
26764
|
+
return item.data.codice;
|
|
26765
|
+
return "NA";
|
|
26766
|
+
}
|
|
26767
|
+
ngAfterViewInit() {
|
|
26768
|
+
if (this.grid_key == "PRO_H")
|
|
26769
|
+
this.no_pref = true;
|
|
26770
|
+
setTimeout(() => {
|
|
26771
|
+
if (this.end_point == null)
|
|
26772
|
+
this.end_point =
|
|
26773
|
+
this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
26774
|
+
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != null)
|
|
26775
|
+
this.ric_libera = localStorage.getItem(this.grid_key + "_FILTER_UP");
|
|
26776
|
+
this.onResize();
|
|
26777
|
+
});
|
|
26778
|
+
}
|
|
26779
|
+
okr(event) {
|
|
26780
|
+
//console.log(event.column.colDef.field);
|
|
26781
|
+
event.data.nome_colonna = event.column.colDef.field;
|
|
26782
|
+
this.cell_edited.emit(event.data);
|
|
26783
|
+
}
|
|
26784
|
+
help_window() {
|
|
26785
|
+
let dialogRef = this.m_dialog.open(win_grid_help, { disableClose: true });
|
|
26786
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
26787
|
+
return;
|
|
26788
|
+
});
|
|
26789
|
+
}
|
|
26790
|
+
onResize(event) {
|
|
26791
|
+
return;
|
|
26792
|
+
// console.log("auto height "+this.auto_height+ "("+bodyWidth+")");
|
|
26793
|
+
//if(bodyWidth>1400){
|
|
26794
|
+
// this.g_height= Number(this.m_appService.getState().body_height.split('px').join(''))-40-this.off_set+'px';
|
|
26795
|
+
//console.log('this.g_height '+this.g_height);
|
|
26796
|
+
//if(this.m_appService.getState( ).mobile)this.g_height=Number(this.m_appService.getState().body_height.split('px').join(''))-40+'px';
|
|
26797
|
+
// this.num_per_pag=Math.round((700-50-this.off_set)/50);
|
|
26798
|
+
//}
|
|
26799
|
+
//else
|
|
26800
|
+
//if(bodyWidth>800){
|
|
26801
|
+
//this.g_height=520-this.off_set+'px';
|
|
26802
|
+
// this.num_per_pag=Math.round((520-50-this.off_set)/50);
|
|
26803
|
+
//}
|
|
26804
|
+
//else{
|
|
26805
|
+
//this.g_height=400-this.off_set+'px';
|
|
26806
|
+
// this.num_per_pag=Math.round((400-50-this.off_set)/50);
|
|
26807
|
+
//}
|
|
26808
|
+
// console.log( this.g_height);
|
|
26809
|
+
}
|
|
26810
|
+
autoSizeAll() {
|
|
26811
|
+
if (this.gridOptions == null)
|
|
26812
|
+
return;
|
|
26813
|
+
if (this.gridOptions.columnApi == null)
|
|
26814
|
+
return;
|
|
26815
|
+
let allColumnIds = [];
|
|
26816
|
+
this.gridOptions.columnApi.getAllGridColumns().map((v) => {
|
|
26817
|
+
allColumnIds.push(v.getColId());
|
|
26818
|
+
});
|
|
26819
|
+
this.gridOptions.columnApi.autoSizeColumns(allColumnIds);
|
|
26820
|
+
if (this.gridOptions.columnApi.getColumnState().length > 0)
|
|
26821
|
+
if (this.gridOptions.columnApi.getColumnState()[0].width == 24) {
|
|
26822
|
+
setTimeout(() => {
|
|
26823
|
+
this.autoSizeAll();
|
|
26824
|
+
}, 300);
|
|
26825
|
+
return;
|
|
26826
|
+
}
|
|
26827
|
+
this.save_cfg();
|
|
26828
|
+
}
|
|
26829
|
+
fitSizeAll() {
|
|
26830
|
+
// console.log("fitSizeAll");
|
|
26831
|
+
this.gridOptions.api.sizeColumnsToFit();
|
|
26832
|
+
this.save_cfg();
|
|
26833
|
+
}
|
|
26834
|
+
selectCount() {
|
|
26835
|
+
let i = 0;
|
|
26836
|
+
this.gridOptions.api.forEachNode((node) => {
|
|
26837
|
+
if (node.isSelected())
|
|
26838
|
+
i++;
|
|
26839
|
+
});
|
|
26840
|
+
return i;
|
|
26841
|
+
}
|
|
26842
|
+
getquerySelected(f, t) {
|
|
26843
|
+
let s = "";
|
|
26844
|
+
if (t == "String") {
|
|
26845
|
+
this.gridOptions.api.forEachNode((node) => {
|
|
26846
|
+
if (node.isSelected())
|
|
26847
|
+
if (node.data[f] != null) {
|
|
26848
|
+
if (s != "")
|
|
26849
|
+
s = s + ",";
|
|
26850
|
+
s = s + "'" + node.data[f] + "'";
|
|
26851
|
+
}
|
|
26852
|
+
});
|
|
26853
|
+
}
|
|
26854
|
+
// console.log('ENTRO '+f+" "+t);
|
|
26855
|
+
if (t == "Number") {
|
|
26856
|
+
// console.log('CERCO SEL');
|
|
26857
|
+
this.gridOptions.api.forEachNode((node) => {
|
|
26858
|
+
if (node.isSelected())
|
|
26859
|
+
if (node.data[f] != null) {
|
|
26860
|
+
// console.log('selected');
|
|
26861
|
+
if (s != "")
|
|
26862
|
+
s = s + ",";
|
|
26863
|
+
s = s + node.data[f];
|
|
26864
|
+
}
|
|
26865
|
+
});
|
|
26866
|
+
}
|
|
26867
|
+
return s;
|
|
26868
|
+
}
|
|
26869
|
+
selectAllFiltered() {
|
|
26870
|
+
this.gridOptions.api.forEachNode((node) => {
|
|
26871
|
+
this.gridOptions.api.selectNode(node, true);
|
|
26872
|
+
});
|
|
26873
|
+
}
|
|
26874
|
+
deselectAllFiltered() {
|
|
26875
|
+
this.gridOptions.api.forEachNode((node) => {
|
|
26876
|
+
this.gridOptions.api.selectNode(node, false);
|
|
26877
|
+
});
|
|
26878
|
+
}
|
|
26879
|
+
pulisci_filtri(resetr = true) {
|
|
26880
|
+
localStorage.removeItem(this.grid_key + "_FILTER");
|
|
26881
|
+
if (resetr) {
|
|
26882
|
+
if (this.ric_libera != "")
|
|
26883
|
+
this.doFill("", true, false);
|
|
26884
|
+
this.ric_libera = "";
|
|
26885
|
+
localStorage.removeItem(this.grid_key + "_FILTER_UP");
|
|
26886
|
+
}
|
|
26887
|
+
this.fix_flt_temp = "";
|
|
26888
|
+
this.gridOptions.api.setFilterModel(null);
|
|
26889
|
+
let filtrtm = {}; /*
|
|
26890
|
+
this.columnDefs.map((v)=>{
|
|
26891
|
+
if(v.filter=='agSetColumnFilter'){
|
|
26892
|
+
filtrtm[v.field]={type:'set',values:[]}
|
|
26893
|
+
}
|
|
26894
|
+
});*/
|
|
26895
|
+
this.gridOptions.api.setFilterModel(filtrtm);
|
|
26896
|
+
}
|
|
26897
|
+
/*
|
|
26898
|
+
public export_excel(format: string = "xlsx") {
|
|
26899
|
+
if(this.custom_export){
|
|
26900
|
+
this.command.emit({ cmd: "export_excel",v:format });
|
|
26901
|
+
return;}
|
|
26902
|
+
if (this.num_r > 15000) {
|
|
26903
|
+
this._toast.error("Massimo 15000 elementi esportabili");
|
|
26904
|
+
return;
|
|
26905
|
+
}
|
|
26906
|
+
format = "." + format;
|
|
26907
|
+
|
|
26908
|
+
this.uiid_stampa = this.uti_s.newGuid();
|
|
26909
|
+
this.xxopx = 0;
|
|
26910
|
+
let q: string = "";
|
|
26911
|
+
this.dialogRef_W = this.m_dialog.open(fh_win_wait, {
|
|
26912
|
+
disableClose: true,
|
|
26913
|
+
});
|
|
26914
|
+
setTimeout(() => {
|
|
26915
|
+
this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
|
|
26916
|
+
});
|
|
26917
|
+
let cmds: Array<any> = [];
|
|
26918
|
+
|
|
26919
|
+
let str_fields = "";
|
|
26920
|
+
let p_col = this.gridOptions.columnApi.getAllDisplayedColumns();
|
|
26921
|
+
|
|
26922
|
+
for (let j = 0; j < p_col.length; j++) {
|
|
26923
|
+
if (str_fields != "") str_fields += ",";
|
|
26924
|
+
if (p_col[j].getColDef().headerName == null)
|
|
26925
|
+
str_fields += "[" + p_col[j].getColDef().field + "]";
|
|
26926
|
+
else if (p_col[j].getColDef().headerName == "")
|
|
26927
|
+
str_fields += "[" + p_col[j].getColDef().field + "]";
|
|
26928
|
+
else
|
|
26929
|
+
str_fields +=
|
|
26930
|
+
"[" +
|
|
26931
|
+
p_col[j].getColDef().field +
|
|
26932
|
+
"] [" +
|
|
26933
|
+
p_col[j].getColDef().headerName.split('[').join('').split(']').join('') +
|
|
26934
|
+
"]";
|
|
26935
|
+
}
|
|
26936
|
+
if (this.fields.indexOf("DISTINCT") != -1)
|
|
26937
|
+
str_fields = "DISTINCT " + str_fields;
|
|
26938
|
+
cmds.push(
|
|
26939
|
+
this.officeService.operation(
|
|
26940
|
+
"GB_XLS_APRI",
|
|
26941
|
+
"tpl_report.xlsx",
|
|
26942
|
+
"" + this.uiid_stampa + ".xlsx",
|
|
26943
|
+
this.xxopx++
|
|
26944
|
+
)
|
|
26945
|
+
);
|
|
26946
|
+
let opx:string='GB_CREA_TABELLA_FROM_DB';
|
|
26947
|
+
if(this.system_dest==2)opx='GB_CREA_TABELLA_FROM_DB1';
|
|
26948
|
+
if(this.export_field_aggiuntivi=='')
|
|
26949
|
+
cmds.push(
|
|
26950
|
+
this.officeService.operation(
|
|
26951
|
+
opx,
|
|
26952
|
+
"select " +
|
|
26953
|
+
str_fields+
|
|
26954
|
+
" from " +
|
|
26955
|
+
this.tbl_name +
|
|
26956
|
+
" " +
|
|
26957
|
+
this.str_curr_q_p,
|
|
26958
|
+
"3",
|
|
26959
|
+
this.xxopx++
|
|
26960
|
+
)
|
|
26961
|
+
);
|
|
26962
|
+
else
|
|
26963
|
+
cmds.push(
|
|
26964
|
+
this.officeService.operation(
|
|
26965
|
+
opx,
|
|
26966
|
+
"select " +
|
|
26967
|
+
str_fields +','+this.export_field_aggiuntivi+
|
|
26968
|
+
" from " +
|
|
26969
|
+
this.tbl_name +
|
|
26970
|
+
" " +
|
|
26971
|
+
this.str_curr_q_p,
|
|
26972
|
+
"3",
|
|
26973
|
+
this.xxopx++
|
|
26974
|
+
)
|
|
26975
|
+
);
|
|
26976
|
+
cmds.push(
|
|
26977
|
+
this.officeService.operation(
|
|
26978
|
+
"GB_XLS_SAVE",
|
|
26979
|
+
this.m_appService.LOCAL_PATH +
|
|
26980
|
+
"grid_reports\\" +
|
|
26981
|
+
this.uiid_stampa +
|
|
26982
|
+
"_" +
|
|
26983
|
+
this.m_appService.user +
|
|
26984
|
+
format,
|
|
26985
|
+
"",
|
|
26986
|
+
this.xxopx++
|
|
26987
|
+
)
|
|
26988
|
+
);
|
|
26989
|
+
|
|
26990
|
+
this.officeService
|
|
26991
|
+
.runCommands(this.uiid_stampa, cmds, this.dialogRef_W,false)
|
|
26992
|
+
.subscribe((data) => {
|
|
26993
|
+
this.check_end(format);
|
|
26994
|
+
});
|
|
26995
|
+
}
|
|
26996
|
+
check_end(format){
|
|
26997
|
+
|
|
26998
|
+
|
|
26999
|
+
let p: FSInput = new FSInput();
|
|
27000
|
+
p.p1 =
|
|
27001
|
+
this.m_appService.LOCAL_PATH +
|
|
27002
|
+
"grid_reports\\" +
|
|
27003
|
+
this.uiid_stampa +
|
|
27004
|
+
"_" +
|
|
27005
|
+
this.m_appService.user +
|
|
27006
|
+
format;
|
|
27007
|
+
p.command = "check_file";
|
|
27008
|
+
this._fileService.doQuery(p).subscribe((data) => {
|
|
27009
|
+
if (data != null)
|
|
27010
|
+
if (data.msg == "N") {
|
|
27011
|
+
setTimeout(() => {
|
|
27012
|
+
this.check_end(format);
|
|
27013
|
+
},5000);
|
|
27014
|
+
} else {
|
|
27015
|
+
setTimeout(() => {
|
|
27016
|
+
this.dialogRef_W.componentInstance.update_progess(100);
|
|
27017
|
+
});
|
|
27018
|
+
window.open(
|
|
27019
|
+
this.m_appService.COMPANY_SITE_ROOT +
|
|
27020
|
+
"/grid_reports/" +
|
|
27021
|
+
this.uiid_stampa +
|
|
27022
|
+
"_" +
|
|
27023
|
+
this.m_appService.user +
|
|
27024
|
+
format
|
|
27025
|
+
);
|
|
27026
|
+
}
|
|
27027
|
+
});
|
|
27028
|
+
|
|
27029
|
+
}
|
|
27030
|
+
|
|
27031
|
+
*/
|
|
27032
|
+
print() {
|
|
27033
|
+
if (this.custom_export)
|
|
27034
|
+
this.command.emit({ cmd: "print_pdf" });
|
|
27035
|
+
else
|
|
27036
|
+
this.export_excel('pdf');
|
|
27037
|
+
}
|
|
27038
|
+
init_conf() {
|
|
27039
|
+
// console.log(" init_conf()");
|
|
27040
|
+
//this.ckk();
|
|
27041
|
+
}
|
|
27042
|
+
createColumnDefs(em) { }
|
|
27043
|
+
ckk() {
|
|
27044
|
+
if (!this.auto_load)
|
|
27045
|
+
return;
|
|
27046
|
+
if (this.columnDefs == null) {
|
|
27047
|
+
setTimeout(() => {
|
|
27048
|
+
this.ckk();
|
|
27049
|
+
}, 500);
|
|
27050
|
+
return;
|
|
27051
|
+
}
|
|
27052
|
+
if (this.columnDefs.length == 0) {
|
|
27053
|
+
setTimeout(() => {
|
|
27054
|
+
this.ckk();
|
|
27055
|
+
}, 500);
|
|
27056
|
+
return;
|
|
27057
|
+
}
|
|
27058
|
+
if (this.ckk_ed)
|
|
27059
|
+
return;
|
|
27060
|
+
this.ckk_ed = true;
|
|
27061
|
+
if (this.toggle_mantieni != null) {
|
|
27062
|
+
this.toggle_mantieni.checked = true;
|
|
27063
|
+
if (localStorage.getItem(this.grid_key + "_MANTIENI") != null)
|
|
27064
|
+
if (localStorage.getItem(this.grid_key + "_MANTIENI") == "NO") {
|
|
27065
|
+
this.toggle_mantieni.checked = false;
|
|
27066
|
+
}
|
|
27067
|
+
}
|
|
27068
|
+
this.res_columns();
|
|
27069
|
+
if (localStorage.getItem(this.grid_key + "_POS") != null)
|
|
27070
|
+
this.b_restored = true;
|
|
27071
|
+
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != null)
|
|
27072
|
+
if (localStorage.getItem(this.grid_key + "_FILTER_UP") != "") {
|
|
27073
|
+
this.ric_libera = localStorage.getItem(this.grid_key + "_FILTER_UP");
|
|
27074
|
+
let arr = this.ric_libera.split(" ");
|
|
27075
|
+
let arr_F = new Array();
|
|
27076
|
+
for (let i = 0; i < arr.length; i++)
|
|
27077
|
+
arr_F.push(arr[i]);
|
|
27078
|
+
//if (arr[i].length > 2)
|
|
27079
|
+
//else
|
|
27080
|
+
// this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
|
|
27081
|
+
if (arr_F.length == 0)
|
|
27082
|
+
return;
|
|
27083
|
+
let ss = "";
|
|
27084
|
+
for (let i = 0; i < arr_F.length; i++) {
|
|
27085
|
+
let ss_r = "";
|
|
27086
|
+
for (let y = 0; y < this.columnDefs.length; y++) {
|
|
27087
|
+
if (this.columnDefs[y] != null)
|
|
27088
|
+
if (this.columnDefs[y].no_filter == null)
|
|
27089
|
+
if (this.columnDefs[y].field != null)
|
|
27090
|
+
if (this.columnDefs[y].field != "")
|
|
27091
|
+
if (this.columnDefs[y].filter != "agDateColumnFilter") {
|
|
27092
|
+
if (ss_r != "")
|
|
27093
|
+
ss_r += " or ";
|
|
27094
|
+
ss_r +=
|
|
27095
|
+
this.columnDefs[y].field +
|
|
27096
|
+
" LIKE '%" +
|
|
27097
|
+
this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
27098
|
+
"%' ESCAPE '$'";
|
|
27099
|
+
}
|
|
27100
|
+
}
|
|
27101
|
+
if (this.full_text_added_columns != null)
|
|
27102
|
+
this.full_text_added_columns.map((v) => {
|
|
27103
|
+
if (v != null)
|
|
27104
|
+
if (v != '') {
|
|
27105
|
+
if (ss_r != "")
|
|
27106
|
+
ss_r += " or ";
|
|
27107
|
+
ss_r +=
|
|
27108
|
+
v +
|
|
27109
|
+
" LIKE '%" +
|
|
27110
|
+
this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
27111
|
+
"%' ESCAPE '$'";
|
|
27112
|
+
}
|
|
27113
|
+
});
|
|
27114
|
+
if (ss_r != '') {
|
|
27115
|
+
if (ss != "")
|
|
27116
|
+
ss += " and ";
|
|
27117
|
+
ss += '(' + ss_r + ')';
|
|
27118
|
+
}
|
|
27119
|
+
}
|
|
27120
|
+
this.fix_flt_temp = ss;
|
|
27121
|
+
}
|
|
27122
|
+
if (this.init_fill) {
|
|
27123
|
+
setTimeout(() => {
|
|
27124
|
+
this.ref_dt();
|
|
27125
|
+
}, 100);
|
|
27126
|
+
}
|
|
27127
|
+
// this.createNewDatasource();
|
|
27128
|
+
/*
|
|
27129
|
+
if(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']!=null)
|
|
27130
|
+
{
|
|
27131
|
+
//console.log('setto pag: '+this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
|
|
27132
|
+
this.gridOptions.api.paginationGoToPage(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
|
|
27133
|
+
} */
|
|
27134
|
+
}
|
|
27135
|
+
set_init_size() {
|
|
27136
|
+
if (this.myData.length == 0) {
|
|
27137
|
+
setTimeout(() => { this.set_init_size(); }, 500);
|
|
27138
|
+
return;
|
|
27139
|
+
}
|
|
27140
|
+
if (this.columnDefs.length <= 6)
|
|
27141
|
+
this.fitSizeAll();
|
|
27142
|
+
else
|
|
27143
|
+
this.autoSizeAll();
|
|
27144
|
+
}
|
|
27145
|
+
res_columns(forza = false) {
|
|
27146
|
+
if (this.columnDefs == null) {
|
|
27147
|
+
setTimeout(() => {
|
|
27148
|
+
this.res_columns(forza);
|
|
27149
|
+
}, 200);
|
|
27150
|
+
return;
|
|
27151
|
+
}
|
|
27152
|
+
if (this.columnDefs.length == 0) {
|
|
27153
|
+
setTimeout(() => {
|
|
27154
|
+
this.res_columns(forza);
|
|
27155
|
+
}, 200);
|
|
27156
|
+
return;
|
|
27157
|
+
}
|
|
27158
|
+
let b_mantieni_ck = false;
|
|
27159
|
+
let b_rip = false;
|
|
27160
|
+
if (this.toggle_mantieni != null)
|
|
27161
|
+
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
27162
|
+
if (localStorage.getItem(this.grid_key + "_COLS") == null ||
|
|
27163
|
+
localStorage.getItem(this.grid_key + "_COLS") == "") {
|
|
27164
|
+
this.set_init_size();
|
|
27165
|
+
return;
|
|
27166
|
+
}
|
|
27167
|
+
if (localStorage.getItem(this.grid_key + "_COLS") != null &&
|
|
27168
|
+
(b_mantieni_ck || forza))
|
|
27169
|
+
if (localStorage.getItem(this.grid_key + "_COLS") != "") {
|
|
27170
|
+
b_rip = true;
|
|
27171
|
+
try {
|
|
27172
|
+
let a = JSON.parse(localStorage.getItem(this.grid_key + "_COLS"));
|
|
27173
|
+
let annulla = true;
|
|
27174
|
+
for (let i = 0; i < a.length; i++) {
|
|
27175
|
+
if (!a[i].hide)
|
|
27176
|
+
annulla = false;
|
|
27177
|
+
}
|
|
27178
|
+
if (annulla)
|
|
27179
|
+
localStorage.getItem(this.grid_key + "_COLS");
|
|
27180
|
+
else
|
|
27181
|
+
this.gridOptions.columnApi.setColumnState(JSON.parse(localStorage.getItem(this.grid_key + "_COLS")));
|
|
27182
|
+
}
|
|
27183
|
+
catch (eer) {
|
|
27184
|
+
console.log(eer);
|
|
27185
|
+
}
|
|
27186
|
+
}
|
|
27187
|
+
/* try {
|
|
27188
|
+
this.gridOptions.api.setSortModel(null);
|
|
27189
|
+
} catch (eer) {
|
|
27190
|
+
console.log(eer);
|
|
27191
|
+
}
|
|
27192
|
+
if (
|
|
27193
|
+
localStorage.getItem(this.grid_key + "_SORT") != null &&
|
|
27194
|
+
(b_mantieni_ck || forza)
|
|
27195
|
+
)
|
|
27196
|
+
if (localStorage.getItem(this.grid_key + "_SORT") != "") {
|
|
27197
|
+
// console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
|
|
27198
|
+
// console.log(localStorage.getItem(this.grid_key+'_SORT'));
|
|
27199
|
+
try {
|
|
27200
|
+
this.gridOptions.api.setSortModel(
|
|
27201
|
+
JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
|
|
27202
|
+
);
|
|
27203
|
+
} catch (eer) {
|
|
27204
|
+
console.log(eer);
|
|
27205
|
+
}
|
|
27206
|
+
}
|
|
27207
|
+
try {
|
|
27208
|
+
this.gridOptions.api.setFilterModel(null);
|
|
27209
|
+
} catch (eer) {
|
|
27210
|
+
console.log(eer);
|
|
27211
|
+
}*/
|
|
27212
|
+
if (localStorage.getItem(this.grid_key + "_FILTER") != null &&
|
|
27213
|
+
(b_mantieni_ck || forza))
|
|
27214
|
+
if (localStorage.getItem(this.grid_key + "_FILTER") != "") {
|
|
27215
|
+
try {
|
|
27216
|
+
this.gridOptions.api.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + "_FILTER")));
|
|
27217
|
+
}
|
|
27218
|
+
catch (eer) {
|
|
27219
|
+
console.log(eer);
|
|
27220
|
+
}
|
|
27221
|
+
}
|
|
27222
|
+
}
|
|
27223
|
+
getRows() {
|
|
27224
|
+
return this.gridOptions.rowData;
|
|
27225
|
+
}
|
|
27226
|
+
sortAndFilter(sortModel, filterModel) {
|
|
27227
|
+
// return sortData(sortModel, filterData(filterModel, allOfTheData))
|
|
27228
|
+
}
|
|
27229
|
+
ref_dt() {
|
|
27230
|
+
if (this.gridOptions == null)
|
|
27231
|
+
setTimeout(() => {
|
|
27232
|
+
this.ref_dt();
|
|
27233
|
+
}, 500);
|
|
27234
|
+
else {
|
|
27235
|
+
if (this.gridOptions.api == null)
|
|
27236
|
+
setTimeout(() => {
|
|
27237
|
+
this.ref_dt();
|
|
27238
|
+
}, 500);
|
|
27239
|
+
else
|
|
27240
|
+
this.gridOptions.api.setDatasource(this.dataSource);
|
|
27241
|
+
}
|
|
27242
|
+
}
|
|
27243
|
+
updateRow() {
|
|
27244
|
+
this.refresh_all_rows();
|
|
27245
|
+
}
|
|
27246
|
+
onModelUpdated() {
|
|
27247
|
+
// console.log('onModelUpdated');
|
|
27248
|
+
// this.calculateRowCount();
|
|
27249
|
+
}
|
|
27250
|
+
onReady(event) {
|
|
27251
|
+
// console.log(this.header_h);
|
|
27252
|
+
this.gridApi = event.api;
|
|
27253
|
+
this.setHeaderHeight(this.header_h);
|
|
27254
|
+
if (this.gf != null && this.show_buttons && !this.pref_hidden) {
|
|
27255
|
+
this.gf.sql = "SELECT_CFG_GRID";
|
|
27256
|
+
this.gf.types = ["string"];
|
|
27257
|
+
this.gf.values = [this.grid_key];
|
|
27258
|
+
this.gf.fillCombo();
|
|
27259
|
+
if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO")
|
|
27260
|
+
if (localStorage.getItem(this.grid_key + "_CFG_DEFAULT") != null) {
|
|
27261
|
+
return;
|
|
27262
|
+
}
|
|
27263
|
+
}
|
|
27264
|
+
// let iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
27265
|
+
// if(!iOS)this.setAutoHeight();
|
|
27266
|
+
if (this.auto_load)
|
|
27267
|
+
this.onready_go();
|
|
27268
|
+
}
|
|
27269
|
+
init_grid() {
|
|
27270
|
+
this.auto_load = true;
|
|
27271
|
+
this.onready_go();
|
|
27272
|
+
}
|
|
27273
|
+
save_cfg() {
|
|
27274
|
+
localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
27275
|
+
}
|
|
27276
|
+
fe_cfg() {
|
|
27277
|
+
if (this.gf != null)
|
|
27278
|
+
if (this.gf.getObj() != null)
|
|
27279
|
+
if (localStorage.getItem(this.grid_key + "_MANTIENI") != "NO") {
|
|
27280
|
+
this.gf.setByDescri(localStorage.getItem(this.grid_key + "_CFG_DEFAULT"));
|
|
27281
|
+
localStorage.setItem(this.grid_key + "_COLS", this.gf.getObj().COLS);
|
|
27282
|
+
// localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
27283
|
+
localStorage.setItem(this.grid_key + "_FILTER", this.gf.getObj().FILTER);
|
|
27284
|
+
this.curr_config = this.gf.getValue();
|
|
27285
|
+
}
|
|
27286
|
+
this.onready_go();
|
|
27287
|
+
}
|
|
27288
|
+
onready_go() {
|
|
27289
|
+
this.ready = true;
|
|
27290
|
+
//console.log('onready_go');
|
|
27291
|
+
setTimeout(() => {
|
|
27292
|
+
this.ckk();
|
|
27293
|
+
}, 10);
|
|
27294
|
+
if (!this.b_iniended) {
|
|
27295
|
+
this.b_iniended = true;
|
|
27296
|
+
this.init_end.emit();
|
|
27297
|
+
}
|
|
27298
|
+
}
|
|
27299
|
+
init_filters() {
|
|
27300
|
+
//this.createNewDatasource();
|
|
27301
|
+
}
|
|
27302
|
+
keyDownFunctioncl(event) {
|
|
27303
|
+
if (event.keyCode == 13) {
|
|
27304
|
+
this.free_search();
|
|
27305
|
+
}
|
|
27306
|
+
}
|
|
27307
|
+
free_search() {
|
|
27308
|
+
if (this.ric_libera == "") {
|
|
27309
|
+
this.pulisci_filtri();
|
|
27310
|
+
this.fix_flt_temp = "";
|
|
27311
|
+
this.doFill("", true, false);
|
|
27312
|
+
localStorage.removeItem(this.grid_key + "_FILTER_UP");
|
|
27313
|
+
return;
|
|
27314
|
+
}
|
|
27315
|
+
localStorage.setItem(this.grid_key + "_FILTER_UP", this.ric_libera);
|
|
27316
|
+
let arr = this.ric_libera.split(" ");
|
|
27317
|
+
let arr_F = new Array();
|
|
27318
|
+
for (let i = 0; i < arr.length; i++)
|
|
27319
|
+
arr_F.push(arr[i]);
|
|
27320
|
+
// if (arr[i].length > 2)
|
|
27321
|
+
// else this._toast.error("ignorato termine: " + arr[i] + " troppo corto");
|
|
27322
|
+
if (arr_F.length == 0)
|
|
27323
|
+
return;
|
|
27324
|
+
let ss = "";
|
|
27325
|
+
for (let i = 0; i < arr_F.length; i++) {
|
|
27326
|
+
let ss_r = "";
|
|
27327
|
+
for (let y = 0; y < this.columnDefs.length; y++) {
|
|
27328
|
+
if (this.columnDefs[y] != null)
|
|
27329
|
+
if (this.columnDefs[y].no_filter == null)
|
|
27330
|
+
if (this.columnDefs[y].field != null)
|
|
27331
|
+
if (this.columnDefs[y].field != "")
|
|
27332
|
+
if (this.columnDefs[y].filter != "agDateColumnFilter") {
|
|
27333
|
+
if (ss_r != "")
|
|
27334
|
+
ss_r += " or ";
|
|
27335
|
+
ss_r +=
|
|
27336
|
+
this.columnDefs[y].field +
|
|
27337
|
+
" LIKE '%" +
|
|
27338
|
+
this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
27339
|
+
"%' ESCAPE '$'";
|
|
27340
|
+
}
|
|
27341
|
+
}
|
|
27342
|
+
if (this.full_text_added_columns != null)
|
|
27343
|
+
this.full_text_added_columns.map((v) => {
|
|
27344
|
+
if (v != null)
|
|
27345
|
+
if (v != '') {
|
|
27346
|
+
if (ss_r != "")
|
|
27347
|
+
ss_r += " or ";
|
|
27348
|
+
ss_r +=
|
|
27349
|
+
v +
|
|
27350
|
+
" LIKE '%" +
|
|
27351
|
+
this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
27352
|
+
"%' ESCAPE '$'";
|
|
27353
|
+
}
|
|
27354
|
+
});
|
|
27355
|
+
if (ss_r != '') {
|
|
27356
|
+
console.log('ADDO '), ss_r;
|
|
27357
|
+
if (ss != "")
|
|
27358
|
+
ss += " and ";
|
|
27359
|
+
ss += '(' + ss_r + ')';
|
|
27360
|
+
}
|
|
27361
|
+
}
|
|
27362
|
+
this.pulisci_filtri(false);
|
|
27363
|
+
this.doFill_Temp(ss, true);
|
|
27364
|
+
}
|
|
27365
|
+
onCellClicked(event) {
|
|
27366
|
+
// console.log(event.rowIndex + ' ' + event.colDef.field);
|
|
27367
|
+
this.cell_clicked.emit(event);
|
|
27368
|
+
// console.log(this.myModalNormal);
|
|
27369
|
+
// this.testom.element.nativeElement.value=event.data.descrizione;
|
|
27370
|
+
// this.testom.element.nativeElement.scrollTop =0;
|
|
27371
|
+
//this.testom.element.nativeElement.focus();
|
|
27372
|
+
//this.testom.element.nativeElement.setSelectionRange(0, 0);
|
|
27373
|
+
// this.myModalNormal.element.nativeElement.show();
|
|
27374
|
+
}
|
|
27375
|
+
onCellValueChanged(event) {
|
|
27376
|
+
// console.log('onCellValueChanged: ' + event.oldValue + ' to ' + event.newValue);
|
|
27377
|
+
}
|
|
27378
|
+
onCellDoubleClicked(event) {
|
|
27379
|
+
// console.log('onCellDoubleClicked: ' + event.rowIndex + ' ' + event.colDef.field);
|
|
27380
|
+
}
|
|
27381
|
+
onCellFocused(event) {
|
|
27382
|
+
//console.log('onCellFocused: (' + event.rowIndex + ',' + event.colIndex + ')');
|
|
27383
|
+
}
|
|
27384
|
+
onSelectionChanged() {
|
|
27385
|
+
// console.log('selectionChanged');
|
|
27386
|
+
}
|
|
27387
|
+
onBeforeFilterChanged() {
|
|
27388
|
+
// console.log('beforeFilterChanged');
|
|
27389
|
+
}
|
|
27390
|
+
oncolumnEverythingChanged(event) {
|
|
27391
|
+
// console.log('oncolumnEverythingChanged');
|
|
27392
|
+
if (this.b_init) {
|
|
27393
|
+
// console.log('salvo f: '+JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
27394
|
+
localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
27395
|
+
}
|
|
27396
|
+
}
|
|
27397
|
+
onFilterModified() {
|
|
27398
|
+
if (this.no_pref)
|
|
27399
|
+
return;
|
|
27400
|
+
setTimeout(() => {
|
|
27401
|
+
if (this.b_init) {
|
|
27402
|
+
localStorage.setItem(this.grid_key + "_FILTER", JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
27403
|
+
}
|
|
27404
|
+
}, 200);
|
|
27405
|
+
}
|
|
27406
|
+
onBeforeSortChanged() {
|
|
27407
|
+
// console.log('onBeforeSortChanged');
|
|
27408
|
+
}
|
|
27409
|
+
onAfterSortChanged() {
|
|
27410
|
+
// console.log('onAfterSortChanged');
|
|
27411
|
+
if (this.no_pref)
|
|
27412
|
+
return;
|
|
27413
|
+
if (this.b_init) {
|
|
27414
|
+
localStorage.setItem(this.grid_key + "_COLS", JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
27415
|
+
// console.log('salvo s: '+this.gridOptions.api.getSortModel());
|
|
27416
|
+
/*
|
|
27417
|
+
|
|
27418
|
+
localStorage.setItem(
|
|
27419
|
+
this.grid_key + "_SORT",
|
|
27420
|
+
JSON.stringify(this.gridOptions.api.getSortModel())
|
|
27421
|
+
);*/
|
|
27422
|
+
}
|
|
27423
|
+
}
|
|
27424
|
+
onVirtualRowRemoved($event) {
|
|
27425
|
+
// because this event gets fired LOTS of times, we don't print it to the
|
|
27426
|
+
// console. if you want to see it, just uncomment out this line
|
|
27427
|
+
// console.log('onVirtualRowRemoved: ' + event.rowIndex);
|
|
27428
|
+
}
|
|
27429
|
+
onRowClicked($event) {
|
|
27430
|
+
//console.log('onRowClicked: ' );
|
|
27431
|
+
var selectedInGrid = this.gridOptions.api.getSelectedNodes();
|
|
27432
|
+
if (selectedInGrid != null)
|
|
27433
|
+
if (selectedInGrid[0] != null) {
|
|
27434
|
+
// console.log((this.gridOptions.api.getVerticalPixelRange()));
|
|
27435
|
+
localStorage.setItem(this.grid_key + "_POS", String(selectedInGrid[0].rowIndex));
|
|
27436
|
+
localStorage.setItem(this.grid_key + "_POS_BAR", JSON.stringify(this.gridOptions.api.getVerticalPixelRange()));
|
|
27437
|
+
localStorage.setItem(this.grid_key + "_POS2", this.getRowNodeId(selectedInGrid[0]));
|
|
27438
|
+
// this.m_appService.getState().grid_obj=new Object();
|
|
27439
|
+
// this.m_appService.getState().grid_obj[this.grid_key+'_NODE']=this.gridOptions.api.getSelectedRows[0];
|
|
27440
|
+
}
|
|
27441
|
+
this.sRow = $event.data;
|
|
27442
|
+
localStorage.setItem(this.grid_key + "_LAST_ROW", JSON.stringify(this.sRow));
|
|
27443
|
+
this.clicked.emit($event.data);
|
|
27444
|
+
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
27445
|
+
if (iOS) {
|
|
27446
|
+
this.columndclicked.emit($event);
|
|
27447
|
+
this.dclicked.emit($event.data);
|
|
27448
|
+
}
|
|
27449
|
+
}
|
|
27450
|
+
onRowDClicked($event) {
|
|
27451
|
+
//console.log('onRowClicked: ' );
|
|
27452
|
+
//console.log(event);
|
|
27453
|
+
this.dclicked.emit($event.data);
|
|
27454
|
+
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
27455
|
+
if (iOS) {
|
|
27456
|
+
this.columndclicked.emit($event);
|
|
27457
|
+
//this.dclicked.emit($event.data);
|
|
27458
|
+
}
|
|
27459
|
+
}
|
|
27460
|
+
onQuickFilterChanged($event) {
|
|
27461
|
+
this.gridOptions.api.setQuickFilter($event.target.value);
|
|
27462
|
+
}
|
|
27463
|
+
// here we use one generic event to handle all the column type events.
|
|
27464
|
+
// the method just prints the event name
|
|
27465
|
+
onColumnEvent($event) {
|
|
27466
|
+
this.columndclicked.emit($event);
|
|
27467
|
+
// console.log('onColumnEvent: ' + $event);
|
|
27468
|
+
// localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridOptions.api.getColumnDef()));
|
|
27469
|
+
}
|
|
27470
|
+
doFill(flt, reset_prec = true, over_fixed = true) {
|
|
27471
|
+
// if (reset_prec) this.filters = "";
|
|
27472
|
+
if (over_fixed)
|
|
27473
|
+
this.fix_flt = flt;
|
|
27474
|
+
this.ckk_ed = false;
|
|
27475
|
+
// this.createNewDatasource();
|
|
27476
|
+
this.b_init = true;
|
|
27477
|
+
this.init_fill = true;
|
|
27478
|
+
//this.createNewDatasource();
|
|
27479
|
+
setTimeout(() => {
|
|
27480
|
+
this.ckk();
|
|
27481
|
+
}, 10);
|
|
27482
|
+
}
|
|
27483
|
+
doFill_Temp(flt, reset_prec = true) {
|
|
27484
|
+
//if (reset_prec) this.filters = "";
|
|
27485
|
+
this.fix_flt_temp = flt;
|
|
27486
|
+
this.ckk_ed = false;
|
|
27487
|
+
// this.createNewDatasource();
|
|
27488
|
+
this.b_init = true;
|
|
27489
|
+
this.init_fill = true;
|
|
27490
|
+
//this.createNewDatasource();
|
|
27491
|
+
setTimeout(() => {
|
|
27492
|
+
this.Refresh();
|
|
27493
|
+
}, 10);
|
|
27494
|
+
}
|
|
27495
|
+
Refresh() {
|
|
27496
|
+
this.ref_dt();
|
|
27497
|
+
}
|
|
27498
|
+
RefreshOnlyMemory() {
|
|
27499
|
+
this.updateRow();
|
|
27500
|
+
}
|
|
27501
|
+
}
|
|
27502
|
+
FHGridComponentN.decorators = [
|
|
27503
|
+
{ type: Component, args: [{
|
|
27504
|
+
selector: "FHGridN",
|
|
27505
|
+
template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n \n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}} {{label_elementi}}</h5>\n </div>\n \n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n width: 200px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon> \n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"accent\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>swap_horiz</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"accent\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"accent\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n \n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n \n\n <img\n *ngIf=\"enable_export && enable_export_pdf\"\n matTooltip=\"EXPORT PDF\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/pdf.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"print()\"\n alt=\"Export PDF\"\n width=\"24\" height=\"24\"\n />\n\n\n <img *ngIf=\"enable_export && enable_export_xls\"\n matTooltip=\"EXPORT EXCEL\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/xlsx.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"export_excel()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n\n [style.width]=\"width_max\"\n *ngIf=\"enabled\"\n >\n\n <FHGridToolBar\n (command)=\"docmd($event)\"\n [type]=\"toolbar_type\"\n [show_link]=\"show_link\"\n [show_help]=\"show_help_bar\"\n [help_label]=\"help_label_bar\"\n [custom_commands]=\"toolbar_custom_commands\"\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\n [elimina_label]=\"elimina_label\"\n [sRow]=\"sRow\"\n ></FHGridToolBar>\n </div>\n </div>\n\n\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\"\n [headerHeight]=\"header_h\"\n [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\"\n [singleClickEdit]=\"true\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n [rowSelection]=\"selection_mode\"\n [tooltipShowDelay]=\"tooltipShowDelay\"\n [getContextMenuItems]=\"enable_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\n (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\n (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\"\n [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n</div>\n",
|
|
27506
|
+
styles: [``]
|
|
27507
|
+
},] }
|
|
27508
|
+
];
|
|
27509
|
+
FHGridComponentN.ctorParameters = () => [
|
|
27510
|
+
{ type: GridService },
|
|
27511
|
+
{ type: ToastrService },
|
|
27512
|
+
{ type: QueryService },
|
|
27513
|
+
{ type: AppService },
|
|
27514
|
+
{ type: SlimLoadingBarService },
|
|
27515
|
+
{ type: MatDialog },
|
|
27516
|
+
{ type: UtilityService },
|
|
27517
|
+
{ type: FileService },
|
|
27518
|
+
{ type: Clipboard }
|
|
27519
|
+
];
|
|
27520
|
+
FHGridComponentN.propDecorators = {
|
|
27521
|
+
tooltipShowDelay: [{ type: Input }],
|
|
27522
|
+
elimina_label: [{ type: Input }],
|
|
27523
|
+
export_field_aggiuntivi: [{ type: Input }],
|
|
27524
|
+
end_point: [{ type: Input }],
|
|
27525
|
+
tbl_name: [{ type: Input }],
|
|
27526
|
+
columnDefs: [{ type: Input }],
|
|
27527
|
+
num_per_pag: [{ type: Input }],
|
|
27528
|
+
grid_key: [{ type: Input }],
|
|
27529
|
+
enabled: [{ type: Input }],
|
|
27530
|
+
show_link: [{ type: Input }],
|
|
27531
|
+
show_help_bar: [{ type: Input }],
|
|
27532
|
+
help_label_bar: [{ type: Input }],
|
|
27533
|
+
auto_load: [{ type: Input }],
|
|
27534
|
+
auto_height: [{ type: Input }],
|
|
27535
|
+
enable_export: [{ type: Input }],
|
|
27536
|
+
enabled_pag: [{ type: Input }],
|
|
27537
|
+
show_help: [{ type: Input }],
|
|
27538
|
+
show_num_elem: [{ type: Input }],
|
|
27539
|
+
system_dest: [{ type: Input }],
|
|
27540
|
+
header_h: [{ type: Input }],
|
|
27541
|
+
selection_mode: [{ type: Input }],
|
|
27542
|
+
init_fill: [{ type: Input }],
|
|
27543
|
+
no_pref: [{ type: Input }],
|
|
27544
|
+
pref_hidden: [{ type: Input }],
|
|
27545
|
+
enable_export_pdf: [{ type: Input }],
|
|
27546
|
+
enable_export_xls: [{ type: Input }],
|
|
27547
|
+
enable_copy: [{ type: Input }],
|
|
27548
|
+
full_text_added_columns: [{ type: Input }],
|
|
27549
|
+
autosize_at_ini: [{ type: Input }],
|
|
27550
|
+
label_elementi: [{ type: Input }],
|
|
27551
|
+
trova_label: [{ type: Input }],
|
|
27552
|
+
mantieni_impostazioni: [{ type: Input }],
|
|
27553
|
+
show_buttons: [{ type: Input }],
|
|
27554
|
+
fill_end: [{ type: Output }],
|
|
27555
|
+
cell_edited: [{ type: Output }],
|
|
27556
|
+
clicked: [{ type: Output }],
|
|
27557
|
+
dclicked: [{ type: Output }],
|
|
27558
|
+
columndclicked: [{ type: Output }],
|
|
27559
|
+
cell_clicked: [{ type: Output }],
|
|
27560
|
+
custom_export: [{ type: Input }],
|
|
27561
|
+
toolbar_type: [{ type: Input }],
|
|
27562
|
+
toolbar_wkfapp: [{ type: Input }],
|
|
27563
|
+
toolbar_custom_commands: [{ type: Input }],
|
|
27564
|
+
command: [{ type: Output }],
|
|
27565
|
+
gf: [{ type: ViewChild, args: ["gf",] }],
|
|
27566
|
+
toggle_mantieni: [{ type: ViewChild, args: ["toggle_mantieni",] }],
|
|
27567
|
+
init_end: [{ type: Output }],
|
|
27568
|
+
off_set: [{ type: Input }],
|
|
27569
|
+
onResize: [{ type: HostListener, args: ["window:resize", ["event"],] }]
|
|
27570
|
+
};
|
|
27571
|
+
|
|
25768
27572
|
class FluxhubLibModule {
|
|
25769
27573
|
static forRoot() {
|
|
25770
27574
|
return {
|
|
@@ -25864,6 +27668,7 @@ FluxhubLibModule.decorators = [
|
|
|
25864
27668
|
FHUploadPanelComponent,
|
|
25865
27669
|
FHUploadComponent,
|
|
25866
27670
|
FHGridComponent,
|
|
27671
|
+
FHGridComponentN,
|
|
25867
27672
|
FHComboboxComponent,
|
|
25868
27673
|
fh_win_confirm,
|
|
25869
27674
|
FHAutoCompleteComponent,
|
|
@@ -25932,6 +27737,7 @@ FluxhubLibModule.decorators = [
|
|
|
25932
27737
|
FHUploadComponent,
|
|
25933
27738
|
wkf_header_bar,
|
|
25934
27739
|
FHGridComponent,
|
|
27740
|
+
FHGridComponentN,
|
|
25935
27741
|
FHComboboxComponent,
|
|
25936
27742
|
fh_win_confirm,
|
|
25937
27743
|
FHAutoCompleteComponent,
|
|
@@ -26995,5 +28801,5 @@ wkfapp_v2.ctorParameters = () => [
|
|
|
26995
28801
|
* Generated bundle index. Do not edit.
|
|
26996
28802
|
*/
|
|
26997
28803
|
|
|
26998
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_log_v2 as ɵba, win_recupera_doc_v2 as ɵbb, win_riassegna_select_level_v2 as ɵbc, win_riassegna_select_user_v2 as ɵbd, win_sostituisci_utente_v2 as ɵbe, win_commento_sel_notif_v2 as ɵbf, win_insert_commento_v2 as ɵbg, win_show_log_info_dett as ɵbh, FHViewerComponent as ɵbi, FHGridToolBarComponent as ɵbk, win_assegna as ɵbl, win_conferma as ɵbm, win_select_canale as ɵbn, win_select_level as ɵbo, win_commenti as ɵbp, win_info_doc as ɵbq, win_log as ɵbr, win_recupera_doc as ɵbs, win_riassegna_select_level as ɵbt, win_riassegna_select_user as ɵbu, win_sostituisci_utente as ɵbv, win_commento_sel_notif as ɵbw, win_manage_values as ɵbx, win_manage_roles as ɵby, FHComboboxComponentFilter as ɵbz, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, MOMENT_DATE_FORMATS as ɵo, MomentDateAdapter as ɵp, win_grid_help as ɵq, HighlightService as ɵr, win_salva_annulla_v2 as ɵs, win_assegna_v2 as ɵt, win_conferma_v2 as ɵu, win_select_canale_v2 as ɵv, win_select_level_v2 as ɵw, win_uploads_v2 as ɵx, win_commenti_v2 as ɵy, win_info_doc_v2 as ɵz };
|
|
28804
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGuard, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_log_v2 as ɵba, win_recupera_doc_v2 as ɵbb, win_riassegna_select_level_v2 as ɵbc, win_riassegna_select_user_v2 as ɵbd, win_sostituisci_utente_v2 as ɵbe, win_commento_sel_notif_v2 as ɵbf, win_insert_commento_v2 as ɵbg, win_show_log_info_dett as ɵbh, FHViewerComponent as ɵbi, FHGridToolBarComponent as ɵbk, win_assegna as ɵbl, win_conferma as ɵbm, win_select_canale as ɵbn, win_select_level as ɵbo, win_commenti as ɵbp, win_info_doc as ɵbq, win_log as ɵbr, win_recupera_doc as ɵbs, win_riassegna_select_level as ɵbt, win_riassegna_select_user as ɵbu, win_sostituisci_utente as ɵbv, win_commento_sel_notif as ɵbw, win_manage_values as ɵbx, win_manage_roles as ɵby, FHComboboxComponentFilter as ɵbz, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, MOMENT_DATE_FORMATS as ɵo, MomentDateAdapter as ɵp, win_grid_help as ɵq, HighlightService as ɵr, win_salva_annulla_v2 as ɵs, win_assegna_v2 as ɵt, win_conferma_v2 as ɵu, win_select_canale_v2 as ɵv, win_select_level_v2 as ɵw, win_uploads_v2 as ɵx, win_commenti_v2 as ɵy, win_info_doc_v2 as ɵz };
|
|
26999
28805
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|