123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244 |
- //---------------------------------------------------------------------------
- #ifndef EVSP000MFH
- #define EVSP000MFH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <DB.hpp>
- #include <DBClient.hpp>
- #include <FMTBcd.hpp>
- #include <Provider.hpp>
- #include <SqlExpr.hpp>
- #include <Menus.hpp>
- #include <ExtCtrls.hpp>
- #include <Graphics.hpp>
- #include <ComCtrls.hpp>
- #include <ADODB.hpp>
- #include <Dialogs.hpp>
- #include <ExtDlgs.hpp>
- //---------------------------------------------------------------------------
- #include "CDSCrossF.h"
- #include "cxButtons.hpp"
- #include "cxClasses.hpp"
- #include "cxContainer.hpp"
- #include "cxControls.hpp"
- #include "cxCustomData.hpp"
- #include "cxData.hpp"
- #include "cxDataStorage.hpp"
- #include "cxDropDownEdit.hpp"
- #include "cxEdit.hpp"
- #include "cxFilter.hpp"
- #include "cxGraphics.hpp"
- #include "cxGrid.hpp"
- #include "cxGridCustomTableView.hpp"
- #include "cxGridCustomView.hpp"
- #include "cxGridLevel.hpp"
- #include "cxGridTableView.hpp"
- #include "cxGroupBox.hpp"
- #include "cxLabel.hpp"
- #include "cxLookAndFeelPainters.hpp"
- #include "cxLookAndFeels.hpp"
- #include "cxMaskEdit.hpp"
- #include "cxSpinEdit.hpp"
- #include "cxSplitter.hpp"
- #include "cxStyles.hpp"
- #include "cxTextEdit.hpp"
- #include "dxSkinBlue.hpp"
- #include "dxSkinsCore.hpp"
- #include "dxSkinscxPCPainter.hpp"
- #include "FRAME_OpenMapF.h"
- #include "dxSkinBlack.hpp"
- #include "dxSkinMcSkin.hpp"
- #include "cxPC.hpp"
- #include "cxPCdxBarPopupMenu.hpp"
- #include "cxCalc.hpp"
- #include "cxCheckBox.hpp"
- //---------------------------------------------------------------------------
- class TOprIxr : public TCDSObject
- {
- public:
- TOprIxr() {
- };
- ~TOprIxr() {};
- private:
- public:
- String VHCL_ID;
- int ORD;
- String IXR_NMBR;
- float X_CRDN;
- float Y_CRDN;
- String IXR_NM;
- public:
- };
- class TReqVhcl : public TCDSObject
- {
- public:
- TReqVhcl() {
- X_CRDN = Y_CRDN = 0.;
- };
- ~TReqVhcl() {};
- private:
- public:
- String VHCL_ID;
- String VHCL_NMBR;
- String VHCL_KIND_DESC;
- String END_YN;
- float X_CRDN;
- float Y_CRDN;
- public:
- };
- class TEVSP000M : public TForm
- {
- __published: // IDE-managed Components
- TTimer *TmrShow;
- TShape *ShpTitle;
- TcxButton *BtnClose;
- TLabel *LblCaption;
- TShape *ShpList;
- TEdit *EdFocus;
- TPanel *PnlBack;
- TPanel *PnlBottom;
- TcxGroupBox *GrpMap;
- TFRAMEOpenMap *FRAMEOpenMap1;
- TcxLabel *cxLabel14;
- TcxSplitter *cxSplitter1;
- TPanel *PnlLeft;
- TcxGroupBox *cxGroupBox3;
- TcxGroupBox *GrpOprInfo;
- TcxLabel *cxLabel17;
- TcxLabel *cxLabel19;
- TPanel *Panel3;
- TcxSpinEdit *cxSpinEdit3;
- TTimer *TmrInitGis;
- TPopupMenu *pmuVms;
- TMenuItem *MnuVmsId;
- TMenuItem *N3;
- TMenuItem *mnuVmsCam;
- TMenuItem *mnuVmsMsg;
- TPopupMenu *pmuCctv;
- TMenuItem *MnuCctvId;
- TMenuItem *N6;
- TMenuItem *mnuCctvCam;
- TcxGrid *CxList;
- TcxGridTableView *TvList;
- TcxGridColumn *Col01;
- TcxGridColumn *Col02;
- TcxGridColumn *Col03;
- TcxGridColumn *Col04;
- TcxGridColumn *Col05;
- TcxGridColumn *Col06;
- TcxGridLevel *GlList;
- TcxComboBox *CbType;
- TcxPageControl *PgRunInfo;
- TcxTabSheet *TsSgnlIxr;
- TcxTabSheet *TsPath;
- TcxGrid *CxIxr;
- TcxGridTableView *TvIxr;
- TcxGridColumn *ColHist01;
- TcxGridColumn *ColIxr02;
- TcxGridColumn *ColIxr03;
- TcxGridColumn *ColIxr01;
- TcxGridColumn *ColIxr04;
- TcxGridColumn *ColIxr05;
- TcxGridLevel *GlIxr;
- TcxCheckBox *ChkCctv;
- TcxCheckBox *ChkVms;
- TcxGridColumn *ColIxr06;
- TcxGrid *CxPath;
- TcxGridTableView *TvPath;
- TcxGridColumn *ColPath01;
- TcxGridColumn *ColPath02;
- TcxGridColumn *ColPath03;
- TcxGridColumn *ColPath04;
- TcxGridColumn *ColPath05;
- TcxGridColumn *ColPath06;
- TcxGridLevel *GlPath;
- TcxButton *BtnSearch;
- TTimer *TmrRefresh;
- TcxComboBox *CboAutoRefreshSec;
- TcxCheckBox *ChkAutoRefresh;
- void __fastcall FormShow(TObject *Sender);
- void __fastcall TmrShowTimer(TObject *Sender);
- void __fastcall BtnCloseClick(TObject *Sender);
- void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
- void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
- void __fastcall TmrInitGisTimer(TObject *Sender);
- void __fastcall mnuVmsCamClick(TObject *Sender);
- void __fastcall mnuVmsMsgClick(TObject *Sender);
- void __fastcall mnuCctvCamClick(TObject *Sender);
- void __fastcall pmuFacilityPopup(TObject *Sender);
- void __fastcall TvListCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
- bool &ADone);
- void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
- TShiftState AShift, bool &AHandled);
- void __fastcall ChkShowHideFacilityClick(TObject *Sender);
- void __fastcall TvIxrCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
- TShiftState AShift, bool &AHandled);
- void __fastcall TvPathCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
- TShiftState AShift, bool &AHandled);
- void __fastcall BtnSearchClick(TObject *Sender);
- void __fastcall ChkAutoRefreshClick(TObject *Sender);
- void __fastcall TmrRefreshTimer(TObject *Sender);
- private: // User declarations
- void __fastcall CommClose();
- TcxDataController *m_pGDC;
- String FTitle;
- bool FUpdate;
- bool FNewDb;
- bool EditMode;
- public:
- String sJs;
- int FLayerIdx;
- String FSelId;
- TItsMap<String, TReqVhcl*> FReqLists;
- TItsMap<String, TOprIxr*> FIxrLists;
- public: // User declarations
- __fastcall TEVSP000M(TComponent* Owner);
- void __fastcall FormInit();
- void __fastcall InitGisFacility();
- void __fastcall OnMapPopupMenu(int ALayerType, String AFID, bool AOnList);
- void __fastcall ShowStrmCamera(String AId, TPoint pt);
- void __fastcall ShowVmsMessage(String AId, TPoint pt);
- void __fastcall LoadEvspVehicleOprIxrInfo(String AVehicleId);
- void __fastcall LoadEvspVehicleOprPathInfo(String AVehicleId);
- void __fastcall UpdateOprIxrInfo();
- void __fastcall LoadEvspVehicleRunInfo();
- bool __fastcall LoadPrioSgnlReqInfr();
- void __fastcall LoadPrioSgnlOperIxr();
- void __fastcall LoadPrioSgnlPath();
- void __fastcall LoadEmrgVhclOperHs();
- void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TEVSP000M *EVSP000M;
- //---------------------------------------------------------------------------
- #endif
|