Fix ordinamento conferme se filtrate x ODL

This commit is contained in:
Samuele E. Locatelli
2025-07-29 09:33:24 +02:00
parent 459e499863
commit cf7e669397
6 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
</div>
@if (useOdl)
{
<MachineSelOdl IdxMacchina="@IdxMaccSel" E_OdlSel="SetOdl" IdxOdlSel="@idxOdlLast"></MachineSelOdl>
<MachineSelOdl IdxMacchina="@IdxMaccSel" E_OdlSel="SetOdl" IdxOdlSel="@IdxOdl"></MachineSelOdl>
}
else
{
+9 -6
View File
@@ -144,7 +144,7 @@ namespace MP_TAB3.Components
// altrimenti reset..
else
{
setupPeriodo();
await setupPeriodo();
}
await ReloadData();
isProcessing = false;
@@ -176,7 +176,9 @@ namespace MP_TAB3.Components
}
else
{
ListPaged = ListComplete;
ListPaged = ListComplete
.OrderByDescending(x => x.DataTo)
.ToList();
}
}
@@ -356,7 +358,7 @@ namespace MP_TAB3.Components
await Task.Delay(1);
if (!string.IsNullOrEmpty(IdxMaccSel))
{
ListaOdl = await TabDServ.OdlListByMaccPeriodo(IdxMaccSel, CurrPeriodo.Inizio.AddMonths(-1), CurrPeriodo.Fine);
ListaOdl = await TabDServ.OdlListByMaccPeriodo(IdxMaccSel, CurrPeriodo.Inizio.AddMonths(-1), DateTime.Today.AddDays(1));
ListComplete = await TabDServ.ElencoConfProdFiltAsync(IdxMaccSel, CurrPeriodo.Inizio, CurrPeriodo.Fine);
TotalCount = ListComplete.Count;
// esegue paginazione
@@ -374,10 +376,12 @@ namespace MP_TAB3.Components
var LastODL = await TabDServ.VSOdlGetLastByMacc(IdxMaccSel, 1);
if (LastODL != null)
{
var recOdl = LastODL.FirstOrDefault();
var recOdl = LastODL
.Where(x => x.value > 0)
.FirstOrDefault();
if (recOdl != null)
{
idxOdlLast = recOdl.value;
var idxOdlLast = recOdl.value;
await SetOdl(idxOdlLast);
doSet = false;
}
@@ -392,7 +396,6 @@ namespace MP_TAB3.Components
}
}
private int idxOdlLast = 0;
#endregion Private Methods
}
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2507.2814</Version>
<Version>6.16.2507.2909</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB3</RootNamespace>
</PropertyGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2507.2814</h4>
<h4>Versione: 6.16.2507.2909</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2507.2814
6.16.2507.2909
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2507.2814</version>
<version>6.16.2507.2909</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>