//--------------------------------------------------------------------------- #ifndef FrmCrsTrafVolLogSubFH #define FrmCrsTrafVolLogSubFH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include #include #include #include #include #include //--------------------------------------------------------------------------- #include "cxButtons.hpp" #include "cxCalc.hpp" #include "cxCheckBox.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 "cxLookAndFeelPainters.hpp" #include "cxLookAndFeels.hpp" #include "cxSplitter.hpp" #include "cxStyles.hpp" #include "cxTextEdit.hpp" #include "dxSkinBlack.hpp" #include "dxSkinBlue.hpp" #include "dxSkinCaramel.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 "dxSkinSeven.hpp" #include "dxSkinSharp.hpp" #include "dxSkinSilver.hpp" #include "dxSkinStardust.hpp" #include "cxLabel.hpp" #include "cxGridBandedTableView.hpp" #include "cxSpinEdit.hpp" #include "FRAME_ChartF.h" #include "cxDropDownEdit.hpp" #include "cxMaskEdit.hpp" //--------------------------------------------------------------------------- #define POST_MSG(x,y,z,p) ::PostMessage(x, y, (WPARAM)z, (LPARAM)p) #define USER_MSG(x,y) ::PostMessage(x, WM_USER, (WPARAM)y, (LPARAM)0) #define WM_SUBFORM_CLOSE (WM_USER + 0xF2) // Sub Form Close //--------------------------------------------------------------------------- class TFrmCrsTrafVolLogSub : public TForm { __published: // IDE-managed Components TADOQuery *ADOQry; TTimer *TmrShow; TPanel *PnlTop; TPanel *PnlList; TLabel *LblSearch; TImage *ImgDesc01; TLabel *LblRecords; TcxButton *BtnExlSave; TcxCheckBox *ChkExpand; TcxGrid *CxList; TcxGridBandedTableView *TvList; TcxGridBandedColumn *Col01; TcxGridBandedColumn *Col02; TcxGridBandedColumn *Col03; TcxGridBandedColumn *Col04; TcxGridBandedColumn *Col05; TcxGridBandedColumn *Col06; TcxGridBandedColumn *Col07; TcxGridBandedColumn *Col08; TcxGridBandedColumn *Col09; TcxGridBandedColumn *Col10; TcxGridBandedColumn *ColG1; TcxGridBandedColumn *ColG4; TcxGridBandedColumn *ColL3; TcxGridBandedColumn *ColL1; TcxGridLevel *GlList; TcxLabel *lblText1; TcxLabel *lblText2; TcxLabel *lblFai; TcxLabel *lblCnt; TcxGridBandedColumn *ColG3; TcxGridBandedColumn *ColL4; TcxGridBandedColumn *ColR2; TcxGridBandedColumn *ColR3; TcxGridBandedColumn *ColR4; TcxGridBandedColumn *ColU1; TcxGridBandedColumn *ColR1; TcxGridBandedColumn *ColU3; TPanel *PnlChart; TcxSplitter *spltChart; TFRAMEChart *FRAMEChart1; TcxGridBandedColumn *ColCrossId; TcxGridBandedColumn *ColCamId; TcxGridBandedColumn *ColG0; TcxGridBandedColumn *ColL0; TcxGridBandedColumn *ColR0; TcxGridBandedColumn *ColU0; TcxButton *BtnBestFit; TcxGridBandedColumn *ColG2; TcxGridBandedColumn *ColL2; void __fastcall FormShow(TObject *Sender); void __fastcall TmrShowTimer(TObject *Sender); void __fastcall ChkExpandClick(TObject *Sender); void __fastcall BtnExlSaveClick(TObject *Sender); void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall FormDestroy(TObject *Sender); void __fastcall CbOptionPropertiesChange(TObject *Sender); void __fastcall Col07CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone); void __fastcall BtnBestFitClick(TObject *Sender); private: // User declarations TcxDataController *m_pGDC; public: HWND FParent; String FStDateTime; String FEdDateTime; String FCrossId; String FCamId; String FDrctCd; int FStatType; bool FLane; String FCrossNm; String FCamNm; TCross *FCrossObj; TItsMap FCmraIdLists; TItsMap FDrctCdLists; public: // User declarations __fastcall TFrmCrsTrafVolLogSub(TComponent* Owner, HWND hHandle, String sFrom, String sTo, String sCrossId, String sCamId, String sDrctCd, int nStatType, bool isLane, String sCrossNm, String sCamNm, TCross *pObj); void __fastcall CommClose(); void __fastcall FormInit(); void __fastcall FillChartOptions(); void __fastcall Sel05M(); void __fastcall Sel05M_Lane(); void __fastcall Sel15M(); void __fastcall Sel15M_Lane(); void __fastcall Sel30M(); void __fastcall Sel30M_Lane(); void __fastcall Sel60M(); void __fastcall Sel60M_Lane(); void __fastcall SelDay(); void __fastcall SelDay_Lane(); void __fastcall SelMonth(); void __fastcall SelMonth_Lane(); void __fastcall DspHistory(); void __fastcall DspChart(); }; //--------------------------------------------------------------------------- //extern PACKAGE TFrmCrsTrafVolLogSub *FrmCrsTrafVolLogSub; //--------------------------------------------------------------------------- #endif