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

#ifndef FRAME_VmsStateFH
#define FRAME_VmsStateFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
//---------------------------------------------------------------------------
#include "CDSCodeF.h"
#include "CDSVmsCtlrF.h"
//---------------------------------------------------------------------------
#include "cxButtons.hpp"
#include "cxCalc.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 "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinCaramel.hpp"
#include "dxSkinCoffee.hpp"
#include "dxSkinDarkRoom.hpp"
#include "dxSkinDarkSide.hpp"
#include "dxSkinFoggy.hpp"
#include "dxSkinGlassOceans.hpp"
#include "dxSkiniMaginary.hpp"
#include "dxSkinLilian.hpp"
#include "dxSkinLiquidSky.hpp"
#include "dxSkinLondonLiquidSky.hpp"
#include "dxSkinMcSkin.hpp"
#include "dxSkinMoneyTwins.hpp"
#include "dxSkinOffice2007Black.hpp"
#include "dxSkinOffice2007Blue.hpp"
#include "dxSkinOffice2007Green.hpp"
#include "dxSkinOffice2007Pink.hpp"
#include "dxSkinOffice2007Silver.hpp"
#include "dxSkinOffice2010Black.hpp"
#include "dxSkinOffice2010Blue.hpp"
#include "dxSkinOffice2010Silver.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinSeven.hpp"
#include "dxSkinSharp.hpp"
#include "dxSkinSilver.hpp"
#include "dxSkinStardust.hpp"
#include "cxGridBandedTableView.hpp"
#include "cxGridCardView.hpp"
#include "cxGridCustomLayoutView.hpp"
#include "cxGroupBox.hpp"
#include "cxRadioGroup.hpp"
#include "cxLabel.hpp"
//---------------------------------------------------------------------------

class TFRAMEVmsState : public TFrame
{
__published:	// IDE-managed Components
    TcxStyleRepository *cxStyleRepository1;
    TcxStyle *cxStyle1;
    TcxStyle *cxStyle2;
    TcxGrid *CxVmsInfo;
    TcxGridCardView *TvVmsInfo;
    TcxGridCardViewRow *ColVmsId;
    TcxGridCardViewRow *ColVmsType;
    TcxGridCardViewRow *ColVmsNm;
    TcxGridCardViewRow *ColVmsMode;
    TcxGridCardViewRow *ColVmsComm;
    TcxGridCardViewRow *ColCatModule;
    TcxGridCardViewRow *ColMod1;
    TcxGridCardViewRow *ColMod2;
    TcxGridCardViewRow *ColMod3;
    TcxGridCardViewRow *ColCatHamche;
    TcxGridCardViewRow *ColHam1;
    TcxGridCardViewRow *ColHam2;
    TcxGridCardViewRow *ColHam3;
    TcxGridCardViewRow *ColHam4;
    TcxGridLevel *GlVmsInfo;
    TPanel *PnlCmd;
    TcxButton *BtnControl0;
    TcxRadioButton *RdbOn;
    TcxRadioButton *RdbOff;
    TcxRadioButton *RdbReset;
    TPanel *Panel1;
    TcxLabel *lblTitle;
    TcxLabel *lblText1;
    TcxLabel *lblText2;
    TcxLabel *lblText3;
    TcxLabel *lblText6;
    TcxLabel *lblText5;
    TcxLabel *lblText4;
    TcxLabel *lblText7;
    TcxLabel *cxLabel9;
    void __fastcall ColVmsIdGetDataText(TcxCustomGridTableItem *Sender, int ARecordIndex,
          UnicodeString &AText);
    void __fastcall BtnControl0Click(TObject *Sender);

private:	// User declarations
    TVmsCtlr   *FSelVmsObj;
public:
    String             FTitle;

public:		// User declarations
    __fastcall TFRAMEVmsState(TComponent* Owner);
	void __fastcall OnCloseQuery(bool &CanClose);

    void __fastcall UpdateList();
    void __fastcall RefreshStatus();

    void __fastcall SetVmsObject(TVmsCtlr *ASelVmsObj);

	__property TVmsCtlr* SelVmsObj = {read=FSelVmsObj, write=SetVmsObject };
};
//---------------------------------------------------------------------------
//extern PACKAGE TFRAMEVmsStateList *FRAMEVmsStateList;
//---------------------------------------------------------------------------
#endif

