@fluxhub/fluxhub-lib 10.0.510 → 10.0.512
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 +153 -71
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +154 -72
- package/fesm2015/fluxhub-fluxhub-lib.js +153 -71
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -5532,79 +5532,160 @@
|
|
|
5532
5532
|
if (p.sort_field != "")
|
|
5533
5533
|
_this.str_curr_q_p = _this.str_curr_q_p + " order by " + p.sort_field;
|
|
5534
5534
|
_this.curr_filter = p.filter;
|
|
5535
|
-
_this.
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
if (data
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
if (_this.
|
|
5552
|
-
if (_this.gridOptions
|
|
5553
|
-
_this.gridOptions.api
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
_this.
|
|
5535
|
+
if (_this.ric_libera == '' || !_this.over_fulltext) {
|
|
5536
|
+
_this._gridservice.doQuery(p, true, _this.end_point).subscribe(function (data) {
|
|
5537
|
+
var ok_op = false;
|
|
5538
|
+
if (data != null)
|
|
5539
|
+
if (data.result_msg == "OK") {
|
|
5540
|
+
ok_op = true;
|
|
5541
|
+
// console.log(data.result_data);
|
|
5542
|
+
params.successCallback(data.result_data, data.count);
|
|
5543
|
+
_this.b_init = true;
|
|
5544
|
+
_this.myData = data.result_data.slice();
|
|
5545
|
+
_this.num_r = data.count;
|
|
5546
|
+
_this.slimLoadingBarService.complete();
|
|
5547
|
+
_this.fill_end.emit();
|
|
5548
|
+
// console.log("end");
|
|
5549
|
+
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
5550
|
+
localStorage.setItem(_this.grid_key + "_POS1", JSON.stringify(p));
|
|
5551
|
+
if (localStorage.getItem(_this.grid_key + "_POS2") != null)
|
|
5552
|
+
if (_this.gridOptions != null)
|
|
5553
|
+
if (_this.gridOptions.api != null)
|
|
5554
|
+
_this.gridOptions.api.forEachNode(function (node) {
|
|
5555
|
+
// console.log(node)
|
|
5556
|
+
if (_this.getRowNodeId(node) ===
|
|
5557
|
+
localStorage.getItem(_this.grid_key + "_POS2")) {
|
|
5558
|
+
node.setSelected(true);
|
|
5559
|
+
localStorage.removeItem(_this.grid_key + "_POS2");
|
|
5560
|
+
if (localStorage.getItem(_this.grid_key + "_LAST_ROW") != null)
|
|
5561
|
+
_this.sRow = JSON.parse(localStorage.getItem(_this.grid_key + "_LAST_ROW"));
|
|
5562
|
+
localStorage.removeItem(_this.grid_key + "_LAST_ROW");
|
|
5563
|
+
}
|
|
5564
|
+
});
|
|
5565
|
+
var b_mantieni_ck = false;
|
|
5566
|
+
if (_this.toggle_mantieni != null)
|
|
5567
|
+
b_mantieni_ck = _this.toggle_mantieni.checked;
|
|
5568
|
+
if (_this.no_pref && !_this.b_init1) {
|
|
5569
|
+
_this.autoSizeAll();
|
|
5570
|
+
}
|
|
5571
|
+
_this.b_init1 = true;
|
|
5572
|
+
_this.ensure_visible();
|
|
5573
|
+
/*if (localStorage.getItem(this.grid_key + '_COLS')==null && this.first_ref) {
|
|
5574
|
+
setTimeout(() => {
|
|
5575
|
+
this.autoSizeAll();
|
|
5576
|
+
}, 300);
|
|
5577
|
+
this.first_ref = false;
|
|
5578
|
+
|
|
5579
|
+
|
|
5580
|
+
} else*/ if (localStorage.getItem(_this.grid_key + "_COLS") == null &&
|
|
5581
|
+
_this.autosize_at_ini)
|
|
5582
|
+
setTimeout(function () {
|
|
5583
|
+
_this.autoSizeAll();
|
|
5584
|
+
}, 300);
|
|
5585
|
+
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
5586
|
+
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
5587
|
+
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
5588
|
+
/*
|
|
5589
|
+
|
|
5590
|
+
this.gridOptions.api.forEachNode( (node) =>{
|
|
5591
|
+
// select the node
|
|
5592
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
5593
|
+
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
|
|
5594
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
5595
|
+
node.setSelected(true);
|
|
5596
|
+
|
|
5597
|
+
}}*/
|
|
5598
|
+
// if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
5599
|
+
//this.gridOptions.api.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
|
|
5600
|
+
// console.log(this.myData);
|
|
5569
5601
|
}
|
|
5570
|
-
|
|
5571
|
-
_this.
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5602
|
+
if (!ok_op) {
|
|
5603
|
+
_this.errorMsg = data.msg + " [" + data.result_msg + "]";
|
|
5604
|
+
}
|
|
5605
|
+
}, function (err) {
|
|
5606
|
+
_this.errorMsg =
|
|
5607
|
+
"ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI";
|
|
5608
|
+
});
|
|
5609
|
+
}
|
|
5610
|
+
else {
|
|
5611
|
+
var px = new QParam();
|
|
5612
|
+
px.sql = "SELECT_FC_FOGLI_FT";
|
|
5613
|
+
px.types = ['string', 'string', 'string',];
|
|
5614
|
+
px.values = [_this.ric_libera, 'PACKAGING', 'PROCESSING'];
|
|
5615
|
+
_this._dataService.doQuery(px).subscribe(function (data) {
|
|
5616
|
+
var ok_op = false;
|
|
5617
|
+
if (data != null)
|
|
5618
|
+
if (data.result_msg == "OK") {
|
|
5619
|
+
ok_op = true;
|
|
5620
|
+
// console.log(data.result_data);
|
|
5621
|
+
params.successCallback(data.result_data, data.result_data.length);
|
|
5622
|
+
_this.b_init = true;
|
|
5623
|
+
_this.myData = data.result_data.slice();
|
|
5624
|
+
_this.num_r = data.result_data.length;
|
|
5625
|
+
_this.slimLoadingBarService.complete();
|
|
5626
|
+
_this.fill_end.emit();
|
|
5627
|
+
// console.log("end");
|
|
5628
|
+
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
5629
|
+
localStorage.setItem(_this.grid_key + "_POS1", JSON.stringify(p));
|
|
5630
|
+
if (localStorage.getItem(_this.grid_key + "_POS2") != null)
|
|
5631
|
+
if (_this.gridOptions != null)
|
|
5632
|
+
if (_this.gridOptions.api != null)
|
|
5633
|
+
_this.gridOptions.api.forEachNode(function (node) {
|
|
5634
|
+
// console.log(node)
|
|
5635
|
+
if (_this.getRowNodeId(node) ===
|
|
5636
|
+
localStorage.getItem(_this.grid_key + "_POS2")) {
|
|
5637
|
+
node.setSelected(true);
|
|
5638
|
+
localStorage.removeItem(_this.grid_key + "_POS2");
|
|
5639
|
+
if (localStorage.getItem(_this.grid_key + "_LAST_ROW") != null)
|
|
5640
|
+
_this.sRow = JSON.parse(localStorage.getItem(_this.grid_key + "_LAST_ROW"));
|
|
5641
|
+
localStorage.removeItem(_this.grid_key + "_LAST_ROW");
|
|
5642
|
+
}
|
|
5643
|
+
});
|
|
5644
|
+
var b_mantieni_ck = false;
|
|
5645
|
+
if (_this.toggle_mantieni != null)
|
|
5646
|
+
b_mantieni_ck = _this.toggle_mantieni.checked;
|
|
5647
|
+
if (_this.no_pref && !_this.b_init1) {
|
|
5582
5648
|
_this.autoSizeAll();
|
|
5583
|
-
}
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5649
|
+
}
|
|
5650
|
+
_this.b_init1 = true;
|
|
5651
|
+
_this.ensure_visible();
|
|
5652
|
+
/*if (localStorage.getItem(this.grid_key + '_COLS')==null && this.first_ref) {
|
|
5653
|
+
setTimeout(() => {
|
|
5654
|
+
this.autoSizeAll();
|
|
5655
|
+
}, 300);
|
|
5656
|
+
this.first_ref = false;
|
|
5657
|
+
|
|
5658
|
+
|
|
5659
|
+
} else*/ if (localStorage.getItem(_this.grid_key + "_COLS") == null &&
|
|
5660
|
+
_this.autosize_at_ini)
|
|
5661
|
+
setTimeout(function () {
|
|
5662
|
+
_this.autoSizeAll();
|
|
5663
|
+
}, 300);
|
|
5664
|
+
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
5665
|
+
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
5666
|
+
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
5667
|
+
/*
|
|
5668
|
+
|
|
5669
|
+
this.gridOptions.api.forEachNode( (node) =>{
|
|
5670
|
+
// select the node
|
|
5671
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
5672
|
+
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
|
|
5673
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
5674
|
+
node.setSelected(true);
|
|
5675
|
+
|
|
5676
|
+
}}*/
|
|
5677
|
+
// if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
5678
|
+
//this.gridOptions.api.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
|
|
5679
|
+
// console.log(this.myData);
|
|
5680
|
+
}
|
|
5681
|
+
if (!ok_op) {
|
|
5682
|
+
_this.errorMsg = data.msg + " [" + data.result_msg + "]";
|
|
5600
5683
|
}
|
|
5601
|
-
|
|
5602
|
-
_this.errorMsg =
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
"ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI";
|
|
5607
|
-
});
|
|
5684
|
+
}, function (err) {
|
|
5685
|
+
_this.errorMsg =
|
|
5686
|
+
"ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI";
|
|
5687
|
+
});
|
|
5688
|
+
}
|
|
5608
5689
|
// this.gridOptions.api.setDatasource(this.dataSource);
|
|
5609
5690
|
},
|
|
5610
5691
|
};
|
|
@@ -6830,7 +6911,7 @@
|
|
|
6830
6911
|
};
|
|
6831
6912
|
FHGridComponent.prototype.free_search = function () {
|
|
6832
6913
|
var _this = this;
|
|
6833
|
-
console.log('free_search !!!!');
|
|
6914
|
+
console.log('free_search !!!! ', this.over_fulltext);
|
|
6834
6915
|
if (this.ric_libera == "") {
|
|
6835
6916
|
this.pulisci_filtri();
|
|
6836
6917
|
this.fix_flt_temp = "";
|
|
@@ -6840,6 +6921,7 @@
|
|
|
6840
6921
|
}
|
|
6841
6922
|
localStorage.setItem(this.grid_key + "_FILTER_UP", this.ric_libera);
|
|
6842
6923
|
if (this.over_fulltext) {
|
|
6924
|
+
console.log('this.over_fulltext ', this.ric_libera);
|
|
6843
6925
|
this.exec_ft.emit(this.ric_libera);
|
|
6844
6926
|
return;
|
|
6845
6927
|
}
|