- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user