Esplosione tab

git-svn-id: svn://10.65.10.50/trunk@4821 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
augusto 1997-07-07 10:18:20 +00:00
parent 4a3996b65d
commit b328065d69
2 changed files with 180 additions and 184 deletions

View File

@ -26,7 +26,7 @@ void TForm_stampemg::gruppogiac(TForm_item &cf, TToken_string &s)
}
}
levname << ' ' << _giaclev->name(livello) ;
valore=_giacgrp->decode(_giaclev->build_tabcode(relation()->lfile(LF_MAG).get("LIVELLO"),livello));
valore=_giaclev->group_descr(relation()->lfile(LF_MAG).get("LIVELLO"),livello);
if (valore.empty())
valore=UNKNOWN_NAME;
cf.set(levname << ' ' << valore);
@ -38,7 +38,7 @@ void TForm_stampemg::gruppoart(TForm_item &cf, TToken_string &s)
int lv=atoi(s.get());
TString valore;
valore=_artgrp->decode(_artlev->build_tabcode(relation()->lfile(LF_ANAMAG).get("CODART"),lv));
valore=_artlev->group_descr(relation()->lfile(LF_ANAMAG).get("CODART"),lv);
if (valore.not_empty())
cf.set(valore);
else
@ -222,10 +222,8 @@ bool TForm_stampemg::setdettaglio(bool show, int fromlivart,int livart,int froml
TForm_stampemg::TForm_stampemg(const char *name,const char *code)
: TForm(name,code)
{
_giaclev= new TMag_livelli("FCG");
_artlev= new TMag_livelli("FCA");
_giacgrp= new TDecoder("GCG");
_artgrp= new TDecoder("GCA");
_giaclev= new TCodgiac_livelli();
_artlev= new TCodart_livelli();
_fromlivgiac=_tolivgiac=0;
_fromlivart=_tolivart=0;
}
@ -233,6 +231,4 @@ TForm_stampemg::~TForm_stampemg()
{
delete _giaclev;
delete _artlev;
delete _giacgrp;
delete _artgrp;
}