75 lines
1.4 KiB
C++
75 lines
1.4 KiB
C++
|
#include "tp0900a.h"
|
||
|
|
||
|
#include <applicat.h>
|
||
|
#include <automask.h>
|
||
|
#include <modaut.h>
|
||
|
#include <progind.h>
|
||
|
#include <reprint.h>
|
||
|
#include <reputils.h>
|
||
|
|
||
|
///////////////////////////////////////////////////////////
|
||
|
// MASCHERA
|
||
|
///////////////////////////////////////////////////////////
|
||
|
class TDichiarazione_CONAI_mask : public TAutomask
|
||
|
{
|
||
|
protected:
|
||
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||
|
|
||
|
public:
|
||
|
TDichiarazione_CONAI_mask();
|
||
|
virtual ~TDichiarazione_CONAI_mask() {}
|
||
|
};
|
||
|
|
||
|
TDichiarazione_CONAI_mask::TDichiarazione_CONAI_mask() : TAutomask("tp0900a")
|
||
|
{
|
||
|
}
|
||
|
|
||
|
bool TDichiarazione_CONAI_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
||
|
{
|
||
|
switch (o.dlg())
|
||
|
{
|
||
|
case F_PERIODO:
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
///////////////////////////////////////////////////////////
|
||
|
// APPLICAZIONE
|
||
|
///////////////////////////////////////////////////////////
|
||
|
|
||
|
class TDichiarazione_CONAI : public TSkeleton_application
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
virtual bool create();
|
||
|
virtual void main_loop();
|
||
|
|
||
|
};
|
||
|
|
||
|
void TDichiarazione_CONAI::main_loop()
|
||
|
{
|
||
|
TDichiarazione_CONAI_mask mask;
|
||
|
while (mask.run() == K_ENTER)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
bool TDichiarazione_CONAI::create()
|
||
|
{
|
||
|
if (!has_module(DCAUT))
|
||
|
return error_box(TR("Modulo non autorizzato"));
|
||
|
|
||
|
return TSkeleton_application::create();
|
||
|
}
|
||
|
|
||
|
int tp0900(int argc, char* argv[])
|
||
|
{
|
||
|
TDichiarazione_CONAI dc;
|
||
|
dc.run(argc, argv, TR("Dichiarazione CONAI"));
|
||
|
return 0;
|
||
|
}
|