From b9900da2e92bb7c973934c9a3d177995573e00c9 Mon Sep 17 00:00:00 2001 From: augusto Date: Fri, 19 Dec 1997 09:47:59 +0000 Subject: [PATCH] Aggiunto il filtro per documenti abilitati alle statistiche git-svn-id: svn://10.65.10.50/trunk@5775 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- sv/sv1100.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sv/sv1100.cpp b/sv/sv1100.cpp index 149495803..db9a87c03 100755 --- a/sv/sv1100.cpp +++ b/sv/sv1100.cpp @@ -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();