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:
parent
d0289e8a9e
commit
8456336173
@ -81,7 +81,7 @@ class TStampaPerCategorie : public TPrintapp
|
|||||||
ts _tipostampa;
|
ts _tipostampa;
|
||||||
TString16 _lettini, _lettfin, _capini, _capfin;
|
TString16 _lettini, _lettfin, _capini, _capfin;
|
||||||
TString16 _gruppoazie, _gruppoold;
|
TString16 _gruppoazie, _gruppoold;
|
||||||
bool _pergruppo, _perfamiglie;
|
bool _pergruppo, _perfamiglie, _nosottogruppo;
|
||||||
long _contatore;
|
long _contatore;
|
||||||
TString16 _codsez, _codsot, _orario, _datacart;
|
TString16 _codsez, _codsot, _orario, _datacart;
|
||||||
TString80 _invitoper, _data, _presso1, _presso2, _presso3, _presso4;
|
TString80 _invitoper, _data, _presso1, _presso2, _presso3, _presso4;
|
||||||
@ -614,7 +614,7 @@ void TStampaPerCategorie::header_sezione(const TString16 codsez, const TString16
|
|||||||
}
|
}
|
||||||
intestazione << ' ';
|
intestazione << ' ';
|
||||||
intestazione << densez;
|
intestazione << densez;
|
||||||
if (!densot.blank())
|
if (!densot.blank() && !codsot.blank())
|
||||||
{
|
{
|
||||||
intestazione << '/';
|
intestazione << '/';
|
||||||
intestazione << densot;
|
intestazione << densot;
|
||||||
@ -688,17 +688,18 @@ bool TStampaPerCategorie::preprocess_page(int file, int counter)
|
|||||||
{
|
{
|
||||||
const TString16 codsez = recsog.get(SOG_CODSEZ);
|
const TString16 codsez = recsog.get(SOG_CODSEZ);
|
||||||
const TString16 codsot = recsog.get(SOG_CODSOT);
|
const TString16 codsot = recsog.get(SOG_CODSOT);
|
||||||
if ((_codsez!=codsez)||(_codsot!=codsot))
|
if ((_codsez!=codsez)||((_codsot!=codsot) && (!_nosottogruppo)))
|
||||||
{
|
{
|
||||||
if (_codsez != "**")
|
if (_codsez != "**")
|
||||||
footer_sezione();
|
footer_sezione();
|
||||||
_contatore = 0;
|
_contatore = 0;
|
||||||
_codsez = codsez;
|
_codsez = codsez;
|
||||||
_codsot = codsot;
|
_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))
|
if (((_tipostampa==sintetico) && ((_stampa80 && printer().rows_left()<4) || (printer().rows_left()<3))) || (printer().rows_left()<6 && _tipostampa==completo))
|
||||||
printer().formfeed();
|
printer().formfeed();
|
||||||
@ -907,6 +908,7 @@ bool TStampaPerCategorie::set_print(int m)
|
|||||||
TString80 chiave = "";
|
TString80 chiave = "";
|
||||||
_pergruppo = _msk->get_bool(F_PERGRUPPO);
|
_pergruppo = _msk->get_bool(F_PERGRUPPO);
|
||||||
_perfamiglie = _msk->get_bool(F_PERFAMIGLIE);
|
_perfamiglie = _msk->get_bool(F_PERFAMIGLIE);
|
||||||
|
_nosottogruppo = _msk->get_bool(F_NOSOTTOGRUPPO);
|
||||||
bool percap = _msk->get_bool(F_PERCAP);
|
bool percap = _msk->get_bool(F_PERCAP);
|
||||||
_capini = _msk->get(F_CAPINI);
|
_capini = _msk->get(F_CAPINI);
|
||||||
_capfin = _msk->get(F_CAPFIN);
|
_capfin = _msk->get(F_CAPFIN);
|
||||||
@ -929,7 +931,12 @@ bool TStampaPerCategorie::set_print(int m)
|
|||||||
if (_pergruppo)
|
if (_pergruppo)
|
||||||
chiave << "UPPER(90->COGNOME)|UPPER(90->NOME)";
|
chiave << "UPPER(90->COGNOME)|UPPER(90->NOME)";
|
||||||
else
|
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 = "";
|
TString256 filtro = "";
|
||||||
if (_pergruppo)
|
if (_pergruppo)
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
#define F_LETTFIN 408
|
#define F_LETTFIN 408
|
||||||
#define F_NOTIZIARIO 409
|
#define F_NOTIZIARIO 409
|
||||||
#define F_PERFAMIGLIE 410
|
#define F_PERFAMIGLIE 410
|
||||||
|
#define F_NOSOTTOGRUPPO 411
|
||||||
|
|
||||||
#define F_SINTETICO 501
|
#define F_SINTETICO 501
|
||||||
#define F_COMPLETO 502
|
#define F_COMPLETO 502
|
||||||
|
@ -507,6 +507,12 @@ BEGIN
|
|||||||
PROMPT 2 17 "Stampa per notiziario"
|
PROMPT 2 17 "Stampa per notiziario"
|
||||||
END
|
END
|
||||||
|
|
||||||
|
BOOLEAN F_NOSOTTOGRUPPO
|
||||||
|
BEGIN
|
||||||
|
PROMPT 35 17 "Non suddividere per sottogruppo"
|
||||||
|
END
|
||||||
|
|
||||||
|
|
||||||
BOOLEAN F_PERCAP
|
BOOLEAN F_PERCAP
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 18 "Ordinamento per CAP"
|
PROMPT 2 18 "Ordinamento per CAP"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user