Patch level : 1.7 at

Files correlati     : at8.exe
Ricompilazione Demo : [ ]
Commento            : da WINSIT: corretto aggiornamento data/utente ultimo agg. quando si aggiornano solo i dati anagrafici


git-svn-id: svn://10.65.10.50/trunk@11647 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2003-12-03 09:36:05 +00:00
parent 08aa7e1edb
commit af5040fae0

View File

@ -221,9 +221,9 @@ bool TCtbo2at::test_donation(TRectype& recsog, const char* tipo, const TDate& da
calcola_donazioni_lib(recsog, &donazioni); // questo metodo sistema tutto!!! calcola_donazioni_lib(recsog, &donazioni); // questo metodo sistema tutto!!!
calcola_categoria(recsog); calcola_categoria(recsog);
// aggiorno data e utente ultimo aggiornamento // aggiorno data e utente ultimo aggiornamento
const TDate oggi(TODAY); //const TDate oggi(TODAY);
recsog.put(SOG_DATAULTAGG,oggi); //recsog.put(SOG_DATAULTAGG,oggi);
recsog.put(SOG_UTENULTAGG,"WINSIT"); //recsog.put(SOG_UTENULTAGG,"WINSIT");
return TRUE; return TRUE;
} }
@ -296,7 +296,9 @@ bool TCtbo2at::test_inter(TRectype& recsog, const char* tipo, const TDate& datad
if (r > 0) if (r > 0)
{ {
const TRectype& lastido = idoneita[r]; const TRectype& lastido = idoneita[r];
if ((lastido.get_date(IDO_DATAIDO) >= datadon) && (tipoido == lastido.get(IDO_TIPOIDO))) const TString16 tipoultido = lastido.get(IDO_TIPOIDO);
const TString16 tipoidostr(tipoido);
if ((lastido.get_date(IDO_DATAIDO) >= datadon) && (tipoidostr == tipoultido))
return FALSE; return FALSE;
} }
@ -324,9 +326,9 @@ bool TCtbo2at::test_inter(TRectype& recsog, const char* tipo, const TDate& datad
recsog.put(SOG_NUMCONV, 0); recsog.put(SOG_NUMCONV, 0);
} }
// aggiorno data e utente ultimo aggiornamento (Cristina 18/09/2002) // aggiorno data e utente ultimo aggiornamento (Cristina 18/09/2002)
const TDate oggi(TODAY); //const TDate oggi(TODAY);
recsog.put(SOG_DATAULTAGG,oggi); //recsog.put(SOG_DATAULTAGG,oggi);
recsog.put(SOG_UTENULTAGG,"WINSIT"); //recsog.put(SOG_UTENULTAGG,"WINSIT");
return TRUE; return TRUE;
} }
@ -379,7 +381,10 @@ void TCtbo2at::transfer()
//esegue l'effettivo passaggio dati basandosi sulla formattazione del file .ini //esegue l'effettivo passaggio dati basandosi sulla formattazione del file .ini
_trasfile->autosave(rel, curr); _trasfile->autosave(rel, curr);
const TDate oggi(TODAY);
sogg.put(SOG_DATAULTAGG,oggi);
sogg.put(SOG_UTENULTAGG,"WINSIT");
rel.rewrite();
const char* tipo[] = { "SI", "PL", "PI", "PP" }; const char* tipo[] = { "SI", "PL", "PI", "PP" };
for (int i = 0; i < 4; i++) for (int i = 0; i < 4; i++)
{ {