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;
|
int _numconv;
|
||||||
bool _definitiva;
|
bool _definitiva;
|
||||||
int _etlarghezza, _etcolonne;
|
int _etlarghezza, _etcolonne;
|
||||||
|
int _contatore;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool user_create();
|
virtual bool user_create();
|
||||||
@ -274,7 +275,7 @@ bool TStampaConvocazioni::preprocess_page(int file, int counter)
|
|||||||
// salto pagina se cambio sezione
|
// salto pagina se cambio sezione
|
||||||
if ((_codsez!=codsez)||(_codsot!=codsot))
|
if ((_codsez!=codsez)||(_codsot!=codsot))
|
||||||
{
|
{
|
||||||
if (_codsez != "**")
|
if ((_codsez != "**") && (_contatore > 0))
|
||||||
printer().formfeed();
|
printer().formfeed();
|
||||||
_codsez = codsez;
|
_codsez = codsez;
|
||||||
_codsot = codsot;
|
_codsot = codsot;
|
||||||
@ -305,13 +306,19 @@ bool TStampaConvocazioni::preprocess_page(int file, int counter)
|
|||||||
if (_tipostampa==cartoline || _tipostampa==etichette || _tipostampa==elencocon)
|
if (_tipostampa==cartoline || _tipostampa==etichette || _tipostampa==elencocon)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
_contatore++;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (_tipostampa==elencorit)
|
if (_tipostampa==elencorit)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
_contatore++;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TStampaConvocazioni::filtra_sezioni()
|
void TStampaConvocazioni::filtra_sezioni()
|
||||||
@ -379,6 +386,7 @@ bool TStampaConvocazioni::set_print(int)
|
|||||||
{
|
{
|
||||||
_codsez = "**";
|
_codsez = "**";
|
||||||
_codsot = "**";
|
_codsot = "**";
|
||||||
|
_contatore = 0;
|
||||||
reset_files();
|
reset_files();
|
||||||
add_file(LF_SOGGETTI);
|
add_file(LF_SOGGETTI);
|
||||||
_dataconv = _msk->get(F_DATACONV);
|
_dataconv = _msk->get(F_DATACONV);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user