#ifndef __CG2105_H__ #define __CG2105_H__ #ifndef __CGSALDAC_H__ #include "../cg/cgsaldac.h" #endif #ifndef __AUTOMASK_H__ #include #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