- BasicStrategies se JSON non presente o in JSON nessuna strategia
This commit is contained in:
@@ -22,8 +22,15 @@ local function GetStrategies_Egalware( Proc)
|
||||
|
||||
-- TODO tabella da compleatare man mano che si inseriscono le varie strategie
|
||||
|
||||
---------------------------------------------------------------------
|
||||
-- Feature : Cut
|
||||
if ID.IsCut( Proc) then
|
||||
if ID.IsHeadCut( Proc) then
|
||||
---------------------------------------------------------------------
|
||||
-- Feature : Cut
|
||||
elseif ID.IsSplitCut( Proc) then
|
||||
---------------------------------------------------------------------
|
||||
-- Feature : Cut
|
||||
elseif ID.IsCut( Proc) then
|
||||
---------------------------------------------------------------------
|
||||
-- Feature : Longitudinal Cut
|
||||
elseif ID.IsLongitudinalCut( Proc) then
|
||||
@@ -184,7 +191,27 @@ local function GetStrategies_Essetre( Proc)
|
||||
|
||||
---------------------------------------------------------------------
|
||||
-- Feature : Cut
|
||||
if ID.IsCut( Proc) then
|
||||
if ID.IsHeadCut( Proc) then
|
||||
---------------------------------------------------------------------
|
||||
-- Feature : Cut
|
||||
elseif ID.IsSplitCut( Proc) then
|
||||
if Proc.TopologyName == 'FEATURE' then
|
||||
Strategy_Essetre = {
|
||||
StrategyID = 'STR0010',
|
||||
Parameters = {
|
||||
{
|
||||
{ Value = '15', Name = 'Step', Description = 'Questo è lo step di lavorazione', Type = 'd'},
|
||||
{ Value = '2', Name = 'Depth', Description = 'Affondamento lavorazione', Type = 'd'},
|
||||
{ Value = 'false', Name = 'AntiSplint', Description = 'Antischeggia', Type = 'b'}
|
||||
}
|
||||
}
|
||||
}
|
||||
table.insert( Strategies_Essetre, Strategy_Essetre)
|
||||
Strategy_Essetre = {}
|
||||
end
|
||||
---------------------------------------------------------------------
|
||||
-- Feature : Cut
|
||||
elseif ID.IsCut( Proc) then
|
||||
if Proc.TopologyName == 'FEATURE' then
|
||||
Strategy_Essetre = {
|
||||
StrategyID = 'STR0001',
|
||||
@@ -353,12 +380,13 @@ end
|
||||
-- *** Esecuzione ***
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
-- si legge lo script delle strategie di base definito con cliente (statico e non modificabile)
|
||||
-- script delle strategie di base standard definito con cliente (statico e non modificabile)
|
||||
-- se non esiste JSON configurazione, o se non ha trovato nessuna strategia, prova a cercare in questi script
|
||||
function BasicCustomerStrategies.GetStrategiesFromBasicCustomerStrategies( Proc)
|
||||
local StrategiesFromScript = {}
|
||||
|
||||
-- se non esiste JSON e nessuan info in BeamData, si carica standard di default EGALWARE
|
||||
if not STRATEGIES and not BD.STRATEGIES_SCRIPT then
|
||||
-- se nessuno script specifico in BeamData, si carica standard di default EGALWARE
|
||||
if not BD.STRATEGIES_SCRIPT or BD.STRATEGIES_SCRIPT == 'Egalware' then
|
||||
StrategiesFromScript = GetStrategies_Egalware( Proc)
|
||||
-- CLIENTE : ESSETRE
|
||||
elseif BD.STRATEGIES_SCRIPT == 'Essetre' then
|
||||
|
||||
Reference in New Issue
Block a user