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

#ifndef CCAM010MFH
#define CCAM010MFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <Menus.hpp>
#include <ExtCtrls.hpp>
#include <ADODB.hpp>
#include <ImgList.hpp>
#include <Graphics.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------

#include "CenterCommF.h"
#include "DataTypesF.h"
#include "WindowMsgF.h"
#include "CDSCctvCtlrF.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 "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"
//---------------------------------------------------------------------------

class TCCAM010M : public TForm
{
__published:	// IDE-managed Components
    TTimer *TmrShow;
    TcxButton *BtnSearch;
    TLabel *LblCaption;
    TShape *ShpTitle;
    TcxButton *BtnClose;
    TShape *ShpList;
    TPanel *PnlBack;
    TPanel *PnlLeft;
    TcxGroupBox *cxGroupBox3;
    TcxGrid *CxList;
    TcxGridBandedTableView *TvList;
    TcxGridBandedColumn *ColId;
    TcxGridBandedColumn *ColName;
    TcxGridBandedColumn *ColCommS;
    TcxGridBandedColumn *ColDoorS;
    TcxGridBandedColumn *ColFanS;
    TcxGridBandedColumn *ColHeaterS;
    TcxGridBandedColumn *ColCamS;
    TcxGridBandedColumn *ColTextS;
    TcxGridBandedColumn *ColFanOn;
    TcxGridBandedColumn *ColFanOff;
    TcxGridBandedColumn *ColHeaterOff;
    TcxGridBandedColumn *ColHeaterOn;
    TcxGridBandedColumn *ColBattS;
    TcxGridBandedColumn *ColHamS;
    TcxGridBandedColumn *ColCtrlS;
    TcxGridBandedColumn *ColTemp;
    TcxGridBandedColumn *ColVolt;
    TcxGridBandedColumn *ColVoltOut;
    TcxGridBandedColumn *ColUpdtDt;
    TcxGridBandedColumn *ColNmbr;
    TcxGridLevel *GlList;
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall ColCommSCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall BtnCloseClick(TObject *Sender);
private:	// User declarations
    void __fastcall CommClose();

public:

    String      FTitle;

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

    void __fastcall LoadLocalSkin();

    void __fastcall Refreshtatus(bool ARealtime=false);
    void __fastcall RefreshData();

    void __fastcall OnMainFormMessage(TMessage &Msg);

	BEGIN_MESSAGE_MAP
        MESSAGE_HANDLER(WM_MAINFORM, TMessage, OnMainFormMessage)
    END_MESSAGE_MAP(TForm)
};
//---------------------------------------------------------------------------
extern PACKAGE TCCAM010M *CCAM010M;
//---------------------------------------------------------------------------

#endif

