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 "at4100a.h"
|
||||||
#include "at4100b.h"
|
#include "at4100b.h"
|
||||||
#include "at4100c.h"
|
#include "at4100c.h"
|
||||||
|
#include "atlib.h"
|
||||||
|
|
||||||
#define ALIAS_CTD 700 // categoria donatori
|
#define ALIAS_CTD 700 // categoria donatori
|
||||||
#define ALIAS_CTN1 701 // categoria non donatori 1
|
#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)
|
bool TStampaScadenze::set_print(int m)
|
||||||
{
|
{
|
||||||
|
TPrinter& p = printer();
|
||||||
|
p.read_configuration();
|
||||||
_tipostampa = undefined;
|
_tipostampa = undefined;
|
||||||
KEY tasto;
|
KEY tasto;
|
||||||
tasto = _msk->run();
|
tasto = _msk->run();
|
||||||
@ -572,7 +575,7 @@ bool TStampaScadenze::set_print(int m)
|
|||||||
_tipostampa=personale;
|
_tipostampa=personale;
|
||||||
break;
|
break;
|
||||||
case F_ETICHETTE:
|
case F_ETICHETTE:
|
||||||
_tipostampa = etichette;
|
_tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
|
||||||
break;
|
break;
|
||||||
case F_CARTOLINE:
|
case F_CARTOLINE:
|
||||||
_tipostampa = dati_cartoline();
|
_tipostampa = dati_cartoline();
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include "at4.h"
|
#include "at4.h"
|
||||||
#include "at4200a.h"
|
#include "at4200a.h"
|
||||||
|
#include "atlib.h"
|
||||||
|
|
||||||
#define ALIAS_LCP 100
|
#define ALIAS_LCP 100
|
||||||
#define ALIAS_TCS 200
|
#define ALIAS_TCS 200
|
||||||
@ -276,18 +277,22 @@ void TStampaUrgenze::header_sezione(const TString16 codsez, const TString16 cods
|
|||||||
|
|
||||||
bool TStampaUrgenze::set_print(int)
|
bool TStampaUrgenze::set_print(int)
|
||||||
{
|
{
|
||||||
|
TPrinter& p = printer();
|
||||||
|
p.read_configuration();
|
||||||
_tipostampa = undefined;
|
_tipostampa = undefined;
|
||||||
KEY tasto;
|
KEY tasto;
|
||||||
tasto = _msk->run();
|
tasto = _msk->run();
|
||||||
switch (tasto)
|
switch (tasto)
|
||||||
{
|
{
|
||||||
case F_ELENCO:
|
case F_ELENCO:
|
||||||
|
{
|
||||||
_tipostampa = elenco;
|
_tipostampa = elenco;
|
||||||
_codsez = "**";
|
_codsez = "**";
|
||||||
_codsot = "**";
|
_codsot = "**";
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case F_ETICHETTE:
|
case F_ETICHETTE:
|
||||||
_tipostampa = etichette;
|
_tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (_tipostampa != undefined)
|
if (_tipostampa != undefined)
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include "at4300a.h"
|
#include "at4300a.h"
|
||||||
#include "at4100b.h"
|
#include "at4100b.h"
|
||||||
#include "at4100c.h"
|
#include "at4100c.h"
|
||||||
|
#include "atlib.h"
|
||||||
|
|
||||||
#define ALIAS_TABLCP 100 // alias tabella località postali
|
#define ALIAS_TABLCP 100 // alias tabella località postali
|
||||||
#define ALIAS_TABTCS 200 // alias tabella tipi/esiti controlli sanitari
|
#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)
|
bool TStampaConvocazioni::set_print(int)
|
||||||
{
|
{
|
||||||
|
TPrinter& p = printer();
|
||||||
|
p.read_configuration();
|
||||||
_tipostampa = undefined;
|
_tipostampa = undefined;
|
||||||
KEY tasto;
|
KEY tasto;
|
||||||
tasto = _msk->run();
|
tasto = _msk->run();
|
||||||
@ -397,7 +400,7 @@ bool TStampaConvocazioni::set_print(int)
|
|||||||
_tipostampa = elencorit;
|
_tipostampa = elencorit;
|
||||||
break;
|
break;
|
||||||
case F_ETICHETTE:
|
case F_ETICHETTE:
|
||||||
_tipostampa = etichette;
|
_tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
|
||||||
break;
|
break;
|
||||||
case F_CARTOLINE:
|
case F_CARTOLINE:
|
||||||
_tipostampa = dati_cartoline();
|
_tipostampa = dati_cartoline();
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include "at4400a.h"
|
#include "at4400a.h"
|
||||||
#include "at4100b.h"
|
#include "at4100b.h"
|
||||||
#include "at4100c.h"
|
#include "at4100c.h"
|
||||||
|
#include "atlib.h"
|
||||||
|
|
||||||
#define ALIAS_LDN 400
|
#define ALIAS_LDN 400
|
||||||
#define ALIAS_LCPDOM 100 // localita' postale di domicilio
|
#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)
|
bool TConvocazioniPerPunto::set_print(int m)
|
||||||
{
|
{
|
||||||
|
TPrinter& p = printer();
|
||||||
|
p.read_configuration();
|
||||||
_tipostampa = undefined;
|
_tipostampa = undefined;
|
||||||
KEY tasto = F_AZZERA;
|
KEY tasto = F_AZZERA;
|
||||||
while (tasto == F_AZZERA)
|
while (tasto == F_AZZERA)
|
||||||
@ -385,7 +388,7 @@ bool TConvocazioniPerPunto::set_print(int m)
|
|||||||
_tipostampa = completo;
|
_tipostampa = completo;
|
||||||
break;
|
break;
|
||||||
case F_ETICHETTE:
|
case F_ETICHETTE:
|
||||||
_tipostampa = etichette;
|
_tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
|
||||||
break;
|
break;
|
||||||
case F_CARTOLINE:
|
case F_CARTOLINE:
|
||||||
//_tipostampa = dati_cartoline();
|
//_tipostampa = dati_cartoline();
|
||||||
|
@ -13,10 +13,9 @@
|
|||||||
#include "at4.h"
|
#include "at4.h"
|
||||||
#include "at4100b.h"
|
#include "at4100b.h"
|
||||||
#include "at4100c.h"
|
#include "at4100c.h"
|
||||||
|
|
||||||
#include "at4700a.h"
|
#include "at4700a.h"
|
||||||
|
|
||||||
#include "at4500.h"
|
#include "at4500.h"
|
||||||
|
#include "atlib.h"
|
||||||
|
|
||||||
#define ALIAS_CTD 700 // categoria donatori
|
#define ALIAS_CTD 700 // categoria donatori
|
||||||
#define ALIAS_CTN1 701 // categoria non donatori 1
|
#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()
|
void TStampeSingole::filtra_codici()
|
||||||
{
|
{
|
||||||
|
for (_sogtmp->first(); !_sogtmp->eof(); _sogtmp->next())
|
||||||
|
_sogtmp->remove();
|
||||||
TSheet_field& s = (TSheet_field&)_msk->field(F_SOGGETTI);
|
TSheet_field& s = (TSheet_field&)_msk->field(F_SOGGETTI);
|
||||||
for (int r=0; r < s.items(); r++)
|
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)
|
bool TStampeSingole::set_print(int m)
|
||||||
{
|
{
|
||||||
|
TPrinter& p = printer();
|
||||||
|
p.read_configuration();
|
||||||
TSheet_field& s = (TSheet_field&)_msk->field(F_SOGGETTI);
|
TSheet_field& s = (TSheet_field&)_msk->field(F_SOGGETTI);
|
||||||
s.destroy();
|
s.destroy();
|
||||||
s.force_update();
|
s.force_update();
|
||||||
@ -321,7 +324,7 @@ bool TStampeSingole::set_print(int m)
|
|||||||
printer().formlen(_lenpage/_schxpag);
|
printer().formlen(_lenpage/_schxpag);
|
||||||
break;
|
break;
|
||||||
case F_ETICHETTE:
|
case F_ETICHETTE:
|
||||||
_tipostampa=etichette;
|
_tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
|
||||||
break;
|
break;
|
||||||
case F_DONAZIONI:
|
case F_DONAZIONI:
|
||||||
_tipostampa=donazioni;
|
_tipostampa=donazioni;
|
||||||
|
@ -13,10 +13,9 @@
|
|||||||
#include "at4.h"
|
#include "at4.h"
|
||||||
#include "at4100b.h"
|
#include "at4100b.h"
|
||||||
#include "at4100c.h"
|
#include "at4100c.h"
|
||||||
|
|
||||||
#include "at4800a.h"
|
#include "at4800a.h"
|
||||||
|
|
||||||
#include "at4500.h"
|
#include "at4500.h"
|
||||||
|
#include "atlib.h"
|
||||||
|
|
||||||
#define ALIAS_CTD 700 // categoria donatori
|
#define ALIAS_CTD 700 // categoria donatori
|
||||||
#define ALIAS_CTN1 701 // categoria non donatori 1
|
#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)
|
bool TStampePerCodice::set_print(int m)
|
||||||
{
|
{
|
||||||
|
TPrinter& p = printer();
|
||||||
|
p.read_configuration();
|
||||||
_tipostampa = undefined;
|
_tipostampa = undefined;
|
||||||
KEY tasto;
|
KEY tasto;
|
||||||
tasto = _msk->run();
|
tasto = _msk->run();
|
||||||
@ -280,7 +281,7 @@ bool TStampePerCodice::set_print(int m)
|
|||||||
printer().formlen(_lenpage/_schxpag);
|
printer().formlen(_lenpage/_schxpag);
|
||||||
break;
|
break;
|
||||||
case F_ETICHETTE:
|
case F_ETICHETTE:
|
||||||
_tipostampa=etichette;
|
_tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
|
||||||
break;
|
break;
|
||||||
case F_DONAZIONI:
|
case F_DONAZIONI:
|
||||||
_tipostampa=donazioni;
|
_tipostampa=donazioni;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user