From c2724d13bde13171b6805c61ed0a6ce9c04ff605 Mon Sep 17 00:00:00 2001 From: cris Date: Fri, 12 Feb 1999 13:57:51 +0000 Subject: [PATCH] Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : Configura_stampante per etichette git-svn-id: svn://10.65.10.50/trunk@7782 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- at/at4100.cpp | 5 ++++- at/at4200.cpp | 11 ++++++++--- at/at4300.cpp | 15 +++++++++------ at/at4400.cpp | 5 ++++- at/at4700.cpp | 11 +++++++---- at/at4800.cpp | 9 +++++---- 6 files changed, 37 insertions(+), 19 deletions(-) diff --git a/at/at4100.cpp b/at/at4100.cpp index 999a8b05f..447c9d2a5 100755 --- a/at/at4100.cpp +++ b/at/at4100.cpp @@ -11,6 +11,7 @@ #include "at4100a.h" #include "at4100b.h" #include "at4100c.h" +#include "atlib.h" #define ALIAS_CTD 700 // categoria donatori #define ALIAS_CTN1 701 // categoria non donatori 1 @@ -557,6 +558,8 @@ void TStampaScadenze::dati_sezione(const TString16 codsez, const TString16 codso bool TStampaScadenze::set_print(int m) { + TPrinter& p = printer(); + p.read_configuration(); _tipostampa = undefined; KEY tasto; tasto = _msk->run(); @@ -572,7 +575,7 @@ bool TStampaScadenze::set_print(int m) _tipostampa=personale; break; case F_ETICHETTE: - _tipostampa = etichette; + _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined; break; case F_CARTOLINE: _tipostampa = dati_cartoline(); diff --git a/at/at4200.cpp b/at/at4200.cpp index 2dffbc61b..254068c3a 100755 --- a/at/at4200.cpp +++ b/at/at4200.cpp @@ -8,6 +8,7 @@ #include "at4.h" #include "at4200a.h" +#include "atlib.h" #define ALIAS_LCP 100 #define ALIAS_TCS 200 @@ -276,19 +277,23 @@ void TStampaUrgenze::header_sezione(const TString16 codsez, const TString16 cods bool TStampaUrgenze::set_print(int) { + TPrinter& p = printer(); + p.read_configuration(); _tipostampa = undefined; KEY tasto; tasto = _msk->run(); switch (tasto) { case F_ELENCO: + { _tipostampa = elenco; _codsez = "**"; _codsot = "**"; - break; + } + break; case F_ETICHETTE: - _tipostampa = etichette; - break; + _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined; + break; } if (_tipostampa != undefined) { diff --git a/at/at4300.cpp b/at/at4300.cpp index beff123f6..4fc15a7ab 100755 --- a/at/at4300.cpp +++ b/at/at4300.cpp @@ -10,6 +10,7 @@ #include "at4300a.h" #include "at4100b.h" #include "at4100c.h" +#include "atlib.h" #define ALIAS_TABLCP 100 // alias tabella località postali #define ALIAS_TABTCS 200 // alias tabella tipi/esiti controlli sanitari @@ -385,6 +386,8 @@ void TStampaConvocazioni::dati_sezione(const TString16 codsez, const TString16 c bool TStampaConvocazioni::set_print(int) { + TPrinter& p = printer(); + p.read_configuration(); _tipostampa = undefined; KEY tasto; tasto = _msk->run(); @@ -392,16 +395,16 @@ bool TStampaConvocazioni::set_print(int) { case F_ELENCOCON: _tipostampa = elencocon; - break; + break; case F_ELENCORIT: _tipostampa = elencorit; - break; - case F_ETICHETTE: - _tipostampa = etichette; - break; + break; + case F_ETICHETTE: + _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined; + break; case F_CARTOLINE: _tipostampa = dati_cartoline(); - break; + break; } if (_tipostampa != undefined) { diff --git a/at/at4400.cpp b/at/at4400.cpp index b03f63c46..a96e159be 100755 --- a/at/at4400.cpp +++ b/at/at4400.cpp @@ -14,6 +14,7 @@ #include "at4400a.h" #include "at4100b.h" #include "at4100c.h" +#include "atlib.h" #define ALIAS_LDN 400 #define ALIAS_LCPDOM 100 // localita' postale di domicilio @@ -368,6 +369,8 @@ void TConvocazioniPerPunto::dati_sezione(const TString16 codsez, const TString16 bool TConvocazioniPerPunto::set_print(int m) { + TPrinter& p = printer(); + p.read_configuration(); _tipostampa = undefined; KEY tasto = F_AZZERA; while (tasto == F_AZZERA) @@ -385,7 +388,7 @@ bool TConvocazioniPerPunto::set_print(int m) _tipostampa = completo; break; case F_ETICHETTE: - _tipostampa = etichette; + _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined; break; case F_CARTOLINE: //_tipostampa = dati_cartoline(); diff --git a/at/at4700.cpp b/at/at4700.cpp index 32376980c..4cf5050af 100755 --- a/at/at4700.cpp +++ b/at/at4700.cpp @@ -13,10 +13,9 @@ #include "at4.h" #include "at4100b.h" #include "at4100c.h" - #include "at4700a.h" - #include "at4500.h" +#include "atlib.h" #define ALIAS_CTD 700 // categoria donatori #define ALIAS_CTN1 701 // categoria non donatori 1 @@ -174,6 +173,8 @@ void TStampeSingole::add_rows_soggetti(TSheet_field& s, int count, int start) void TStampeSingole::filtra_codici() { + for (_sogtmp->first(); !_sogtmp->eof(); _sogtmp->next()) + _sogtmp->remove(); TSheet_field& s = (TSheet_field&)_msk->field(F_SOGGETTI); for (int r=0; r < s.items(); r++) { @@ -302,6 +303,8 @@ print_action TStampeSingole::postprocess_print(int file, int counter) bool TStampeSingole::set_print(int m) { + TPrinter& p = printer(); + p.read_configuration(); TSheet_field& s = (TSheet_field&)_msk->field(F_SOGGETTI); s.destroy(); s.force_update(); @@ -321,8 +324,8 @@ bool TStampeSingole::set_print(int m) printer().formlen(_lenpage/_schxpag); break; case F_ETICHETTE: - _tipostampa=etichette; - break; + _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined; + break; case F_DONAZIONI: _tipostampa=donazioni; break; diff --git a/at/at4800.cpp b/at/at4800.cpp index cad57f0e9..5053e874b 100755 --- a/at/at4800.cpp +++ b/at/at4800.cpp @@ -13,10 +13,9 @@ #include "at4.h" #include "at4100b.h" #include "at4100c.h" - #include "at4800a.h" - #include "at4500.h" +#include "atlib.h" #define ALIAS_CTD 700 // categoria donatori #define ALIAS_CTN1 701 // categoria non donatori 1 @@ -266,6 +265,8 @@ bool TStampePerCodice::preprocess_page(int file, int counter) bool TStampePerCodice::set_print(int m) { + TPrinter& p = printer(); + p.read_configuration(); _tipostampa = undefined; KEY tasto; tasto = _msk->run(); @@ -280,8 +281,8 @@ bool TStampePerCodice::set_print(int m) printer().formlen(_lenpage/_schxpag); break; case F_ETICHETTE: - _tipostampa=etichette; - break; + _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined; + break; case F_DONAZIONI: _tipostampa=donazioni; break;