diff --git a/MP-TAB3/Components/MachSel.razor.cs b/MP-TAB3/Components/MachSel.razor.cs
index c6b44baa..264de1bd 100644
--- a/MP-TAB3/Components/MachSel.razor.cs
+++ b/MP-TAB3/Components/MachSel.razor.cs
@@ -3,6 +3,7 @@ using MP.Data.DbModels;
using MP.Data.Services;
using NLog;
using System.Reflection.Metadata;
+using static MongoDB.Driver.WriteConcern;
namespace MP_TAB3.Components
{
@@ -127,7 +128,7 @@ namespace MP_TAB3.Components
var newValue = e.Value?.ToString();
if (newValue != idxMaccSel)
{
- idxMaccSel = newValue;
+ IdxMaccSel = newValue;
await E_MachSel.InvokeAsync(newValue);
}
}
@@ -156,6 +157,7 @@ namespace MP_TAB3.Components
if (!string.IsNullOrEmpty(idxMSel))
{
IdxMaccSel = idxMSel;
+ await E_MachSel.InvokeAsync(idxMSel);
}
else
{
diff --git a/MP-TAB3/Components/ProdConfMan.razor.cs b/MP-TAB3/Components/ProdConfMan.razor.cs
index e7277a39..286943a8 100644
--- a/MP-TAB3/Components/ProdConfMan.razor.cs
+++ b/MP-TAB3/Components/ProdConfMan.razor.cs
@@ -137,8 +137,8 @@ namespace MP_TAB3.Components
if (recOdl != null && recOdl.IdxOdl == IdxOdl)
{
DateTime fine = DateTime.Today.AddDays(1);
- DateTime inizio = fine.AddDays(-7);
- CurrPeriodo = new Periodo(recOdl.DataInizio ?? inizio, recOdl.DataFine ?? fine);
+ DateTime inizio = fine.AddMonths(-6);
+ CurrPeriodo = new Periodo(recOdl.DataInizio ?? inizio.AddMonths(-6), recOdl.DataFine ?? fine);
}
}
// altrimenti reset..
@@ -335,7 +335,7 @@ namespace MP_TAB3.Components
await Task.Delay(1);
if (!string.IsNullOrEmpty(IdxMaccSel))
{
- ListaOdl = await TabDServ.OdlListByMaccPeriodo(IdxMaccSel, CurrPeriodo.Inizio.AddMonths(-1), DateTime.Today.AddDays(1));
+ ListaOdl = await TabDServ.OdlListByMaccPeriodo(IdxMaccSel, CurrPeriodo.Inizio.AddMonths(-6), DateTime.Today.AddDays(1));
ListComplete = await TabDServ.ElencoConfProdFiltAsync(IdxMaccSel, CurrPeriodo.Inizio, CurrPeriodo.Fine);
TotalCount = ListComplete.Count;
// esegue paginazione
@@ -368,7 +368,7 @@ namespace MP_TAB3.Components
if (doSet)
{
DateTime fine = DateTime.Today.AddDays(1);
- DateTime inizio = fine.AddDays(-7);
+ DateTime inizio = fine.AddMonths(-6);
CurrPeriodo = new Periodo(inizio, fine);
}
}
diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj
index ffe2df75..64afdeb8 100644
--- a/MP-TAB3/MP-TAB3.csproj
+++ b/MP-TAB3/MP-TAB3.csproj
@@ -3,7 +3,7 @@