Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            : Turni per controlli: corretto funzionamento del flag maifatto


git-svn-id: svn://10.65.10.50/trunk@7174 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 1998-09-29 15:08:13 +00:00
parent 61e9f63a80
commit 1f594aaf70

View File

@ -273,6 +273,7 @@ bool TTurniControlli::filter_func_turnicon(const TRelation* rel)
}
if (filtrato)
{
bool fatto = FALSE;
TRectype* key = new TRectype(LF_CONTSAN);
long codice = recsog.get_long(SOG_CODICE);
key->put(CON_CODICE, codice);
@ -283,8 +284,7 @@ bool TTurniControlli::filter_func_turnicon(const TRelation* rel)
TString16 tipocon = riga.get(CON_TIPOCON);
if (tipocon == app()._tipo1)
{
if (app()._maifatto)
{
fatto = TRUE;
if (app()._primadel.ok())
{
TDate datacon = riga.get(CON_DATACON);
@ -294,11 +294,10 @@ bool TTurniControlli::filter_func_turnicon(const TRelation* rel)
else
filtrato = FALSE;
}
else
}
if (!app()._maifatto && !fatto)
filtrato = FALSE;
}
}
}
return filtrato;
}