[Cleanup] Rimosso pannello debug ODBC - Mapping ora funziona correttamente

This commit is contained in:
Alessio Dal Santo
2026-02-03 09:47:38 +01:00
parent 791f2cdc1f
commit 3a1c8da3cd
-31
View File
@@ -819,37 +819,6 @@
(!IsOdbcConnection() && isDatabaseConnected && ((useCustomQuery && isQueryValid) || (!useCustomQuery && !string.IsNullOrEmpty(selectedTable)))))) || (!IsOdbcConnection() && isDatabaseConnected && ((useCustomQuery && isQueryValid) || (!useCustomQuery && !string.IsNullOrEmpty(selectedTable)))))) ||
(selectedSourceType == "file" && !string.IsNullOrEmpty(selectedSheet)); (selectedSourceType == "file" && !string.IsNullOrEmpty(selectedSheet));
} }
<!-- DEBUG: Mostra stato variabili per ODBC -->
@if (IsOdbcConnection())
{
<div class="alert alert-warning mt-3">
<strong>🔍 DEBUG ODBC - Stato variabili per Mapping:</strong><br/>
• <code>isSourceReady</code>: <strong>@isSourceReady</strong>
(ODBC: @IsOdbcConnection(), useCustomQuery: @useCustomQuery, isQueryValid: @isQueryValid)<br/>
• <code>isRestConnected</code>: <strong>@isRestConnected</strong><br/>
• <code>selectedRestEntity</code>: <strong>@(selectedRestEntity?.Name ?? "NULL")</strong><br/>
• <code>restEntityDetails</code>: <strong>@(restEntityDetails != null ? "LOADED" : "NULL")</strong><br/>
<hr class="my-2"/>
@if (!isSourceReady)
{
<span class="text-danger">❌ Source non pronta</span>
}
@if (!isRestConnected)
{
<span class="text-danger">❌ REST non connesso</span>
}
@if (selectedRestEntity == null)
{
<span class="text-danger">❌ Nessuna entità REST selezionata</span>
}
@if (isSourceReady && isRestConnected && selectedRestEntity != null)
{
<span class="text-success">✅ Tutte le condizioni soddisfatte - MAPPING DOVREBBE APPARIRE</span>
}
</div>
}
@if (isSourceReady && isRestConnected && selectedRestEntity != null) @if (isSourceReady && isRestConnected && selectedRestEntity != null)
{ {
<div class="row mt-4"> <div class="row mt-4">