BDS0000MF.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. //---------------------------------------------------------------------------
  2. #ifndef BDS0000MFH
  3. #define BDS0000MFH
  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 "cxButtons.hpp"
  20. #include "cxContainer.hpp"
  21. #include "cxControls.hpp"
  22. #include "cxEdit.hpp"
  23. #include "cxGraphics.hpp"
  24. #include "cxGroupBox.hpp"
  25. #include "cxLookAndFeelPainters.hpp"
  26. #include "cxLookAndFeels.hpp"
  27. #include "dxSkinBlack.hpp"
  28. #include "dxSkinBlue.hpp"
  29. #include "dxSkinCaramel.hpp"
  30. #include "dxSkinCoffee.hpp"
  31. #include "dxSkinDarkRoom.hpp"
  32. #include "dxSkinDarkSide.hpp"
  33. #include "dxSkinFoggy.hpp"
  34. #include "dxSkinGlassOceans.hpp"
  35. #include "dxSkiniMaginary.hpp"
  36. #include "dxSkinLilian.hpp"
  37. #include "dxSkinLiquidSky.hpp"
  38. #include "dxSkinLondonLiquidSky.hpp"
  39. #include "dxSkinMcSkin.hpp"
  40. #include "dxSkinMoneyTwins.hpp"
  41. #include "dxSkinOffice2007Black.hpp"
  42. #include "dxSkinOffice2007Blue.hpp"
  43. #include "dxSkinOffice2007Green.hpp"
  44. #include "dxSkinOffice2007Pink.hpp"
  45. #include "dxSkinOffice2007Silver.hpp"
  46. #include "dxSkinOffice2010Black.hpp"
  47. #include "dxSkinOffice2010Blue.hpp"
  48. #include "dxSkinOffice2010Silver.hpp"
  49. #include "dxSkinsCore.hpp"
  50. #include "dxSkinSeven.hpp"
  51. #include "dxSkinSharp.hpp"
  52. #include "dxSkinSilver.hpp"
  53. #include "dxSkinStardust.hpp"
  54. #include "cxLabel.hpp"
  55. #include "cxTextEdit.hpp"
  56. #include "cxProgressBar.hpp"
  57. #include "IdAntiFreeze.hpp"
  58. #include "IdAntiFreezeBase.hpp"
  59. #include "IdBaseComponent.hpp"
  60. #include "IdComponent.hpp"
  61. #include "IdExplicitTLSClientServerBase.hpp"
  62. #include "IdFTP.hpp"
  63. #include "IdTCPClient.hpp"
  64. #include "IdTCPConnection.hpp"
  65. #include <OleCtrls.hpp>
  66. #include "AXVLC_TLB.hpp"
  67. #include "ShockwaveEx.hpp"
  68. #include "ShockwaveFlashObjects_TLB.hpp"
  69. //---------------------------------------------------------------------------
  70. #define MAX_PLAYER 3
  71. class TBDS0000M : public TForm
  72. {
  73. __published: // IDE-managed Components
  74. TTimer *TmrShow;
  75. TcxButton *BtnDownload;
  76. TEdit *EdFocus;
  77. TcxGroupBox *cxGroupBox1;
  78. TShape *ShpList;
  79. TcxGroupBox *grpStatus;
  80. TImage *ImgDesc01;
  81. TcxLabel *cxLabel1;
  82. TcxTextEdit *eBDS_MNGM_NMBR;
  83. TImage *ImgDesc02;
  84. TcxLabel *cxLabel2;
  85. TcxTextEdit *eTRMN_ID;
  86. TImage *ImgDesc99;
  87. TcxTextEdit *eOCRR_DT;
  88. TcxLabel *cxLabel15;
  89. TImage *ImgDesc91;
  90. TcxLabel *cxLabel3;
  91. TcxTextEdit *eIMGN_PATH;
  92. TImage *ImgDesc05;
  93. TcxLabel *cxLabel8;
  94. TIdFTP *IdFtp;
  95. TcxTextEdit *eIMGN_PATH_RES;
  96. TPanel *Panel1;
  97. TcxButton *BtnClose;
  98. TImage *ImgDesc11;
  99. TcxLabel *cxLabel4;
  100. TImage *ImgDesc12;
  101. TcxLabel *cxLabel5;
  102. TcxLabel *cxLabel6;
  103. TImage *ImgDesc14;
  104. TcxLabel *cxLabel7;
  105. TImage *ImgDesc13;
  106. TPanel *Panel2;
  107. TPanel *Panel4;
  108. TPanel *Panel3;
  109. TcxButton *BtnStop;
  110. TcxButton *BtnPlay;
  111. TVLCPlugin2 *VLCPlugin21;
  112. TcxLabel *lblCam1;
  113. TVLCPlugin2 *VLCPlugin22;
  114. TcxLabel *lblCam2;
  115. TVLCPlugin2 *VLCPlugin23;
  116. TcxLabel *lblCam3;
  117. TShockwaveFlashEx *ShockwaveFlash1;
  118. void __fastcall FormShow(TObject *Sender);
  119. void __fastcall TmrShowTimer(TObject *Sender);
  120. void __fastcall BtnCloseClick(TObject *Sender);
  121. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  122. void __fastcall IdFtpStatus(TObject *ASender, const TIdStatus AStatus, const UnicodeString AStatusText);
  123. void __fastcall BtnDownloadClick(TObject *Sender);
  124. void __fastcall BtnPlayClick(TObject *Sender);
  125. void __fastcall BtnStopClick(TObject *Sender);
  126. void __fastcall VLCPlugin21MediaPlayerBuffering(TObject *ASender, int cache);
  127. void __fastcall VLCPlugin21MediaPlayerTimeChanged(TObject *ASender, int Time);
  128. void __fastcall VLCPlugin21MediaPlayerEncounteredError(TObject *Sender);
  129. void __fastcall ShockwaveFlash1FlashCall(TObject *ASender, const WideString request);
  130. void __fastcall VLCPlugin21MediaPlayerEndReached(TObject *Sender);
  131. private: // User declarations
  132. void __fastcall CommClose();
  133. public:
  134. String EventID;
  135. String BDS_MNGM_NMBR; // N VARCHAR2(20) N 블랙박스 관리 번호
  136. String OPNC_NMBR; // N VARCHAR2(128) Y 개통 번호
  137. String MDM_NMBR; // N VARCHAR2(10) Y 모뎀 번호
  138. String USIM_NMBR; // N VARCHAR2(10) Y 유심 번호
  139. String VHCL_NMBR; // N VARCHAR2(15) Y 차량 번호
  140. String OWNR_NM; // N VARCHAR2(30) Y 소유자 명
  141. String OCRR_DT; // N VARCHAR2(14) N 발생 일시
  142. String EVT_TYPE;
  143. String TRMN_ID; // N VARCHAR2(128) Y 단말기 ID
  144. String X_CRDN; // N NUMBER(11,8) Y x 좌표
  145. String Y_CRDN; // N NUMBER(10,8) Y Y 좌표
  146. String IMGN_PATH; // N VARCHAR2(200) Y 영상 경로
  147. String FDownloadDir;
  148. String FDownloadFile;
  149. String FAviFile;
  150. DWORD m_dwBytesToTrans;
  151. bool MapInit;
  152. bool MapStart;
  153. TcxLabel *LblCam[MAX_PLAYER];
  154. TPanel *PnlCam[MAX_PLAYER];
  155. TVLCPlugin2 *VlcPlayer[MAX_PLAYER];
  156. String PlayerFile[MAX_PLAYER];
  157. public: // User declarations
  158. __fastcall TBDS0000M(TComponent* Owner);
  159. void __fastcall AddPos();
  160. void __fastcall InitControl();
  161. void __fastcall RefreshData();
  162. bool __fastcall DownloadAviFile();
  163. bool __fastcall ChangeDir(String sDir);
  164. void __fastcall DisconnectFtp();
  165. bool __fastcall ConnectFtp(bool bPassive, String sHost, int nPort, String sUser, String sPswd);
  166. bool __fastcall SplitStream();
  167. };
  168. //---------------------------------------------------------------------------
  169. extern PACKAGE TBDS0000M *BDS0000M;
  170. //---------------------------------------------------------------------------
  171. #endif