#define TAB_REG "REG"
#define TAB_TPD "%TPD"
#define TAB_VAL "%VAL"
#define TAB_IVA "%IVA"

#define F_CODDITTA 101
#define F_DATASTAMPA 102
#define F_RAGSOC 104
#define F_CONTROLLO 105
#define F_ANNO 106
#define F_ALLEGATO 107
#define F_DATAINI 108
#define F_DATAFIN 109
#define F_NUMEROINI 110
#define F_NUMEROFIN 111
#define F_CAUSALEINI 112
#define F_CAUSALEFIN 113
#define F_REGISTROINI 114
#define F_REGISTROFIN 115
#define F_STAMPA 116
#define F_TIPOELENCO 117
#define F_CODICEINI 118
#define F_CODICEFIN 119
#define F_CAMBIO 120
#define F_DECIDI 121
#define F_ANNOC 122
#define F_CODICEINI1 123
#define F_CODICEFIN1 124
#define F_MOVIMENTI 125 
#define F_STAMPAMOVP 126
#define F_RAGSOCINI 127
#define F_RAGSOCFIN 128
#define F_RAGSOCINI1 129
#define F_RAGSOCFIN1 130

#define ST_DATA          0x0001
#define ST_NUMERO        0x0002
#define ST_CAUSALE       0x0004
#define ST_REGISTRO      0x0008
#define ST_DATI_IVA      0x0010
#define ST_CONTROLLO     0x0020
#define ST_SOLO_MOVERR   0x0040
#define ST_SENZA_CONTR   0x0080
#define ST_MESSAGGI      0x0100
#define ST_ANNO_COMP     0x0200 
#define ST_MESS_ALLEG    0x0400
#define ST_COMPLETA_DATA 0x0800
#define ST_COMPLETA_NUM  0x1000
#define ST_COMPLETA_CAUS 0x2000
#define ST_COMPLETA_REG  0x4000
#define ST_CODICE        0x8000

















