EgtExecutor 1.6p1 :
- piccole migliorie ed aggiustamenti.
This commit is contained in:
+75
-8
@@ -1244,7 +1244,15 @@ ExeRemoveOperation( int nId)
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// elimino l'operazione indicata della macchinata corrente
|
||||
return pGseCtx->m_pMachMgr->RemoveOperation( nId) ;
|
||||
bool bOk = pGseCtx->m_pMachMgr->RemoveOperation( nId) ;
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtRemoveOperation(" + ToString( nId) + ")" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1254,7 +1262,15 @@ ExeRemoveAllPhaseOperations( int nPhase)
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// elimino tutte le operazioni (tranne la disposizione) della fase indicata della macchinata corrente
|
||||
return pGseCtx->m_pMachMgr->RemoveAllPhaseOperations( nPhase) ;
|
||||
bool bOk = pGseCtx->m_pMachMgr->RemoveAllPhaseOperations( nPhase) ;
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtRemoveAllPhaseOperations(" + ToString( nPhase) + ")" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1264,7 +1280,15 @@ ExeRemoveAllOperations( void)
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// elimino tutte le operazioni e le fasi della macchinata corrente tranne la prima disposizione
|
||||
return pGseCtx->m_pMachMgr->RemoveAllOperations() ;
|
||||
bool bOk = pGseCtx->m_pMachMgr->RemoveAllOperations() ;
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtRemoveAllOperations()"
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1274,7 +1298,16 @@ ExeSetOperationMode( int nId, bool bActive)
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposto lo stato dell'operazione
|
||||
return pGseCtx->m_pMachMgr->SetOperationMode( nId, bActive) ;
|
||||
bool bOk = pGseCtx->m_pMachMgr->SetOperationMode( nId, bActive) ;
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtSetOperationMode(" + ToString( nId) + "," +
|
||||
( bActive ? "true" : "false") + ")" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1294,7 +1327,15 @@ ExeSetAllOperationsMode( bool bActive)
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposto lo stato di tutte le operazioni
|
||||
return pGseCtx->m_pMachMgr->SetAllOperationsMode( true, bActive) ;
|
||||
bool bOk = pGseCtx->m_pMachMgr->SetAllOperationsMode( true, bActive) ;
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtSetAllOperationsMode(" + string( bActive ? "true" : "false") + ")" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1304,7 +1345,16 @@ ExeSetOperationStatus( int nId, bool bShow)
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposto lo stato di visualizzazione dell'operazione
|
||||
return pGseCtx->m_pMachMgr->SetOperationStatus( nId, bShow) ;
|
||||
bool bOk = pGseCtx->m_pMachMgr->SetOperationStatus( nId, bShow) ;
|
||||
// non cambia lo stato di modificato del progetto
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtSetOperationStatus(" + ToString( nId) + "," +
|
||||
( bShow ? "true" : "false") + ")" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1324,7 +1374,15 @@ ExeSetAllOperationsStatus( bool bShow)
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposto lo stato di visualizzazione di tutte le operazioni
|
||||
return pGseCtx->m_pMachMgr->SetAllOperationsStatus( true, bShow) ;
|
||||
bool bOk = pGseCtx->m_pMachMgr->SetAllOperationsStatus( true, bShow) ;
|
||||
// non cambia lo stato di modificato del progetto
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtSetAllOperationsStatus(" + string( bShow ? "true" : "false") + ")" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1334,7 +1392,16 @@ ExeChangeOperationPhase( int nId, int nNewPhase)
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// cambio la fase dell'operazione e la sposto in fondo alle lavorazioni della stessa fase
|
||||
return pGseCtx->m_pMachMgr->ChangeOperationPhase( nId, nNewPhase) ;
|
||||
bool bOk = pGseCtx->m_pMachMgr->ChangeOperationPhase( nId, nNewPhase) ;
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtChangeOperationPhase(" + ToString( nId) + "," +
|
||||
ToString( nNewPhase) + ")" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user