96f33c01ee
Files correlati : ve6.exe Ricompilazione Demo : [ ] Commento : Riportata la versione 3.1 patch 979 git-svn-id: svn://10.65.10.50/trunk@15623 c028cbd2-c16b-5b4b-a496-9718f37d4682
71 lines
1.4 KiB
C++
Executable File
71 lines
1.4 KiB
C++
Executable File
#include <applicat.h>
|
|
#include <automask.h>
|
|
#include <reprint.h>
|
|
|
|
#include "pg0001.h"
|
|
#include "pg0001400a.h"
|
|
|
|
class TMaskpg00014 : public TAutomask
|
|
{
|
|
protected:
|
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
|
|
|
public:
|
|
TMaskpg00014() : TAutomask("pg0001400a") { }
|
|
virtual ~TMaskpg00014() { }
|
|
};
|
|
|
|
bool TMaskpg00014::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
class TStampaBollettini : public TSkeleton_application
|
|
{
|
|
virtual bool check_autorization() const {return false;}
|
|
virtual const char * extra_modules() const {return "ba";}
|
|
|
|
protected:
|
|
virtual void main_loop();
|
|
|
|
public:
|
|
};
|
|
|
|
void TStampaBollettini::main_loop()
|
|
{
|
|
TMaskpg00014 m;
|
|
while (m.run() != K_QUIT)
|
|
{
|
|
TReport_book book;
|
|
TReport rep;
|
|
TFilename report_name("condeco");
|
|
|
|
report_name.ext("rep");
|
|
report_name.custom_path();
|
|
if (rep.load(report_name))
|
|
{
|
|
TRecordset * r = rep.recordset();
|
|
if (r != NULL)
|
|
{
|
|
TVariant var;
|
|
var = m.get(F_NUMBER);
|
|
r->set_var("#F_NUMBER", var);
|
|
var = m.get(F_DATAEMIS);
|
|
r->set_var("#F_DATAEMIS", var);
|
|
var = m.get(F_CAUSALE);
|
|
r->set_var("#F_CAUSALE", var);
|
|
}
|
|
book.add(rep);
|
|
if (book.pages() > 0)
|
|
book.print_or_preview();
|
|
}
|
|
}
|
|
}
|
|
|
|
int pg0001400(int argc, char* argv[])
|
|
{
|
|
TStampaBollettini a;
|
|
a.run(argc, argv, "Stampa Bollettini Postali");
|
|
return 0;
|
|
}
|