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

#ifndef TAS00201FH
#define TAS00201FH
//---------------------------------------------------------------------------
#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 "DataTypesF.h"
#include "PlugInChartF.h"
#include "CDSAtrdF.h"
#include "CDSStatPtnF.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 "cxSplitter.hpp"
#include "cxStyles.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinMcSkin.hpp"

class TTAS00201 : public TForm
{
__published:	// IDE-managed Components
    TADOQuery *ADOQry;
    TTimer *TmrShow;
    TPanel *PnlTop;
    TPanel *PnlList;
    TcxSplitter *cxSplitter1;
    TLabel *LblSearch;
    TImage *ImgDesc01;
    TLabel *LblRecords;
    TcxButton *BtnExlSave;
    TcxGrid *CxList;
    TcxGridLevel *GlList;
    TPanel *PnlChart;
    TcxGridBandedTableView *TvList;
    TcxCheckBox *ChkExpand;
    TcxGridBandedColumn *Col01;
    TcxGridBandedColumn *Col02;
    TcxGridBandedColumn *Col03;
    TcxGridBandedColumn *Col04;
    TcxGridBandedColumn *Col05;
    TcxGridBandedColumn *ColSped;
    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;
    TcxGridBandedColumn *TvListColumn25;
    TcxGridBandedColumn *TvListColumn26;
    TcxGridBandedColumn *TvListColumn27;
    TcxGridBandedColumn *TvListColumn28;
    TcxGridBandedColumn *TvListColumn29;
    TcxGridBandedColumn *ColGrad;
    TcxGridBandedColumn *TvListColumn31;
    TcxGridBandedColumn *TvListColumn32;
    TcxGridBandedColumn *TvListColumn33;
    TcxGridBandedColumn *TvListColumn34;
    TcxGridBandedColumn *TvListColumn35;
    TcxGridBandedColumn *TvListColumn36;
    TcxGridBandedColumn *TvListColumn37;
    TcxGridBandedColumn *TvListColumn38;
    TcxGridBandedColumn *TvListColumn39;
    TcxGridBandedColumn *TvListColumn40;
    TcxGridBandedColumn *TvListColumn41;
    TcxGridBandedColumn *TvListColumn42;
    TcxGridBandedColumn *TvListColumn43;
    TcxGridBandedColumn *TvListColumn44;
    TcxGridBandedColumn *TvListColumn45;
    TcxGridBandedColumn *TvListColumn46;
    TcxGridBandedColumn *TvListColumn47;
    TcxGridBandedColumn *TvListColumn48;
    TcxGridBandedColumn *TvListColumn49;
    TcxGridBandedColumn *TvListColumn50;
    TcxGridBandedColumn *TvListColumn51;
    TcxGridBandedColumn *TvListColumn52;
    TcxGridBandedColumn *TvListColumn53;
    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 FormDestroy(TObject *Sender);
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall ColSpedCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
private:	// User declarations
    TcxDataController  *m_pGDC;

public:
    TPlugInChart    *m_pFrmChart;
    HWND     FParent;
    String   FAtrdId, FAtrdNm;
	String   FQryDay;
    String   FPtrnWeek;
    String   FPtrnWeekName;

public:		// User declarations
    __fastcall TTAS00201(TComponent* Owner, HWND hHandle,
                         String AAtrdId, String AAtrdNm, String AQryDay, String APtrnWeek, String APtrnWeekName);
	__fastcall ~TTAS00201(void);

    void __fastcall OnMessage(TMessage &Msg);

    void __fastcall CommClose();

    void __fastcall FormInit();
    void __fastcall SelHistory();
    void __fastcall DspHistory();
    void __fastcall DrawChart(String ATitle);
};
//---------------------------------------------------------------------------
extern PACKAGE TTAS00201 *TAS00201;
//---------------------------------------------------------------------------
#endif

