Fix display scarti x tavola

This commit is contained in:
Samuele Locatelli
2023-12-19 08:33:53 +01:00
parent af785b50a3
commit 16e1b58b41
+10
View File
@@ -73,6 +73,16 @@ namespace MP_TAB3.Components
{
enableScarti = SMServ.GetConfBool("enableScarti");
IdxMaccSel = RecMSE.IdxMacchina;
bool isMulti = SMServ.DictMacchMulti[IdxMaccSel] == 1;
if (isMulti)
{
var idxMSel = MServ.UserPrefGet(IdxMaccSel);
if (!string.IsNullOrEmpty(idxMSel))
{
IdxMaccSel = idxMSel;
}
}
DateTime fine = DateTime.Today.AddDays(1);
DateTime inizio = fine.AddDays(-8);
CurrPeriodo = new Periodo(inizio, fine);