Piu correzioni varie git-svn-id: svn://10.65.10.50/trunk@4768 c028cbd2-c16b-5b4b-a496-9718f37d4682
81 lines
1.8 KiB
C++
Executable File
81 lines
1.8 KiB
C++
Executable File
#ifndef __CLIFOR_H
|
|
#define __CLIFOR_H
|
|
|
|
#ifndef __MULTIREC_H
|
|
#include <multirec.h>
|
|
#endif
|
|
|
|
#ifndef __MASK_H
|
|
#include <mask.h>
|
|
#endif
|
|
|
|
#ifndef __LFFILES_H
|
|
#include <lffiles.h>
|
|
#endif
|
|
|
|
#ifndef __CLIFO_H
|
|
#include <clifo.h>
|
|
#endif
|
|
|
|
#ifndef __CFVEN_H
|
|
#include <cfven.h>
|
|
#endif
|
|
|
|
#ifndef __INDSP_H
|
|
#include <indsp.h>
|
|
#endif
|
|
|
|
#ifndef __OCCAS_H
|
|
#include <occas.h>
|
|
#endif
|
|
|
|
class TOccasionale : public TRectype
|
|
{
|
|
TRecfield * _cod;
|
|
|
|
public:
|
|
const char * codice() const { return (const char *) *_cod;}
|
|
TRectype & operator = (const TRectype& r);
|
|
|
|
TOccasionale();
|
|
TOccasionale(const TRectype& r);
|
|
|
|
virtual ~TOccasionale();
|
|
};
|
|
|
|
class TCli_for : public TMultiple_rectype
|
|
{
|
|
TRecfield * _tipo;
|
|
TRecfield * _codice;
|
|
TRecfield * _ven_tipo;
|
|
TRecfield * _ven_codice;
|
|
|
|
TRectype _ven_rec;
|
|
|
|
protected:
|
|
virtual int write_rewrite(TBaseisamfile& f, bool re = FALSE) const;
|
|
|
|
public:
|
|
bool occasionale() const { return get_bool(CLI_OCCAS ); };
|
|
TRectype & vendite() const;
|
|
// TMask& occas_mask( ){ return _occas_mask; };
|
|
// static bool occas_code_handler(TMask_field& f, KEY key);
|
|
// int write_occas( );
|
|
// void edita_occasionale( );
|
|
|
|
char tipo() const { return *(const char *) (*_tipo); }
|
|
long codice() const { return (long) *_codice; }
|
|
bool ok() const { return !empty();}
|
|
|
|
virtual int read(TRectype & rec, word op = _isequal, word lockop = _nolock);
|
|
int read(char tipo, long codice, word op = _isequal, word lockop = _nolock);
|
|
virtual int remove(TBaseisamfile& f) const;
|
|
|
|
TCli_for(char tipo = ' ', long codice = 0L);
|
|
TCli_for(const TRectype & rec);
|
|
TCli_for(const TCli_for & c);
|
|
virtual ~TCli_for();
|
|
};
|
|
|
|
#endif
|