CTVM100MF.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. //---------------------------------------------------------------------------
  2. #ifndef CTVM100MFH
  3. #define CTVM100MFH
  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. //---------------------------------------------------------------------------
  23. #include "cxButtons.hpp"
  24. #include "cxContainer.hpp"
  25. #include "cxControls.hpp"
  26. #include "cxDropDownEdit.hpp"
  27. #include "cxEdit.hpp"
  28. #include "cxGraphics.hpp"
  29. #include "cxGroupBox.hpp"
  30. #include "cxLabel.hpp"
  31. #include "cxLookAndFeelPainters.hpp"
  32. #include "cxLookAndFeels.hpp"
  33. #include "cxMaskEdit.hpp"
  34. #include "cxSpinEdit.hpp"
  35. #include "cxSplitter.hpp"
  36. #include "cxTextEdit.hpp"
  37. #include "dxSkinBlue.hpp"
  38. #include "dxSkinsCore.hpp"
  39. #include "dxSkinBlack.hpp"
  40. #include "dxSkinMcSkin.hpp"
  41. #include "FRAME_CctvListF.h"
  42. #include "FRAME_OpenMapF.h"
  43. //---------------------------------------------------------------------------
  44. class TCTVM100M : public TForm
  45. {
  46. __published: // IDE-managed Components
  47. TTimer *TmrShow;
  48. TShape *ShpTitle;
  49. TcxButton *BtnClose;
  50. TLabel *LblCaption;
  51. TShape *ShpList;
  52. TEdit *EdFocus;
  53. TPanel *PnlBack;
  54. TPanel *PnlBottom;
  55. TcxGroupBox *GrpInfo;
  56. TPanel *PnlMenu;
  57. TcxButton *BtnEdit;
  58. TcxButton *BtnInsert;
  59. TcxButton *BtnDelete;
  60. TcxButton *BtnSave;
  61. TcxLabel *cxLabel11;
  62. TcxLabel *cxLabel12;
  63. TPanel *PnlEdit;
  64. TImage *ImgDesc01;
  65. TImage *ImgDesc02;
  66. TImage *ImgDesc03;
  67. TImage *ImgDesc04;
  68. TImage *ImgDesc06;
  69. TImage *ImgDesc07;
  70. TImage *ImgDesc11;
  71. TcxTextEdit *EdCtlrId;
  72. TcxTextEdit *EdCtlrNm;
  73. TcxTextEdit *EdNmbr;
  74. TcxSpinEdit *SePosX;
  75. TcxSpinEdit *SePosY;
  76. TcxLabel *cxLabel1;
  77. TcxLabel *cxLabel2;
  78. TcxLabel *cxLabel3;
  79. TcxLabel *cxLabel6;
  80. TcxLabel *cxLabel18;
  81. TcxMaskEdit *EdCtlrIp;
  82. TcxComboBox *CbType;
  83. TcxLabel *cxLabel8;
  84. TcxLabel *cxLabel5;
  85. TcxLabel *cxLabel15;
  86. TcxTextEdit *Ed_STRM_SESN_NM;
  87. TcxTextEdit *EdCmncPort;
  88. TcxSplitter *cxSplitter2;
  89. TcxGroupBox *GrpMap;
  90. TImage *ImgDesc14;
  91. TcxLabel *lblText1;
  92. TcxLabel *lblText2;
  93. TcxLabel *lblText3;
  94. TcxLabel *lblText4;
  95. TcxLabel *lblText5;
  96. TcxLabel *lblText6;
  97. TcxLabel *lblText7;
  98. TcxLabel *lblText8;
  99. TcxLabel *lblText9;
  100. TFRAMEOpenMap *FRAMEOpenMap1;
  101. TImage *ImgDesc15;
  102. TcxLabel *cxLabel4;
  103. TcxTextEdit *Ed_STRM_RTSP_ADDR;
  104. TcxLabel *cxLabel7;
  105. TImage *ImgDesc16;
  106. TcxTextEdit *Ed_STRM_RTMP_ADDR;
  107. TcxLabel *cxLabel10;
  108. TImage *ImgDesc17;
  109. TcxTextEdit *Ed_STRM_HTTP_ADDR;
  110. TImage *ImgDesc18;
  111. TcxLabel *cxLabel13;
  112. TcxLabel *cxLabel14;
  113. TcxLabel *cxLabel17;
  114. TcxTextEdit *ISTL_LCTN_ADDR;
  115. TImage *ImgDesc25;
  116. TcxTextEdit *ISTL_LCTN_NM;
  117. TcxLabel *cxLabel22;
  118. TImage *ImgDesc05;
  119. TcxTextEdit *Ed_LINK_ID;
  120. TcxTextEdit *EdTmpLinkId;
  121. TButton *BtnApply;
  122. TImage *ImgDesc24;
  123. TcxTextEdit *Ed_INTR_RTMP_ADDR;
  124. TcxSpinEdit *Se_CCTV_CTLR_PORT;
  125. TcxComboBox *CbLc;
  126. TPanel *Panel1;
  127. TcxMaskEdit *Ed_CCTV_ENCD_IP;
  128. TcxMaskEdit *Ed_CCTV_CAPT_IP;
  129. TcxSpinEdit *Se_TYPE;
  130. TcxLabel *cxLabel9;
  131. TcxLabel *cxLabel16;
  132. TcxLabel *cxLabel19;
  133. TcxTextEdit *EdCmraId;
  134. TcxTextEdit *EdCmraPswd;
  135. TPanel *PnlLeft;
  136. TcxGroupBox *cxGroupBox3;
  137. TFRAMECctvList *FRAMECctvList1;
  138. TcxSplitter *cxSplitter1;
  139. TcxTextEdit *EdMacAddr;
  140. TcxLabel *cxLabel20;
  141. TImage *ImgDesc051;
  142. TcxTextEdit *EdSerialNo;
  143. TcxLabel *cxLabel21;
  144. TImage *ImgDesc052;
  145. TcxLabel *cxLabel23;
  146. TImage *ImgDesc053;
  147. TcxComboBox *CbTtaYn;
  148. void __fastcall FormShow(TObject *Sender);
  149. void __fastcall TmrShowTimer(TObject *Sender);
  150. void __fastcall BtnCloseClick(TObject *Sender);
  151. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  152. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  153. void __fastcall BtnEditClick(TObject *Sender);
  154. void __fastcall BtnInsertClick(TObject *Sender);
  155. void __fastcall BtnDeleteClick(TObject *Sender);
  156. void __fastcall BtnSaveClick(TObject *Sender);
  157. void __fastcall Ed_CMRA_PORTKeyPress(TObject *Sender, wchar_t &Key);
  158. void __fastcall Se_CMRA_CHNLPropertiesChange(TObject *Sender);
  159. void __fastcall FRAMECctvList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  160. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  161. void __fastcall BtnApplyClick(TObject *Sender);
  162. private: // User declarations
  163. void __fastcall CommClose();
  164. TcxDataController *m_pGDC;
  165. String FTitle;
  166. bool FUpdate;
  167. bool FNewDb;
  168. bool EditMode;
  169. public:
  170. String sJs;
  171. int FLayerIdx;
  172. public: // User declarations
  173. __fastcall TCTVM100M(TComponent* Owner);
  174. void __fastcall FormInit();
  175. void __fastcall UpdateIcon();
  176. void __fastcall DisplayInfo(TCctvCtlr* AObj, bool AMoveObj=true);
  177. void __fastcall UpdateEditLink();
  178. void __fastcall DisplayLink(TCctvCtlr* AObj);
  179. void __fastcall ChangeEditMode(int AEdit);
  180. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  181. };
  182. //---------------------------------------------------------------------------
  183. extern PACKAGE TCTVM100M *CTVM100M;
  184. //---------------------------------------------------------------------------
  185. #endif