//---------------------------------------------------------------------------

#ifndef PrintAuditTrail_FormH
#define PrintAuditTrail_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "TntStdCtrls.hpp"
#include <ExtCtrls.hpp>
#include <QuickRpt.hpp>
#include <QRCtrls.hpp>
#include "CSVLog.h"
#include <ComCtrls.hpp>
#include "TntExtCtrls.hpp"
//---------------------------------------------------------------------------
class TPrintAuditTrailForm : public TForm
{
__published:	// IDE-managed Components
    TTntButton *TntButton1;
    TTntButton *TntButton2;
    TTntButton *TntButton3;
    TTntButton *TntButton4;
    TPanel *Panel1;
    TPanel *Panel2;
    TGroupBox *GroupBox1;
    TPanel *Panel3;
    TStaticText *StaticText2;
    TStaticText *ReportPageLabel;
    TUpDown *UpDown1;
    TQuickRep *QuickRep1;
    TQRShape *QRShape1;
    TQRLabel *QRLabel1;
    TQRLabel *QRLabel4;
    TQRLabel *QRLabel6;
    TQRLabel *QRLabel2;
    TQRLabel *QRLabel3;
    TQRLabel *QRLabel7;
    TQRShape *QRShape7;
    TQRShape *QRShape8;
    TQRShape *QRShape9;
    TQRShape *QRShape10;
    TQRShape *QRShape11;
    TQRShape *QRShape12;
    TQRLabel *QRLabel5;
    TQRShape *QRShape13;
    TQRShape *QRShape14;
    TQRShape *QRShape15;
    TQRShape *QRShape16;
    TQRShape *QRShape17;
    TQRShape *QRShape18;
    TQRShape *QRShape19;
    TQRShape *QRShape20;
    TQRShape *QRShape21;
    TQRShape *QRShape22;
    TQRShape *QRShape23;
    TQRShape *QRShape24;
    TQRShape *QRShape25;
    TQRShape *QRShape26;
    TQRShape *QRShape27;
    TQRShape *QRShape31;
    TQRLabel *NoLabel1;
    TQRLabel *TypeLabel1;
    TQRLabel *TimeLabel1;
    TQRLabel *UserLabel1;
    TQRLabel *QnameLabel1;
    TQRLabel *MemoLabel1;
    TQRLabel *NoLabel2;
    TQRLabel *TypeLabel2;
    TQRLabel *TimeLabel2;
    TQRLabel *UserLabel2;
    TQRLabel *QnameLabel2;
    TQRLabel *MemoLabel2;
    TQRLabel *NoLabel3;
    TQRLabel *TypeLabel3;
    TQRLabel *TimeLabel3;
    TQRLabel *UserLabel3;
    TQRLabel *QnameLabel3;
    TQRLabel *MemoLabel3;
    TQRLabel *NoLabel4;
    TQRLabel *TypeLabel4;
    TQRLabel *TimeLabel4;
    TQRLabel *UserLabel4;
    TQRLabel *QnameLabel4;
    TQRLabel *MemoLabel4;
    TQRLabel *NoLabel5;
    TQRLabel *TypeLabel5;
    TQRLabel *TimeLabel5;
    TQRLabel *UserLabel5;
    TQRLabel *QnameLabel5;
    TQRLabel *MemoLabel5;
    TQRLabel *NoLabel6;
    TQRLabel *TypeLabel6;
    TQRLabel *TimeLabel6;
    TQRLabel *UserLabel6;
    TQRLabel *QnameLabel6;
    TQRLabel *MemoLabel6;
    TQRLabel *NoLabel7;
    TQRLabel *TypeLabel7;
    TQRLabel *TimeLabel7;
    TQRLabel *UserLabel7;
    TQRLabel *QnameLabel7;
    TQRLabel *MemoLabel7;
    TQRLabel *NoLabel8;
    TQRLabel *TypeLabel8;
    TQRLabel *TimeLabel8;
    TQRLabel *UserLabel8;
    TQRLabel *QnameLabel8;
    TQRLabel *MemoLabel8;
    TQRLabel *NoLabel9;
    TQRLabel *TypeLabel9;
    TQRLabel *TimeLabel9;
    TQRLabel *UserLabel9;
    TQRLabel *QnameLabel9;
    TQRLabel *MemoLabel9;
    TQRLabel *NoLabel10;
    TQRLabel *TypeLabel10;
    TQRLabel *TimeLabel10;
    TQRLabel *UserLabel10;
    TQRLabel *QnameLabel10;
    TQRLabel *MemoLabel10;
    TQRLabel *NoLabel11;
    TQRLabel *TypeLabel11;
    TQRLabel *TimeLabel11;
    TQRLabel *UserLabel11;
    TQRLabel *QnameLabel11;
    TQRLabel *MemoLabel11;
    TQRLabel *NoLabel12;
    TQRLabel *TypeLabel12;
    TQRLabel *TimeLabel12;
    TQRLabel *UserLabel12;
    TQRLabel *QnameLabel12;
    TQRLabel *MemoLabel12;
    TQRLabel *NoLabel13;
    TQRLabel *TypeLabel13;
    TQRLabel *TimeLabel13;
    TQRLabel *UserLabel13;
    TQRLabel *QnameLabel13;
    TQRLabel *MemoLabel13;
    TQRLabel *NoLabel14;
    TQRLabel *TypeLabel14;
    TQRLabel *TimeLabel14;
    TQRLabel *UserLabel14;
    TQRLabel *QnameLabel14;
    TQRLabel *MemoLabel14;
    TQRLabel *NoLabel15;
    TQRLabel *TypeLabel15;
    TQRLabel *TimeLabel15;
    TQRLabel *UserLabel15;
    TQRLabel *QnameLabel15;
    TQRLabel *MemoLabel15;
    TQRLabel *NoLabel16;
    TQRLabel *TypeLabel16;
    TQRLabel *TimeLabel16;
    TQRLabel *UserLabel16;
    TQRLabel *QnameLabel16;
    TQRLabel *MemoLabel16;
    TQRLabel *NoLabel17;
    TQRLabel *TypeLabel17;
    TQRLabel *TimeLabel17;
    TQRLabel *UserLabel17;
    TQRLabel *QnameLabel17;
    TQRLabel *MemoLabel17;
    TQRLabel *NoLabel18;
    TQRLabel *TypeLabel18;
    TQRLabel *TimeLabel18;
    TQRLabel *UserLabel18;
    TQRLabel *QnameLabel18;
    TQRLabel *MemoLabel18;
    TQRCompositeReport *QRCompositeReport;
    TQRBand *SummaryBand1;
    TQRBand *TitleBand1;
        TQRLabel *QRLabelTitle2;
        TQRLabel *QRLabelTitle3;
        TQRLabel *QRLabelTitle4;
        TQRLabel *QRLabelTitle5;
        TQRLabel *QRLabelBottom1;
        TQRLabel *QRLabelBottom2;
        TQRLabel *QRLabelBottom3;
        TQRLabel *QRLabelBottom4;
        TQRLabel *QRLabelBottom5;
        TQRLabel *QRLabelBottom6;
        TQRLabel *QRLabelBottom7;
        TQRLabel *UserLabel19;
        TQRLabel *TypeLabel19;
        TQRLabel *TimeLabel19;
        TQRShape *QRShape6;
        TQRShape *QRShape5;
        TQRShape *QRShape4;
        TQRShape *QRShape3;
        TQRShape *QRShape28;
        TQRShape *QRShape2;
        TQRLabel *QnameLabel19;
        TQRLabel *NoLabel19;
        TQRLabel *MemoLabel19;
  TTimer *Timer1;
  TTimer *WaitPrintTimer;
  TTntPanel *WaitPrintCompletePanel;
    void __fastcall TntButton1Click(TObject *Sender);
    void __fastcall TntButton3Click(TObject *Sender);
    void __fastcall TntButton2Click(TObject *Sender);
    void __fastcall TntButton4Click(TObject *Sender);
    void __fastcall UpDown1Click(TObject *Sender, TUDBtnType Button);
    void __fastcall QRCompositeReportAddReports(TObject *Sender);
  void __fastcall Timer1Timer(TObject *Sender);
  void __fastcall WaitPrintTimerTimer(TObject *Sender);
  void __fastcall FormCreate(TObject *Sender);

private:	// User declarations
    TCSVLogList *CSVLogList;
    TDateTime BrowseStartTime;
    TDateTime BrowseEndTime;    
    int PageNum;
    int PrintFlag;

    void __fastcall CreateReportPage(int dataCnt);
public:		// User declarations
    __fastcall TPrintAuditTrailForm(TComponent* Owner);
    void __fastcall SetReport(TCSVLogList* csvList, int nValidData, bool bAction, bool bEvent, bool bAlarm, double StartTime, double EndTime, int stLogIndex, int edLogIndex, bool bLimit,WideString ProductName , AnsiString CreatorName);
    int Zorder;
};
//---------------------------------------------------------------------------
extern PACKAGE TPrintAuditTrailForm *PrintAuditTrailForm;
//---------------------------------------------------------------------------
#endif
