Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : Elenco ben. attribuite: aggiunto totale donazioni git-svn-id: svn://10.65.10.50/trunk@6672 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
77fee17cd3
commit
3c2d20dd48
@ -26,7 +26,7 @@ class TStampaBenemerenze : public TPrintapp
|
||||
int _counter;
|
||||
int _cur;
|
||||
TDate _dataini, _datafin;
|
||||
TString16 _codsez, _codsot;
|
||||
TString16 _codsez, _codsot, _sezini, _sotini, _sezfin, _sotfin;
|
||||
bool _stampa80;
|
||||
TParagraph_string _cognome_nome, _dencom;
|
||||
TString16 _tipoold;
|
||||
@ -78,8 +78,11 @@ void TStampaBenemerenze::set_page(int file, int cnt)
|
||||
set_row(1,"@49g@S", FLD(LF_SOGGETTI,SOG_DOM_INDIR));
|
||||
set_row(1,"@100g@S", FLD(LF_SOGGETTI,SOG_TELABI));
|
||||
set_row(1,"@116g@S", FLD(LF_SOGGETTI,SOG_TELLAV));
|
||||
set_row(2,"@0g@S", FLD(LF_SOGGETTI,SOG_TESSAVIS));
|
||||
set_row(2,"@49g#a", &_dencom);
|
||||
set_row(2,"@116g@S", FLD(LF_SOGGETTI,SOG_TELALT));
|
||||
set_row(3,"@100g@pn", FLD(LF_SOGGETTI,SOG_TOTDON,"###"));
|
||||
set_row(4,"");
|
||||
}
|
||||
|
||||
bool TStampaBenemerenze::preprocess_page(int file, int counter)
|
||||
@ -151,6 +154,15 @@ bool TStampaBenemerenze::set_print(int m)
|
||||
TString80 chiave = "94->TIPOBEN|UPPER(90->COGNOME)|UPPER(90->NOME)";
|
||||
_cur = add_cursor(new TSorted_cursor(_rel, (const char*) chiave, "", 2, &da, &a));
|
||||
TString80 filtro = "";
|
||||
// filtro per sezioni
|
||||
_sezini = _msk->get(F_SEZINI);
|
||||
_sotini = _msk->get(F_SOTINI);
|
||||
_sezfin = _msk->get(F_SEZFIN);
|
||||
_sotfin = _msk->get(F_SOTFIN);
|
||||
if (_sezini.not_empty())
|
||||
filtro << "(90->CODSEZ >= \"" << _sezini << "\") && ";
|
||||
if (_sezfin.not_empty())
|
||||
filtro << "(90->CODSEZ <= \"" << _sezfin << "\")";
|
||||
current_cursor()->setfilter((const char*) filtro, TRUE);
|
||||
_counter = 0;
|
||||
_tipoold = "**";
|
||||
@ -180,8 +192,9 @@ void TStampaBenemerenze::crea_intestazione()
|
||||
sep.fill('-');
|
||||
set_header(3, (const char *) sep);
|
||||
set_header(4,"@0gCodice@9gC.@12gCognome e nome@38gNato il@49gIndirizzo@100gTelefono abit.@116gTelefono lavoro");
|
||||
set_header(5,"@49gCAP/Località/Comune/Prov.@116gTelefono altro");
|
||||
set_header(6,"@0g--------@9g--@12g-------------------------@38g----------@49g--------------------------------------------------@100g---------------@116g---------------");
|
||||
set_header(5,"@0gTessera@49gCAP/Località/Comune/Prov.@116gTelefono altro");
|
||||
set_header(6,"@110gTot.don.");
|
||||
set_header(7,"@0g--------@9g--@12g-------------------------@38g----------@49g--------------------------------------------------@100g---------------@116g---------------");
|
||||
printer().footerlen(3);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user