@fluxhub/fluxhub-lib 19.0.144 → 19.0.146
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.
|
@@ -9500,8 +9500,7 @@ class FHGridComponent {
|
|
|
9500
9500
|
this.b_init = true;
|
|
9501
9501
|
this.myData = data.result_data.slice();
|
|
9502
9502
|
this.num_r = data.count;
|
|
9503
|
-
|
|
9504
|
-
// this.cdr.detectChanges();
|
|
9503
|
+
this.cdr.detectChanges();
|
|
9505
9504
|
this.m_appService.complete();
|
|
9506
9505
|
this.fill_end.emit();
|
|
9507
9506
|
this.check_width();
|
|
@@ -9670,6 +9669,7 @@ class FHGridComponent {
|
|
|
9670
9669
|
b_init1 = false;
|
|
9671
9670
|
errorMsg = '';
|
|
9672
9671
|
init_opt = false;
|
|
9672
|
+
first_load_completed = false;
|
|
9673
9673
|
ngAfterViewInit() {
|
|
9674
9674
|
this.gridOptions = {
|
|
9675
9675
|
rowClassRules: {
|
|
@@ -9682,6 +9682,7 @@ class FHGridComponent {
|
|
|
9682
9682
|
pagination: this.pagination,
|
|
9683
9683
|
paginationPageSize: this.paginationPageSize,
|
|
9684
9684
|
cacheBlockSize: this.num_per_pag,
|
|
9685
|
+
maxBlocksInCache: 0,
|
|
9685
9686
|
headerHeight: this.header_h,
|
|
9686
9687
|
paginationAutoPageSize: this.paginationAutoPageSize,
|
|
9687
9688
|
rowHeight: this.rowHeight,
|
|
@@ -9767,25 +9768,29 @@ class FHGridComponent {
|
|
|
9767
9768
|
if (itemg.data == null)
|
|
9768
9769
|
return this.uti_s.newGuid();
|
|
9769
9770
|
let item = itemg.data;
|
|
9771
|
+
let rowId;
|
|
9770
9772
|
if (item.customKeyField != null)
|
|
9771
|
-
|
|
9772
|
-
if (item.ID != null)
|
|
9773
|
-
|
|
9774
|
-
if (item.id != null)
|
|
9775
|
-
|
|
9776
|
-
if (item.uiid != null)
|
|
9777
|
-
|
|
9778
|
-
if (item.codice != null)
|
|
9779
|
-
|
|
9780
|
-
if (item.id_gruppo != null)
|
|
9781
|
-
|
|
9782
|
-
if (item.id_doc != null)
|
|
9783
|
-
|
|
9784
|
-
if (item.notesid != null)
|
|
9785
|
-
|
|
9786
|
-
if (item.ord != null)
|
|
9787
|
-
|
|
9788
|
-
|
|
9773
|
+
rowId = [item.customKeyField];
|
|
9774
|
+
else if (item.ID != null)
|
|
9775
|
+
rowId = String(item.ID);
|
|
9776
|
+
else if (item.id != null)
|
|
9777
|
+
rowId = String(item.id);
|
|
9778
|
+
else if (item.uiid != null)
|
|
9779
|
+
rowId = item.uiid;
|
|
9780
|
+
else if (item.codice != null)
|
|
9781
|
+
rowId = item.codice;
|
|
9782
|
+
else if (item.id_gruppo != null)
|
|
9783
|
+
rowId = item.id_gruppo;
|
|
9784
|
+
else if (item.id_doc != null)
|
|
9785
|
+
rowId = item.id_doc;
|
|
9786
|
+
else if (item.notesid != null)
|
|
9787
|
+
rowId = item.notesid;
|
|
9788
|
+
else if (item.ord != null)
|
|
9789
|
+
rowId = item.ord;
|
|
9790
|
+
else
|
|
9791
|
+
rowId = this.uti_s.newGuid();
|
|
9792
|
+
console.log('🆔 getRowId chiamato - rowId:', rowId, 'item:', item);
|
|
9793
|
+
return rowId;
|
|
9789
9794
|
}
|
|
9790
9795
|
};
|
|
9791
9796
|
this.init_opt = true;
|