- Fix condizione visibilità annulla ODL (disabilitato x doppia tav)
This commit is contained in:
Samuele Locatelli
2024-04-15 09:39:09 +02:00
parent 88da7b0d0b
commit f370884f7d
6 changed files with 33 additions and 6 deletions
+1 -1
View File
@@ -88,7 +88,7 @@
</div>
}
@if (cancelSetupEnabled && RecMSE != null && RecMSE.PezziConf == 0)
@if (cancelSetupEnabled && annullaSetupVisible)
{
<div class="col-12 col-md-6 p-2">
<button class="btn btn-lg btn-danger w-100" @onclick="OdlAnnullaSetup">Annulla Setup ODL <i class="fa-solid fa-ban me-1"></i></button>
+28 -1
View File
@@ -1186,7 +1186,34 @@ namespace MP_TAB3.Components
private bool cancelSetupEnabled
{
get => inAttr && enableSchedaTecnica && enableAnnullaSetup;
//get => inAttr && enableSchedaTecnica && enableAnnullaSetup;
get => inAttr && enableAnnullaSetup;
}
private bool annullaSetupVisible
{
get
{
bool answ = inAttr && enableAnnullaSetup && RecMSE != null && RecMSE.PezziConf == 0;
// forzato: se è doppia tavola è SEMPRE false...
if (isMulti)
{
answ = false;
}
// 2024.04.15 deciso con Gian di togliere la possibilità di annullare su doppia tavola (problema di doppio reset con conferme aperte su altra tavola)
//DateTime adesso = DateTime.Now;
//if (isMulti)
//{
// var pUpd = Task.Run(async () =>
// {
// // controllo ANCHE che la tav correntemente selezionata NON abbia pezzi da confermare
// datiProdAct = await TabDServ.StatoProdMacchina(IdxMaccSel, adesso);
// answ = datiProdAct.PzConfBuoni == 0 && datiProdAct.Pz2RecScarto == 0;
// });
// pUpd.Wait();
//}
return answ;
}
}
private string cssDetailOdl
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2404.1216</Version>
<Version>6.16.2404.1509</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.2404.1216</h4>
<h4>Versione: 6.16.2404.1509</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2404.1216
6.16.2404.1509
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2404.1216</version>
<version>6.16.2404.1509</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>