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

#ifndef DSRM020MFH
#define DSRM020MFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBClient.hpp>
#include <FMTBcd.hpp>
#include <Provider.hpp>
#include <SqlExpr.hpp>
#include <Menus.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <ComCtrls.hpp>
#include <ADODB.hpp>
#include <Dialogs.hpp>
#include <ExtDlgs.hpp>
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include "WindowMsgF.h"
#include "FRAME_DsrcListF.h"
#include "cxButtons.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 "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxGroupBox.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxRadioGroup.hpp"
#include "cxSplitter.hpp"
#include "cxStyles.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinMcSkin.hpp"

class TDSRM020M : public TForm
{
__published:	// IDE-managed Components
    TTimer *TmrShow;
    TShape *ShpTitle;
    TcxButton *BtnClose;
    TLabel *LblCaption;
    TShape *ShpList;
    TEdit *EdFocus;
    TPanel *PnlBack;
    TPanel *PnlLeft;
    TcxSplitter *cxSplitter1;
    TcxGroupBox *cxGroupBox3;
    TcxGroupBox *cxGroupBox1;
    TFRAMEDsrcList *FRAMEDsrcList1;
    TPanel *PnlControl;
    TcxButton *BtnControl;
    TcxGroupBox *cxGroupBox2;
    TcxRadioButton *RdoAnt1;
    TcxRadioButton *RdoController;
    TcxGroupBox *cxGroupBox4;
    TcxRadioButton *RdoReset;
    TcxRadioButton *RdoStop;
    TcxRadioButton *RdoStart;
    TcxGroupBox *cxGroupBox5;
    TcxGridLevel *GlResult;
    TcxGrid *CxResult;
    TTimer *TmrControlTimeout;
    TcxGridTableView *TvResult;
    TcxGridColumn *ColDsrcId;
    TcxGridColumn *ColReqSeq;
    TcxGridColumn *ColReqResult;
    TcxGridColumn *ColResResult;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
    void __fastcall BtnControlClick(TObject *Sender);
    void __fastcall RdoControllerClick(TObject *Sender);
    void __fastcall RdoAnt1Click(TObject *Sender);
    void __fastcall ColResResultCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
private:	// User declarations
    void __fastcall CommClose();
    String          FTitle;

public:
	int             FReqSeq;

public:		// User declarations
    __fastcall TDSRM020M(TComponent* Owner);

    void __fastcall FormInit();

    void __fastcall OnMainFormMessage(TMessage &Msg);
	BEGIN_MESSAGE_MAP
        MESSAGE_HANDLER(WM_MAINFORM, TMessage, OnMainFormMessage)
    END_MESSAGE_MAP(TForm)
};
//---------------------------------------------------------------------------
extern PACKAGE TDSRM020M *DSRM020M;
//---------------------------------------------------------------------------

#endif

