2006-12-13 16:22:33 +00:00
|
|
|
#ifndef __VELIB07_H
|
|
|
|
#define __VELIB07_H
|
|
|
|
|
|
|
|
#ifndef __VELIB_H
|
|
|
|
#include "velib.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __REPORT_H
|
|
|
|
#include <report.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TDocument_cache
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TDocument_cache : TCache
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual TObject* key2obj(const char* key);
|
|
|
|
|
|
|
|
public:
|
|
|
|
TDocumento& doc(const TRectype& rec);
|
|
|
|
|
|
|
|
TDocument_cache();
|
|
|
|
virtual ~TDocument_cache();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TDocument_recordset
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TDocument_recordset : public TISAM_recordset
|
|
|
|
{
|
|
|
|
TDocument_cache _cache;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual const TVariant& get_field(int logic, const char* field) const;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
TDocument_recordset(const char* use) : TISAM_recordset(use) { }
|
|
|
|
virtual ~TDocument_recordset() { }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TDocument_report
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TDocument_report : public TReport
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual bool set_recordset(const TString& query);
|
|
|
|
|
|
|
|
public:
|
|
|
|
bool load(const char* name);
|
|
|
|
};
|
|
|
|
|
2007-01-22 10:17:12 +00:00
|
|
|
#endif
|