Corretto numero riga distinta
git-svn-id: svn://10.65.10.50/trunk@4482 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3b319547c8
commit
ddb6256d91
@ -37,7 +37,7 @@ void TEffetto::put_key(TRectype& rec, long numeff) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// setta i campi per la quarta chiave (tipodist+ndist+nrigadist)
|
// 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");
|
CHECK(tipodist == 'I' || tipodist == 'S' || tipodist == 'B' || tipodist == 0, "Tipo distinta");
|
||||||
CHECKD(ndist >= 0, "Numero distinta non valido ", ndist);
|
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
|
// 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);
|
f.setkey(4);
|
||||||
TRectype rec(LF_EFFETTI);
|
TRectype rec(LF_EFFETTI);
|
||||||
|
@ -60,7 +60,7 @@ public:
|
|||||||
// legge il record passato, con chiave 1
|
// legge il record passato, con chiave 1
|
||||||
int read(TLocalisamfile& f, const TRectype& rec, word lockop = _nolock);
|
int read(TLocalisamfile& f, const TRectype& rec, word lockop = _nolock);
|
||||||
// legge il record passato, con chiave 4
|
// 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
|
// scrive l'effetto, sempre usando la chiave 1
|
||||||
int write(TLocalisamfile& f, bool force = FALSE);
|
int write(TLocalisamfile& f, bool force = FALSE);
|
||||||
// riscrive l'effetto
|
// riscrive l'effetto
|
||||||
@ -78,11 +78,11 @@ public:
|
|||||||
// restituisce il numero della distinta a cui appartiene l'effetto estraendolo dal record
|
// restituisce il numero della distinta a cui appartiene l'effetto estraendolo dal record
|
||||||
long ndist() const { return get_long(EFF_NDIST); }
|
long ndist() const { return get_long(EFF_NDIST); }
|
||||||
// restituisce il numero della riga distinta a cui appartiene l'effetto estraendolo dal record
|
// 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
|
// restituisce l'importo dell'effetto
|
||||||
real importo() const { return get_real(EFF_IMPORTO); }
|
real importo() const { return get_real(EFF_IMPORTO); }
|
||||||
// setta i campi per la quarta chiave del file
|
// 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
|
// setta i campi per la prima chiave del file
|
||||||
void put_key(TRectype& rec,long numeff) const;
|
void put_key(TRectype& rec,long numeff) const;
|
||||||
// restituisce true se l'effetto si riferisce ad una sola fattura
|
// restituisce true se l'effetto si riferisce ad una sola fattura
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
31
|
31
|
||||||
0
|
0
|
||||||
$effetti|0|0|157|34|Effetti|NEFF||
|
$effetti|0|0|154|34|Effetti|NEFF||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user