Patch level : 12.0 no patch
Files correlati : Commento : Aggiunto il FLAG - ai campi interi per avere l'anno precedente a quello attuale git-svn-id: svn://10.65.10.50/branches/R_10_00@23344 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e036b0b4af
commit
8297ffbf7d
@ -66,6 +66,7 @@ TMask_field::TField_Flags::TField_Flags()
|
|||||||
trim = 0x3;
|
trim = 0x3;
|
||||||
pipeallowed = false;
|
pipeallowed = false;
|
||||||
user = false;
|
user = false;
|
||||||
|
previous = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Certified 100%
|
// Certified 100%
|
||||||
@ -82,6 +83,8 @@ char TMask_field::TField_Flags::update(const char* f, bool reset)
|
|||||||
case ' ':
|
case ' ':
|
||||||
case '_':
|
case '_':
|
||||||
trim = 0; break;
|
trim = 0; break;
|
||||||
|
case '-':
|
||||||
|
previous = true; break;
|
||||||
case '*':
|
case '*':
|
||||||
password = !reset; break;
|
password = !reset; break;
|
||||||
case 'A':
|
case 'A':
|
||||||
@ -3143,6 +3146,8 @@ void TReal_field::create(WINDOW w)
|
|||||||
{
|
{
|
||||||
const TDate oggi(TODAY);
|
const TDate oggi(TODAY);
|
||||||
int anno = oggi.year(); // Anno solare o ...
|
int anno = oggi.year(); // Anno solare o ...
|
||||||
|
if (previous())
|
||||||
|
anno--;
|
||||||
if (has_query_button() && browse() != NULL && browse()->cursor() != NULL)
|
if (has_query_button() && browse() != NULL && browse()->cursor() != NULL)
|
||||||
{
|
{
|
||||||
TCursor& cur = *browse()->cursor();
|
TCursor& cur = *browse()->cursor();
|
||||||
|
@ -130,6 +130,7 @@ protected:
|
|||||||
bool zerofilled : 1;
|
bool zerofilled : 1;
|
||||||
bool pipeallowed : 1;
|
bool pipeallowed : 1;
|
||||||
bool user : 1;
|
bool user : 1;
|
||||||
|
bool previous : 1;
|
||||||
|
|
||||||
TField_Flags();
|
TField_Flags();
|
||||||
char update(const char* f, bool reset = false);
|
char update(const char* f, bool reset = false);
|
||||||
@ -250,6 +251,9 @@ public:
|
|||||||
// @cmember Ritorna true se il campo e' automagic
|
// @cmember Ritorna true se il campo e' automagic
|
||||||
bool automagic() const
|
bool automagic() const
|
||||||
{ return _flags.automagic; }
|
{ return _flags.automagic; }
|
||||||
|
// @cmember Ritorna true se il campo devo proporre ad esempio l'anno precedente
|
||||||
|
bool previous() const
|
||||||
|
{ return _flags.previous; }
|
||||||
// @cmember Ritorna true se ha un bottone di campo
|
// @cmember Ritorna true se ha un bottone di campo
|
||||||
bool has_button() const
|
bool has_button() const
|
||||||
{ return _flags.button; }
|
{ return _flags.button; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user