Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            : Possibilitá di non suddividere la stampa per sottogruppo, ma solo per sezione


git-svn-id: svn://10.65.10.50/trunk@8969 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2000-05-03 10:04:40 +00:00
parent d0289e8a9e
commit 8456336173
3 changed files with 21 additions and 7 deletions

View File

@ -81,7 +81,7 @@ class TStampaPerCategorie : public TPrintapp
ts _tipostampa;
TString16 _lettini, _lettfin, _capini, _capfin;
TString16 _gruppoazie, _gruppoold;
bool _pergruppo, _perfamiglie;
bool _pergruppo, _perfamiglie, _nosottogruppo;
long _contatore;
TString16 _codsez, _codsot, _orario, _datacart;
TString80 _invitoper, _data, _presso1, _presso2, _presso3, _presso4;
@ -614,7 +614,7 @@ void TStampaPerCategorie::header_sezione(const TString16 codsez, const TString16
}
intestazione << ' ';
intestazione << densez;
if (!densot.blank())
if (!densot.blank() && !codsot.blank())
{
intestazione << '/';
intestazione << densot;
@ -688,17 +688,18 @@ bool TStampaPerCategorie::preprocess_page(int file, int counter)
{
const TString16 codsez = recsog.get(SOG_CODSEZ);
const TString16 codsot = recsog.get(SOG_CODSOT);
if ((_codsez!=codsez)||(_codsot!=codsot))
if ((_codsez!=codsez)||((_codsot!=codsot) && (!_nosottogruppo)))
{
if (_codsez != "**")
footer_sezione();
_contatore = 0;
_codsez = codsez;
_codsot = codsot;
header_sezione(codsez, codsot);
if (_nosottogruppo)
header_sezione(codsez, " ");
else
header_sezione(codsez, codsot);
}
//if (((_tipostampa==sintetico) && ((_stampa80 && printer().rows_left()<4) || (printer().rows_left()<3))) || (printer().rows_left()<6 && _tipostampa==completo))
// printer().formfeed();
}
if (((_tipostampa==sintetico) && ((_stampa80 && printer().rows_left()<4) || (printer().rows_left()<3))) || (printer().rows_left()<6 && _tipostampa==completo))
printer().formfeed();
@ -907,6 +908,7 @@ bool TStampaPerCategorie::set_print(int m)
TString80 chiave = "";
_pergruppo = _msk->get_bool(F_PERGRUPPO);
_perfamiglie = _msk->get_bool(F_PERFAMIGLIE);
_nosottogruppo = _msk->get_bool(F_NOSOTTOGRUPPO);
bool percap = _msk->get_bool(F_PERCAP);
_capini = _msk->get(F_CAPINI);
_capfin = _msk->get(F_CAPFIN);
@ -929,7 +931,12 @@ bool TStampaPerCategorie::set_print(int m)
if (_pergruppo)
chiave << "UPPER(90->COGNOME)|UPPER(90->NOME)";
else
chiave << "90->CODSEZ|90->CODSOT|UPPER(90->COGNOME)|UPPER(90->NOME)";
{
if (_nosottogruppo)
chiave << "90->CODSEZ|UPPER(90->COGNOME)|UPPER(90->NOME)";
else
chiave << "90->CODSEZ|90->CODSOT|UPPER(90->COGNOME)|UPPER(90->NOME)";
}
}
TString256 filtro = "";
if (_pergruppo)

View File

@ -50,6 +50,7 @@
#define F_LETTFIN 408
#define F_NOTIZIARIO 409
#define F_PERFAMIGLIE 410
#define F_NOSOTTOGRUPPO 411
#define F_SINTETICO 501
#define F_COMPLETO 502

View File

@ -507,6 +507,12 @@ BEGIN
PROMPT 2 17 "Stampa per notiziario"
END
BOOLEAN F_NOSOTTOGRUPPO
BEGIN
PROMPT 35 17 "Non suddividere per sottogruppo"
END
BOOLEAN F_PERCAP
BEGIN
PROMPT 2 18 "Ordinamento per CAP"