diff --git a/at/at2100.cpp b/at/at2100.cpp index 30eceabb7..bafe1ce68 100755 --- a/at/at2100.cpp +++ b/at/at2100.cpp @@ -174,11 +174,11 @@ void TStampaSospesi::set_page(int file, int cnt) set_row(1,"@105g@ld", FLD(LF_SOGGETTI,SOG_DATAULTID)); set_row(2,"@105g@S", FLD(LF_SOGGETTI,SOG_TIPOULTID)); - set_row(3,"@105g@pn", FLD(LF_SOGGETTI,SOG_INTSI,"###")); - set_row(4,"@105g@pn", FLD(LF_SOGGETTI,SOG_INTAF,"###")); + set_row(4,"@112g@pn", FLD(LF_SOGGETTI,SOG_INTSI,"###")); + set_row(5,"@112g@pn", FLD(LF_SOGGETTI,SOG_INTAF,"###")); set_row(1,"@116g@ld", FLD(LF_SOGGETTI,SOG_DATAULTDON)); set_row(2,"@116g@S", FLD(LF_SOGGETTI,SOG_TIPOULTDON)); - set_row(2,"@116g@pn", FLD(LF_SOGGETTI,SOG_TOTDON)); + set_row(4,"@123g@pn", FLD(LF_SOGGETTI,SOG_TOTDON,"###")); set_row(6,""); } break; @@ -242,13 +242,13 @@ bool TStampaSospesi::preprocess_page(int file, int counter) { TRectype& recsog = current_cursor()->curr(); TString80 nome = recsog.get(SOG_COGNOME); - nome << " "; + nome << ' '; nome << recsog.get(SOG_NOME); _cognome_nome = nome; TString256 localita = ""; localita << recsog.get(SOG_DOM_CAP); - localita << " "; - if (recsog.get(SOG_DOM_CODLOC).empty()) + localita << ' '; + if (recsog.get(SOG_DOM_CODLOC).not_empty()) localita << current_cursor()->curr(-ALIAS_LCPDOM).get("S0"); else localita << current_cursor()->curr(LF_COMUNI).get(COM_DENCOM); @@ -296,17 +296,20 @@ void TStampaSospesi::header_sezione(const TString16 codsez, const TString16 cods intestazione << codsez; if (codsot.not_empty()) { - intestazione << "/"; + intestazione << '/'; intestazione << codsot; } - intestazione << " "; + intestazione << ' '; intestazione << densez; if (densot.not_empty()) { - intestazione << "/"; + intestazione << '/'; intestazione << densot; } - intestazione.center_just(); + if (_tipostampa==sintetico) + intestazione.center_just(100); + else + intestazione.center_just(); set_header(1,"@0g%s", (const char*) intestazione); return; } @@ -407,22 +410,42 @@ void TStampaSospesi::crea_intestazione() { sep << ": tipo "; sep << tipo; - sep << " "; + sep << ' '; sep << _msk->get(F_D_TIPO); } - sep.center_just(); - set_header(2, "@0g%s", (const char*) sep); + if (_tipostampa==sintetico) + sep.center_just(100); + else + sep.center_just(); + set_header(2, "@0g%s", (const char*) sep); const TString16 data_stampa = _data_stampa.string(); set_header(2,"@0g%10s", (const char*) data_stampa); sep = ""; sep << "Pag. @#"; - set_header(2, "@120g%s", (const char*) sep); + if (_tipostampa==sintetico) + set_header(2, "@90g%s", (const char*) sep); + else + set_header(2, "@120g%s", (const char*) sep); sep = ""; - sep.fill('-'); - set_header(3, (const char *) sep); - set_header(4,"@0gCodice@9gC.@12gCognome e nome@38gNato il@49gSospensione@63gUltima idon.@77gIntervalli@88gUltima donaz."); - set_header(5,"@0gTessera@38gGr.AB0 Rh@49gPr.tipo@78gSI AF"); - set_header(6,"@0g--------@9g--@12g-------------------------@38g----------@49g-------------@63g-------------@77g----------@88g---------- --"); + if (_tipostampa==sintetico) + { + sep.fill('-',100); + set_header(3, (const char *) sep); + set_header(4,"@0gCodice@9gC.@12gCognome e nome@38gNato il@49gSospensione@63gUltima idon.@77gIntervalli@88gUltima donaz."); + set_header(5,"@0gTessera@38gGr.AB0 Rh@49gPr.tipo@78gSI AF"); + set_header(6,"@0g--------@9g--@12g-------------------------@38g----------@49g-------------@63g-------------@77g----------@88g---------- --"); + } + else + { + sep.fill('-'); + set_header(3, (const char *) sep); + set_header(4,"@0gCodice@9gCognome@35gIndirizzo@66gTel.abitazione@82gTipiz@94gSospensione@105gUltima id.@116gUlt.donaz."); + set_header(5,"@0gTessera@9gNome@66gTel.lavoro@82gzazione@94gData@105gTipo@116gTipo"); + set_header(6,"@0gCateg.@9gData nascita@66gTel.altro@94gPr.tipo"); + set_header(7,"@94gData pros.@109gInt.SI@118gTot.don."); + set_header(8,"@94gMotivo@109gInt.AF"); + set_header(9,"@0g--------@9g-------------------------@35g------------------------------@66g--------------@82g------------@94g----------@105g----------@116g----------"); + } } }