2008-08-04 14:33:35 +00:00
|
|
|
#include <applicat.h>
|
2008-08-01 09:18:35 +00:00
|
|
|
#include <automask.h>
|
2008-08-04 14:33:35 +00:00
|
|
|
#include <progind.h>
|
|
|
|
#include <recarray.h>
|
|
|
|
#include <relation.h>
|
|
|
|
#include <textset.h>
|
2008-08-01 09:18:35 +00:00
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
#include <mov.h>
|
|
|
|
#include <rmoviva.h>
|
2008-08-01 09:18:35 +00:00
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
#include "../cg/cgsaldac.h"
|
2008-08-01 09:18:35 +00:00
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
#include "lv2.h"
|
|
|
|
#include "lv2100a.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TGenera_planning maschera
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TGenera_planning_mask : public TAutomask
|
2008-08-01 09:18:35 +00:00
|
|
|
{
|
2008-08-04 14:33:35 +00:00
|
|
|
public:
|
|
|
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
|
|
|
TGenera_planning_mask (const char* name) : TAutomask(name) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
bool TGenera_planning_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
|
|
|
{
|
|
|
|
return true;
|
2008-08-01 09:18:35 +00:00
|
|
|
}
|
2008-08-04 14:33:35 +00:00
|
|
|
/*
|
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
// TGenera_planning recordset
|
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TGenera_planning_recordset : public TCSV_recordset
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TEsporta_ps0713_recordset();
|
|
|
|
};
|
2008-08-01 09:18:35 +00:00
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
|
|
|
|
TGenera_planning_recordset::TEsporta_ps0713_recordset()
|
|
|
|
: TCSV_recordset("CSV(\"\t\")")
|
2008-08-01 09:18:35 +00:00
|
|
|
{
|
|
|
|
}
|
2008-08-04 14:33:35 +00:00
|
|
|
*/
|
2008-08-01 09:18:35 +00:00
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TGenera_planning applicazione
|
|
|
|
///////////////////////////////////////////////////////////
|
2008-08-01 09:18:35 +00:00
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
class TGenera_planning_app : public TSkeleton_application
|
|
|
|
{
|
|
|
|
|
|
|
|
TGenera_planning_mask* _msk;
|
2008-08-01 09:18:35 +00:00
|
|
|
|
|
|
|
protected:
|
2008-08-04 14:33:35 +00:00
|
|
|
virtual bool create();
|
|
|
|
virtual bool destroy();
|
2008-08-01 09:18:35 +00:00
|
|
|
|
|
|
|
public:
|
2008-08-04 14:33:35 +00:00
|
|
|
bool transfer();
|
|
|
|
virtual void main_loop();
|
|
|
|
/*void esporta_righe_iva(const TMask& msk) const;
|
|
|
|
void set_inviva(TISAM_recordset& rmoviva) const;*/
|
|
|
|
|
2008-08-01 09:18:35 +00:00
|
|
|
};
|
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
bool TGenera_planning_app::create()
|
2008-08-01 09:18:35 +00:00
|
|
|
{
|
2008-08-04 14:33:35 +00:00
|
|
|
/*xvt_fsys_removefile(nomeini);
|
|
|
|
_configfile = new TConfig(nomeini);*/
|
2008-08-01 09:18:35 +00:00
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
_msk = new TGenera_planning_mask("lv2100a");
|
|
|
|
|
|
|
|
return TSkeleton_application::create();
|
2008-08-01 09:18:35 +00:00
|
|
|
}
|
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
bool TGenera_planning_app::destroy()
|
|
|
|
{
|
|
|
|
delete _msk;
|
|
|
|
//delete _configfile;
|
|
|
|
return TApplication::destroy();
|
2008-08-01 09:18:35 +00:00
|
|
|
}
|
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
bool TGenera_planning_app::transfer()
|
|
|
|
{
|
2008-08-01 09:18:35 +00:00
|
|
|
return true;
|
|
|
|
}
|
2008-08-04 14:33:35 +00:00
|
|
|
void TGenera_planning_app::main_loop()
|
|
|
|
{
|
|
|
|
while (_msk->run() == K_ENTER)
|
|
|
|
transfer();
|
|
|
|
}
|
2008-08-01 09:18:35 +00:00
|
|
|
|
2008-08-04 14:33:35 +00:00
|
|
|
int lv2100(int argc, char* argv[])
|
2008-08-01 09:18:35 +00:00
|
|
|
{
|
2008-08-04 14:33:35 +00:00
|
|
|
TGenera_planning_app app;
|
|
|
|
app.run(argc, argv, TR("Generazione automatica planning"));
|
2008-08-01 09:18:35 +00:00
|
|
|
return 0;
|
|
|
|
}
|