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
This commit is contained in:
cris 2003-06-23 10:33:34 +00:00
parent 6535e4db78
commit 1b4cfe220b

View File

@ -247,9 +247,9 @@ bool TStampaTessere::preprocess_page(int file, int counter)
_contatore++; _contatore++;
_totfinestampa++; _totfinestampa++;
} }
const int totdon = sogg.get_int(SOG_TOTDON);
if (_tipostampa == tessere) if (_tipostampa == tessere)
{ {
const int totdon = sogg.get_int(SOG_TOTDON);
const TDate dataultima = sogg.get(SOG_DATAULTDON); const TDate dataultima = sogg.get(SOG_DATAULTDON);
_riepilogodon = ""; _riepilogodon = "";
if (totdon != 0) if (totdon != 0)
@ -259,17 +259,14 @@ bool TStampaTessere::preprocess_page(int file, int counter)
_riepilogodon << " n."; _riepilogodon << " n.";
_riepilogodon << totdon; _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) 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); TLocalisamfile atropera(LF_ATROPERA);
atropera.zero(); atropera.zero();
atropera.put(ROP_PROGOPE, _progope); atropera.put(ROP_PROGOPE, _progope);