Convocazioni per sezione: salto pagina solo se ho stampato qualcosa
per la sezione Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@6274 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
fc0690632d
commit
85f420bfaf
@ -55,6 +55,7 @@ class TStampaConvocazioni : public TPrintapp
|
|||||||
bool _definitiva;
|
bool _definitiva;
|
||||||
int _etlarghezza, _etcolonne;
|
int _etlarghezza, _etcolonne;
|
||||||
int _contatore;
|
int _contatore;
|
||||||
|
bool _provastampa;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool user_create();
|
virtual bool user_create();
|
||||||
@ -62,6 +63,7 @@ protected:
|
|||||||
virtual bool set_print(int m);
|
virtual bool set_print(int m);
|
||||||
virtual void set_page(int file, int cnt);
|
virtual void set_page(int file, int cnt);
|
||||||
virtual bool preprocess_page (int file, int counter);
|
virtual bool preprocess_page (int file, int counter);
|
||||||
|
//virtual print_action postprocess_page (int file, int counter);
|
||||||
ts dati_cartoline();
|
ts dati_cartoline();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -261,6 +263,24 @@ bool TStampaConvocazioni::filter_func_conv (const TRelation* rel)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
print_action TStampaConvocazioni::postprocess_page(int file, int counter)
|
||||||
|
{
|
||||||
|
if (_tipostampa==cartoline && _provastampa)
|
||||||
|
{
|
||||||
|
if (yesno_box("Verificare la posizione di stampa.\nSi puo' procedere con la stampa?"))
|
||||||
|
{
|
||||||
|
_provastampa = FALSE;
|
||||||
|
return NEXT_PAGE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return REPEAT_PAGE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return NEXT_PAGE;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
bool TStampaConvocazioni::preprocess_page(int file, int counter)
|
bool TStampaConvocazioni::preprocess_page(int file, int counter)
|
||||||
{
|
{
|
||||||
if (_tipostampa==elencocon || _tipostampa==elencorit)
|
if (_tipostampa==elencocon || _tipostampa==elencorit)
|
||||||
@ -277,6 +297,7 @@ bool TStampaConvocazioni::preprocess_page(int file, int counter)
|
|||||||
{
|
{
|
||||||
if ((_codsez != "**") && (_contatore > 0))
|
if ((_codsez != "**") && (_contatore > 0))
|
||||||
printer().formfeed();
|
printer().formfeed();
|
||||||
|
_contatore = 0;
|
||||||
_codsez = codsez;
|
_codsez = codsez;
|
||||||
_codsot = codsot;
|
_codsot = codsot;
|
||||||
header_sezione(codsez, codsot);
|
header_sezione(codsez, codsot);
|
||||||
@ -387,6 +408,7 @@ bool TStampaConvocazioni::set_print(int)
|
|||||||
_codsez = "**";
|
_codsez = "**";
|
||||||
_codsot = "**";
|
_codsot = "**";
|
||||||
_contatore = 0;
|
_contatore = 0;
|
||||||
|
_provastampa = TRUE;
|
||||||
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