Corretto numero riga distinta

git-svn-id: svn://10.65.10.50/trunk@4482 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1997-06-02 09:16:17 +00:00
parent 3b319547c8
commit ddb6256d91
3 changed files with 119 additions and 119 deletions

View File

@ -37,7 +37,7 @@ void TEffetto::put_key(TRectype& rec, long numeff) const
}
// setta i campi per la quarta chiave (tipodist+ndist+nrigadist)
void TEffetto::put_key(TRectype& rec,char tipodist, long ndist, long nrigadist)
void TEffetto::put_key(TRectype& rec,char tipodist, long ndist, int nrigadist)
{
CHECK(tipodist == 'I' || tipodist == 'S' || tipodist == 'B' || tipodist == 0, "Tipo distinta");
CHECKD(ndist >= 0, "Numero distinta non valido ", ndist);
@ -136,7 +136,7 @@ int TEffetto::read(TLocalisamfile& f, const TRectype& rec, word lockop)
}
// legge l'effetto usando la chiave 4
int TEffetto::read(TLocalisamfile& f, char tipodist, long ndist, long nrigadist, word lockop)
int TEffetto::read(TLocalisamfile& f, char tipodist, long ndist, int nrigadist)
{
f.setkey(4);
TRectype rec(LF_EFFETTI);

View File

@ -60,7 +60,7 @@ public:
// legge il record passato, con chiave 1
int read(TLocalisamfile& f, const TRectype& rec, word lockop = _nolock);
// legge il record passato, con chiave 4
int read(TLocalisamfile& f, char tipodist, long ndist, long nrigadist, word lockop = _nolock);
int read(TLocalisamfile& f, char tipodist, long ndist, int nrigadist);
// scrive l'effetto, sempre usando la chiave 1
int write(TLocalisamfile& f, bool force = FALSE);
// riscrive l'effetto
@ -78,11 +78,11 @@ public:
// restituisce il numero della distinta a cui appartiene l'effetto estraendolo dal record
long ndist() const { return get_long(EFF_NDIST); }
// restituisce il numero della riga distinta a cui appartiene l'effetto estraendolo dal record
long nrgdist() const { return get_long(EFF_NRIGADIST); }
int nrgdist() const { return get_int(EFF_NRIGADIST); }
// restituisce l'importo dell'effetto
real importo() const { return get_real(EFF_IMPORTO); }
// setta i campi per la quarta chiave del file
void put_key(TRectype& rec,char tipodist, long ndist, long nrigadist = 0);
void put_key(TRectype& rec,char tipodist, long ndist, int nrigadist = 0);
// setta i campi per la prima chiave del file
void put_key(TRectype& rec,long numeff) const;
// restituisce true se l'effetto si riferisce ad una sola fattura

View File

@ -1,3 +1,3 @@
31
0
$effetti|0|0|157|34|Effetti|NEFF||
$effetti|0|0|154|34|Effetti|NEFF||