From 68cfc103418feea9cc511427f808110fdaf69fa3 Mon Sep 17 00:00:00 2001 From: cris Date: Tue, 26 Jan 1999 13:53:35 +0000 Subject: [PATCH] Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : Attribuzione benemerenze solo a chi le vuole; nell'intestazione scrive se provvisoria o definitiva git-svn-id: svn://10.65.10.50/trunk@7692 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- at/at1200.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/at/at1200.cpp b/at/at1200.cpp index eefe73225..0b7d00aa9 100755 --- a/at/at1200.cpp +++ b/at/at1200.cpp @@ -183,7 +183,7 @@ bool TAttribuzioneBenemerenze::set_print(int) real* oggetto = new real(numdonben); _tabben.add((const char*)codben, (TObject*) oggetto); } - TString80 filtro = ""; + TString80 filtro; if (_attgruppi) { if (_gruppoazie.not_empty()) @@ -194,6 +194,9 @@ bool TAttribuzioneBenemerenze::set_print(int) else if (!_anchegruppi) filtro.format("(90->GRUPPOAZIE == \"\")"); + if (filtro.not_empty()) + filtro << " && "; + filtro << "(90->BENEM == \"X\")"; // filtro per sezioni const TString16 sezini = _msk->get(F_SEZINI); const TString16 sotini = _msk->get(F_SOTINI); @@ -336,6 +339,10 @@ void TAttribuzioneBenemerenze::crea_intestazione() TString sep(132); sep = "ATTRIBUZIONE BENEMERENZE "; + if (_definitiva) + sep << "DEFINITIVA"; + else + sep << "PROVVISORIA"; sep << " ALLA DATA "; sep << _dataela.string();; sep.center_just();