Fix ricerca repa-opr

This commit is contained in:
Samuele Locatelli
2026-06-08 17:09:12 +02:00
parent 1eaedba6cd
commit 657e203767
10 changed files with 26 additions and 12 deletions
+11 -4
View File
@@ -36,7 +36,10 @@
<table class="table table-sm table-striped small">
<thead>
<tr>
<th><button class="btn btn-sm btn-info" title="Reset" @onclick="DoReset"><i class="fa-solid fa-rotate"></i></button></th>
@if (SelEnabled)
{
<th><button class="btn btn-sm btn-info" title="Reset" @onclick="DoReset"><i class="fa-solid fa-rotate"></i></button></th>
}
<th><i class="fa-solid fa-key"></i> Matr.</th>
<th><i class="fa-solid fa-object-group"></i> Anagr.</th>
@if (DelEnabled)
@@ -53,9 +56,13 @@
@foreach (var item in ListRecords)
{
<tr class="@cssRow(item)">
<td>
<button class="btn btn-sm btn-info" title="Mostra Assegnazioni" @onclick="() => DoSelect(item)"><i class="fa-solid fa-search"></i></button>
</td>
@if (SelEnabled)
{
<td>
<button class="btn btn-sm btn-info" title="Mostra Assegnazioni" @onclick="() => DoSelect(item)"><i class="fa-solid fa-search"></i></button>
</td>
}
<td class="@cssCol(item)">
<div>@item.MatrOpr</div>
</td>
@@ -23,6 +23,8 @@ namespace MP.SPEC.Components.Reparti
[Parameter]
public bool DelEnabled { get; set; } = true;
[Parameter]
public bool SelEnabled { get; set; } = true;
[Parameter]
public EventCallback<bool> EC_RecChange { get; set; }
@@ -204,8 +204,8 @@ namespace MP.SPEC.Components.Reparti
SelRecord = null;
EditRec = null;
UpdateTable();
await EC_RecordSel.InvokeAsync("");
await EC_RecordUpdated.InvokeAsync(true);
await EC_RecordSel.InvokeAsync("");
}
private void ToggleAddNew()