Correzione nome variabili con doppio valore accettato x Lubro e UniOp_NumCU
This commit is contained in:
@@ -3508,6 +3508,19 @@ namespace MTC_Adapter
|
||||
istNumCambiUt[numero - 1].addValue(DateTime.Now, Convert.ToInt32(tabDatiMtz[i]));
|
||||
}
|
||||
}
|
||||
else if (maintData[i].varName.EndsWith("_NumCU"))
|
||||
{
|
||||
try
|
||||
{
|
||||
numero = Convert.ToInt32(maintData[i].varName.Replace("UnOp_", "").Replace("_NumCU", ""));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (numero > 0 && istNumCambiUt.Length >= numero)
|
||||
{
|
||||
istNumCambiUt[numero - 1].addValue(DateTime.Now, Convert.ToInt32(tabDatiMtz[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (maintData[i].varName.StartsWith("VacPump_"))
|
||||
{
|
||||
@@ -3556,6 +3569,19 @@ namespace MTC_Adapter
|
||||
istLubroCount[numero - 1].addValue(DateTime.Now, Convert.ToInt32(tabDatiMtz[i]));
|
||||
}
|
||||
}
|
||||
else if(maintData[i].varName.EndsWith("_Count"))
|
||||
{
|
||||
try
|
||||
{
|
||||
numero = Convert.ToInt32(maintData[i].varName.Replace("Lubro_", "").Replace("_Count", ""));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (numero > 0 && istLubroCount.Length >= numero)
|
||||
{
|
||||
istLubroCount[numero - 1].addValue(DateTime.Now, Convert.ToInt32(tabDatiMtz[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (maintData[i].varName.StartsWith("SlittaMagazzino_"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user