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

#ifndef FRAME_FacilityStatusListFH
#define FRAME_FacilityStatusListFH
//---------------------------------------------------------------------------
#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 <Graphics.hpp>
#include "cxButtons.hpp"
#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 "cxTextEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "cxContainer.hpp"
//---------------------------------------------------------------------------
class TFRAMEFacilityStatusList : public TFrame
{
__published:	// IDE-managed Components
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *Column01;
    TcxGridColumn *Column02;
    TcxGridColumn *Column03;
    TcxGridColumn *Column04;
    TcxGridColumn *Column05;
    TcxGridColumn *Column06;
    TcxGridColumn *Column07;
    TcxGridColumn *Column99;
    TcxGridLevel *GlList;
    TPanel *PnlBottom;
    TcxButton *BtnExlSave;
    TLabel *LblRecords;
    TcxGridColumn *ColumnSeq;
    TcxGridColumn *Column08;
    TPanel *Panel2;
    TImage *ImgState0;
    TcxLabel *cxLabel1;
    TImage *ImgState1;
    TcxLabel *cxLabel2;
    TImage *ImgState3;
    TcxLabel *cxLabel3;
    TcxLabel *lblFileName;
    TImage *ImgState2;
    TImage *ImgState5;
    TcxGridColumn *Column09;
    void __fastcall TvListDataControllerFilterChanged(TObject *Sender);
    void __fastcall BtnExlSaveClick(TObject *Sender);
    void __fastcall Column04CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall Column05CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall Column08CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);

private:	// User declarations
    TcxDataController *m_pGDC;
	TItsCode *FCodeCMS;
	TItsCode *FCodeCDS;

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

    void __fastcall UpdateList();
    void __fastcall RefreshList();
};
//---------------------------------------------------------------------------
//extern PACKAGE TFRAMEFacilityStatusList *FRAMEFacilityStatusList;
//---------------------------------------------------------------------------
#endif

