Stampa convocazioni per sezione: corretto conteggio dei convocati
Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@6182 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
359a923b62
commit
90d67fd15b
@ -54,6 +54,7 @@ class TStampaConvocazioni : public TPrintapp
|
||||
int _numconv;
|
||||
bool _definitiva;
|
||||
int _etlarghezza, _etcolonne;
|
||||
int _contatore;
|
||||
|
||||
protected:
|
||||
virtual bool user_create();
|
||||
@ -274,7 +275,7 @@ bool TStampaConvocazioni::preprocess_page(int file, int counter)
|
||||
// salto pagina se cambio sezione
|
||||
if ((_codsez!=codsez)||(_codsot!=codsot))
|
||||
{
|
||||
if (_codsez != "**")
|
||||
if ((_codsez != "**") && (_contatore > 0))
|
||||
printer().formfeed();
|
||||
_codsez = codsez;
|
||||
_codsot = codsot;
|
||||
@ -305,13 +306,19 @@ bool TStampaConvocazioni::preprocess_page(int file, int counter)
|
||||
if (_tipostampa==cartoline || _tipostampa==etichette || _tipostampa==elencocon)
|
||||
return FALSE;
|
||||
else
|
||||
{
|
||||
_contatore++;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
else
|
||||
if (_tipostampa==elencorit)
|
||||
return FALSE;
|
||||
else
|
||||
{
|
||||
_contatore++;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
void TStampaConvocazioni::filtra_sezioni()
|
||||
@ -379,6 +386,7 @@ bool TStampaConvocazioni::set_print(int)
|
||||
{
|
||||
_codsez = "**";
|
||||
_codsot = "**";
|
||||
_contatore = 0;
|
||||
reset_files();
|
||||
add_file(LF_SOGGETTI);
|
||||
_dataconv = _msk->get(F_DATACONV);
|
||||
|
Loading…
x
Reference in New Issue
Block a user