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()
+6 -1
View File
@@ -688,8 +688,13 @@ namespace MP.SPEC.Data
/// Restitusice elenco Reparti
/// </summary>
/// <returns></returns>
public async Task<List<RepartiDTO>> ElencoRepartiDtoAsync()
public async Task<List<RepartiDTO>> ElencoRepartiDtoAsync(bool forceReload)
{
if (forceReload)
{
await FlushFusionCacheMacGrp();
await FlushFusionCacheOprGrp();
}
return await GetOrFetchAsync(
operationName: "ElencoRepartiDtoAsync",
cacheKey: $"{Utils.redisAnagGruppi}:REPARTO",
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP.SPEC</RootNamespace>
<Version>8.16.2606.816</Version>
<Version>8.16.2606.817</Version>
<UserSecretsId>1800a78a-6ff1-40f9-b490-87fb8bfc1394</UserSecretsId>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>
+1 -1
View File
@@ -45,7 +45,7 @@
<MP.SPEC.Components.Reparti.ListMacchine CodGruppoCurr="@CodGruppo" AllRecords="ListMacchineAll" CurrRecords="ListMacchine" EC_RecChange="ForceReload"></MP.SPEC.Components.Reparti.ListMacchine>
</div>
<div class="col-4">
<MP.SPEC.Components.Reparti.ListOperatori CodGruppoCurr="@CodGruppo" AllRecords="ListOperatoriAll" CurrRecords="ListOperatori" EC_RecChange="ForceReload"></MP.SPEC.Components.Reparti.ListOperatori>
<MP.SPEC.Components.Reparti.ListOperatori CodGruppoCurr="@CodGruppo" AllRecords="ListOperatoriAll" CurrRecords="ListOperatori" EC_RecChange="ForceReload" SelEnabled="false"></MP.SPEC.Components.Reparti.ListOperatori>
</div>
}
</div>
+1 -1
View File
@@ -89,7 +89,7 @@ namespace MP.SPEC.Pages
if (string.IsNullOrEmpty(CodGruppo))
{
ListReparti?.Clear();
var rawList = await MDService.ElencoRepartiDtoAsync();
var rawList = await MDService.ElencoRepartiDtoAsync(true);
if (string.IsNullOrEmpty(SearchVal))
{
ListReparti = rawList;
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 8.16.2606.816</h4>
<h4>Versione: 8.16.2606.817</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
8.16.2606.816
8.16.2606.817
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>8.16.2606.816</version>
<version>8.16.2606.817</version>
<url>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>