- in BatchProcessNew gestito ritorno risultati in caso di errore e ritorno tempi

- in BeamExec resa non locale la funzione AddApplyResultToGlobalList
This commit is contained in:
Emmanuele Sassi
2025-11-26 16:47:09 +01:00
parent e3cd0d3033
commit 1c8049d9a9
2 changed files with 59 additions and 6 deletions
+3 -3
View File
@@ -1109,7 +1109,7 @@ local function AddFeatureResultToGlobalList( Proc, OptionalParameters)
end
-------------------------------------------------------------------------------------------------------------
local function AddApplyResultToGlobalList( nErr, idCut, sMsg)
function BeamExec.AddApplyResultToGlobalList( nErr, idCut, sMsg)
RESULT[#RESULT+1] = {
sType = 'Part',
idCut = idCut,
@@ -1828,7 +1828,7 @@ function BeamExec.ProcessMachinings( PARTS)
-- TODO in caso di lavorazioni di coda saltate, l'informazione va restituita anche sulle singole feature
if not bApplOk then
nTotErr = nTotErr + 1
AddApplyResultToGlobalList( 1, 0, sApplErrors)
BeamExec.AddApplyResultToGlobalList( 1, 0, sApplErrors)
elseif sApplWarns and #sApplWarns > 0 then
local vLine = EgtSplitString( sApplWarns, '\r\n')
for i = 1, #vLine do
@@ -1839,7 +1839,7 @@ function BeamExec.ProcessMachinings( PARTS)
local nWarn = EgtGetVal( vVal[1] or '', 'WRN', 'i')
local nCutId = EgtGetVal( vVal[2] or '', 'CUTID', 'i')
if nWarn and nCutId then
AddApplyResultToGlobalList( -nWarn, nCutId, vLine[i])
BeamExec.AddApplyResultToGlobalList( -nWarn, nCutId, vLine[i])
end
end
end