Files correlati : ve7.ex Commento : Dichiarazione IVA inizio git-svn-id: svn://10.65.10.50/branches/R_10_00@23303 c028cbd2-c16b-5b4b-a496-9718f37d4682
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
// Programma per la stampa del quadro VC
|
|
#include <tabutil.h>
|
|
|
|
#include "cg7401.h"
|
|
|
|
#include "cg7400a.h"
|
|
|
|
class TQuadro_VC_recordset : public TQuadro_IVA_recordset
|
|
{
|
|
protected:
|
|
virtual void load(const long year);
|
|
|
|
public:
|
|
TQuadro_VC_recordset(const char* use, const int year) : TQuadro_IVA_recordset(use, year) {}
|
|
virtual ~TQuadro_VC_recordset() {}
|
|
};
|
|
|
|
void TQuadro_VC_recordset::load(const long year)
|
|
{
|
|
TArray _aliquote;
|
|
TArray _codiva;
|
|
|
|
TTable pem("PEM");
|
|
TString16 key;
|
|
|
|
key.format("%04d00", year);
|
|
pem.put("CODTAB", key);
|
|
int err = pem.read();
|
|
|
|
|
|
if (err == NOERR)
|
|
{
|
|
}
|
|
else
|
|
warning_box(FR("Risultati liquidazione non presenti o da ricalcolare per l'anno %d."), year);
|
|
}
|
|
|
|
|
|
class TQuadro_VC_app : public TQuadro_IVA_app
|
|
{
|
|
public:
|
|
virtual TQuadro_IVA_recordset * app_recordset(const char* use, const int year) { return new TQuadro_VC_recordset(use, year); }
|
|
TQuadro_VC_app() : TQuadro_IVA_app("Stampa Quadro VC", "cg7400a") {}
|
|
virtual ~TQuadro_VC_app() {}
|
|
};
|
|
|
|
int cg7400(int argc, char* argv[])
|
|
{
|
|
TQuadro_VC_app a;
|
|
a.run(argc, argv, TR("Quadro VC"));
|
|
return 0;
|
|
} |