Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : Stampa convocazioni su punto di raccolta: terminata la stampa delle cartoline di Bologna!!!! git-svn-id: svn://10.65.10.50/trunk@7266 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a5d70c3df0
commit
beb152a392
@ -14,8 +14,11 @@
|
|||||||
#include "at4100b.h"
|
#include "at4100b.h"
|
||||||
#include "at4100c.h"
|
#include "at4100c.h"
|
||||||
|
|
||||||
#define ALIAS_LCP 100
|
|
||||||
#define ALIAS_LDN 400
|
#define ALIAS_LDN 400
|
||||||
|
#define ALIAS_LCPDOM 100 // localita' postale di domicilio
|
||||||
|
#define ALIAS_COMDOM 501 // comune di domicilio
|
||||||
|
#define ALIAS_COMLDN 503 // comune per punti di prelievo
|
||||||
|
#define ALIAS_LCPLDN 102 // localita' postale per punti di prelievo
|
||||||
|
|
||||||
enum ts { undefined = 0, elenco = 1, etichette = 2, cartoline = 3 };
|
enum ts { undefined = 0, elenco = 1, etichette = 2, cartoline = 3 };
|
||||||
|
|
||||||
@ -150,6 +153,7 @@ void TConvocazioniPerPunto::set_page(int file, int cnt)
|
|||||||
case cartoline:
|
case cartoline:
|
||||||
{
|
{
|
||||||
TPrint_section& corpo = _form_car->get_body();
|
TPrint_section& corpo = _form_car->get_body();
|
||||||
|
/*
|
||||||
const TString16 codsez = current_cursor()->curr().get(SOG_CODSEZ);
|
const TString16 codsez = current_cursor()->curr().get(SOG_CODSEZ);
|
||||||
const TString16 codsot = current_cursor()->curr().get(SOG_CODSOT);
|
const TString16 codsot = current_cursor()->curr().get(SOG_CODSOT);
|
||||||
if ((_codsez!=codsez)||(_codsot!=codsot))
|
if ((_codsez!=codsez)||(_codsot!=codsot))
|
||||||
@ -185,6 +189,7 @@ void TConvocazioniPerPunto::set_page(int file, int cnt)
|
|||||||
TForm_item& note = corpo.find_field(CAR_NOTE);
|
TForm_item& note = corpo.find_field(CAR_NOTE);
|
||||||
note.set(_note);
|
note.set(_note);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
corpo.update();
|
corpo.update();
|
||||||
for (word i = 0; i < corpo.height(); i++)
|
for (word i = 0; i < corpo.height(); i++)
|
||||||
{
|
{
|
||||||
@ -335,7 +340,8 @@ bool TConvocazioniPerPunto::set_print(int m)
|
|||||||
_tipostampa = etichette;
|
_tipostampa = etichette;
|
||||||
break;
|
break;
|
||||||
case F_CARTOLINE:
|
case F_CARTOLINE:
|
||||||
_tipostampa = dati_cartoline();
|
//_tipostampa = dati_cartoline();
|
||||||
|
_tipostampa = cartoline;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (_tipostampa != undefined)
|
if (_tipostampa != undefined)
|
||||||
@ -469,9 +475,12 @@ bool TConvocazioniPerPunto::user_create()
|
|||||||
_rel = new TRelation(LF_RCONVOC);
|
_rel = new TRelation(LF_RCONVOC);
|
||||||
_rel->add(LF_SOGGETTI, "CODICE==CODICE");
|
_rel->add(LF_SOGGETTI, "CODICE==CODICE");
|
||||||
_rel->add(LF_CONVOC, "NUMERO==NUMERO");
|
_rel->add(LF_CONVOC, "NUMERO==NUMERO");
|
||||||
_rel->add("LCP", "CODTAB==DOM_CODLOC",1,LF_SOGGETTI,ALIAS_LCP);
|
_rel->add("LCP", "CODTAB==DOM_CODLOC",1,LF_SOGGETTI,ALIAS_LCPDOM);
|
||||||
_rel->add(LF_COMUNI, "COM==DOM_CODCOM",1,LF_SOGGETTI);
|
_rel->add("LDN", "CODTAB==PUNTO",1,LF_CONVOC,ALIAS_LDN);
|
||||||
|
_rel->add(LF_COMUNI, "COM==DOM_CODCOM",1,LF_SOGGETTI, ALIAS_COMDOM);
|
||||||
_rel->add(LF_SEZIONI, "CODSEZ==CODSEZ|CODSOT==CODSOT",1,LF_SOGGETTI);
|
_rel->add(LF_SEZIONI, "CODSEZ==CODSEZ|CODSOT==CODSOT",1,LF_SOGGETTI);
|
||||||
|
_rel->add("LCP", "CODTAB==S7",1,-ALIAS_LDN,ALIAS_LCPLDN);
|
||||||
|
_rel->add(LF_COMUNI, "COM==S6",1,-ALIAS_LDN, ALIAS_COMLDN);
|
||||||
_msk = new TMask("at4400a");
|
_msk = new TMask("at4400a");
|
||||||
TConfig config(CONFIG_STUDIO);
|
TConfig config(CONFIG_STUDIO);
|
||||||
TString16 etformato = config.get("EtFormato");
|
TString16 etformato = config.get("EtFormato");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user