From 8c115993df0294173fbe85cb7d746fd7d8ec9d31 Mon Sep 17 00:00:00 2001 From: cris Date: Wed, 25 Feb 1998 07:50:36 +0000 Subject: [PATCH] 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 --- at/atlib1.cpp | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/at/atlib1.cpp b/at/atlib1.cpp index 4f2ab928f..ebcdf3a38 100755 --- a/at/atlib1.cpp +++ b/at/atlib1.cpp @@ -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()))