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

#ifndef FrmLinkInfoFH
#define FrmLinkInfoFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
//---------------------------------------------------------------------------
#include "CDSCodeF.h"
#include "cxButtons.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 "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 "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
//---------------------------------------------------------------------------
class TFrmLinkInfo : public TForm
{
__published:	// IDE-managed Components
    TShape *ShpList;
    TPanel *Panel1;
    TcxGroupBox *cxGroupBox1;
    TcxGroupBox *cxGroupBox2;
    TcxGroupBox *cxGroupBox3;
    TImage *ImgDesc01;
    TImage *ImgDesc27;
    TImage *ImgDesc15;
    TImage *ImgDesc37;
    TImage *ImgDesc28;
    TLabel *Label16;
    TLabel *Label26;
    TImage *ImgDesc25;
    TLabel *Label15;
    TLabel *Label1;
    TLabel *Label3;
    TLabel *Label2;
    TcxTextEdit *EdId;
    TcxTextEdit *EdLevel;
    TcxTextEdit *EdStId;
    TcxTextEdit *EdEdId;
    TcxTextEdit *EdEdName;
    TcxTextEdit *EdStName;
    TcxTextEdit *EdLength;
    TcxTextEdit *EdRoadName;
    TcxTextEdit *EdRoadRank;
    TImage *ImgDesc21;
    TLabel *Label9;
    TcxTextEdit *EdSvcDt;
    TcxTextEdit *EdPrcnSorc;
    TPanel *PnlGrade;
    TPanel *PnlSystime;
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *Column01;
    TcxGridColumn *Column02;
    TcxGridColumn *Column03;
    TcxGridColumn *Column04;
    TcxGridColumn *Column05;
    TcxGridColumn *Column06;
    TcxGridColumn *Column07;
    TcxGridColumn *Column08;
    TcxGridLevel *GlList;
    TcxButton *BtnEditGrade;
    TcxGrid *ClList1;
    TcxGridTableView *TvList1;
    TcxGridColumn *cxGridColumn1;
    TcxGridColumn *cxGridColumn2;
    TcxGridColumn *cxGridColumn3;
    TcxGridColumn *cxGridColumn4;
    TcxGridColumn *cxGridColumn5;
    TcxGridColumn *cxGridColumn6;
    TcxGridColumn *cxGridColumn7;
    TcxGridColumn *cxGridColumn8;
    TcxGridLevel *GlList1;
    TcxTextEdit *EdAdjsSorc;
    TLabel *Label4;
    TImage *ImgDesc22;
    TcxGridColumn *Column09;
    TcxGridColumn *Column10;
    TcxGridColumn *Column11;
    TcxGridColumn *Column12;
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnEditGradeClick(TObject *Sender);
private:	// User declarations
    TItsCode *FCodeRDR;	// µµ·Îµî±Þ

public:
    String  m_sLinkId;
    int     m_nLinkLevel;

    void __fastcall RefreshLinkInfo();
    void __fastcall ShowLinkInfo(String sLinkId, int nLinkLevel);

    void __fastcall SelTrafficLink(String ALinkId);
    void __fastcall SelTrafficServiceLink(String ALinkId);
    void __fastcall SelTrafficRoad(String ALinkId);

public:		// User declarations
    __fastcall TFrmLinkInfo(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmLinkInfo *FrmLinkInfo;
//---------------------------------------------------------------------------
#endif

