EgtExecutor 1.6v5 :

- aggiunte a EXE e Lua TdbReload, MdbReload
- aggiunta a EXE GetPhaseLastOperation.
This commit is contained in:
Dario Sassi
2016-10-24 08:30:10 +00:00
parent 0d6a829de7
commit 3feaa09d51
3 changed files with 57 additions and 1 deletions
+30
View File
@@ -1131,6 +1131,16 @@ ExeTdbGetCurrToolParam( int nType, string& sVal)
return pGseCtx->m_pMachMgr->TdbGetCurrToolParam( nType, sVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbReload( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// ricarico il DB utensili (eventuali modifiche dopo l'ultimo salvataggio vengono perse)
return pGseCtx->m_pMachMgr->TdbReload() ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbSave( void)
@@ -1363,6 +1373,16 @@ ExeMdbGetGeneralParam( int nType, double& dVal)
return pGseCtx->m_pMachMgr->MdbGetGeneralParam( nType, dVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbReload( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// ricarico il DB lavorazioni (eventuali modifiche dopo l'ultimo salvataggio vengono perse)
return pGseCtx->m_pMachMgr->MdbReload() ;
}
//-----------------------------------------------------------------------------
bool
ExeMdbSave( void)
@@ -1682,6 +1702,16 @@ ExeChangeOperationPhase( int nId, int nNewPhase)
return bOk ;
}
//-----------------------------------------------------------------------------
int
ExeGetPhaseLastOperation( int nPhase)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero l'ultima operazione della fase indicata
return pGseCtx->m_pMachMgr->GetPhaseLastOperation( nPhase) ;
}
//-----------------------------------------------------------------------------
bool
ExeRemoveOperationHome( int nId)