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

#ifndef VDSM400MFH
#define VDSM400MFH
//---------------------------------------------------------------------------
#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 "DataTypesF.h"
#include "CDSCompanyF.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 "cxGroupBox.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinMcSkin.hpp"

class TVDSM400M : public TForm
{
__published:	// IDE-managed Components
    TTimer *TmrShow;
    TShape *ShpTitle;
    TcxButton *BtnSearch;
    TcxButton *BtnClose;
    TLabel *LblCaption;
    TShape *ShpList;
    TEdit *EdFocus;
    TPanel *PnlMapBack;
    TcxGroupBox *GrpUtis;
    TPanel *PnlBottom;
    TcxButton *BtnExlSave;
    TcxGrid *CxList;
    TcxGridBandedTableView *TvList;
    TcxGridBandedColumn *Col00;
    TcxGridBandedColumn *Col01;
    TcxGridBandedColumn *Col03;
    TcxGridBandedColumn *Col08;
    TcxGridLevel *GlList;
    TcxGridBandedColumn *Col09;
    TcxGridBandedColumn *Col10;
    TcxGridBandedColumn *Col15;
    TcxGridBandedColumn *Col16;
    TcxGridBandedColumn *Col17;
    TcxGridBandedColumn *Col18;
    TcxGridBandedColumn *Col19;
    TcxGridBandedColumn *Col20;
    TcxGridBandedColumn *Col21;
    TcxLabel *lblUnknown;
    TcxLabel *lblHTS1;
    TcxLabel *lblHTS0;
    TcxLabel *lblPAS1;
    TcxLabel *lblPAS0;
    TcxLabel *lblCDS1;
    TcxLabel *lblCDS0;
    TcxLabel *lblPWS1;
    TcxLabel *lblPWS0;
    TcxLabel *lblMOS1;
    TcxLabel *lblMOS0;
    TcxGridBandedColumn *ColCtrlS;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnExlSaveClick(TObject *Sender);
    void __fastcall TvListDataControllerFilterChanged(TObject *Sender);
    void __fastcall Col08CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall Col09CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall Col21CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);

private:	// User declarations
    void __fastcall CommClose();
    String          FTitle;
public:
    String          FFacilityType;

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

    void __fastcall FormInit();
    void __fastcall RefreshData();

    void __fastcall UpdateFacility();

};
//---------------------------------------------------------------------------
extern PACKAGE TVDSM400M *VDSM400M;
//---------------------------------------------------------------------------

#endif

