Modificata la set_print() per quanto riguarda la costruzione dei
record estremi: aggiunto il riconoscimento del campo data nella chiave della tabella. git-svn-id: svn://10.65.10.50/trunk@1869 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
1b80643ca2
commit
8f6b60ffe2
@ -68,10 +68,14 @@ bool BA3200_application::set_print(int)
|
|||||||
const TFieldref* campo_ref = campo_maschera.field();
|
const TFieldref* campo_ref = campo_maschera.field();
|
||||||
|
|
||||||
if (campo_ref != NULL && campo_ref->ok())
|
if (campo_ref != NULL && campo_ref->ok())
|
||||||
{
|
{
|
||||||
if (campo_maschera.in_group(1)) campo_ref->write(val, from);
|
TDate d;
|
||||||
|
const bool is_date_field = campo_maschera.class_id() == CLASS_DATE_FIELD;
|
||||||
|
if (is_date_field)
|
||||||
|
d=val;
|
||||||
|
if (campo_maschera.in_group(1)) campo_ref->write(is_date_field ? d.string(ANSI) : val, from);
|
||||||
else
|
else
|
||||||
if (campo_maschera.in_group(2)) campo_ref->write(val, to);
|
if (campo_maschera.in_group(2)) campo_ref->write(is_date_field ? d.string(ANSI) : val, to);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user