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:
parent
08aa7e1edb
commit
af5040fae0
@ -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_categoria(recsog);
|
||||
// aggiorno data e utente ultimo aggiornamento
|
||||
const TDate oggi(TODAY);
|
||||
recsog.put(SOG_DATAULTAGG,oggi);
|
||||
recsog.put(SOG_UTENULTAGG,"WINSIT");
|
||||
//const TDate oggi(TODAY);
|
||||
//recsog.put(SOG_DATAULTAGG,oggi);
|
||||
//recsog.put(SOG_UTENULTAGG,"WINSIT");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -295,8 +295,10 @@ bool TCtbo2at::test_inter(TRectype& recsog, const char* tipo, const TDate& datad
|
||||
const int r = idoneita.last_row(); //se trova una data idoneita >= di quella in esame, quest'ultima viene ignorata
|
||||
if (r > 0)
|
||||
{
|
||||
const TRectype& lastido = idoneita[r];
|
||||
if ((lastido.get_date(IDO_DATAIDO) >= datadon) && (tipoido == lastido.get(IDO_TIPOIDO)))
|
||||
const TRectype& lastido = idoneita[r];
|
||||
const TString16 tipoultido = lastido.get(IDO_TIPOIDO);
|
||||
const TString16 tipoidostr(tipoido);
|
||||
if ((lastido.get_date(IDO_DATAIDO) >= datadon) && (tipoidostr == tipoultido))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -324,9 +326,9 @@ bool TCtbo2at::test_inter(TRectype& recsog, const char* tipo, const TDate& datad
|
||||
recsog.put(SOG_NUMCONV, 0);
|
||||
}
|
||||
// aggiorno data e utente ultimo aggiornamento (Cristina 18/09/2002)
|
||||
const TDate oggi(TODAY);
|
||||
recsog.put(SOG_DATAULTAGG,oggi);
|
||||
recsog.put(SOG_UTENULTAGG,"WINSIT");
|
||||
//const TDate oggi(TODAY);
|
||||
//recsog.put(SOG_DATAULTAGG,oggi);
|
||||
//recsog.put(SOG_UTENULTAGG,"WINSIT");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@ -379,7 +381,10 @@ void TCtbo2at::transfer()
|
||||
|
||||
//esegue l'effettivo passaggio dati basandosi sulla formattazione del file .ini
|
||||
_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" };
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user