From c4b56e378abd5d9370377052178fb6f09c5e547a Mon Sep 17 00:00:00 2001 From: luca Date: Wed, 28 Oct 2009 10:03:39 +0000 Subject: [PATCH] =?UTF-8?q?Patch=20level=20=20=20=20=20=20=20=20=20:=20Fil?= =?UTF-8?q?es=20correlati=20=20=20=20=20:=20Ricompilazione=20Demo=20:=20[?= =?UTF-8?q?=20]=20Commento=20=20=20=20=20=20=20=20=20=20=20=20:=200001446:?= =?UTF-8?q?=20001638=20-=20stampa=20cambi=20giornalieri=20Descrizione=20?= =?UTF-8?q?=20la=20stampa=20dei=20cambi=20giornalieri=20non=20produce=20ri?= =?UTF-8?q?sultati=20se=20la=20selezione=20=C3=A8=20fatta=20per=20cambio,?= =?UTF-8?q?=20stampa=20invece=20correttamente=20selezionando=20per=20data.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.65.10.50/trunk@19529 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba3200.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ba/ba3200.cpp b/ba/ba3200.cpp index a746293ce..c9a2ff90b 100755 --- a/ba/ba3200.cpp +++ b/ba/ba3200.cpp @@ -52,6 +52,7 @@ void TTable_recordset::set_custom_filter(TCursor& cursor) const TRectype from(cursor.curr()); from.zero(); TRectype to(from); bool key1_full = false; + TString80 val; for (int i = _mask->fields() - 1; i >= 0; i--) { const TMask_field& f = _mask->fld(i); @@ -59,7 +60,10 @@ void TTable_recordset::set_custom_filter(TCursor& cursor) const if (ref != NULL && ref->name() == "CODTAB" && !f.empty()) { const bool is_final = f.in_group(2); - ref->write(f.get(), is_final ? to : from); + val = f.get(); + if (f.is_kind_of(CLASS_DATE_FIELD)) + val = TDate(val).string(full, '\0', full, full, amg_date); + ref->write(val, is_final ? to : from); key1_full = true; } }