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

#ifndef IAN0050MFH
#define IAN0050MFH
//---------------------------------------------------------------------------
#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_LinkListF.h"
#include "FRAME_RoadListF.h"
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxDropDownEdit.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxPC.hpp"
#include "cxPCdxBarPopupMenu.hpp"
#include "cxSplitter.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "cxLabel.hpp"
#include "FRAME_IfscListF.h"

class TIAN0050M : 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 *cxGroupBox2;
    TImage *ImgDesc01;
    TLabel *Label26;
    TLabel *Label6;
    TcxButton *BtnSearch;
    TcxGroupBox *cxGroupBox3;
    TcxGroupBox *cxGroupBox1;
    TcxPageControl *PgTab;
    TcxTabSheet *TsList01;
    TcxPageControl *cxPageControl1;
    TcxTabSheet *cxTabSheet1;
    TcxTabSheet *cxTabSheet2;
    TLabel *Label1;
    TImage *ImgDesc03;
    TcxComboBox *CbPatternType;
    TLabel *Label2;
    TImage *ImgDesc04;
    TcxComboBox *CbPatternWeek;
    TDateTimePicker *DtBaseMon;
    TDateTimePicker *DtDiffMon;
    TDateTimePicker *DtEdTime;
    TDateTimePicker *DtStTime;
    TFRAMELinkList *FRAMELinkList1;
    TcxTabSheet *cxTabSheet3;
    TFRAMERoadList *FRAMERoadList1;
    TcxLabel *lblText1;
    TFRAMEIfscList *FRAMEIfscList1;
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall PgTabDblClick(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall PgTabCanCloseEx(TObject *Sender, int ATabIndex, bool &ACanClose);

private:	// User declarations
    void __fastcall CommClose();
    String             FTitle;

public:
    TList   *m_pFormList;
    String   FLinkId;
	String   FBaseMon, FDiffMon;
	String   FStTime, FEdTime;
    int      FLinkLevel;
    int      FPatternType;
    String   FPatternWeek;

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

    void __fastcall FormInit();
    void __fastcall RefreshData();
    
    void __fastcall OnSubFormClose(TMessage Msg);

    BEGIN_MESSAGE_MAP
        VCL_MESSAGE_HANDLER(WM_SUBFORM_CLOSE, TMessage, OnSubFormClose);
    END_MESSAGE_MAP(TForm);
};
//---------------------------------------------------------------------------
extern PACKAGE TIAN0050M *IAN0050M;
//---------------------------------------------------------------------------

#endif

