Fix ricerca repa-opr
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,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 @@
|
||||
8.16.2606.816
|
||||
8.16.2606.817
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user