2006-12-20 15:35:49 +00:00
|
|
|
#ifndef __REPUTILS_H
|
|
|
|
#define __REPUTILS_H
|
|
|
|
|
|
|
|
#ifndef __REPORT_H
|
|
|
|
#include <report.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TAS400_report
|
|
|
|
// Report dinamico per visualizzare file di testo AS400
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TAS400_report : public TReport
|
|
|
|
{
|
|
|
|
TRecordset* _set; // TAS400_recordset
|
|
|
|
bool _owned;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual TRecordset* recordset() const;
|
|
|
|
virtual bool set_recordset(TRecordset* recset);
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual bool set_recordset(const TString& query);
|
|
|
|
|
|
|
|
TAS400_report(const char* query);
|
|
|
|
TAS400_report(TRecordset& recset); // TAS400_recordset!!!
|
|
|
|
};
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TLog_report
|
|
|
|
// Report per visualizzare file di log
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TLog_report : public TReport
|
|
|
|
{
|
|
|
|
TString _title;
|
2007-03-15 14:30:27 +00:00
|
|
|
bool _kill_duplicates;
|
2006-12-20 15:35:49 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool use_mask() { return false; }
|
|
|
|
virtual bool get_usr_val(const TString& name, TVariant& var) const;
|
|
|
|
virtual bool set_usr_val(const TString& name, const TVariant& var);
|
|
|
|
|
|
|
|
public:
|
|
|
|
void reset();
|
|
|
|
bool log(int severity, const char* msg); // severity: 0=normal; 1=warning; 2=error
|
|
|
|
void set_title(const char* title);
|
2007-03-15 14:30:27 +00:00
|
|
|
void kill_duplicates(bool k = true) {_kill_duplicates = k;}
|
2007-03-06 14:41:36 +00:00
|
|
|
const TString& title() const { return _title; }
|
2010-04-13 14:30:29 +00:00
|
|
|
TLog_report(const char* title = "", const char* name = "bagn010a");
|
2006-12-20 15:35:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|