Introdotto il messaggio utente "file empty" dopo la crazione del riepilogo statistiche

git-svn-id: svn://10.65.10.50/trunk@5510 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
augusto 1997-10-31 16:51:04 +00:00
parent 8458c0334a
commit d46ff4f922
3 changed files with 10 additions and 1 deletions

View File

@ -135,6 +135,8 @@ void TRicalcolo_stats::calc_stats(const TDate& dfr, const TDate& dto)
_agg.update();
}
_agg.update();
if (_agg.empty())
message_box("Attenzione: l'archivio riepilogativo delle statistiche ora ricalcolato risulta vuoto");
}

View File

@ -476,6 +476,12 @@ bool TStats_agg::add(const TRiga_documento& rdoc)
return ok;
}
bool TStats_agg::empty()
{
TLocalisamfile stat(LF_SVRIEP);
return stat.empty();
}
bool TStats_agg::update()
{
// eliminato perché rompeva a Sandro

View File

@ -76,7 +76,8 @@ public:
bool sub(const TRiga_documento& rdoc);
bool add(const TRiga_documento& rdoc);
bool update();
// restituisce TRUE se l'archivio di riepilogo è vuoto
bool empty();
TFrequenza_statistiche frequency() const
{ return _frequenza; }