Sistemata maschera e scrittura tabelle

git-svn-id: svn://10.65.10.50/trunk@138 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1994-09-02 10:41:59 +00:00
parent 6ca826673d
commit c5bb6635d1

View File

@ -47,8 +47,8 @@
// ------------------------------------------------------------------
// per il campo I0 di pim
#define NETTO (1)
#define LORDO (2)
#define NETTO "1"
#define LORDO "2"
enum tiporeg { vendita = 1, acquisto = 2 };
enum recalc { needed = 1, one = 2, ever = 3, never = 4 };
@ -74,16 +74,16 @@ enum tbc { precedente = 1, incorso = 2};
// ...............................................................
// support structs
// ...............................................................
class _VentItem : public TObject
{
public: // non e' bello, ma non e' bello neanche dover fare un
// TObject per poter mettere una struct in un TArray
// TObject per poter mettere una struct in un TArray
real _imposta; // per comodita'
real _aliquota; // aliquota iva
real _totale; // totale acquisti
TString _codiva; // codice iva
_VentItem() : _imposta(0.0), _totale(0.0) {}
_VentItem() : _imposta(0.0), _totale(0.0) {}
virtual ~_VentItem() {}
};
@ -105,19 +105,19 @@ class _DescrItem : public TObject
public:
word _flags;
word _f0, _f1, _f2,
_f3;
_f3;
TString _s0, _s1, _s2,
_s3, _s4;
_s3, _s4;
real _r0, _r1, _r2,
_r3, _r4, _r5,
_r6, _r7, _r8,
_r9, _r10,_r11;
_r3, _r4, _r5,
_r6, _r7, _r8,
_r9, _r10,_r11;
TArray _arr;
_DescrItem(word f) : _f0(0), _f1(0), _f2(0), _arr(4)
{ _flags = f; }
{ _flags = f; }
virtual ~_DescrItem()
{ }
{ }
};
class _ErrItem : public TObject
@ -127,7 +127,7 @@ public:
TString _att;
TString _firm;
_ErrItem(const char* err, const char* att, const char* firm)
{ _err = err; _att = att; _firm = firm; }
{ _err = err; _att = att; _firm = firm; }
virtual ~_ErrItem() {}
};
@ -237,7 +237,7 @@ class CG4300_App : public TPrintapp
TRecfield* _del_tipo;
public:
virtual void user_create();
virtual void user_destroy();
virtual bool set_print(int i);
@ -282,7 +282,7 @@ public:
// plafond
void zero_plafond (int month, const char* codatt);
void add_plafond (int month, const char* codatt, int type,
real& howmuch, bool intra);
real& howmuch, bool intra);
// ritorna l'aliquota ordinaria dal
// codice IVA apposito immesso nei parametri studio
@ -315,7 +315,7 @@ public:
// cercapalle in tabelle con opzione di creazione se serve
bool look_pim(int m, const char* a, const char* r, const char* cr,
const char* i, bool create = FALSE);
const char* i, bool create = FALSE);
bool look_plm(int m, const char* a, bool create = FALSE);
bool look_ptm(int m, const char* a, bool create = FALSE);
bool look_lim(int m, bool create = FALSE);
@ -352,14 +352,14 @@ public:
// cippiuppiu'
CG4300_App() : TPrintapp(), _ditte(NULL), _selected(10000), _year(4),
_nomiditte(100)
{
_isprint = TRUE; _recalc = needed;
_isplafond = FALSE; _isfinal = FALSE;
_isvent = _isagricolo = _isbenzinaro = _isviaggio = FALSE;
_row = 1; _what = all; _comp_acconto = FALSE;
_isriepilogo = FALSE; _calcall = FALSE;
}
_nomiditte(100)
{
_isprint = TRUE; _recalc = needed;
_isplafond = FALSE; _isfinal = FALSE;
_isvent = _isagricolo = _isbenzinaro = _isviaggio = FALSE;
_row = 1; _what = all; _comp_acconto = FALSE;
_isriepilogo = FALSE; _calcall = FALSE;
}
virtual ~CG4300_App() {}
};