From 3feaa09d51dc0ba8f85e04617c3682f28ba3aa62 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 24 Oct 2016 08:30:10 +0000 Subject: [PATCH] EgtExecutor 1.6v5 : - aggiunte a EXE e Lua TdbReload, MdbReload - aggiunta a EXE GetPhaseLastOperation. --- EXE_MachMgr.cpp | 30 ++++++++++++++++++++++++++++++ EgtExecutor.rc | Bin 11694 -> 11694 bytes LUA_MachMgr.cpp | 28 +++++++++++++++++++++++++++- 3 files changed, 57 insertions(+), 1 deletion(-) diff --git a/EXE_MachMgr.cpp b/EXE_MachMgr.cpp index 0516196..4d7e2c5 100644 --- a/EXE_MachMgr.cpp +++ b/EXE_MachMgr.cpp @@ -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) diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 0fc7f19d66a3193b19dfe1f0f01ddca6d1b412d0..450fe8b9815874758ccb6c83a722ff552b2be8ee 100644 GIT binary patch delta 97 zcmZ1%y)JsgA2vqQ%@@V4Gflq2na5~4Ignd-a{*Tk3sCf++-0W82LxfF21;&>n->Y| cF@rU@0x76sKgP|Iq`|@mn->Y| cF@rU@0x76sKgP|Iq`|@m