From c1c73f646358f1cbcb0a07b1edd148dc8606d277 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 13 May 2003 09:39:51 +0000 Subject: [PATCH] =?UTF-8?q?Patch=20level=20=20=20=20=20=20=20=20=20:=202.0?= =?UTF-8?q?=20470=20Files=20correlati=20=20=20=20=20:=20=20cg0.exe=20Ricom?= =?UTF-8?q?pilazione=20Demo=20:=20[=20]=20Corretto=20errore=20EP20059=20Ho?= =?UTF-8?q?=20inserito=20n=20clienti.=20Clicco=20sul=20bottone=20di=20rice?= =?UTF-8?q?rca=20e=20richiamo=20un=20cliente=20gi=C3=A0=20registrato=20...?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.65.10.50/trunk@11115 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg0200.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/cg/cg0200.cpp b/cg/cg0200.cpp index 8d7438dc0..b32b6f03c 100755 --- a/cg/cg0200.cpp +++ b/cg/cg0200.cpp @@ -69,11 +69,13 @@ protected: void indsp_pack(); void common_f(const TMask& m); + static bool tipocf_handler(TMask_field& f, KEY key); static bool tipo_handler(TMask_field& f, KEY key); static bool percip_handler(TMask_field& f, KEY key); // static bool fax_handler(TMask_field& f, KEY k); static bool email_handler(TMask_field& f, KEY k); static bool rsoc_handler(TMask_field& f, KEY k); + virtual bool force_cursor_usage() const { return TRUE;} public: // @cmember Disabilita la verifica del modulo : essendo una anagrafica, va sempre abilitata @@ -204,10 +206,7 @@ HIDDEN bool cofi_handler(TMask_field& f, KEY key) TMask& m = f.mask(); if (key == K_ENTER && !f.dirty() && !m.query_mode()) - { ok = ((TEdit_field&)f).validate(key); - f.set_dirty(); - } if (ok && f.to_check(key)) { @@ -230,10 +229,7 @@ HIDDEN bool paiv_handler(TMask_field& f, KEY key) const TMask& m = f.mask(); if (key == K_ENTER && !f.dirty() && !m.query_mode()) - { ok = ((TEdit_field&)f).validate(key); - f.set_dirty(); - } if (ok && f.to_check(key) && m.get(F_ALLEG) != "4") ok = no_dup_iva(f, key); @@ -241,6 +237,14 @@ HIDDEN bool paiv_handler(TMask_field& f, KEY key) return ok; } +bool TClifo_application::tipocf_handler(TMask_field& f, KEY key) +{ + if (key == K_TAB && f.focusdirty()) + app().set_limits(); + + return TRUE; +} + bool TClifo_application::tipo_handler(TMask_field& f, KEY key) { TMask& m = f.mask(); @@ -813,6 +817,7 @@ bool TClifo_application::user_create() // initvar e arrmask _msk = new TMask("cg0200a") ; + _msk->set_handler(F_TIPOCF, tipocf_handler); _msk->set_handler(F_OCCASIONALE, occas_handler); _msk->set_handler(F_COFI, cofi_handler); _msk->set_handler(F_PAIV, paiv_handler);