EVSPH10MF.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. //---------------------------------------------------------------------------
  2. #ifndef EVSPH10MFH
  3. #define EVSPH10MFH
  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 <FMTBcd.hpp>
  12. #include <Provider.hpp>
  13. #include <SqlExpr.hpp>
  14. #include <Menus.hpp>
  15. #include <ExtCtrls.hpp>
  16. #include <Graphics.hpp>
  17. #include <ComCtrls.hpp>
  18. #include <ADODB.hpp>
  19. #include <Dialogs.hpp>
  20. #include <ExtDlgs.hpp>
  21. //---------------------------------------------------------------------------
  22. #include "WindowMsgF.h"
  23. #include "CDSObjectF.h"
  24. #include "cxButtons.hpp"
  25. #include "cxCalc.hpp"
  26. #include "cxCalendar.hpp"
  27. #include "cxClasses.hpp"
  28. #include "cxContainer.hpp"
  29. #include "cxControls.hpp"
  30. #include "cxCustomData.hpp"
  31. #include "cxData.hpp"
  32. #include "cxDataStorage.hpp"
  33. #include "cxDropDownEdit.hpp"
  34. #include "cxEdit.hpp"
  35. #include "cxFilter.hpp"
  36. #include "cxGraphics.hpp"
  37. #include "cxGrid.hpp"
  38. #include "cxGridCustomTableView.hpp"
  39. #include "cxGridCustomView.hpp"
  40. #include "cxGridLevel.hpp"
  41. #include "cxGridTableView.hpp"
  42. #include "cxGroupBox.hpp"
  43. #include "cxLabel.hpp"
  44. #include "cxLookAndFeelPainters.hpp"
  45. #include "cxLookAndFeels.hpp"
  46. #include "cxMaskEdit.hpp"
  47. #include "cxSpinEdit.hpp"
  48. #include "cxSplitter.hpp"
  49. #include "cxStyles.hpp"
  50. #include "cxTextEdit.hpp"
  51. #include "cxTimeEdit.hpp"
  52. #include "cxTrackBar.hpp"
  53. #include "dxSkinBlack.hpp"
  54. #include "dxSkinBlue.hpp"
  55. #include "dxSkinsCore.hpp"
  56. #include "dxSkinscxPCPainter.hpp"
  57. #include "FRAME_OpenMapF.h"
  58. #include "dxSkinMcSkin.hpp"
  59. //---------------------------------------------------------------------------
  60. class TEVSPH10M : public TForm
  61. {
  62. __published: // IDE-managed Components
  63. TTimer *TmrShow;
  64. TShape *ShpTitle;
  65. TcxButton *BtnClose;
  66. TLabel *LblCaption;
  67. TShape *ShpList;
  68. TEdit *EdFocus;
  69. TPanel *PnlBack;
  70. TPanel *PnlLeft;
  71. TcxSplitter *cxSplitter1;
  72. TcxGroupBox *cxGroupBox2;
  73. TImage *ImgDesc01;
  74. TLabel *Label26;
  75. TImage *ImgDesc02;
  76. TLabel *Label6;
  77. TcxButton *BtnSearch;
  78. TcxGroupBox *cxGroupBox1;
  79. TcxLabel *cxLabel1;
  80. TcxGroupBox *cxGroupBox3;
  81. TcxGroupBox *cxGroupBox5;
  82. TcxGrid *CxList;
  83. TcxGridTableView *TvList;
  84. TcxGridColumn *Column02;
  85. TcxGridColumn *Column01;
  86. TcxGridColumn *Column03;
  87. TcxGridLevel *GlList;
  88. TcxGridColumn *Column04;
  89. TADOQuery *ADOQry;
  90. TADOQuery *ADOSta;
  91. TLabel *LblRecords;
  92. TcxLabel *lblText1;
  93. TcxLabel *lblText2;
  94. TcxLabel *lblText3;
  95. TFRAMEOpenMap *FRAMEOpenMap1;
  96. TDateTimePicker *DtEdTime;
  97. TDateTimePicker *DtEdDate;
  98. TDateTimePicker *DtStDate;
  99. TDateTimePicker *DtStTime;
  100. TcxGrid *CxHist;
  101. TcxGridTableView *TvHist;
  102. TcxGridColumn *ColHist01;
  103. TcxGridColumn *ColHist02;
  104. TcxGridColumn *ColHist03;
  105. TcxGridColumn *ColHist04;
  106. TcxGridLevel *GlHist;
  107. TcxGridColumn *Column05;
  108. TcxGridColumn *ColHist05;
  109. TcxGridColumn *ColHist06;
  110. void __fastcall FormShow(TObject *Sender);
  111. void __fastcall TmrShowTimer(TObject *Sender);
  112. void __fastcall BtnSearchClick(TObject *Sender);
  113. void __fastcall BtnCloseClick(TObject *Sender);
  114. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  115. void __fastcall DtStDatePropertiesValidate(TObject *Sender, Variant &DisplayValue, TCaption &ErrorText, bool &Error);
  116. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  117. TShiftState AShift, bool &AHandled);
  118. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  119. void __fastcall DtStDateChange(TObject *Sender);
  120. void __fastcall TvHistCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  121. TShiftState AShift, bool &AHandled);
  122. private: // User declarations
  123. void __fastcall CommClose();
  124. String FTitle;
  125. TcxDataController *m_pGDC;
  126. void __fastcall InitGisLink();
  127. public:
  128. String sJs;
  129. int FLayerIdx;
  130. int FLinkLevel;
  131. String FStDateTime;
  132. String FEdDateTime;
  133. String FServiceId;
  134. String FVehicleId;
  135. int FSimIndex;
  136. TTrafficValManager *FLinkMngr;
  137. TTrafficValManager *FIfscMngr;
  138. TTrafficValManager *FRoadMngr;
  139. public: // User declarations
  140. __fastcall TEVSPH10M(TComponent* Owner);
  141. void __fastcall FormInit();
  142. void __fastcall SelHistorySummary();
  143. void __fastcall DspHistorySummary();
  144. void __fastcall SelHistory(String AServiceId, String AVehicleId);
  145. void __fastcall DspHistory();
  146. void __fastcall ClearGis();
  147. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  148. };
  149. //---------------------------------------------------------------------------
  150. extern PACKAGE TEVSPH10M *EVSPH10M;
  151. //---------------------------------------------------------------------------
  152. #endif