Fix display pezzi NC

This commit is contained in:
Samuele Locatelli
2023-11-06 18:41:12 +01:00
parent a4bb7e96ef
commit 51eabbb70e
2 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
{
<div class="col-12 text-danger">
<div class="fs-3">@lblWarnHead</div>
<div class="small">@lblWarnBody <b>@numPz2Conf</b> pz NC</div>
<div class="small">@lblWarnBody <b>@numPz2Conf.ToString("N0")</b> pz NC</div>
</div>
@if (!odlOk)
{
+16 -3
View File
@@ -185,8 +185,9 @@ namespace MP_TAB_SERV.Components
get => idxOdlSel;
set
{
if(idxOdlSel != value) {
idxOdlSel = value;
if (idxOdlSel != value)
{
idxOdlSel = value;
//var pUpd = Task.Run(async () =>
//{
// await ReloadData(true);
@@ -228,7 +229,19 @@ namespace MP_TAB_SERV.Components
private int numPz2Conf
{
get => RecMSE != null ? RecMSE.PezziProd - RecMSE.PezziConf : 0;
get
{
int answ = -1;
if (prodMacchina != null)
{
answ = prodMacchina.pezziNonConfermati;
}
else
{
answ = RecMSE != null ? RecMSE.PezziProd - RecMSE.PezziConf : 0;
}
return answ;
}
}
#endregion Private Properties