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; 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; _p = NULL;
_len = 0; _len = 0;
@ -268,9 +268,9 @@ void TRic_recfield::set(int from, int to)
else else
{ {
CHECK(from >= 0, "Invalid Start"); CHECK(from >= 0, "Invalid Start");
_p = _rec->string() + rd->Fd[nf].RecOff + from; _p = _rec->string() + rd.Fd[nf].RecOff + from;
_dec = rd->Fd[nf].Dec; _dec = rd.Fd[nf].Dec;
_type = rd->Fd[nf].TypeF; _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 packindex(bool vis, int num, TString& name)
{ {
int err=NOERR; int err = NOERR;
TRecnotype peod; TRecnotype peod;
TTrec r; TTrec r;
TDir d; TDir d;
d.get(num,_nolock, _nordir,_sysdirop); d.get(num,_nolock, _nordir, _sysdirop);
d.get(num,_nolock, (d.is_com()) ? _comdir : _nordir); d.get(num,_nolock, (d.is_com()) ? _comdir : _nordir);
r.get(num); 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); if (err != NOERR) err = get_error(err);
#ifdef DBG #ifdef DBG

View File

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