Aggiunto il filtro per documenti abilitati alle statistiche

git-svn-id: svn://10.65.10.50/trunk@5775 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
augusto 1997-12-19 09:47:59 +00:00
parent c1178c4069
commit b9900da2e9

View File

@ -282,7 +282,9 @@ protected:
public:
void open_files(int logicnum, ...);
// stampa un documento (stampa sintetica)
bool fill_doc(TRectype& tab, const TDocumento& doc);
// stampa una riga documento (stampa dettagliata)
bool fill_rdoc(TRectype& tab, const TRiga_documento& rdoc);
void update_totriga(const TRectype& tab);
void fill_totriga(TRectype& tab);
@ -366,12 +368,14 @@ bool TStampa_schede::fill_doc(TRectype& tab, const TDocumento& doc)
{
if (stampa_dettagliata())
return FALSE;
const TTipo_documento& tipo = doc.tipo();
if (!tipo.statistiche()) // documento non abilitato per le statistiche
return FALSE;
fill_key(tab, doc);
TString descr(80);
const TTipo_documento& tipo = doc.tipo();
const TCodice_numerazione& num = doc.codice_numerazione();
descr << tipo.descrizione() << ' ';
@ -416,6 +420,9 @@ bool TStampa_schede::fill_rdoc(TRectype& tab, const TRiga_documento& rdoc)
}
const TDocumento& doc = rdoc.doc();
const TTipo_documento& tipo = doc.tipo();
if (!tipo.statistiche()) // documento non abilitato per le statistiche
return FALSE;
fill_key(tab, rdoc);
@ -550,8 +557,7 @@ bool TStampa_schede::stampa_clifo(TCursor& cur, const TString& ragsoc)
cur.file().set_curr(new TDocumento);
TDocumento& doc = (TDocumento&)cur.file().curr();
TIsamtempfile* tab = new TIsamtempfile(LF_TAB, "svschede", TRUE);
tab->set_autodel(TRUE);
TIsamtempfile* tab = new TIsamtempfile(LF_TAB, "svschede", TRUE,TRUE);
tab->setkey(2);
_form->relation()->replace(tab);
TRectype& curtab = tab->curr();