7e9f0d51c5
Aggiunto campo NUMDOCEXT in prima nota git-svn-id: svn://10.65.10.50/branches/R_10_00@22787 c028cbd2-c16b-5b4b-a496-9718f37d4682
53 lines
1.4 KiB
C++
Executable File
53 lines
1.4 KiB
C++
Executable File
#ifndef __CG2107_H__
|
|
#define __CG2107_H__
|
|
|
|
#ifndef __AUTOMASK_H
|
|
#include <automask.h>
|
|
#endif
|
|
|
|
#ifndef __CSSALDA3_H
|
|
#include "../cg/cgsalda3.h"
|
|
#endif
|
|
|
|
|
|
class TEasySolder_mask : public TAutomask
|
|
{
|
|
TBill _conto; // Conto fisso del cliente/fornitore
|
|
int _anno; // Anno della partita corrente
|
|
TString8 _numpart; // Numero partita corrente
|
|
long _numreg; // Numero movimento contabile
|
|
int _numrig; // Riga contabile corrente (prima = 1!)
|
|
tipo_movimento _tipomov; // Tipo movimento specificato sulla causale
|
|
bool _changed;
|
|
TSolder_tree* _tree;
|
|
|
|
real _tot_val, _tot_eur, _res_val, _res_eur;
|
|
|
|
protected:
|
|
virtual long handler(WINDOW w, EVENT* e);
|
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
|
void set_imp(short id, const TImporto& imp);
|
|
|
|
void fill_sheet();
|
|
void save_sheet();
|
|
|
|
char calcola_sezione() const;
|
|
void calcola_residuo();
|
|
void aggiorna_residuo();
|
|
bool in_valuta() const;
|
|
|
|
real val2eur(const real& val) const;
|
|
real eur2val(const real& val) const;
|
|
TImporto eur2val(const TImporto& imp) const;
|
|
|
|
static bool sheet_rate_filler(TTree& tree, void* jolly, word flags);
|
|
|
|
public:
|
|
bool changed() const { return _changed; }
|
|
void init(const TBill& conto, long numreg, int numrig);
|
|
TEasySolder_mask(const TBill& conto, long numreg, int numrig);
|
|
virtual ~TEasySolder_mask();
|
|
};
|
|
|
|
#endif
|