IAN0040MF.h 5.3 KB

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