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

#ifndef IFM00401FH
#define IFM00401FH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBClient.hpp>
#include <Provider.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <Buttons.hpp>
#include <ADODB.hpp>
#include <Menus.hpp>
//---------------------------------------------------------------------------
#include "WindowMsgF.h"
#include "cxButtons.hpp"
#include "cxCheckBox.hpp"
#include "cxClasses.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxEdit.hpp"
#include "cxFilter.hpp"
#include "cxGraphics.hpp"
#include "cxGrid.hpp"
#include "cxGridBandedTableView.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
//---------------------------------------------------------------------------

class TIFM00401 : public TForm
{
__published:	// IDE-managed Components
    TADOQuery *ADOQry;
    TTimer *TmrShow;
    TPanel *PnlTop;
    TPanel *PnlList;
    TLabel *LblSearch;
    TImage *ImgDesc01;
    TLabel *LblRecords;
    TcxButton *BtnExlSave;
    TcxCheckBox *ChkExpand;
    TcxGrid *CxList;
    TcxGridLevel *GlList;
    TcxGridBandedTableView *TvList;
    TcxGridBandedColumn *TvListColumn1;
    TcxGridBandedColumn *TvListColumn2;
    TcxGridBandedColumn *TvListColumn3;
    TcxGridBandedColumn *TvListColumn4;
    TcxGridBandedColumn *TvListColumn5;
    TcxGridBandedColumn *TvListColumn6;
    TcxGridBandedColumn *TvListColumn7;
    TcxGridBandedColumn *TvListColumn8;
    TcxGridBandedColumn *TvListColumn9;
    TcxGridBandedColumn *TvListColumn10;
    TcxGridBandedColumn *TvListColumn11;
    TcxGridBandedColumn *TvListColumn12;
    TcxGridBandedColumn *TvListColumn13;
    TcxGridBandedColumn *TvListColumn14;
    TcxGridBandedColumn *TvListColumn15;
    TcxGridBandedColumn *TvListColumn16;
    TcxGridBandedColumn *TvListColumn17;
    TcxGridBandedColumn *TvListColumn18;
    TcxGridBandedColumn *TvListColumn19;
    TcxGridBandedColumn *TvListColumn20;
    TcxGridBandedColumn *TvListColumn21;
    TcxGridBandedColumn *TvListColumn22;
    TcxGridBandedColumn *TvListColumn23;
    TcxGridBandedColumn *TvListColumn24;
    TcxButton *BtnBestFit;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall ChkExpandClick(TObject *Sender);
    void __fastcall BtnExlSaveClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnBestFitClick(TObject *Sender);
private:	// User declarations
    TcxDataController  *m_pGDC;

public:
    HWND    FParent;
    String  FStDateTime;
    String  FEdDateTime;
    String  FIdList;

public:		// User declarations
    __fastcall TIFM00401(TComponent* Owner, HWND hHandle, String sFrom, String sTo, String sIdList);
	__fastcall ~TIFM00401(void);

    void __fastcall OnMessage(TMessage &Msg);

    void __fastcall CommClose();

    void __fastcall FormInit();
    void __fastcall SelHistory();
    void __fastcall DspHistory();
};
//---------------------------------------------------------------------------
extern PACKAGE TIFM00401 *IFM00401;
//---------------------------------------------------------------------------
#endif

