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
This commit is contained in:
cris 1999-03-08 15:00:36 +00:00
parent 5ac38117f5
commit b2f1c3ada4

View File

@ -522,7 +522,7 @@ int TGiornalieroDC::write(TSheet_field& s)
modstato = modstato_tcs(stato); modstato = modstato_tcs(stato);
// il soggetto è idoneo per il tipo di donazione ? // 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); TRectype* key = new TRectype(LF_IDONEITA);
long codice = sog.get_long(SOG_CODICE); long codice = sog.get_long(SOG_CODICE);
@ -566,7 +566,7 @@ int TGiornalieroDC::write(TSheet_field& s)
stato = sog.get(SOG_STATO); // stato attuale stato = sog.get(SOG_STATO); // stato attuale
modstato = modstato_tcs(stato); modstato = modstato_tcs(stato);
} }
if ((ctrlaf) && (!id_af) && (_autoid)) if ((ctrlaf) && (!id_af) && (_autoid) && (modstato!='B'))
{ {
TRectype* key = new TRectype(LF_IDONEITA); TRectype* key = new TRectype(LF_IDONEITA);
long codice = sog.get_long(SOG_CODICE); long codice = sog.get_long(SOG_CODICE);
@ -776,7 +776,7 @@ bool TGiornalieroDC::soggetti_notify(TSheet_field& s, int r, KEY k)
break; break;
case K_TAB: case K_TAB:
// entrata riga // entrata riga
{ {
static bool entering = TRUE; static bool entering = TRUE;
if (entering) 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); app().add_rows_soggetti(s,10,r+1);
TToken_string& row = s.row(r); TToken_string& row = s.row(r);
if (row.empty_items()) if (row.empty_items())
{
s.select(r); s.select(r);
//s.set_focus_cell(r,1);
}
entering = TRUE; entering = TRUE;
} }
} }