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:
parent
61e9f63a80
commit
1f594aaf70
@ -272,7 +272,8 @@ bool TTurniControlli::filter_func_turnicon(const TRelation* rel)
|
||||
filtrato = categorie.is_key((const char*) cat);
|
||||
}
|
||||
if (filtrato)
|
||||
{
|
||||
{
|
||||
bool fatto = FALSE;
|
||||
TRectype* key = new TRectype(LF_CONTSAN);
|
||||
long codice = recsog.get_long(SOG_CODICE);
|
||||
key->put(CON_CODICE, codice);
|
||||
@ -282,22 +283,20 @@ bool TTurniControlli::filter_func_turnicon(const TRelation* rel)
|
||||
const TRectype& riga = app()._scontrolli->row(r);
|
||||
TString16 tipocon = riga.get(CON_TIPOCON);
|
||||
if (tipocon == app()._tipo1)
|
||||
{
|
||||
if (app()._maifatto)
|
||||
{
|
||||
fatto = TRUE;
|
||||
if (app()._primadel.ok())
|
||||
{
|
||||
if (app()._primadel.ok())
|
||||
{
|
||||
TDate datacon = riga.get(CON_DATACON);
|
||||
if (datacon >= app()._primadel)
|
||||
filtrato = FALSE;
|
||||
}
|
||||
else
|
||||
TDate datacon = riga.get(CON_DATACON);
|
||||
if (datacon >= app()._primadel)
|
||||
filtrato = FALSE;
|
||||
}
|
||||
}
|
||||
else
|
||||
filtrato = FALSE;
|
||||
}
|
||||
}
|
||||
if (!app()._maifatto && !fatto)
|
||||
filtrato = FALSE;
|
||||
}
|
||||
return filtrato;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user