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