Patch level : 1.7 at
Files correlati : at2.exe at2200a.msk Ricompilazione Demo : [ ] Commento : Stampa per data di nascita: aggiunta selezione per sesso git-svn-id: svn://10.65.10.50/trunk@13305 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
26ff35b180
commit
f3e3c12113
@ -58,6 +58,7 @@ class TStampaPerEta : public TPrintapp
|
|||||||
TString16 _codsez, _codsot;
|
TString16 _codsez, _codsot;
|
||||||
int _etlarghezza, _etcolonne, _contatore, _totale;
|
int _etlarghezza, _etcolonne, _contatore, _totale;
|
||||||
bool _stampa80;
|
bool _stampa80;
|
||||||
|
char _sesso;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -175,12 +176,18 @@ bool TStampaPerEta::filter_func_pereta(const TRelation* rel)
|
|||||||
{
|
{
|
||||||
bool filtrato = TRUE;
|
bool filtrato = TRUE;
|
||||||
TLocalisamfile& sog = rel->lfile();
|
TLocalisamfile& sog = rel->lfile();
|
||||||
|
// filtro per sesso
|
||||||
|
if (app()._sesso != 'I')
|
||||||
|
filtrato = (sog.get(SOG_SESSO)[0] == app()._sesso);
|
||||||
// filtro per categorie
|
// filtro per categorie
|
||||||
TAssoc_array& categorie = app()._categorie;
|
if (filtrato)
|
||||||
if (categorie.items() != 0)
|
|
||||||
{
|
{
|
||||||
const TString16 cat = sog.get(SOG_CATDON);
|
TAssoc_array& categorie = app()._categorie;
|
||||||
filtrato = categorie.is_key((const char*) cat);
|
if (categorie.items() != 0)
|
||||||
|
{
|
||||||
|
const TString16 cat = sog.get(SOG_CATDON);
|
||||||
|
filtrato = categorie.is_key((const char*) cat);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// filtro per data di nascita
|
// filtro per data di nascita
|
||||||
if (filtrato)
|
if (filtrato)
|
||||||
@ -350,6 +357,7 @@ bool TStampaPerEta::set_print(int m)
|
|||||||
_categorie.add((const char*) catqui);
|
_categorie.add((const char*) catqui);
|
||||||
if (catses.not_empty())
|
if (catses.not_empty())
|
||||||
_categorie.add((const char*) catses);
|
_categorie.add((const char*) catses);
|
||||||
|
_sesso = _msk->get(F_SESSO)[0];
|
||||||
current_cursor()->set_filterfunction (filter_func_pereta);
|
current_cursor()->set_filterfunction (filter_func_pereta);
|
||||||
reset_print();
|
reset_print();
|
||||||
printer().footerlen(0);
|
printer().footerlen(0);
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#define F_DATAINI 301
|
#define F_DATAINI 301
|
||||||
#define F_DATAFIN 302
|
#define F_DATAFIN 302
|
||||||
|
#define F_SESSO 303
|
||||||
|
|
||||||
#define F_ELENCO 401
|
#define F_ELENCO 401
|
||||||
#define F_ETICHETTE 402
|
#define F_ETICHETTE 402
|
||||||
|
@ -265,9 +265,9 @@ BEGIN
|
|||||||
FLAGS "D"
|
FLAGS "D"
|
||||||
END
|
END
|
||||||
|
|
||||||
GROUPBOX DLG_NULL 77 3
|
GROUPBOX DLG_NULL 77 4
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 1 10 "Selezione data di nascita"
|
PROMPT 1 10 "Selezioni per la stampa"
|
||||||
END
|
END
|
||||||
|
|
||||||
DATE F_DATAINI
|
DATE F_DATAINI
|
||||||
@ -282,5 +282,13 @@ BEGIN
|
|||||||
HELP "Data di nascita finale"
|
HELP "Data di nascita finale"
|
||||||
END
|
END
|
||||||
|
|
||||||
|
LISTBOX F_SESSO 12
|
||||||
|
BEGIN
|
||||||
|
PROMPT 2 12 "Sesso "
|
||||||
|
ITEM "I|Indifferente"
|
||||||
|
ITEM "1|Maschi"
|
||||||
|
ITEM "2|Femmine"
|
||||||
|
END
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
ENDMASK
|
ENDMASK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user