Fix cehck conferma prod

This commit is contained in:
Samuele Locatelli
2023-12-21 17:10:15 +01:00
parent dfe5693251
commit 8351cde96f
5 changed files with 29 additions and 27 deletions
+25 -23
View File
@@ -1150,18 +1150,8 @@ namespace MP_TAB3.Components
get => MServ.MatrOpr;
}
private bool needConfProd
{
get
{
bool answ = true;
if (prodMacchina != null)
{
answ = prodMacchina.pezziNonConfermati > 0 && !isSlave;
}
return answ;
}
}
private bool needConfProd { get; set; } = false;
private int numPz2Conf
{
@@ -1461,6 +1451,7 @@ namespace MP_TAB3.Components
// recupero pz da confermare
var rawData = await TabDServ.PezziProdMacchina(IdxMaccSel);
prodMacchina = rawData.FirstOrDefault() ?? new PzProdModel();
checkConfProd();
if (prodMacchina.pezziNonConfermati > 0)
{
// confermo produzione ZERO pezzi (in setup)
@@ -1596,21 +1587,32 @@ namespace MP_TAB3.Components
{
var rawData = await TabDServ.PezziProdMacchina(IdxMaccSel);
prodMacchina = rawData.FirstOrDefault() ?? new PzProdModel();
checkConfProd();
}
}
// imposto tcRichAttr in base allo stato...
if (odlOk)
{
// prendo TCRich da PODL...
if (IdxPOdlSel > 0)
{
tcRichAttr = currPodl.Tcassegnato;
}
else
{
tcRichAttr = currOdl.TCRichAttr;
}
}
}
// imposto tcRichAttr in base allo stato...
if (odlOk)
}
private void checkConfProd()
{
// calcolo conferma prod...
needConfProd = RecMSE != null && prodMacchina != null;
if (prodMacchina != null)
{
// prendo TCRich da PODL...
if (IdxPOdlSel > 0)
{
tcRichAttr = currPodl.Tcassegnato;
}
else
{
tcRichAttr = currOdl.TCRichAttr;
}
needConfProd = prodMacchina.pezziNonConfermati > 0 && !isSlave;
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2312.2115</Version>
<Version>6.16.2312.2117</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.2312.2115</h4>
<h4>Versione: 6.16.2312.2117</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2312.2115
6.16.2312.2117
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2312.2115</version>
<version>6.16.2312.2117</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>