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:
parent
5ac38117f5
commit
b2f1c3ada4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user