FrmCrsTrafVolStaSubF.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCrsTrafVolStaSubFH
  3. #define FrmCrsTrafVolStaSubFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <DB.hpp>
  10. #include <DBClient.hpp>
  11. #include <Provider.hpp>
  12. #include <ExtCtrls.hpp>
  13. #include <Graphics.hpp>
  14. #include <Buttons.hpp>
  15. #include <ADODB.hpp>
  16. #include <Menus.hpp>
  17. //---------------------------------------------------------------------------
  18. #include "cxButtons.hpp"
  19. #include "cxCalc.hpp"
  20. #include "cxCheckBox.hpp"
  21. #include "cxClasses.hpp"
  22. #include "cxContainer.hpp"
  23. #include "cxControls.hpp"
  24. #include "cxCustomData.hpp"
  25. #include "cxData.hpp"
  26. #include "cxDataStorage.hpp"
  27. #include "cxEdit.hpp"
  28. #include "cxFilter.hpp"
  29. #include "cxGraphics.hpp"
  30. #include "cxGrid.hpp"
  31. #include "cxGridCustomTableView.hpp"
  32. #include "cxGridCustomView.hpp"
  33. #include "cxGridLevel.hpp"
  34. #include "cxGridTableView.hpp"
  35. #include "cxLookAndFeelPainters.hpp"
  36. #include "cxLookAndFeels.hpp"
  37. #include "cxSplitter.hpp"
  38. #include "cxStyles.hpp"
  39. #include "cxTextEdit.hpp"
  40. #include "dxSkinBlack.hpp"
  41. #include "dxSkinBlue.hpp"
  42. #include "dxSkinCaramel.hpp"
  43. #include "dxSkinCoffee.hpp"
  44. #include "dxSkinDarkRoom.hpp"
  45. #include "dxSkinDarkSide.hpp"
  46. #include "dxSkinFoggy.hpp"
  47. #include "dxSkinGlassOceans.hpp"
  48. #include "dxSkiniMaginary.hpp"
  49. #include "dxSkinLilian.hpp"
  50. #include "dxSkinLiquidSky.hpp"
  51. #include "dxSkinLondonLiquidSky.hpp"
  52. #include "dxSkinMcSkin.hpp"
  53. #include "dxSkinMoneyTwins.hpp"
  54. #include "dxSkinOffice2007Black.hpp"
  55. #include "dxSkinOffice2007Blue.hpp"
  56. #include "dxSkinOffice2007Green.hpp"
  57. #include "dxSkinOffice2007Pink.hpp"
  58. #include "dxSkinOffice2007Silver.hpp"
  59. #include "dxSkinOffice2010Black.hpp"
  60. #include "dxSkinOffice2010Blue.hpp"
  61. #include "dxSkinOffice2010Silver.hpp"
  62. #include "dxSkinsCore.hpp"
  63. #include "dxSkinscxPCPainter.hpp"
  64. #include "dxSkinSeven.hpp"
  65. #include "dxSkinSharp.hpp"
  66. #include "dxSkinSilver.hpp"
  67. #include "dxSkinStardust.hpp"
  68. #include "cxLabel.hpp"
  69. #include "cxGridBandedTableView.hpp"
  70. #include "cxSpinEdit.hpp"
  71. #include "FRAME_ChartF.h"
  72. #include "cxDropDownEdit.hpp"
  73. #include "cxMaskEdit.hpp"
  74. //---------------------------------------------------------------------------
  75. #define POST_MSG(x,y,z,p) ::PostMessage(x, y, (WPARAM)z, (LPARAM)p)
  76. #define USER_MSG(x,y) ::PostMessage(x, WM_USER, (WPARAM)y, (LPARAM)0)
  77. #define WM_SUBFORM_CLOSE (WM_USER + 0xF2) // Sub Form Close
  78. //---------------------------------------------------------------------------
  79. #include "CDSCrossF.h"
  80. //---------------------------------------------------------------------------
  81. class TFrmCrsTrafVolStaSub : public TForm
  82. {
  83. __published: // IDE-managed Components
  84. TADOQuery *ADOQry;
  85. TTimer *TmrShow;
  86. TPanel *PnlTop;
  87. TPanel *PnlList;
  88. TLabel *LblSearch;
  89. TImage *ImgDesc01;
  90. TLabel *LblRecords;
  91. TcxButton *BtnExlSave;
  92. TcxCheckBox *ChkExpand;
  93. TcxGrid *CxList;
  94. TcxGridBandedTableView *TvList;
  95. TcxGridBandedColumn *Col01;
  96. TcxGridBandedColumn *Col02;
  97. TcxGridBandedColumn *Col03;
  98. TcxGridBandedColumn *Col04;
  99. TcxGridBandedColumn *Col06;
  100. TcxGridBandedColumn *Col05;
  101. TcxGridLevel *GlList;
  102. TcxLabel *lblText1;
  103. TcxLabel *lblText2;
  104. TcxLabel *lblFai;
  105. TcxLabel *lblCnt;
  106. TPanel *PnlChart;
  107. TcxSplitter *spltChart;
  108. TFRAMEChart *FRAMEChart1;
  109. TcxButton *BtnBestFit;
  110. TcxGridBandedColumn *Col07;
  111. void __fastcall FormShow(TObject *Sender);
  112. void __fastcall TmrShowTimer(TObject *Sender);
  113. void __fastcall ChkExpandClick(TObject *Sender);
  114. void __fastcall BtnExlSaveClick(TObject *Sender);
  115. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  116. void __fastcall FormDestroy(TObject *Sender);
  117. void __fastcall CbOptionPropertiesChange(TObject *Sender);
  118. void __fastcall Col06CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  119. bool &ADone);
  120. void __fastcall BtnBestFitClick(TObject *Sender);
  121. private: // User declarations
  122. TcxDataController *m_pGDC;
  123. public:
  124. HWND FParent;
  125. String FStDateTime;
  126. String FEdDateTime;
  127. String FCrossId;
  128. String FCamId;
  129. int FStatType;
  130. bool FLane;
  131. String FCrossNm;
  132. String FCamNm;
  133. TCross *FCrossObj;
  134. TItsMap<String, TCrossVol*> FLists;
  135. public: // User declarations
  136. __fastcall TFrmCrsTrafVolStaSub(TComponent* Owner, HWND hHandle, String sFrom, String sTo, String sCrossId, String sCamId, int nStatType, bool isLane, TCross *pObj);
  137. void __fastcall CommClose();
  138. void __fastcall FormInit();
  139. void __fastcall FillChartOptions();
  140. void __fastcall SelHistory();
  141. void __fastcall Sel05M();
  142. void __fastcall Sel05M_Lane();
  143. void __fastcall Sel15M();
  144. void __fastcall Sel15M_Lane();
  145. void __fastcall Sel30M();
  146. void __fastcall Sel30M_Lane();
  147. void __fastcall Sel60M();
  148. void __fastcall Sel60M_Lane();
  149. void __fastcall SelDay();
  150. void __fastcall SelDay_Lane();
  151. void __fastcall SelMonth();
  152. void __fastcall SelMonth_Lane();
  153. void __fastcall DspHistory();
  154. void __fastcall DspChart();
  155. };
  156. //---------------------------------------------------------------------------
  157. //extern PACKAGE TFrmCrsTrafVolStaSub *FrmCrsTrafVolStaSub;
  158. //---------------------------------------------------------------------------
  159. #endif