Fix calcolo fine stimata (sec --> minuti)
This commit is contained in:
@@ -1516,7 +1516,7 @@ namespace Thermo.Active.NC
|
||||
if (currentProdPanel.NumTarget > 0)
|
||||
{
|
||||
// 2020.09.03 uso dati da ricetta corrente... stimata con EWMA, in SECONDI!
|
||||
currentProdPanel.StimaDurata = Math.Round((currentProdPanel.NumTarget - currentProdPanel.NumDone) * lastCycle, 2);
|
||||
currentProdPanel.StimaDurata = Math.Round((currentProdPanel.NumTarget - currentProdPanel.NumDone) * lastCycle, 2) / 60;
|
||||
}
|
||||
// se stima negativa (+ pezzi di quanti richiesti...) --> ZERO!
|
||||
currentProdPanel.StimaDurata = currentProdPanel.StimaDurata < 0 ? 0 : currentProdPanel.StimaDurata;
|
||||
@@ -2541,7 +2541,7 @@ namespace Thermo.Active.NC
|
||||
//checkCondition = (currRecipe[item.Label].Status.HasError && currRecipe[item.Label].Status.Visible);
|
||||
checkCondition = (currRecipe[item.Label].Status.HasError);
|
||||
#else
|
||||
checkCondition = (currRecipe[item.Label].Status.HasError);
|
||||
checkCondition = (currRecipe[item.Label].Status.HasError);
|
||||
#endif
|
||||
// 2020.07.29 - controllo condizione secondo status debug/release...
|
||||
if (checkCondition)
|
||||
|
||||
Reference in New Issue
Block a user