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

#ifndef IDB0040MFH
#define IDB0040MFH
//---------------------------------------------------------------------------
#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 "CDSLinkF.h"
#include "CDSCodeF.h"
#include "FRAME_RoadListF.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 "cxSplitter.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "FRAME_IfscListF.h"

class TIDB0040M : public TForm
{
__published:	// IDE-managed Components
    TShape *ShpTitle;
    TcxButton *BtnSearch;
    TcxButton *BtnClose;
    TLabel *LblCaption;
    TEdit *EdFocus;
    TShape *ShpList;
    TTimer *TmrShow;
    TPopupMenu *PopupMenu1;
    TMenuItem *MnuInsert;
    TMenuItem *MnuDelete;
    TMenuItem *MnuDeleteCancel;
    TMenuItem *N5;
    TMenuItem *MnuApply;
    TMenuItem *N8;
    TMenuItem *MnuSave;
    TMenuItem *N1;
    TMenuItem *MnuMovePos1;
    TMenuItem *MnuMovePos2;
    TPanel *Panel1;
    TcxGroupBox *cxGroupBox1;
    TcxGroupBox *cxGroupBox2;
    TcxSplitter *cxSplitter1;
    TFRAMERoadList *FRAMERoadList1;
    TcxButton *BtnEdit;
    TFRAMEIfscList *FRAMEIfscList1;
    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 MnuMovePosClick(TObject *Sender);
    void __fastcall FRAMERoadList1TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord,
          TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged);
    void __fastcall FRAMERoadList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
          TMouseButton AButton, TShiftState AShift, bool &AHandled);
    void __fastcall BtnEditClick(TObject *Sender);
private:	// User declarations
    void __fastcall CommClose();
    TcxDataController *m_pGDC;

public:
	TItsCode    *FCodeRDU;	// 도로사용여부
	TItsCode    *FCodeRDR;	// 도로등급
	TItsCode    *FCodeRDT;	// 도로유형
	TItsCode    *FCodeMLT;	// 중용구간
	TItsCode    *FCodeCTR;	// 연결로
	TItsCode    *FCodePLV;	// 통행제한차량

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

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

    void __fastcall DisplayListData();
};
//---------------------------------------------------------------------------
extern PACKAGE TIDB0040M *IDB0040M;
//---------------------------------------------------------------------------

#endif

