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
This commit is contained in:
parent
d1b46c3514
commit
c2724d13bd
@ -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();
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user