From 1b4cfe220b16a9614ad08479ce6ac99d649d37a6 Mon Sep 17 00:00:00 2001 From: cris Date: Mon, 23 Jun 2003 10:33:34 +0000 Subject: [PATCH] Patch level : at Files correlati : at7.exe Ricompilazione Demo : [ ] Commento : sistemato stampa tessere complessive (aggiorna solo se richiesto) git-svn-id: svn://10.65.10.50/trunk@11270 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- at/at7100.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/at/at7100.cpp b/at/at7100.cpp index 64ba3df2d..2e45d1aa7 100755 --- a/at/at7100.cpp +++ b/at/at7100.cpp @@ -247,9 +247,9 @@ bool TStampaTessere::preprocess_page(int file, int counter) _contatore++; _totfinestampa++; } + const int totdon = sogg.get_int(SOG_TOTDON); if (_tipostampa == tessere) { - const int totdon = sogg.get_int(SOG_TOTDON); const TDate dataultima = sogg.get(SOG_DATAULTDON); _riepilogodon = ""; if (totdon != 0) @@ -259,17 +259,14 @@ bool TStampaTessere::preprocess_page(int file, int counter) _riepilogodon << " n."; _riepilogodon << totdon; } - if (_aggiorna) - { - sogg.put(SOG_T_STAMPATA,TRUE); - TString16 catdon = sogg.get(SOG_CATDON); - if ((totdon >= _numdon2) && (catdon == _catini2) && _sttess2) - sogg.put(SOG_CATDON, _catfin2); - sogg.rewrite(); - } } if (_aggiorna) { + sogg.put(SOG_T_STAMPATA,TRUE); + TString16 catdon = sogg.get(SOG_CATDON); + if ((totdon >= _numdon2) && (catdon == _catini2) && _sttess2) + sogg.put(SOG_CATDON, _catfin2); + sogg.rewrite(); TLocalisamfile atropera(LF_ATROPERA); atropera.zero(); atropera.put(ROP_PROGOPE, _progope);