TAS0010MF.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. //---------------------------------------------------------------------------
  2. #ifndef TAS0010MFH
  3. #define TAS0010MFH
  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. //---------------------------------------------------------------------------
  59. class TTAS0010M : public TForm
  60. {
  61. __published: // IDE-managed Components
  62. TTimer *TmrShow;
  63. TShape *ShpTitle;
  64. TcxButton *BtnClose;
  65. TLabel *LblCaption;
  66. TShape *ShpList;
  67. TEdit *EdFocus;
  68. TPanel *PnlBack;
  69. TPanel *PnlLeft;
  70. TcxSplitter *cxSplitter1;
  71. TcxGroupBox *cxGroupBox2;
  72. TImage *ImgDesc01;
  73. TLabel *Label26;
  74. TImage *ImgDesc02;
  75. TLabel *Label6;
  76. TcxButton *BtnSearch;
  77. TcxDateEdit *DtStDate;
  78. TcxDateEdit *DtEdDate;
  79. TcxTimeEdit *DtEdTime1;
  80. TcxTimeEdit *DtStTime1;
  81. TcxGroupBox *cxGroupBox1;
  82. TcxLabel *cxLabel1;
  83. TImage *ImgDesc03;
  84. TLabel *Label1;
  85. TcxComboBox *CbLinkLevel;
  86. TcxGroupBox *cxGroupBox3;
  87. TcxGroupBox *cxGroupBox5;
  88. TcxButton *BtnPlay;
  89. TcxButton *BtnStop;
  90. TcxTrackBar *cxTrackBar1;
  91. TcxGrid *CxList;
  92. TcxGridTableView *TvList;
  93. TcxGridColumn *Column02;
  94. TcxGridColumn *Column01;
  95. TcxGridColumn *Column03;
  96. TcxGridLevel *GlList;
  97. TcxGridColumn *Column04;
  98. TADOQuery *ADOQry;
  99. TImage *ImgDesc04;
  100. TLabel *Label2;
  101. TcxSpinEdit *SeRefreshSec;
  102. TLabel *Label3;
  103. TADOQuery *ADOSta;
  104. TcxGroupBox *cxGroupBox4;
  105. TcxButton *BtnSearch2;
  106. TcxTextEdit *EdLinkId;
  107. TLabel *Label4;
  108. TImage *ImgDesc05;
  109. TTimer *TmrClear;
  110. TLabel *LblRecords;
  111. TDateTimePicker *DtEdTime;
  112. TDateTimePicker *DtStTime;
  113. TcxComboBox *CbTarget;
  114. TcxLabel *lblText1;
  115. TcxLabel *lblText2;
  116. TcxLabel *lblText3;
  117. TFRAMEOpenMap *FRAMEOpenMap1;
  118. void __fastcall FormShow(TObject *Sender);
  119. void __fastcall TmrShowTimer(TObject *Sender);
  120. void __fastcall BtnSearchClick(TObject *Sender);
  121. void __fastcall BtnCloseClick(TObject *Sender);
  122. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  123. void __fastcall DtStDatePropertiesValidate(TObject *Sender, Variant &DisplayValue, TCaption &ErrorText, bool &Error);
  124. void __fastcall BtnPlayClick(TObject *Sender);
  125. void __fastcall BtnStopClick(TObject *Sender);
  126. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  127. TShiftState AShift, bool &AHandled);
  128. void __fastcall BtnSearch2Click(TObject *Sender);
  129. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  130. private: // User declarations
  131. void __fastcall CommClose();
  132. String FTitle;
  133. TcxDataController *m_pGDC;
  134. void __fastcall InitGisLink();
  135. public:
  136. String sJs;
  137. int FLayerIdx;
  138. int FLinkLevel;
  139. TTrafficValManager *FIfscMngr;
  140. String FStDateTime;
  141. String FEdDateTime;
  142. int FTargetIdx;
  143. String FStatTime;
  144. int FSimIndex;
  145. public: // User declarations
  146. __fastcall TTAS0010M(TComponent* Owner);
  147. void __fastcall FormInit();
  148. void __fastcall SelHistory();
  149. void __fastcall DspHistory();
  150. void __fastcall SelStatisticsHistory(String AStatTime);
  151. void __fastcall ClearGis();
  152. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  153. };
  154. //---------------------------------------------------------------------------
  155. extern PACKAGE TTAS0010M *TAS0010M;
  156. //---------------------------------------------------------------------------
  157. #endif