Aggiunto metodo reopen

git-svn-id: svn://10.65.10.50/trunk@1615 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-07-19 10:03:02 +00:00
parent 17f49f6998
commit 84e7862e52
2 changed files with 20 additions and 0 deletions

View File

@ -158,6 +158,23 @@ HIDDEN void openall(bool changestudy, TBit_array& excl, int oldmax, TBit_array&
}
}
// @mfunc Riapre tutti gli archivi della ditta attiva
void TPrefix::reopen() const
{
if (_prefix != ".")
{
TBit_array excl, comfiles;
comfiles.set(LF_PCON);
comfiles.set(LF_CLIFO);
comfiles.set(LF_CAUSALI);
comfiles.set(LF_RCAUSALI);
int max = closeall(FALSE, excl, comfiles);
openall(FALSE, excl, max, comfiles);
}
}
// @mfunc Setta la ditta corrente
void TPrefix::set(

View File

@ -79,6 +79,9 @@ public:
bool is_com() const
{ return !is_firm();}
// @cmember Riapre tutti gli archivi della ditta attiva
void reopen() const ;
// @cmember Costruttore
TPrefix();
// @cmember Distruttore