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

#ifndef CRSM000MFH
#define CRSM000MFH
//---------------------------------------------------------------------------
#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 "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 TCRSM000M : 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;
    TcxCheckBox *ChkExpand;
    TcxGrid *CxList;
    TcxGridBandedTableView *TvList;
    TcxGridBandedColumn *Col00;
    TcxGridBandedColumn *Col01;
    TcxGridBandedColumn *Col02;
    TcxGridBandedColumn *Col03;
    TcxGridBandedColumn *Col04;
    TcxGridBandedColumn *Col05;
    TcxGridBandedColumn *Col06;
    TcxGridBandedColumn *Col07;
    TcxGridBandedColumn *Col08;
    TcxGridLevel *GlList;
    TcxGridBandedColumn *Col09;
    TcxGridBandedColumn *Col10;
    TcxGridBandedColumn *Col11;
    TcxGridBandedColumn *Col12;
    TcxGridBandedColumn *Col13;
    TcxGridBandedColumn *Col14;
    TcxGridBandedColumn *Col15;
    TcxGridBandedColumn *Col16;
    TcxGridBandedColumn *Col17;
    TcxGridBandedColumn *Col18;
    TcxGridBandedColumn *Col19;
    TcxGridBandedColumn *Col20;
    TcxGridBandedColumn *Col21;
    TcxGridBandedColumn *Col22;
    TcxGridBandedColumn *Col23;
    TcxGridBandedColumn *Col24;
    TcxGridBandedColumn *Col25;
    TcxGridBandedColumn *Col26;
    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 ChkExpandClick(TObject *Sender);
    void __fastcall TvListDataControllerFilterChanged(TObject *Sender);
    void __fastcall Col07CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
    void __fastcall Col09CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
          TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
    void __fastcall Col26CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall Col16CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall Col18CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall Col20CustomDrawCell(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 TCRSM000M(TComponent* Owner);

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

    void __fastcall UpdateFacility();

};
//---------------------------------------------------------------------------
extern PACKAGE TCRSM000M *CRSM000M;
//---------------------------------------------------------------------------

#endif

