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

#ifndef PIS0010MFH
#define PIS0010MFH
//---------------------------------------------------------------------------
#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 <Dialogs.hpp>
#include <ExtDlgs.hpp>
//---------------------------------------------------------------------------
#include "WindowMsgF.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 "cxDropDownEdit.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 "cxGroupBox.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxSpinEdit.hpp"
#include "cxSplitter.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "cxTimeEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinMcSkin.hpp"
#include "FRAME_OpenMapF.h"
#include "FRAME_ParkingListF.h"

class TPIS0010M : public TForm
{
__published:	// IDE-managed Components
    TTimer *TmrShow;
    TShape *ShpTitle;
    TcxButton *BtnClose;
    TLabel *LblCaption;
    TShape *ShpList;
    TEdit *EdFocus;
    TPanel *PnlBack;
    TPanel *PnlLeft;
    TcxSplitter *cxSplitter1;
    TcxGroupBox *cxGroupBox3;
    TFRAMEParkingList *FRAMEParkingList1;
    TPanel *PnlBottom;
    TcxSplitter *cxSplitter3;
    TcxGroupBox *GrpMap;
    TPanel *PnlEdit;
    TcxGroupBox *GrpInfo;
    TImage *ImgDesc02;
    TImage *ImgDesc03;
    TImage *ImgDesc04;
    TImage *ImgDesc07;
    TcxTextEdit *EdPRLT_CTLR_ID;
    TcxLabel *cxLabel2;
    TcxLabel *cxLabel3;
    TcxLabel *cxLabel6;
    TcxLabel *cxLabel10;
    TcxTextEdit *EdPRLT_NM;
    TcxComboBox *CbPRLT_OPER_DVSN_CD;
    TcxSpinEdit *SeWHOL_NPLS;
    TcxComboBox *CbPRLT_TYPE_DVSN_CD;
    TcxLabel *cxLabel12;
    TcxLabel *cxLabel13;
    TPanel *PnlMenu;
    TcxButton *BtnEdit;
    TcxButton *BtnInsert;
    TcxButton *BtnDelete;
    TcxButton *BtnSave;
    TcxLabel *cxLabel15;
    TImage *ImgDesc99;
    TFRAMEOpenMap *FRAMEOpenMap1;
    TcxTextEdit *EdNmbr;
    TcxLabel *cxLabel18;
    TImage *ImgDesc24;
    TcxSpinEdit *SePosX;
    TcxSpinEdit *SePosY;
    TPanel *Panel1;
    TcxComboBox *VALD_YN;
    TcxGrid *CxLink;
    TcxGridTableView *TvLink;
    TcxGridColumn *ColLink1;
    TcxGridColumn *ColLink2;
    TcxGridColumn *ColLink3;
    TcxGridColumn *ColLink4;
    TcxGridColumn *ColLink5;
    TcxGridColumn *ColLink6;
    TcxGridLevel *GlLink;
    TcxButton *BtnListDelete;
    TcxButton *BtnListAdd;
    TcxTextEdit *PRLT_MNGM_INTN_NM;
    TcxTextEdit *PRLT_MNGM_INTN_TEL;
    TcxComboBox *PARK_NDSY_CD;
    TcxComboBox *PARK_OPER_DAY_CD;
    TcxTimeEdit *PARK_WKDY_STRT_HH;
    TcxTimeEdit *PARK_WKDY_END_HH;
    TcxTimeEdit *PARK_LHDY_STRT_HH;
    TcxTimeEdit *PARK_LHDY_END_HH;
    TcxComboBox *PARK_OPDR_CD;
    TcxComboBox *PARK_FARE_IMPS_CD;
    TcxComboBox *PARK_APNT_OFFR_YN;
    TcxTextEdit *EdISTL_LCTN_ADDR;
    TcxSpinEdit *SeHNDC_NPLS;
    TImage *ImgDesc28;
    TImage *ImgDesc08;
    TImage *ImgDesc09;
    TImage *ImgDesc10;
    TImage *ImgDesc11;
    TcxLabel *cxLabel5;
    TcxLabel *cxLabel4;
    TcxLabel *cxLabel7;
    TcxLabel *cxLabel11;
    TMemo *MoPRLT_CHARGE_DESC;
    TImage *ImgDesc21;
    TMemo *MoPRLT_OPER_DESC;
    TcxLabel *cxLabel17;
    TcxTextEdit *EdISTL_LCTN_NM;
    TImage *ImgDesc89;
    TcxTextEdit *EdPRLT_TEL;
    TcxLabel *cxLabel1;
    TImage *ImgDesc79;
    TcxSpinEdit *SeGNRL_NPLS;
    TcxSpinEdit *SeLGVH_NPLS;
    TcxSpinEdit *SeEMVH_NPLS;
    TcxSpinEdit *SeHVVH_NPLS;
    TcxSpinEdit *SeELVH_NPLS;
    TcxSpinEdit *SeWMON_NPLS;
    TcxSpinEdit *SeETC_NPLS;
    TImage *ImgDesc05;
    TImage *ImgDesc27;
    TcxLabel *cxLabel8;
    TcxMaskEdit *EdPRLT_CTLR_IP;
    TcxTextEdit *EdPRLT_CTLR_PORT;
    TcxLabel *cxLabel16;
    TcxComboBox *CbREAL_DATA_YN;
    TcxSpinEdit *SeCTLR_STTS_CYCL;
    TcxSpinEdit *SeCTLR_CLCT_CYCL;
    TcxLabel *cxLabel9;
    TImage *ImgDesc06;
    TMemo *MoPRLT_ETC_DESC;
    TcxLabel *cxLabel19;
    TcxLabel *cxLabel14;
    TImage *ImgDesc35;
    TcxLabel *cxLabel20;
    TcxSpinEdit *SeCNGT_NPLS;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
    void __fastcall BtnEditClick(TObject *Sender);
    void __fastcall BtnInsertClick(TObject *Sender);
    void __fastcall BtnDeleteClick(TObject *Sender);
    void __fastcall BtnSaveClick(TObject *Sender);
    void __fastcall FRAMEParkingList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
          TMouseButton AButton, TShiftState AShift, bool &AHandled);
    void __fastcall BtnListDeleteClick(TObject *Sender);
    void __fastcall BtnListAddClick(TObject *Sender);
    void __fastcall EdPRLT_CTLR_PORTKeyPress(TObject *Sender, wchar_t &Key);

private:	// User declarations
    void __fastcall CommClose();
    TcxDataController *m_pGDC;
    String          FTitle;
    bool            FUpdate;
    bool            FNewDb;
    bool            EditMode;
    bool            MapStart;

public:
    String sJs;
    int    FLayerIdx;

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

    void __fastcall FormInit();
    void __fastcall UpdateIcon();
    void __fastcall DisplayInfo(TPrltCtlr* AObj, bool AMoveObj=true);

    void __fastcall ChangeEditMode(int AEdit);
    bool __fastcall FindParkingFloor(String ANmbr);

    void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
};
//---------------------------------------------------------------------------
extern PACKAGE TPIS0010M *PIS0010M;
//---------------------------------------------------------------------------

#endif

