@topconsultnpm/sdkui-react-beta 6.6.133 → 6.6.134
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.
|
@@ -571,6 +571,15 @@ const TMQueryEditor = ({ formMode, inputData, onQDChanged, runQdImmediately = fa
|
|
|
571
571
|
// #endregion
|
|
572
572
|
// #region Ricerca
|
|
573
573
|
const renderResultSearchForm = _jsx(TMQueryResultForm, { context: SearchResultContext.METADATA_SEARCH, onClose: () => { setShowResultSearch(false); }, isModal: isModal, result1: resultSearch, elapsedTime: elapsedTime, searchText: searchText });
|
|
574
|
+
const addHiddenSelectItem = (select, tid, mid) => {
|
|
575
|
+
if (select.findIndex(o => o.mid == mid) >= 0)
|
|
576
|
+
return;
|
|
577
|
+
let si = new SelectItem();
|
|
578
|
+
si.tid = tid;
|
|
579
|
+
si.mid = mid;
|
|
580
|
+
si.visibility = SelectItemVisibilities.Hidden;
|
|
581
|
+
select.push(si);
|
|
582
|
+
};
|
|
574
583
|
const onSearchAsync = async () => {
|
|
575
584
|
try {
|
|
576
585
|
TMSpinner.show({ description: `Esecuzione query ...`, backgroundColor: 'transparent' });
|
|
@@ -582,42 +591,14 @@ const TMQueryEditor = ({ formMode, inputData, onQDChanged, runQdImmediately = fa
|
|
|
582
591
|
qd.select = [];
|
|
583
592
|
let qdWithAggrFunctions = qd.select?.some(o => o.function != QueryFunctions.None);
|
|
584
593
|
if (!qd.isDistinct && !qdWithAggrFunctions) {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
qd.select.
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
qd.select.
|
|
593
|
-
si = new SelectItem();
|
|
594
|
-
si.tid = qd?.from?.tid;
|
|
595
|
-
si.mid = SystemMIDsAsNumber.FileCount;
|
|
596
|
-
qd.select.push(si);
|
|
597
|
-
si = new SelectItem();
|
|
598
|
-
si.tid = qd?.from?.tid;
|
|
599
|
-
si.mid = SystemMIDsAsNumber.FileExt;
|
|
600
|
-
qd.select.push(si);
|
|
601
|
-
si = new SelectItem();
|
|
602
|
-
si.tid = qd?.from?.tid;
|
|
603
|
-
si.mid = SystemMIDsAsNumber.IsLex;
|
|
604
|
-
qd.select.push(si);
|
|
605
|
-
si = new SelectItem();
|
|
606
|
-
si.tid = qd?.from?.tid;
|
|
607
|
-
si.mid = SystemMIDsAsNumber.IsLogDel;
|
|
608
|
-
qd.select.push(si);
|
|
609
|
-
si = new SelectItem();
|
|
610
|
-
si.tid = qd?.from?.tid;
|
|
611
|
-
si.mid = SystemMIDsAsNumber.IsMail;
|
|
612
|
-
qd.select.push(si);
|
|
613
|
-
si = new SelectItem();
|
|
614
|
-
si.tid = qd?.from?.tid;
|
|
615
|
-
si.mid = SystemMIDsAsNumber.IsShared;
|
|
616
|
-
qd.select.push(si);
|
|
617
|
-
si = new SelectItem();
|
|
618
|
-
si.tid = qd?.from?.tid;
|
|
619
|
-
si.mid = SystemMIDsAsNumber.IsSigned;
|
|
620
|
-
qd.select.push(si);
|
|
594
|
+
addHiddenSelectItem(qd.select, qd?.from?.tid, SystemMIDsAsNumber.TID);
|
|
595
|
+
addHiddenSelectItem(qd.select, qd?.from?.tid, SystemMIDsAsNumber.DID);
|
|
596
|
+
addHiddenSelectItem(qd.select, qd?.from?.tid, SystemMIDsAsNumber.FileCount);
|
|
597
|
+
addHiddenSelectItem(qd.select, qd?.from?.tid, SystemMIDsAsNumber.FileExt);
|
|
598
|
+
addHiddenSelectItem(qd.select, qd?.from?.tid, SystemMIDsAsNumber.IsLex);
|
|
599
|
+
addHiddenSelectItem(qd.select, qd?.from?.tid, SystemMIDsAsNumber.IsLogDel);
|
|
600
|
+
addHiddenSelectItem(qd.select, qd?.from?.tid, SystemMIDsAsNumber.IsMail);
|
|
601
|
+
addHiddenSelectItem(qd.select, qd?.from?.tid, SystemMIDsAsNumber.IsSigned);
|
|
621
602
|
}
|
|
622
603
|
// Alcuni lavori di ORCHESTRATOR non definiscono i SelectItem (per esempio, CheckSequence, DcmtPrinter, ...).
|
|
623
604
|
// In tal caso il risultato della ricerca risultava senza colonne (metadati).
|
|
@@ -634,6 +615,7 @@ const TMQueryEditor = ({ formMode, inputData, onQDChanged, runQdImmediately = fa
|
|
|
634
615
|
if (counter > 10)
|
|
635
616
|
break;
|
|
636
617
|
let si = new SelectItem();
|
|
618
|
+
si.visibility = SelectItemVisibilities.Visible;
|
|
637
619
|
si.tid = dtd.id;
|
|
638
620
|
si.mid = md.id;
|
|
639
621
|
qd.select.push(si);
|