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

#ifndef DSRM010MFH
#define DSRM010MFH
//---------------------------------------------------------------------------
#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 "FRAME_DsrcListF.h"
#include "FRAME_FlashMapF.h"
#include "cxButtons.hpp"
#include "cxCheckBox.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxDropDownEdit.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxSpinEdit.hpp"
#include "cxSplitter.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"

class TDSRM010M : 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;
    TcxGroupBox *GrpMap;
    TFRAMEDsrcList *FRAMEDsrcList1;
    TcxGroupBox *GrpInfo;
    TPanel *PnlMenu;
    TcxSplitter *cxSplitter2;
    TcxButton *BtnEdit;
    TcxButton *BtnInsert;
    TcxButton *BtnDelete;
    TcxButton *BtnSave;
    TcxTextEdit *EdRseId;
    TcxTextEdit *EdRoadSpotId;
    TcxTextEdit *EdLogCnncId;
    TcxTextEdit *EdLogCnncPwd;
    TcxTextEdit *EdIstlLctnNm;
    TcxTextEdit *EdIP;
    TcxTextEdit *EdPort;
    TcxTextEdit *EdId;
    TcxSpinEdit *SePosX;
    TcxSpinEdit *SePosY;
    TcxLabel *cxLabel1;
    TImage *ImgDesc01;
    TcxLabel *cxLabel2;
    TImage *ImgDesc02;
    TcxLabel *cxLabel3;
    TcxLabel *cxLabel4;
    TcxLabel *cxLabel5;
    TcxLabel *cxLabel6;
    TcxLabel *cxLabel7;
    TcxLabel *cxLabel8;
    TcxLabel *cxLabel9;
    TcxLabel *cxLabel10;
    TImage *ImgDesc03;
    TImage *ImgDesc04;
    TImage *ImgDesc05;
    TImage *ImgDesc06;
    TImage *ImgDesc07;
    TImage *ImgDesc08;
    TImage *ImgDesc09;
    TImage *ImgDesc10;
    TcxComboBox *CbMnfcCmpyCd;
    TcxLabel *cxLabel11;
    TcxLabel *cxLabel12;
    TcxLabel *cxLabel13;
    TcxLabel *cxLabel14;
    TcxLabel *cxLabel15;
    TcxLabel *cxLabel16;
    TcxCheckBox *ChkViewIcon;
    TcxLabel *cxLabel17;
    TImage *ImgDesc11;
    TcxLabel *cxLabel18;
    TFRAMEFlashMap *FRAMEGisMap1;
    TcxCheckBox *ChkViewName;
    TcxLabel *cxLabel19;
    TImage *ImgDesc12;
    TcxSpinEdit *SeCLCT_ABNR_BASI;
    TcxGroupBox *cxGroupBox1;
    TcxLabel *cxLabel20;
    TcxSpinEdit *SeAbnrAll;
    TcxButton *BtnSaveAll;
    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 FRAMEDsrcList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
          TMouseButton AButton, TShiftState AShift, bool &AHandled);
    void __fastcall ChkViewIconClick(TObject *Sender);
    void __fastcall BtnEditClick(TObject *Sender);
    void __fastcall BtnInsertClick(TObject *Sender);
    void __fastcall BtnDeleteClick(TObject *Sender);
    void __fastcall BtnSaveClick(TObject *Sender);
    void __fastcall BtnSaveAllClick(TObject *Sender);


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

public:

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

    void __fastcall FormInit();
    void __fastcall UpdateRseIcon();
    void __fastcall DisplayInfo(TItsDsrc* AObj);

    void __fastcall ChangeEditMode(int AEdit);

    void __fastcall ShockwaveFlash1FlashCall1(TObject *ASender, const WideString request);
};
//---------------------------------------------------------------------------
extern PACKAGE TDSRM010M *DSRM010M;
//---------------------------------------------------------------------------

#endif

