Corretto calcolo della situazione soggetto

Patch level         :
Files correlati     :
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/trunk@6261 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 1998-02-25 07:50:36 +00:00
parent a592f22b90
commit 8c115993df

View File

@ -132,12 +132,38 @@ void con_reord(TRectype& soggetto, TRecord_array* controlli, TRecord_array* idon
soggetto.put(SOG_PROS_STATO,prosstipo);
soggetto.put(SOG_DATA_PROS,prossdata);
/*
soggetto.put(SOG_STATOSI, " ");
soggetto.put(SOG_STATOAF, " ");
soggetto.put(SOG_DATASI, datanulla);
soggetto.put(SOG_DATAAF, datanulla);
soggetto.put(SOG_FINESOSSI, datanulla);
soggetto.put(SOG_FINESOSAF, datanulla);
*/
if (intsi > 0)
{
soggetto.put(SOG_STATOSI, tipo);
soggetto.put(SOG_DATASI, dataultstato);
soggetto.put(SOG_FINESOSSI, prossdata);
}
else
{
soggetto.put(SOG_STATOSI, " ");
soggetto.put(SOG_DATASI, datanulla);
soggetto.put(SOG_FINESOSSI, datanulla);
}
if (intaf > 0)
{
soggetto.put(SOG_STATOAF, tipo);
soggetto.put(SOG_DATAAF, dataultstato);
soggetto.put(SOG_FINESOSAF, prossdata);
}
else
{
soggetto.put(SOG_STATOAF, " ");
soggetto.put(SOG_DATAAF, datanulla);
soggetto.put(SOG_FINESOSAF, datanulla);
}
// riordino le idoneita
for (int ri=1; ri<=idoneita->rows(); ri++)
@ -212,7 +238,8 @@ void con_reord(TRectype& soggetto, TRecord_array* controlli, TRecord_array* idon
{
TString16 stato = soggetto.get(SOG_STATO);
char modstato = modstato_tcs(stato);
if ((statosi == IDONEITA || statosi.empty()) && (statoaf == IDONEITA || statoaf.empty()))
//if ((statosi == IDONEITA || statosi.empty()) && (statoaf == IDONEITA || statoaf.empty()))
if ((statosi == IDONEITA || statosi.empty()) || (statoaf == IDONEITA || statoaf.empty()))
if ((modstato != 'I') || (modstato != 'F'))
stato = IDONEITA;
if ((statosi == SOSPENSIONE || statosi.empty()) && (statoaf == SOSPENSIONE || statoaf.empty()))