Stampa registri completa (senza ancora liquidazione)
git-svn-id: svn://10.65.10.50/trunk@216 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
efa6c4e8ee
commit
2b1c61fb33
1362
cg/cg4400.cpp
1362
cg/cg4400.cpp
File diff suppressed because it is too large
Load Diff
64
cg/cg4400.h
64
cg/cg4400.h
@ -24,14 +24,12 @@
|
||||
|
||||
#include "cglib03.h"
|
||||
|
||||
//const int MAXSTR = 255;
|
||||
//static char __tmp[MAXSTR];
|
||||
|
||||
//enum STAMPA { bollati=1, unici=2 };
|
||||
const int TABREG = (int)TTable::name2log("REG");
|
||||
//enum STAMPA { bollati=1, unici=2 };
|
||||
const int TABREG = (int)TTable::name2log("REG");
|
||||
|
||||
bool filter_func (const TRelation*);
|
||||
bool my_handler (TMask_field&, KEY);
|
||||
bool mask_from_to (TMask_field&, KEY);
|
||||
bool mask_cod (TMask_field&, KEY);
|
||||
bool mask_data (TMask_field&, KEY);
|
||||
bool mask_mese (TMask_field&, KEY);
|
||||
@ -59,17 +57,17 @@ public:
|
||||
|
||||
class CG4400_application : public TPrintapp
|
||||
{
|
||||
friend bool filter_func (const TRelation *r);
|
||||
friend bool mask_cod (TMask_field&, KEY);
|
||||
friend bool mask_mese (TMask_field&, KEY);
|
||||
//friend bool mask_fino_a_mese (TMask_field&, KEY);
|
||||
friend bool my_handler (TMask_field&, KEY);
|
||||
friend bool mask_select (TMask_field&, KEY);
|
||||
friend bool mask_verifica (TMask_field&, KEY);
|
||||
friend bool mask_annulla (TMask_field&, KEY);
|
||||
friend bool filter_func (const TRelation *r);
|
||||
friend bool mask_cod (TMask_field&, KEY);
|
||||
friend bool mask_from_to (TMask_field&, KEY);
|
||||
friend bool mask_mese (TMask_field&, KEY);
|
||||
friend bool my_handler (TMask_field&, KEY);
|
||||
friend bool mask_select (TMask_field&, KEY);
|
||||
friend bool mask_verifica (TMask_field&, KEY);
|
||||
friend bool mask_annulla (TMask_field&, KEY);
|
||||
|
||||
TCursor * _cur;
|
||||
TRelation *_rel;
|
||||
TCursor * _cur;
|
||||
TRelation *_rel;
|
||||
TLocalisamfile *_clifo, *_nditte, *_occas, *_tab, *_tabcom;
|
||||
TTable *_tabreg, *_tablbu, *_tabinl, *_tablim, *_tabpim;
|
||||
TRigaiva_array _iva_array, _riga_rmi;
|
||||
@ -79,25 +77,25 @@ class CG4400_application : public TPrintapp
|
||||
TBit_array _selected;
|
||||
TArray _nomiditte; //array descrizioni ditte per sheet
|
||||
TRecnotype _nrec;
|
||||
bool _mov_empty, _stampa_ind_ditta, _stampa_tutti_i_registri;
|
||||
bool _mov_empty, _stampa_ind_ditta, _stampa_tutti_i_registri;
|
||||
char _frequiva;
|
||||
TDate _data_da, _data_a, _data_stampa, _dataregp, _dataregs, _datareg;
|
||||
long _n_ditte, _u_stampata, _primast;
|
||||
int _fino_a_mese, _tipo_reg, _tipo_stampa, _pagine_stampate;
|
||||
int _annoes, _r, _stampa_width; // riga corrente di stampa
|
||||
TDate _data_da, _data_a, _data_stampa, _dataregp, _dataregs, _datareg;
|
||||
long _n_ditte, _u_stampata, _primast;
|
||||
int _fino_a_mese, _tipo_reg, _tipo_stampa, _pagine_stampate;
|
||||
int _annoes, _r, _stampa_width; // riga corrente di stampa
|
||||
real _totale_doc;
|
||||
TString _codreg, _desc_lib, _codatt, _attivita;
|
||||
TString _codreg, _desc_lib, _codatt, _attivita;
|
||||
TString _tipodoc, _descr_doc, _codlib;
|
||||
|
||||
public:
|
||||
const char* desc_attivita (const char * codatt);
|
||||
const char* desc_attivita (const char * codatt);
|
||||
const char* descr_doc (const char * tipo);
|
||||
const char* descr_iva (const char * cod);
|
||||
const char* ricerca_cf (char tipocf, long codcf);
|
||||
const char* ricerca_occ(const char * occ);
|
||||
const char* ricerca_cf (char tipocf, long codcf);
|
||||
const char* ricerca_occ(const char * occ);
|
||||
int setta_riga (int, const TRigaiva&, real&, real&, real&, real&);
|
||||
int riga_rmoviva();
|
||||
bool set_print(int);
|
||||
bool set_print(int);
|
||||
bool set_ditte(TMask&);
|
||||
bool compila_reg(const TMask&);
|
||||
bool compila_lib();
|
||||
@ -106,21 +104,21 @@ public:
|
||||
void cerca_reg(const TString&, byte&, TDate&);
|
||||
//void leggi_movimenti(const TDate&, const TString&, bool&);
|
||||
void stampa_registri_IVA(const TMask&);
|
||||
void set_page_tot_reg();
|
||||
void set_page_tot_reg();
|
||||
void aggiorna_reg();
|
||||
void aggiorna_lib();
|
||||
void calcola_progressivi(real&, real&, const char*, const int);
|
||||
void user_create();
|
||||
void user_destroy();
|
||||
bool preprocess_page(int, int);
|
||||
int stampa_intestazione_ditta();
|
||||
bool preprocess_print(int, int);
|
||||
print_action postprocess_print(int, int);
|
||||
void user_create();
|
||||
void user_destroy();
|
||||
bool preprocess_page(int, int);
|
||||
int stampa_intestazione_ditta();
|
||||
bool preprocess_print(int, int);
|
||||
print_action postprocess_print(int, int);
|
||||
print_action postprocess_page (int, int);
|
||||
void preprocess_header();
|
||||
|
||||
CG4400_application() : TPrintapp(),_ditte(NULL),_selected(10000),
|
||||
_nomiditte(100) {}
|
||||
_nomiditte(100) {}
|
||||
|
||||
virtual ~CG4400_application() {}
|
||||
};
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include "cg4400.h"
|
||||
|
||||
static TString256 tmp;
|
||||
|
||||
TRectype& TDati_ditta::look_com(const char * cod)
|
||||
{
|
||||
@ -39,8 +40,8 @@ TDati_ditta::~TDati_ditta()
|
||||
|
||||
void TDati_ditta::get_dati_ditta ()
|
||||
{
|
||||
TString codanagr;
|
||||
TString tipoa;
|
||||
TString16 codanagr;
|
||||
char tipoa;
|
||||
|
||||
_nditte->zero();
|
||||
_nditte->put(NDT_CODDITTA, _codditta);
|
||||
@ -49,8 +50,8 @@ void TDati_ditta::get_dati_ditta ()
|
||||
if (_nditte->bad()) _nditte->zero();
|
||||
|
||||
_ragsoc = _nditte->get(NDT_RAGSOC);
|
||||
codanagr = _nditte->curr().get(NDT_CODANAGR);
|
||||
tipoa = _nditte->curr().get(NDT_TIPOA);
|
||||
codanagr = _nditte->get(NDT_CODANAGR);
|
||||
tipoa = _nditte->get_char(NDT_TIPOA);
|
||||
|
||||
_anag->setkey(1);
|
||||
_anag->zero();
|
||||
@ -87,34 +88,20 @@ void TDati_ditta::get_dati_ditta ()
|
||||
|
||||
const char * TDati_ditta::prima_riga()
|
||||
{
|
||||
//TString riga(_stampa_width);
|
||||
//tmp = "";
|
||||
TString tmp(132);
|
||||
get_dati_ditta();
|
||||
|
||||
/*
|
||||
riga.format("Ditta %d %s Via %s %s %s %s", _codditta,
|
||||
(const char *)_ragsoc,(const char *)_viafis, (const char *)_cap,
|
||||
(const char *)_comunefis, (const char *)_provfis);
|
||||
*/
|
||||
tmp.format("Ditta %ld ", _codditta);
|
||||
tmp << format("%s %s %s %s %s",
|
||||
(const char *)_ragsoc,(const char *)_viafis, (const char *)_cap,
|
||||
(const char *)_comunefis, (const char *)_provfis);
|
||||
//tmp = riga;
|
||||
tmp << "Ditta " << _codditta << ' ' << _ragsoc << " Via " << _viafis << ' '
|
||||
<< _cap << ' ' << _comunefis << ' ' << _provfis;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
const char * TDati_ditta::seconda_riga()
|
||||
{
|
||||
//TString riga(_stampa_width);
|
||||
//tmp = "";
|
||||
TString tmp(132);
|
||||
tmp = "";
|
||||
tmp = "Data @<";
|
||||
tmp.right_just(_stampa_width-15);
|
||||
tmp.overwrite (format ("Partita iva %s @26gCodice fiscale %s",
|
||||
(const char*)_paiva, (const char*)_cofi));
|
||||
//tmp = riga;
|
||||
(const char*)_paiva, (const char*)_cofi));
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user