EVSP000MF.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. //---------------------------------------------------------------------------
  2. #ifndef EVSP000MFH
  3. #define EVSP000MFH
  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 "CDSCrossF.h"
  23. #include "cxButtons.hpp"
  24. #include "cxClasses.hpp"
  25. #include "cxContainer.hpp"
  26. #include "cxControls.hpp"
  27. #include "cxCustomData.hpp"
  28. #include "cxData.hpp"
  29. #include "cxDataStorage.hpp"
  30. #include "cxDropDownEdit.hpp"
  31. #include "cxEdit.hpp"
  32. #include "cxFilter.hpp"
  33. #include "cxGraphics.hpp"
  34. #include "cxGrid.hpp"
  35. #include "cxGridCustomTableView.hpp"
  36. #include "cxGridCustomView.hpp"
  37. #include "cxGridLevel.hpp"
  38. #include "cxGridTableView.hpp"
  39. #include "cxGroupBox.hpp"
  40. #include "cxLabel.hpp"
  41. #include "cxLookAndFeelPainters.hpp"
  42. #include "cxLookAndFeels.hpp"
  43. #include "cxMaskEdit.hpp"
  44. #include "cxSpinEdit.hpp"
  45. #include "cxSplitter.hpp"
  46. #include "cxStyles.hpp"
  47. #include "cxTextEdit.hpp"
  48. #include "dxSkinBlue.hpp"
  49. #include "dxSkinsCore.hpp"
  50. #include "dxSkinscxPCPainter.hpp"
  51. #include "FRAME_OpenMapF.h"
  52. #include "dxSkinBlack.hpp"
  53. #include "dxSkinMcSkin.hpp"
  54. #include "cxPC.hpp"
  55. #include "cxPCdxBarPopupMenu.hpp"
  56. #include "cxCalc.hpp"
  57. #include "cxCheckBox.hpp"
  58. //---------------------------------------------------------------------------
  59. class TOprIxr : public TCDSObject
  60. {
  61. public:
  62. TOprIxr() {
  63. };
  64. ~TOprIxr() {};
  65. private:
  66. public:
  67. String VHCL_ID;
  68. int ORD;
  69. String IXR_NMBR;
  70. float X_CRDN;
  71. float Y_CRDN;
  72. String IXR_NM;
  73. public:
  74. };
  75. class TReqVhcl : public TCDSObject
  76. {
  77. public:
  78. TReqVhcl() {
  79. X_CRDN = Y_CRDN = 0.;
  80. };
  81. ~TReqVhcl() {};
  82. private:
  83. public:
  84. String VHCL_ID;
  85. String VHCL_NMBR;
  86. String VHCL_KIND_DESC;
  87. String END_YN;
  88. float X_CRDN;
  89. float Y_CRDN;
  90. public:
  91. };
  92. class TEVSP000M : public TForm
  93. {
  94. __published: // IDE-managed Components
  95. TTimer *TmrShow;
  96. TShape *ShpTitle;
  97. TcxButton *BtnClose;
  98. TLabel *LblCaption;
  99. TShape *ShpList;
  100. TEdit *EdFocus;
  101. TPanel *PnlBack;
  102. TPanel *PnlBottom;
  103. TcxGroupBox *GrpMap;
  104. TFRAMEOpenMap *FRAMEOpenMap1;
  105. TcxLabel *cxLabel14;
  106. TcxSplitter *cxSplitter1;
  107. TPanel *PnlLeft;
  108. TcxGroupBox *cxGroupBox3;
  109. TcxGroupBox *GrpOprInfo;
  110. TcxLabel *cxLabel17;
  111. TcxLabel *cxLabel19;
  112. TPanel *Panel3;
  113. TcxSpinEdit *cxSpinEdit3;
  114. TTimer *TmrInitGis;
  115. TPopupMenu *pmuVms;
  116. TMenuItem *MnuVmsId;
  117. TMenuItem *N3;
  118. TMenuItem *mnuVmsCam;
  119. TMenuItem *mnuVmsMsg;
  120. TPopupMenu *pmuCctv;
  121. TMenuItem *MnuCctvId;
  122. TMenuItem *N6;
  123. TMenuItem *mnuCctvCam;
  124. TcxGrid *CxList;
  125. TcxGridTableView *TvList;
  126. TcxGridColumn *Col01;
  127. TcxGridColumn *Col02;
  128. TcxGridColumn *Col03;
  129. TcxGridColumn *Col04;
  130. TcxGridColumn *Col05;
  131. TcxGridColumn *Col06;
  132. TcxGridLevel *GlList;
  133. TcxComboBox *CbType;
  134. TcxPageControl *PgRunInfo;
  135. TcxTabSheet *TsSgnlIxr;
  136. TcxTabSheet *TsPath;
  137. TcxGrid *CxIxr;
  138. TcxGridTableView *TvIxr;
  139. TcxGridColumn *ColHist01;
  140. TcxGridColumn *ColIxr02;
  141. TcxGridColumn *ColIxr03;
  142. TcxGridColumn *ColIxr01;
  143. TcxGridColumn *ColIxr04;
  144. TcxGridColumn *ColIxr05;
  145. TcxGridLevel *GlIxr;
  146. TcxCheckBox *ChkCctv;
  147. TcxCheckBox *ChkVms;
  148. TcxGridColumn *ColIxr06;
  149. TcxGrid *CxPath;
  150. TcxGridTableView *TvPath;
  151. TcxGridColumn *ColPath01;
  152. TcxGridColumn *ColPath02;
  153. TcxGridColumn *ColPath03;
  154. TcxGridColumn *ColPath04;
  155. TcxGridColumn *ColPath05;
  156. TcxGridColumn *ColPath06;
  157. TcxGridLevel *GlPath;
  158. TcxButton *BtnSearch;
  159. TTimer *TmrRefresh;
  160. TcxComboBox *CboAutoRefreshSec;
  161. TcxCheckBox *ChkAutoRefresh;
  162. void __fastcall FormShow(TObject *Sender);
  163. void __fastcall TmrShowTimer(TObject *Sender);
  164. void __fastcall BtnCloseClick(TObject *Sender);
  165. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  166. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  167. void __fastcall TmrInitGisTimer(TObject *Sender);
  168. void __fastcall mnuVmsCamClick(TObject *Sender);
  169. void __fastcall mnuVmsMsgClick(TObject *Sender);
  170. void __fastcall mnuCctvCamClick(TObject *Sender);
  171. void __fastcall pmuFacilityPopup(TObject *Sender);
  172. void __fastcall TvListCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  173. bool &ADone);
  174. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  175. TShiftState AShift, bool &AHandled);
  176. void __fastcall ChkShowHideFacilityClick(TObject *Sender);
  177. void __fastcall TvIxrCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  178. TShiftState AShift, bool &AHandled);
  179. void __fastcall TvPathCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  180. TShiftState AShift, bool &AHandled);
  181. void __fastcall BtnSearchClick(TObject *Sender);
  182. void __fastcall ChkAutoRefreshClick(TObject *Sender);
  183. void __fastcall TmrRefreshTimer(TObject *Sender);
  184. private: // User declarations
  185. void __fastcall CommClose();
  186. TcxDataController *m_pGDC;
  187. String FTitle;
  188. bool FUpdate;
  189. bool FNewDb;
  190. bool EditMode;
  191. public:
  192. String sJs;
  193. int FLayerIdx;
  194. String FSelId;
  195. TItsMap<String, TReqVhcl*> FReqLists;
  196. TItsMap<String, TOprIxr*> FIxrLists;
  197. public: // User declarations
  198. __fastcall TEVSP000M(TComponent* Owner);
  199. void __fastcall FormInit();
  200. void __fastcall InitGisFacility();
  201. void __fastcall OnMapPopupMenu(int ALayerType, String AFID, bool AOnList);
  202. void __fastcall ShowStrmCamera(String AId, TPoint pt);
  203. void __fastcall ShowVmsMessage(String AId, TPoint pt);
  204. void __fastcall LoadEvspVehicleOprIxrInfo(String AVehicleId);
  205. void __fastcall LoadEvspVehicleOprPathInfo(String AVehicleId);
  206. void __fastcall UpdateOprIxrInfo();
  207. void __fastcall LoadEvspVehicleRunInfo();
  208. bool __fastcall LoadPrioSgnlReqInfr();
  209. void __fastcall LoadPrioSgnlOperIxr();
  210. void __fastcall LoadPrioSgnlPath();
  211. void __fastcall LoadEmrgVhclOperHs();
  212. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  213. };
  214. //---------------------------------------------------------------------------
  215. extern PACKAGE TEVSP000M *EVSP000M;
  216. //---------------------------------------------------------------------------
  217. #endif