Modifiche per compilare mg3300.cpp e mglib03.cpp (cambiate le righe dove

veniva chiamata packed_lenght() anziche' packed_length())


git-svn-id: svn://10.65.10.50/trunk@5180 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1997-09-08 14:04:23 +00:00
parent 1d6c51e0d5
commit 2ada4aab3e
2 changed files with 7 additions and 7 deletions

View File

@ -96,7 +96,7 @@ bool TForm_schedemag::validate(TForm_item &cf, TToken_string &s)
if (subcode=="CODGRUPPOART") {
TString valore(relation()->lfile(LF_ANAMAG).get("CODART"));
if (_artlev->enabled())
valore.cut(min(valore.len(),_artlev->packed_lenght(_tolivart)));
valore.cut(min(valore.len(),_artlev->packed_length(_tolivart)));
cf.set(valore);
return TRUE;
}
@ -178,7 +178,7 @@ bool TForm_schedemag::ragg_exprs(int livart,int livgiac)
// sezioni livello codice
piece="CODART";
if (_artlev->enabled())
piece << "[1," << _artlev->packed_lenght(tolivart) <<']';
piece << "[1," << _artlev->packed_length(tolivart) <<']';
*_rmov_raggcond<< (_rmov_raggcond->empty()? "":"+" )<<piece;
_rmov_sortexp->add(piece);
_rmov_joinexp->cut(0) << piece << "==" << piece;
@ -186,7 +186,7 @@ bool TForm_schedemag::ragg_exprs(int livart,int livgiac)
{
piece="LIVGIAC";
if (_giaclev->enabled())
piece << "[1," << _giaclev->packed_lenght(tolivgiac) <<']';
piece << "[1," << _giaclev->packed_length(tolivgiac) <<']';
*_rmov_raggcond << '+' << piece;
_rmov_sortexp->add(piece);
}
@ -312,7 +312,7 @@ void TForm_schedemag::setdett_perart(bool percatmer,bool sottocatmer,int livart,
catmercod << (sottocatmer ? "[1,3]" :"");
cond << catmercod << '+';
}
cond << "CODART[1," << _artlev->packed_lenght(_tolivart) << ']';
cond << "CODART[1," << _artlev->packed_length(_tolivart) << ']';
s.setcondition(cond,_strexpr);
}
// settaggio raggruppamenti codice sulla scheda

View File

@ -82,7 +82,7 @@ bool TForm_stampemg::validate(TForm_item &cf, TToken_string &s)
int lv=atoi(s.get());
do {
valore=relation()->lfile(LF_ANAMAG).get("CODART");
valore.rpad(25).cut(_artlev->packed_lenght(lv));
valore.rpad(25).cut(_artlev->packed_length(lv));
} while (--lv>0 && valore=="");
cf.set(valore);
@ -202,7 +202,7 @@ bool TForm_stampemg::setdettaglio(bool show, int fromlivart,int livart,int froml
sname << i;
TForm_subsection &s=(TForm_subsection &)find_field('B',odd_page,sname);
TString cond(s.condition());
cond << "[1," << _giaclev->packed_lenght(i) <<']';
cond << "[1," << _giaclev->packed_length(i) <<']';
s.setcondition(cond,_strexpr);
}
// sezioni livello codice
@ -211,7 +211,7 @@ bool TForm_stampemg::setdettaglio(bool show, int fromlivart,int livart,int froml
sname << i;
TForm_subsection &s=(TForm_subsection &)find_field('B',odd_page,sname);
TString cond(s.condition());
cond << '[' << (i==1 ? 1:_artlev->packed_lenght(i-1))<<',' << _artlev->packed_lenght(i) <<']';
cond << '[' << (i==1 ? 1:_artlev->packed_length(i-1))<<',' << _artlev->packed_length(i) <<']';
s.setcondition(cond,_strexpr);
}