2002-12-20 16:15:03 +00:00
|
|
|
#include <modaut.h>
|
2007-10-29 10:29:06 +00:00
|
|
|
#include <tabutil.h>
|
2002-12-20 16:15:03 +00:00
|
|
|
|
2007-06-08 08:57:47 +00:00
|
|
|
#include "bainstlib.h"
|
1998-11-04 18:04:26 +00:00
|
|
|
|
|
|
|
class TInstall_MG : public TInstallmodule_app
|
|
|
|
{
|
|
|
|
protected:
|
2007-06-08 08:57:47 +00:00
|
|
|
virtual int module_number() const { return MGAUT; }
|
2007-10-29 10:29:06 +00:00
|
|
|
virtual bool something_to_load() const;
|
1998-11-04 18:04:26 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual ~TInstall_MG () {}
|
|
|
|
};
|
|
|
|
|
2007-10-29 10:29:06 +00:00
|
|
|
//le tabelle di magazzino, non essendo ministeriali, vengono aggiornate soltanto se vuote! Questo per...
|
|
|
|
//..evitare la comparsa di record non creati dall'utente che va in confusione mentale!!
|
|
|
|
bool TInstall_MG::something_to_load() const
|
|
|
|
{
|
|
|
|
if (test_database())
|
|
|
|
{
|
|
|
|
TTable cau("%CAU");
|
|
|
|
if (!cau.empty())
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return TInstallmodule_app::something_to_load();
|
|
|
|
}
|
|
|
|
|
1998-11-04 18:04:26 +00:00
|
|
|
int bainst32(int argc, char** argv)
|
|
|
|
{
|
|
|
|
TInstall_MG app;
|
|
|
|
app.run(argc, argv);
|
|
|
|
return 0;
|
|
|
|
}
|