From b2f1c3ada425b4751a5030613a323cc1d7c66898 Mon Sep 17 00:00:00 2001 From: cris Date: Mon, 8 Mar 1999 15:00:36 +0000 Subject: [PATCH] Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : Giornaliero don/con: non sblocca automaticamente i bloccati git-svn-id: svn://10.65.10.50/trunk@7900 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- at/at0200.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/at/at0200.cpp b/at/at0200.cpp index 220827871..5b08117a9 100755 --- a/at/at0200.cpp +++ b/at/at0200.cpp @@ -522,7 +522,7 @@ int TGiornalieroDC::write(TSheet_field& s) modstato = modstato_tcs(stato); // il soggetto è idoneo per il tipo di donazione ? - if ((ctrlsi) && (!id_si) && (_autoid)) + if ((ctrlsi) && (!id_si) && (_autoid) && (modstato!='B')) { TRectype* key = new TRectype(LF_IDONEITA); long codice = sog.get_long(SOG_CODICE); @@ -566,7 +566,7 @@ int TGiornalieroDC::write(TSheet_field& s) stato = sog.get(SOG_STATO); // stato attuale modstato = modstato_tcs(stato); } - if ((ctrlaf) && (!id_af) && (_autoid)) + if ((ctrlaf) && (!id_af) && (_autoid) && (modstato!='B')) { TRectype* key = new TRectype(LF_IDONEITA); long codice = sog.get_long(SOG_CODICE); @@ -776,7 +776,7 @@ bool TGiornalieroDC::soggetti_notify(TSheet_field& s, int r, KEY k) break; case K_TAB: // entrata riga - { + { static bool entering = TRUE; if (entering) { @@ -785,7 +785,10 @@ bool TGiornalieroDC::soggetti_notify(TSheet_field& s, int r, KEY k) app().add_rows_soggetti(s,10,r+1); TToken_string& row = s.row(r); if (row.empty_items()) + { s.select(r); + //s.set_focus_cell(r,1); + } entering = TRUE; } }