EgtExecutor 1.6k5 :
- modifiche per gestione DB lavorazioni.
This commit is contained in:
+212
@@ -694,6 +694,16 @@ ExeTdbIsCurrToolModified( void)
|
||||
return pGseCtx->m_pMachMgr->TdbIsCurrToolModified() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeTdbSetCurrToolParam( int nType, bool bVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro dell'utensile
|
||||
return pGseCtx->m_pMachMgr->TdbSetCurrToolParam( nType, bVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeTdbSetCurrToolParam( int nType, int nVal)
|
||||
@@ -724,6 +734,16 @@ ExeTdbSetCurrToolParam( int nType, const string& sVal)
|
||||
return pGseCtx->m_pMachMgr->TdbSetCurrToolParam( nType, sVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeTdbGetCurrToolParam( int nType, bool& bVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// recupero il parametro dell'utensile
|
||||
return pGseCtx->m_pMachMgr->TdbGetCurrToolParam( nType, bVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeTdbGetCurrToolParam( int nType, int& nVal)
|
||||
@@ -784,6 +804,198 @@ ExeTdbGetToolHolderDir( std::string& sTHolderDir)
|
||||
return pGseCtx->m_pMachMgr->TdbGetToolHolderDir( sTHolderDir) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// DB lavorazioni
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbGetMachiningNewName( string& sName)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// recupero un nuovo nome a partire da quello passato
|
||||
return pGseCtx->m_pMachMgr->MdbGetMachiningNewName( sName) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbAddMachining( const string& sName, int nType)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// aggiungo la lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbAddMachining( sName, nType) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbCopyMachining( const string& sSource, const string& sName)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// copio la lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbCopyMachining( sSource, sName) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbRemoveMachining( const string& sName)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// rimuovo la lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbRemoveMachining( sName) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbGetFirstMachining( int nType, string& sName)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// rimuovo la lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbGetFirstMachining( nType, sName) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbGetNextMachining( int nType, string& sName)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// rimuovo la lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbGetNextMachining( nType, sName) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbSetCurrMachining( const std::string& sName)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposto la lavorazione corrente
|
||||
return pGseCtx->m_pMachMgr->MdbSetCurrMachining( sName) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbSaveCurrMachining( void)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// salvo la lavorazione corrente
|
||||
return pGseCtx->m_pMachMgr->MdbSaveCurrMachining() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbIsCurrMachiningModified( void)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// verifico se la lavorazione corrente è stata modificata
|
||||
return pGseCtx->m_pMachMgr->MdbIsCurrMachiningModified() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbSetCurrMachiningParam( int nType, bool bVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro della lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbSetCurrMachiningParam( nType, bVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbSetCurrMachiningParam( int nType, int nVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro della lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbSetCurrMachiningParam( nType, nVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbSetCurrMachiningParam( int nType, double dVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro della lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbSetCurrMachiningParam( nType, dVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbSetCurrMachiningParam( int nType, const string& sVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro della lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbSetCurrMachiningParam( nType, sVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbGetCurrMachiningParam( int nType, bool& bVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro della lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbGetCurrMachiningParam( nType, bVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbGetCurrMachiningParam( int nType, int& nVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro della lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbGetCurrMachiningParam( nType, nVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbGetCurrMachiningParam( int nType, double& dVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro della lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbGetCurrMachiningParam( nType, dVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbGetCurrMachiningParam( int nType, string& sVal)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// imposta il parametro della lavorazione
|
||||
return pGseCtx->m_pMachMgr->MdbGetCurrMachiningParam( nType, sVal) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbSave( void)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// eseguo il salvataggio del DB lavorazioni
|
||||
return pGseCtx->m_pMachMgr->MdbSave() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeMdbGetMachiningDir( std::string& sMchDir)
|
||||
{
|
||||
GseContext* pGseCtx = GetCurrGseContext() ;
|
||||
VERIFY_CTX_MACHMGR( pGseCtx, false)
|
||||
// recupero il direttorio delle lavorazioni
|
||||
return pGseCtx->m_pMachMgr->MdbGetMachiningDir( sMchDir) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Operazioni
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user