TAS0010MF.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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 "CDSIfscF.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_GoogleMapF.h"
  58. #include "GMClasses.hpp"
  59. #include "GMLinkedComponents.hpp"
  60. #include "GMMap.hpp"
  61. #include "GMPolyline.hpp"
  62. #include "GMPolylineVCL.hpp"
  63. //---------------------------------------------------------------------------
  64. //---------------------------------------------------------------------------
  65. #ifndef POLY_MANAGER
  66. #define POLY_MANAGER
  67. class TPolyManager
  68. {
  69. public:
  70. TPolyManager() {};
  71. virtual ~TPolyManager() { FLists.RemoveAll(); };
  72. public:
  73. ListMap<TPolyline> FLists;
  74. public:
  75. };
  76. //---------------------------------------------------------------------------
  77. #endif
  78. class TTAS0010M : public TForm
  79. {
  80. __published: // IDE-managed Components
  81. TTimer *TmrShow;
  82. TShape *ShpTitle;
  83. TcxButton *BtnClose;
  84. TLabel *LblCaption;
  85. TShape *ShpList;
  86. TEdit *EdFocus;
  87. TPanel *PnlBack;
  88. TPanel *PnlLeft;
  89. TcxSplitter *cxSplitter1;
  90. TcxGroupBox *cxGroupBox2;
  91. TImage *ImgDesc01;
  92. TLabel *Label26;
  93. TImage *ImgDesc02;
  94. TLabel *Label6;
  95. TcxButton *BtnSearch;
  96. TcxDateEdit *DtStDate;
  97. TcxDateEdit *DtEdDate;
  98. TcxTimeEdit *DtEdTime1;
  99. TcxTimeEdit *DtStTime1;
  100. TcxGroupBox *cxGroupBox1;
  101. TcxLabel *cxLabel1;
  102. TImage *ImgDesc03;
  103. TLabel *Label1;
  104. TcxComboBox *CbLinkLevel;
  105. TcxGroupBox *cxGroupBox3;
  106. TcxGroupBox *cxGroupBox5;
  107. TcxButton *BtnPlay;
  108. TcxButton *BtnStop;
  109. TcxTrackBar *cxTrackBar1;
  110. TcxGrid *CxList;
  111. TcxGridTableView *TvList;
  112. TcxGridColumn *Column02;
  113. TcxGridColumn *Column01;
  114. TcxGridColumn *Column03;
  115. TcxGridLevel *GlList;
  116. TcxGridColumn *Column04;
  117. TADOQuery *ADOQry;
  118. TImage *ImgDesc04;
  119. TLabel *Label2;
  120. TcxSpinEdit *SeRefreshSec;
  121. TLabel *Label3;
  122. TADOQuery *ADOSta;
  123. TcxGroupBox *cxGroupBox4;
  124. TcxButton *BtnSearch2;
  125. TcxTextEdit *EdLinkId;
  126. TLabel *Label4;
  127. TImage *ImgDesc05;
  128. TTimer *TmrClear;
  129. TLabel *LblRecords;
  130. TDateTimePicker *DtEdTime;
  131. TDateTimePicker *DtStTime;
  132. TcxComboBox *CbTarget;
  133. TGMPolyline *GMPolyLink;
  134. TFRAMEGoogleMap *FRAMEGoogleMap1;
  135. TcxLabel *lblText1;
  136. TcxLabel *lblText2;
  137. TcxLabel *lblText3;
  138. void __fastcall FormShow(TObject *Sender);
  139. void __fastcall TmrShowTimer(TObject *Sender);
  140. void __fastcall BtnSearchClick(TObject *Sender);
  141. void __fastcall BtnCloseClick(TObject *Sender);
  142. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  143. void __fastcall DtStDatePropertiesValidate(TObject *Sender, Variant &DisplayValue, TCaption &ErrorText, bool &Error);
  144. void __fastcall BtnPlayClick(TObject *Sender);
  145. void __fastcall BtnStopClick(TObject *Sender);
  146. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  147. TShiftState AShift, bool &AHandled);
  148. void __fastcall BtnSearch2Click(TObject *Sender);
  149. void __fastcall TmrClearTimer(TObject *Sender);
  150. private: // User declarations
  151. void __fastcall CommClose();
  152. String FTitle;
  153. TcxDataController *m_pGDC;
  154. TPolyManager* FPolyManager;
  155. TPolyline* FSelLink;
  156. TColor FSelColor;
  157. void __fastcall FRAMEGoogleMapOnZoomChange(TObject *Sender);
  158. void __fastcall InitGisLink();
  159. public:
  160. String FStDateTime;
  161. String FEdDateTime;
  162. String FLinkLevel;
  163. int FTargetIdx;
  164. String FStatTime;
  165. int FSimIndex;
  166. public: // User declarations
  167. __fastcall TTAS0010M(TComponent* Owner);
  168. void __fastcall FormInit();
  169. void __fastcall SelHistory();
  170. void __fastcall DspHistory();
  171. void __fastcall SelStatisticsHistory(String AStatTime);
  172. void __fastcall ClearGis();
  173. };
  174. //---------------------------------------------------------------------------
  175. extern PACKAGE TTAS0010M *TAS0010M;
  176. //---------------------------------------------------------------------------
  177. #endif