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

#ifndef FrmCrsTrafVolDirFH
#define FrmCrsTrafVolDirFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <ImgList.hpp>
#include <ComCtrls.hpp>
#include <jpeg.hpp>
#include <AppEvnts.hpp>
//---------------------------------------------------------------------------
#include <windows.h>
#include <ADODB.hpp>
#include <DB.hpp>
#include "ITSUtilF.h"
#include "AppGlobalF.h"
#include "cxClasses.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxHint.hpp"
#include "cxLabel.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxPC.hpp"
#include "cxPCdxBarPopupMenu.hpp"
#include "cxSpinEdit.hpp"
#include "cxTextEdit.hpp"
#include "dxBar.hpp"
#include "dxCustomHint.hpp"
#include "dxRibbon.hpp"
#include "dxRibbonGallery.hpp"
#include "dxRibbonSkins.hpp"
#include "dxRibbonStatusBar.hpp"
#include "dxScreenTip.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinCaramel.hpp"
#include "dxSkinChooserGallery.hpp"
#include "dxSkinCoffee.hpp"
#include "dxSkinDarkRoom.hpp"
#include "dxSkinDarkSide.hpp"
#include "dxSkinFoggy.hpp"
#include "dxSkinGlassOceans.hpp"
#include "dxSkiniMaginary.hpp"
#include "dxSkinLilian.hpp"
#include "dxSkinLiquidSky.hpp"
#include "dxSkinLondonLiquidSky.hpp"
#include "dxSkinMcSkin.hpp"
#include "dxSkinMoneyTwins.hpp"
#include "dxSkinOffice2007Black.hpp"
#include "dxSkinOffice2007Blue.hpp"
#include "dxSkinOffice2007Green.hpp"
#include "dxSkinOffice2007Pink.hpp"
#include "dxSkinOffice2007Silver.hpp"
#include "dxSkinOffice2010Black.hpp"
#include "dxSkinOffice2010Blue.hpp"
#include "dxSkinOffice2010Silver.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinsdxBarPainter.hpp"
#include "dxSkinsdxRibbonPainter.hpp"
#include "dxSkinSeven.hpp"
#include "dxSkinsForm.hpp"
#include "dxSkinSharp.hpp"
#include "dxSkinSilver.hpp"
#include "dxSkinStardust.hpp"
#include "dxStatusBar.hpp"
#include "dxTabbedMDI.hpp"
#include <GIFImg.hpp>
#include <OleCtnrs.hpp>
#include "cxButtons.hpp"
#include "cxCalendar.hpp"
#include "cxDropDownEdit.hpp"
#include "cxGroupBox.hpp"
#include "cxSplitter.hpp"
#include "cxTimeEdit.hpp"
#include "cxCalc.hpp"
#include "cxCheckBox.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
//---------------------------------------------------------------------------

#include "FrmCrsTrafVolDirSubF.h"

//---------------------------------------------------------------------------
class TFrmCrsTrafVolDir : public TForm//TdxCustomRibbonForm//TForm
{
__published:	// IDE-managed Components
    TcxHintStyleController *cxHintStyleController1;
    TdxSkinController *dxSkinController1;
    TShape *ShpTitle;
    TLabel *LblCaption;
    TShape *ShpList;
    TcxButton *BtnClose;
    TEdit *EdFocus;
    TPanel *PnlBack;
    TcxGroupBox *cxGroupBox1;
    TcxPageControl *PgTab;
    TcxTabSheet *TsList01;
    TcxLabel *lblText3;
    TcxLabel *lblText4;
    TcxGroupBox *cxGroupBox2;
    TcxButton *BtnSearch;
    TcxLabel *cxLabel1;
    TcxComboBox *CbCross;
    TImage *ImgDesc07;
    TLabel *Label1;
    TcxCheckBox *ChkLane;
    TcxComboBox *CbStatType;
    TLabel *Label2;
    TImage *ImgDesc03;
    TDateTimePicker *DtStTime;
    TDateTimePicker *DtStDate;
    TLabel *Label26;
    TImage *ImgDesc01;
    TDateTimePicker *DtEdDate;
    TDateTimePicker *DtEdTime;
    TLabel *Label3;
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall BtnCloseClick(TObject *Sender);
    void __fastcall BtnSearchClick(TObject *Sender);
    void __fastcall PgTabDblClick(TObject *Sender);
    void __fastcall PgTabCanCloseEx(TObject *Sender, int ATabIndex, bool &ACanClose);
    void __fastcall CbStatTypePropertiesChange(TObject *Sender);

private:	// User declarations
public:
    TList  *FFormList;
    String  FStrTime;
    String  FEndTime;
    String  FCrossId;
    String  FCamId;

    void __fastcall SetColorScheme(String ASkinName);

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

	void __fastcall CommClose();
    void __fastcall FormInit();
    void __fastcall FillList();

    void __fastcall OnSubFormClose(TMessage Msg);

    BEGIN_MESSAGE_MAP
        VCL_MESSAGE_HANDLER(WM_SUBFORM_CLOSE, TMessage, OnSubFormClose);
    END_MESSAGE_MAP(TForm);
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmCrsTrafVolDir *FrmCrsTrafVolDir;
//---------------------------------------------------------------------------
#endif

