Files correlati : Ricompilazione Demo : [ ] Commento :modulo co allineato alla 3.2 git-svn-id: svn://10.65.10.50/trunk@16918 c028cbd2-c16b-5b4b-a496-9718f37d4682
65 lines
1.3 KiB
C++
Executable File
65 lines
1.3 KiB
C++
Executable File
#include <applicat.h>
|
|
#include <automask.h>
|
|
#include <reprint.h>
|
|
|
|
#include "co1.h"
|
|
#include "co1300a.h"
|
|
|
|
|
|
////////////////////////////////////////////////////////
|
|
// MASCHERA
|
|
////////////////////////////////////////////////////////
|
|
class TEstrattoConto_mask : public TAutomask
|
|
{
|
|
protected:
|
|
bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
|
public:
|
|
TEstrattoConto_mask();
|
|
virtual ~TEstrattoConto_mask() {};
|
|
};
|
|
|
|
TEstrattoConto_mask::TEstrattoConto_mask() :TAutomask ("co1300a")
|
|
{
|
|
}
|
|
|
|
bool TEstrattoConto_mask::on_field_event(TOperable_field& f, TField_event e, long jolly)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////
|
|
// REPORT
|
|
////////////////////////////////////////////////////////
|
|
|
|
// vediamo se serve
|
|
|
|
////////////////////////////////////////////////////////
|
|
// APPLICAZIONE
|
|
////////////////////////////////////////////////////////
|
|
class TEstrattoConto : public TSkeleton_application
|
|
{
|
|
public:
|
|
virtual void main_loop();
|
|
};
|
|
|
|
void TEstrattoConto::main_loop()
|
|
{
|
|
TEstrattoConto_mask mask;
|
|
while (mask.run() == K_ENTER)
|
|
{
|
|
//report e book dei report
|
|
TReport_book book;
|
|
TReport rep;
|
|
rep.load("co1300a");
|
|
book.add(rep);
|
|
book.print_or_preview();
|
|
}
|
|
}
|
|
|
|
int co1300(int argc, char* argv[])
|
|
{
|
|
TEstrattoConto a;
|
|
a.run(argc, argv, TR("Stampa estratto conto"));
|
|
return 0;
|
|
}
|