campo-sirio/cg/cg2105.h
(no author) a9ae94d684 This commit was manufactured by cvs2svn to create branch 'R_10_00'.
git-svn-id: svn://10.65.10.50/branches/R_10_00@21308 c028cbd2-c16b-5b4b-a496-9718f37d4682
2010-12-15 10:09:40 +00:00

73 lines
1.8 KiB
C++
Executable File

#ifndef __CG2105_H__
#define __CG2105_H__
#ifndef __CGSALDAC_H__
#include "../cg/cgsaldac.h"
#endif
#ifndef __AUTOMASK_H__
#include <automask.h>
#endif
class TNew_mask : public TAutomask
{
bool _allow_fatt;
protected:
virtual bool on_field_event(TOperable_field& f, TField_event e, long jolly);
public:
void init(char tipocf, bool fatt, bool edit);
TNew_mask(char tipocf, bool fatt, bool edit);
};
class TGame_mask;
class TPay_mask : public TMask
{
TDate _datadoc, _datarat;
real _da_pagare, _pagabile;
#ifndef __EXTRA__
const TGame_mask* _parent;
#endif
tipo_movimento _tipomov;
bool _assigned;
bool _can_solder;
bool _swap_ritsoc;
protected:
static bool importo_handler(TMask_field& f, KEY k);
static bool importolire_handler(TMask_field& f, KEY k);
static bool saldo_handler(TMask_field& f, KEY k);
static bool datapag_handler(TMask_field& f, KEY k);
static bool conto_handler(TMask_field& f, KEY k);
static bool descr_handler(TMask_field& f, KEY k);
void gioca_cambi(int force = 0x0);
#ifdef __EXTRA__
static bool datareg_handler(TMask_field& f, KEY k);
static bool datadoc_handler(TMask_field& f, KEY k);
static bool numdoc_handler(TMask_field& f, KEY k);
static bool sezione_handler(TMask_field& f, KEY k);
#endif
public:
void set_pag(const TRectype& oldpag, const TRiga_scadenze& scad, const TImporto& importo);
void get_pag(TRectype& oldpag, TRectype& somma) const;
bool assigned() const { return _assigned; }
bool unassigned() const { return !_assigned; }
tipo_movimento tipo() const { return _tipomov; }
void attiva_valuta(bool on);
void init(const TGame_mask* parent, int mode);
TPay_mask(const TGame_mask* parent, int mode);
virtual ~TPay_mask();
};
#endif