diff --git a/MP-TAB3/Components/InsManual.razor b/MP-TAB3/Components/InsManual.razor index 884b41b9..dd370a41 100644 --- a/MP-TAB3/Components/InsManual.razor +++ b/MP-TAB3/Components/InsManual.razor @@ -262,9 +262,9 @@ -
-
} - - +@if (showProgress) +{ + +} diff --git a/MP-TAB3/Components/InsManual.razor.cs b/MP-TAB3/Components/InsManual.razor.cs index d2eba4b4..294aa501 100644 --- a/MP-TAB3/Components/InsManual.razor.cs +++ b/MP-TAB3/Components/InsManual.razor.cs @@ -377,19 +377,35 @@ namespace MP_TAB3.Components // esegue stored bool fatto = false; + progressTitle = "Avvio processo"; + showProgress = true; + currVal = 0; + nextVal = 20; + await InvokeAsync(StateHasChanged); if (RecMSE != null) { + currVal = 20; + nextVal = 90; + progressTitle = "Start conferma giornaliera"; + await InvokeAsync(StateHasChanged); string IdxMacc = RecMSE.IdxMacchina; fatto = await TabDServ.InsManFreezeDay(IdxMacc, dtCurr); - if (fatto) - { - EditRecord = null; - ReloadData(); - RecalcDayData(dtCurr); - } + currVal = 90; + nextVal = 100; + progressTitle = "Ricalcolo giornata"; + await InvokeAsync(StateHasChanged); + EditRecord = null; + ReloadData(); + RecalcDayData(dtCurr); + showProgress = false; } return; } + private int currVal = 0; + private int nextVal = 0; + private int expTimeMsec = 100; + private bool showProgress = false; + private string progressTitle = "Approvazione Giornata"; private bool IsTimeInfoOk(DateTime reqDate, bool reloadDay) { @@ -527,12 +543,6 @@ namespace MP_TAB3.Components { currCss = cssImport; } -#if false - else if (item.DataRif == oggi) - { - currCss = cssToday; - } -#endif else if (IsTimeInfoOk(item.DataRif.Date, true)) { currCss = item.MinProdTot < 1440 ? cssPartDay : cssOkDay; diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index e80c50bc..4c009b44 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2504.817 + 6.16.2504.818 enable MP_TAB3 diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index df8aac49..74311ea4 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2504.817

+

Versione: 6.16.2504.818


Note di rilascio: