Patch level :10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :correzioni dovute alle nuove RecDes


git-svn-id: svn://10.65.10.50/trunk@17867 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2008-12-11 16:04:01 +00:00
parent 586bb7dae8
commit d730e6b778
2 changed files with 10 additions and 10 deletions

View File

@ -255,9 +255,9 @@ void TRic_recfield::set(int from, int to)
{
int nf;
RecDes* rd = _rec->rec_des();
const RecDes& rd = _rec->rec_des();
if ((nf = findfld(rd, _name)) == -1)
if ((nf = findfld(&rd, _name)) == -1)
{
_p = NULL;
_len = 0;
@ -268,9 +268,9 @@ void TRic_recfield::set(int from, int to)
else
{
CHECK(from >= 0, "Invalid Start");
_p = _rec->string() + rd->Fd[nf].RecOff + from;
_dec = rd->Fd[nf].Dec;
_type = rd->Fd[nf].TypeF;
_p = _rec->string() + rd.Fd[nf].RecOff + from;
_dec = rd.Fd[nf].Dec;
_type = rd.Fd[nf].TypeF;
}
}
@ -5196,15 +5196,15 @@ int packfile(bool vis, int num, TString& name)
int packindex(bool vis, int num, TString& name)
{
int err=NOERR;
int err = NOERR;
TRecnotype peod;
TTrec r;
TDir d;
d.get(num,_nolock, _nordir,_sysdirop);
d.get(num,_nolock, _nordir, _sysdirop);
d.get(num,_nolock, (d.is_com()) ? _comdir : _nordir);
r.get(num);
err=DB_packindex(vis, name, r.rec(), &peod,0);
err = DB_packindex(vis, name, &r.rec(), &peod,0);
if (err != NOERR) err = get_error(err);
#ifdef DBG

View File

@ -660,7 +660,7 @@ void TCreazione_ordini::print_doc(const TRectype & doc)
{
const TTipo_documento tipo(doc.get(DOC_TIPODOC));
TFilename rep; tipo.main_print_profile(rep);
TFilename rep; tipo.main_print_profile(rep, 0);
rep.ext("rep");
TString commandline;
@ -844,7 +844,7 @@ void TCreazione_ordini::generate_orders()
{
const TTipo_documento& tipo = d->tipo();
TFilename rep;
tipo.main_print_profile(rep);
tipo.main_print_profile(rep, 0);
rep.ext("rep");
if (rep.custom_path()) // Esiste il nuovo report :-)