Corretta la stampa del footer in stampa solleciti (footer e totali).
Aggiunto membro _stampa_esp per settare la colonna dell'esposizione. git-svn-id: svn://10.65.10.50/trunk@2431 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0db54ac328
commit
a8024f402c
@ -69,8 +69,8 @@ bool TStampaSol_application::print_selected()
|
||||
const long items = c.items();
|
||||
for (long i=0; i < items; i++) if (print_all || s.checked(i))
|
||||
{
|
||||
// if (one_printed)
|
||||
// printer().formfeed();
|
||||
if (one_printed)
|
||||
printer().formfeed();
|
||||
|
||||
fc= i; // muove il cursore alla posizione corrente
|
||||
|
||||
@ -82,8 +82,8 @@ bool TStampaSol_application::print_selected()
|
||||
analfabeti++;
|
||||
|
||||
}
|
||||
// if (one_printed)
|
||||
// printer().formfeed();
|
||||
if (one_printed)
|
||||
printer().formfeed();
|
||||
printer().close();
|
||||
|
||||
if (analfabeti > 0) {
|
||||
@ -157,7 +157,7 @@ int TStampaSol_application::print_sol()
|
||||
}
|
||||
|
||||
if (one_printed)
|
||||
printer().formfeed();
|
||||
f.ultima_pagina();
|
||||
|
||||
return one_printed ? 1 : 0;
|
||||
}
|
||||
|
@ -892,6 +892,8 @@ TESSL_form::TESSL_form(const TESSL_mask& m, bool gesval, short id_datalim, short
|
||||
_lingua = m.get_prof_lang();
|
||||
_who = m.get_who();
|
||||
|
||||
_stampa_esp = m.get_bool(F_STAMPESP);
|
||||
|
||||
TCursor_sheet& cs = m.cur_sheet();
|
||||
_cursore = cs.cursor();
|
||||
|
||||
@ -915,6 +917,7 @@ TESSL_form::TESSL_form(const TESSL_mask& m, bool gesval, short id_datalim, short
|
||||
TToken_string f(flags.prompt());
|
||||
_in_valuta = gesval && f.get_char(0) == 'X'; // Il profilo e' in valuta se c'e' il flag di valuta
|
||||
_fincatura = f.get_int(1);
|
||||
section('B').find_field(PEC_ESPOSTO).show(_stampa_esp); // Show it regardless its old state
|
||||
genera_intestazioni(odd_page, head.height() - 1);
|
||||
init_header(m); // Set fixed text
|
||||
|
||||
|
@ -124,6 +124,7 @@ class TESSL_form : public TForm
|
||||
TDate _dlo, _dls, _dir;
|
||||
int _giorni_rischio;
|
||||
bool _in_valuta;
|
||||
bool _stampa_esp;
|
||||
int _fincatura; // 0 = nessuna, 1 = testo, 2 = grafica
|
||||
word _num_rip; // numero di righe usate per i riporti
|
||||
word _total_rows; // numero di righe usate per i totali
|
||||
|
Loading…
x
Reference in New Issue
Block a user