Correzioni ad invio solleciti via mail
git-svn-id: svn://10.65.10.50/branches/R_10_00@22872 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ad0a49b16a
commit
72d15b6093
@ -69,7 +69,8 @@ bool TStampaSol_application::print_selected()
|
||||
const long print_all = !s.one_checked(); // se non ho selezionato nulla allora li stampo tutti
|
||||
long analfabeti = 0; // persone non stampate in quanto aventi lingua errata
|
||||
|
||||
printer().open();
|
||||
TPrinter& pr = printer();
|
||||
pr.open();
|
||||
|
||||
const long items = c.items();
|
||||
for (long i=0; i < items; i++)
|
||||
@ -82,16 +83,16 @@ bool TStampaSol_application::print_selected()
|
||||
analfabeti++;
|
||||
}
|
||||
|
||||
if (printer().frozen())
|
||||
if (pr.frozen())
|
||||
break;
|
||||
}
|
||||
printer().close();
|
||||
pr.close();
|
||||
|
||||
if (analfabeti > 0)
|
||||
warning_box(FR("%ld clienti non sono stati stampati in quanto "
|
||||
"il codice lingua non corrispondeva al profilo di stampa"), analfabeti);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TStampaSol_application::ci_sono_scadenze_aperte(const TPartita& game, const TDate& dal, const TDate& al) const
|
||||
@ -287,9 +288,10 @@ bool TStampaSol_application::get_next_mail(TToken_string& to, TToken_string& cc,
|
||||
|
||||
subj << TR("Sollecito ") << prefix().firm().ragione_sociale();
|
||||
TString ragsoc = clifo.get(CLI_RAGSOC); ragsoc.strip_double_spaces();
|
||||
text << "Spett. " << ragsoc << '\n';
|
||||
text << TR("Si sollecita il rispetto delle scadenze aperte al ") << oggi << TR(" riepilogate nel file ") << attach
|
||||
<< "\n" << prefix().firm().ragione_sociale();
|
||||
text << "Spett. " << ragsoc << '\n'
|
||||
<< TR("Si ricorda il rispetto delle scadenze aperte al ") << oggi << '\n'
|
||||
<< TR(" riepilogate nel file allegato ") << attach << '\n'
|
||||
<< prefix().firm().ragione_sociale();
|
||||
if (to.full())
|
||||
ui &= ~0x1; // No user interface
|
||||
ui |= 0x2; // Query receipt
|
||||
@ -341,6 +343,8 @@ bool TStampaSol_application::mail_selected()
|
||||
{
|
||||
const TDate oggi(TODAY);
|
||||
TProgind pi(items);
|
||||
|
||||
TPrinter& pr = printer();
|
||||
for (long i=0; i < items; i++)
|
||||
{
|
||||
if (!pi.addstatus(1))
|
||||
@ -349,10 +353,10 @@ bool TStampaSol_application::mail_selected()
|
||||
{
|
||||
fc = i; // muove il cursore alla posizione corrente
|
||||
|
||||
printer().set_export_file("soll.pdf", true);
|
||||
printer().open();
|
||||
pr.set_export_file("soll.pdf", true);
|
||||
pr.open();
|
||||
const int ret = print_sol();
|
||||
printer().close();
|
||||
pr.close();
|
||||
|
||||
if (ret > 0)
|
||||
{
|
||||
@ -365,7 +369,8 @@ bool TStampaSol_application::mail_selected()
|
||||
if (get_next_mail(m->_to, m->_cc, m->_ccn, m->_subj, m->_text, m->_attach, m->_ui))
|
||||
{
|
||||
const TFilename fn = m->_attach;
|
||||
done = printer().print_pdf(printer().get_txt(), fn);
|
||||
xvt_vobj_destroy(883);
|
||||
done = pr.print_pdf(printer().get_txt(), fn);
|
||||
if (done)
|
||||
{
|
||||
msg << TR("invio ") << fn.name() << TR(" a ") << m->_to;
|
||||
@ -389,7 +394,7 @@ bool TStampaSol_application::mail_selected()
|
||||
}
|
||||
}
|
||||
}
|
||||
printer().read_configuration();
|
||||
pr.read_configuration();
|
||||
}
|
||||
|
||||
log.preview();
|
||||
|
Loading…
x
Reference in New Issue
Block a user