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

#ifndef PRK0014MFH
#define PRK0014MFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Menus.hpp>
#include "CDSPrkPlceF.h"
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinMcSkin.hpp"
#include "dxSkinsCore.hpp"
#include "cxLabel.hpp"
#include "cxMaskEdit.hpp"
#include "cxSpinEdit.hpp"
#include "cxTextEdit.hpp"
#include <ExtCtrls.hpp>
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include "dxSkinscxPCPainter.hpp"
//---------------------------------------------------------------------------

class TPRK0014M : public TForm
{
__published:	// IDE-managed Components
    TcxButton *BtnSelect;
    TcxButton *BtnCancel;
    TcxGroupBox *GrpCaption;
    TcxGrid *CxFlrNo;
    TcxGridTableView *TvFlrNo;
    TcxGridColumn *Col01;
    TcxGridColumn *Col02;
    TcxGridColumn *Col03;
    TcxGridColumn *Col04;
    TcxGridColumn *Col05;
    TcxGridColumn *Col06;
    TcxGridLevel *GlFlrNo;
    TcxLabel *cxLabel7;
    TImage *ImgDesc35;
    TcxLabel *cxLabel1;
    TImage *Image1;
    TcxTextEdit *FLR_NO;
    TcxSpinEdit *FLR_PRK_CMPRT_CO;
    TcxButton *BtnListAdd;
    TcxButton *BtnListDelete;
    void __fastcall BtnSelectClick(TObject *Sender);
    void __fastcall BtnCancelClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall TvFlrNoCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
          TShiftState AShift, bool &AHandled);
    void __fastcall BtnListAddClick(TObject *Sender);
    void __fastcall BtnListDeleteClick(TObject *Sender);
private:	// User declarations
    TPrkPlce   *FObj;
public:
    bool        FSelected;
    TItsMap<String, TPrkPlceFlr*>   FFlrs;

    void __fastcall UpdateList();
    bool __fastcall FindParkingFloor(String ANmbr);

public:
    __property bool Selected = {read=FSelected};
public:		// User declarations
    __fastcall TPRK0014M(TComponent* Owner, TPrkPlce *AObj);
};
//---------------------------------------------------------------------------
extern PACKAGE TPRK0014M *PRK0014M;
//---------------------------------------------------------------------------
#endif

