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

#ifndef FrmVmsInfoFH
#define FrmVmsInfoFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <ComCtrls.hpp>
#include <ImgList.hpp>
//---------------------------------------------------------------------------
#include "ITSLogF.h"
#include "SysGlobalF.h"
#include "TVmsCtlrF.h"
#include "cxCalc.hpp"
#include "cxClasses.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 "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxStyles.hpp"
#include <Menus.hpp>
//---------------------------------------------------------------------------
class TFrmVmsInfo : public TForm
{
__published:	// IDE-managed Components
    TPanel *plServerInfo;
    TImageList *ilSmall;
    TImageList *ilLarge;
    TPanel *Panel1;
    TImage *Image3;
    TPanel *Panel2;
    TPanel *plErr;
    TPanel *Panel6;
    TPanel *plTot;
    TPanel *plNor;
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *Col01;
    TcxGridColumn *Col02;
    TcxGridColumn *Col03;
    TcxGridColumn *Col04;
    TcxGridColumn *Col00;
    TcxGridColumn *Col05;
    TcxGridColumn *Col06;
    TcxGridColumn *Col07;
    TcxGridColumn *Col08;
    TcxGridColumn *Col09;
    TcxGridColumn *Col10;
    TcxGridColumn *Col11;
    TcxGridColumn *Col12;
    TcxGridColumn *Col99;
    TcxGridLevel *GlList;
    TcxGridColumn *Col13;
    TcxGridColumn *Col14;
    TcxGridColumn *Col15;
    TPanel *Panel3;
    TImage *ImgState0;
    TImage *ImgState1;
    TImage *ImgState3;
    TImage *Image4;
    TPopupMenu *pmuVms;
    TMenuItem *MnuVmsId;
    TMenuItem *N3;
    TMenuItem *mnuVmsReset;
    TMenuItem *mnuVmsPower;
    TMenuItem *mnuVmsPowerOn;
    TMenuItem *mnuVmsPowerOff;
    TMenuItem *mnuVmsStatusReq;
    TMenuItem *N1;
    TMenuItem *N2;
    TMenuItem *mnuVmsFormDn;
    TMenuItem *N4;
    TMenuItem *Disconnect1;
    void __fastcall Col01CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
    void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
          TMouseButton AButton, TShiftState AShift,
          bool &AHandled);
    void __fastcall TvListCellClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
          TMouseButton AButton, TShiftState AShift,
          bool &AHandled);
    void __fastcall pmuVmsPopup(TObject *Sender);
    void __fastcall mnuVmsPowerOnClick(TObject *Sender);
    void __fastcall mnuVmsStatusReqClick(TObject *Sender);
    void __fastcall mnuVmsFormDnClick(TObject *Sender);
    void __fastcall Disconnect1Click(TObject *Sender);


private:	// User declarations

    int FViewMode;
    int FVmsCnt;
    String FSelVmsNo;
    String FSelVmsNm;

public:
    void __fastcall InitVmsList();

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

    void __fastcall UpdateServerState(int AObj);
    void __fastcall UpdateClientState(int AObj);
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmVmsInfo *FrmVmsInfo;
//---------------------------------------------------------------------------
#endif
