- blocco display durante freeze update info
This commit is contained in:
Samuele Locatelli
2025-04-08 18:27:20 +02:00
parent 7e91f23ddb
commit a95447e355
7 changed files with 33 additions and 20 deletions
+4 -4
View File
@@ -262,9 +262,9 @@
</tbody>
</table>
</div>
<div class="col-12 px-1">
</div>
}
</div>
@if (showProgress)
{
<ProgressDisplay RefreshInterval="50" Title="@progressTitle" MaxVal="100" CurrVal="@currVal" NextVal="@nextVal" ExpTimeMSec="@expTimeMsec" DisplaySize="ProgressDisplay.ModalSize.Medium"></ProgressDisplay>
}
+22 -12
View File
@@ -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;
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2504.817</Version>
<Version>6.16.2504.818</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.2504.817</h4>
<h4>Versione: 6.16.2504.818</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2504.817
6.16.2504.818
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2504.817</version>
<version>6.16.2504.818</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>
+3
View File
@@ -1195,11 +1195,14 @@ namespace MP.Data.Services
public async Task<bool> InsManFreezeDay(string idxMacchina, DateTime dtCurr)
{
bool fatto = false;
Log.Info($"Inizio InsManFreezeDay | idxMacchina: {idxMacchina}");
// salvo
fatto = dbTabController.InsManFreezeDay(idxMacchina, dtCurr);
Log.Info($"Fine stored | idxMacchina: {idxMacchina}");
// svuoto cache
RedisValue pattern = $"{redisBaseKey}:InsMan:*";
await ExecFlushRedisPatternAsync(pattern);
Log.Info($"Fine InsManFreezeDay | idxMacchina: {idxMacchina}");
return fatto;
}