FrmVmsRemoteCtrlF.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmVmsRemoteCtrlFH
  3. #define FrmVmsRemoteCtrlFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <DB.hpp>
  10. #include <Menus.hpp>
  11. #include <ExtCtrls.hpp>
  12. #include <ADODB.hpp>
  13. #include <ImgList.hpp>
  14. #include <Graphics.hpp>
  15. #include <ComCtrls.hpp>
  16. //---------------------------------------------------------------------------
  17. #include "CenterCommF.h"
  18. #include "WindowMsgF.h"
  19. #include "CDSVmsCtlrF.h"
  20. #include "CDSCenterCommF.h"
  21. //---------------------------------------------------------------------------
  22. #include "cxContainer.hpp"
  23. #include "cxControls.hpp"
  24. #include "cxEdit.hpp"
  25. #include "cxGraphics.hpp"
  26. #include "cxGroupBox.hpp"
  27. #include "cxLabel.hpp"
  28. #include "cxLookAndFeelPainters.hpp"
  29. #include "cxLookAndFeels.hpp"
  30. #include "cxPC.hpp"
  31. #include "cxPCdxBarPopupMenu.hpp"
  32. #include "cxSplitter.hpp"
  33. #include "dxSkinBlack.hpp"
  34. #include "dxSkinBlue.hpp"
  35. #include "dxSkinCaramel.hpp"
  36. #include "dxSkinCoffee.hpp"
  37. #include "dxSkinDarkRoom.hpp"
  38. #include "dxSkinDarkSide.hpp"
  39. #include "dxSkinFoggy.hpp"
  40. #include "dxSkinGlassOceans.hpp"
  41. #include "dxSkiniMaginary.hpp"
  42. #include "dxSkinLilian.hpp"
  43. #include "dxSkinLiquidSky.hpp"
  44. #include "dxSkinLondonLiquidSky.hpp"
  45. #include "dxSkinMcSkin.hpp"
  46. #include "dxSkinMoneyTwins.hpp"
  47. #include "dxSkinOffice2007Black.hpp"
  48. #include "dxSkinOffice2007Blue.hpp"
  49. #include "dxSkinOffice2007Green.hpp"
  50. #include "dxSkinOffice2007Pink.hpp"
  51. #include "dxSkinOffice2007Silver.hpp"
  52. #include "dxSkinOffice2010Black.hpp"
  53. #include "dxSkinOffice2010Blue.hpp"
  54. #include "dxSkinOffice2010Silver.hpp"
  55. #include "dxSkinsCore.hpp"
  56. #include "dxSkinscxPCPainter.hpp"
  57. #include "dxSkinSeven.hpp"
  58. #include "dxSkinSharp.hpp"
  59. #include "dxSkinSilver.hpp"
  60. #include "dxSkinStardust.hpp"
  61. #include "cxClasses.hpp"
  62. #include "cxCustomData.hpp"
  63. #include "cxData.hpp"
  64. #include "cxDataStorage.hpp"
  65. #include "cxFilter.hpp"
  66. #include "cxGrid.hpp"
  67. #include "cxGridCustomTableView.hpp"
  68. #include "cxGridCustomView.hpp"
  69. #include "cxGridLevel.hpp"
  70. #include "cxGridTableView.hpp"
  71. #include "cxStyles.hpp"
  72. #include "cxTextEdit.hpp"
  73. #include "cxGridCardView.hpp"
  74. #include "cxGridCustomLayoutView.hpp"
  75. #include "cxCheckBox.hpp"
  76. #include "cxDropDownEdit.hpp"
  77. #include "cxImage.hpp"
  78. #include "cxButtons.hpp"
  79. #include "cxCalc.hpp"
  80. #include "cxGridBandedTableView.hpp"
  81. #include "FRAME_VmsStateListF.h"
  82. #include "FRAME_VmsStateF.h"
  83. #include "FRAME_VmsMsgListF.h"
  84. #include "ImageBtn.h"
  85. #include "cxMaskEdit.hpp"
  86. #include "cxRadioGroup.hpp"
  87. #include "cxSpinEdit.hpp"
  88. #include "cxTimeEdit.hpp"
  89. #include <OleCtrls.hpp>
  90. #include <SHDocVw.hpp>
  91. //---------------------------------------------------------------------------
  92. #include "IdBaseComponent.hpp"
  93. #include "IdComponent.hpp"
  94. #include "IdIcmpClient.hpp"
  95. #include "IdRawBase.hpp"
  96. #include "IdRawClient.hpp"
  97. #include "FFBaseComponent.hpp"
  98. #include "FFBasePlay.hpp"
  99. #include "FFPlay.hpp"
  100. #include "IdHTTP.hpp"
  101. #include "IdTCPClient.hpp"
  102. #include "IdTCPConnection.hpp"
  103. #include "IdAuthenticationDigest.hpp"
  104. #include "cxHint.hpp"
  105. #include "dxCustomHint.hpp"
  106. #include "dxScreenTip.hpp"
  107. #include "dxSkinsForm.hpp"
  108. #include "dxGDIPlusClasses.hpp" /* idhttp 권한 설정을 위해 필요함 */
  109. //---------------------------------------------------------------------------
  110. class TFrmVmsRemoteCtrl : public TForm
  111. {
  112. __published: // IDE-managed Components
  113. TTimer *TmrShow;
  114. TPanel *PnlCenter;
  115. TPanel *PnlBottom;
  116. TPanel *PnlLeft;
  117. TPanel *PnlRTop;
  118. TcxGroupBox *GrpList;
  119. TcxGroupBox *cxGroupBox1;
  120. TcxGroupBox *cxGroupBox2;
  121. TcxPageControl *PgControl;
  122. TcxTabSheet *TsControl;
  123. TcxTabSheet *cxTabSheet1;
  124. TcxTabSheet *cxTabSheet2;
  125. TImageList *ImageList1;
  126. TcxButton *BtnAllClear;
  127. TcxButton *BtnReverse;
  128. TcxButton *BtnAllSelect;
  129. TPanel *PnlVms;
  130. TPanel *Panel2;
  131. TcxRadioButton *RdbOn;
  132. TcxRadioButton *RdbOff;
  133. TcxRadioButton *RdbReset;
  134. TcxTimeEdit *cxTimeOn;
  135. TcxTimeEdit *cxTimeOff;
  136. TImage *ImgDesc11;
  137. TImage *ImgDesc01;
  138. TcxButton *BtnOnOffSet;
  139. TImage *ImgDesc40;
  140. TLabel *Label5;
  141. TImage *ImgDesc41;
  142. TLabel *Label8;
  143. TLabel *Label13;
  144. TImage *ImgDesc42;
  145. TLabel *Label2;
  146. TImage *ImgDesc43;
  147. TLabel *Label15;
  148. TImage *ImgDesc44;
  149. TImage *ImgDesc61;
  150. TImage *ImgDesc62;
  151. TLabel *Label6;
  152. TLabel *Label4;
  153. TLabel *Label16;
  154. TLabel *Label7;
  155. TLabel *Label9;
  156. TLabel *Label10;
  157. TLabel *Label11;
  158. TLabel *Label12;
  159. TLabel *Label17;
  160. TcxSpinEdit *Se03;
  161. TcxSpinEdit *Se04;
  162. TcxSpinEdit *Se02;
  163. TcxSpinEdit *Se05;
  164. TcxSpinEdit *Se01;
  165. TcxSpinEdit *Se06;
  166. TcxSpinEdit *Se07;
  167. TLabel *Label1;
  168. TLabel *Label14;
  169. TcxButton *BtnConfig;
  170. TcxTabSheet *TsOperMode;
  171. TcxRadioButton *RdbAuto;
  172. TcxRadioButton *RdbFix;
  173. TcxRadioButton *RdbBase;
  174. TcxButton *BtnModeControl;
  175. TLabel *Label18;
  176. TcxRadioButton *RdbLuminance;
  177. TLabel *Label3;
  178. TcxButton *BtnWebCamUrl;
  179. TcxButton *BtnBlankDisplay;
  180. TcxTabSheet *cxTabSheet5;
  181. TcxButton *BtnParamSetting;
  182. TLabel *Label23;
  183. TLabel *Label24;
  184. TLabel *Label25;
  185. TLabel *Label26;
  186. TLabel *Label27;
  187. TLabel *Label32;
  188. TcxSpinEdit *SeDAY_LUMI;
  189. TcxSpinEdit *SeNGHT_LUMI;
  190. TcxSpinEdit *SeCUR_LUMI;
  191. TcxSpinEdit *SeCMNC_RTRY_NOCS;
  192. TcxSpinEdit *SeCommErrTime;
  193. TcxSpinEdit *SeSlotCommErr;
  194. TcxSpinEdit *SeSlotPowerErr;
  195. TcxButton *BtnDefMsgDownload;
  196. TcxTabSheet *cxTabSheet6;
  197. TGroupBox *GroupBox1;
  198. TImage *ImgDesc59;
  199. TLabel *Label22;
  200. TcxSpinEdit *SeFormCycleTime;
  201. TLabel *Label34;
  202. TcxButton *BtnDisplayTimeSet;
  203. TcxButton *BtnMsgImmediateDownload;
  204. TTimer *TmrCommand;
  205. TLabel *Label35;
  206. TLabel *Label36;
  207. TLabel *Label37;
  208. TLabel *Label38;
  209. TLabel *Label47;
  210. TImage *ImgDesc33;
  211. TcxTimeEdit *cxDispStrTm;
  212. TcxTimeEdit *cxDispEndTm;
  213. TcxButton *BtnModuleOn;
  214. TcxButton *BtnModuleOff;
  215. TcxButton *BtnBrghControl0;
  216. TcxButton *BtnResetProgress;
  217. TcxButton *BtnBrghControl1;
  218. TcxButton *BtnBrghControl2;
  219. TLabel *Label43;
  220. TFFPlayer *FFPlayer1;
  221. TcxCheckBox *ChkFullScreen;
  222. TdxSkinController *dxSkinController1;
  223. TcxHintStyleController *cxHintStyleController1;
  224. TMemo *reMsg;
  225. TPanel *PnlVmsCam;
  226. TPanel *PnlRtspStream;
  227. TcxLabel *LblErrMsg;
  228. TPanel *PnlTitleBack;
  229. TImage *ImgCaption;
  230. TLabel *LblCaption;
  231. TImage *ImgCaptionLeft;
  232. TcxGrid *CxList;
  233. TcxGridBandedTableView *TvList;
  234. TcxGridBandedColumn *ColVMS_CTLR_ID;
  235. TcxGridBandedColumn *ColVMS_NM;
  236. TcxGridBandedColumn *ColRPRS_STTS;
  237. TcxGridBandedColumn *ColDOOR_STTS;
  238. TcxGridBandedColumn *ColFAN_STTS;
  239. TcxGridBandedColumn *ColHTER_STTS;
  240. TcxGridBandedColumn *ColPS_STTS;
  241. TcxGridBandedColumn *ColRSET_YN;
  242. TcxGridBandedColumn *ColOPER_MODE;
  243. TcxGridBandedColumn *ColHUM;
  244. TcxGridBandedColumn *ColBOX_TEMP;
  245. TcxGridBandedColumn *ColHeaterOn;
  246. TcxGridBandedColumn *ColBattS;
  247. TcxGridBandedColumn *ColHamS;
  248. TcxGridBandedColumn *ColCMNC_STTS;
  249. TcxGridBandedColumn *ColTEMP;
  250. TcxGridBandedColumn *ColMsgDt;
  251. TcxGridBandedColumn *ColMsgCnt;
  252. TcxGridBandedColumn *ColLAST_DT_FMT;
  253. TcxGridBandedColumn *ColNmbr;
  254. TcxGridBandedColumn *ColVMS_MODL_KIND_NM;
  255. TcxGridLevel *GlList;
  256. TcxGridBandedColumn *ColumnSel;
  257. TcxGridBandedColumn *Col99;
  258. TcxButton *BtnSearch;
  259. TEdit *EdFocus;
  260. TcxComboBox *CbCMNC_STTS;
  261. TcxComboBox *CbPS_STTS;
  262. TcxComboBox *CbRPRS_STTS;
  263. TcxComboBox *CbFAN_STTS;
  264. TcxComboBox *CbHTER_STTS;
  265. TcxComboBox *CbDOOR_STTS;
  266. TcxComboBox *CbOPER_MODE;
  267. TcxSplitter *cxSplitter2;
  268. TLabel *Label20;
  269. TLabel *Label21;
  270. TLabel *Label28;
  271. TLabel *Label45;
  272. TLabel *Label50;
  273. TLabel *Label51;
  274. TLabel *Label46;
  275. TLabel *Label44;
  276. TLabel *Label49;
  277. TLabel *Label29;
  278. TcxComboBox *CbLUMI_MODE;
  279. TcxComboBox *CbFAN_MODE;
  280. TcxComboBox *CbHTER_MODE;
  281. TcxSpinEdit *SeERR_MODL_RT;
  282. TLabel *Label19;
  283. TcxButton *BtnModlErrRate;
  284. TcxSpinEdit *SeDFLT_SCNR_RUN_TM;
  285. TLabel *Label30;
  286. TcxButton *BtnDfltScnrRunTm;
  287. TLabel *Label31;
  288. TcxSpinEdit *SeNghtBrgh;
  289. TcxSpinEdit *SeWeekBrgh;
  290. TcxSpinEdit *SeCurrBrgh;
  291. TcxSpinEdit *SeUserBrgh;
  292. TcxButton *BtnBrghControl3;
  293. TcxComboBox *CbDFLT_SCNR_RUN_TM;
  294. void __fastcall FormShow(TObject *Sender);
  295. void __fastcall TmrShowTimer(TObject *Sender);
  296. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  297. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender,
  298. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  299. TShiftState AShift, bool &AHandled);
  300. void __fastcall Se01PropertiesChange(TObject *Sender);
  301. void __fastcall BtnOnOffSetClick(TObject *Sender);
  302. void __fastcall BtnModeControlClick(TObject *Sender);
  303. void __fastcall BtnWebCamUrlClick(TObject *Sender);
  304. void __fastcall TmrCommandTimer(TObject *Sender);
  305. void __fastcall PgControlPageChanging(TObject *Sender, TcxTabSheet *NewPage,
  306. bool &AllowChange);
  307. void __fastcall Col08CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
  308. TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
  309. void __fastcall BtnModuleControlClick(TObject *Sender);
  310. void __fastcall BtnResetClick(TObject *Sender);
  311. void __fastcall BtnBrghControl0Click(TObject *Sender);
  312. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  313. void __fastcall FFPlayer1OpenFailed(TObject *Sender);
  314. void __fastcall ChkFullScreenClick(TObject *Sender);
  315. void __fastcall BtnSearchClick(TObject *Sender);
  316. void __fastcall BtnAllSelectClick(TObject *Sender);
  317. void __fastcall BtnBlankDisplayClick(TObject *Sender);
  318. void __fastcall BtnModlErrRateClick(TObject *Sender);
  319. void __fastcall BtnDfltScnrRunTmClick(TObject *Sender);
  320. void __fastcall ColRPRS_STTSCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  321. bool &ADone);
  322. void __fastcall CbDFLT_SCNR_RUN_TMClick(TObject *Sender);
  323. private: // User declarations
  324. void __fastcall CommClose();
  325. public:
  326. bool FStrmPlay;
  327. String FStrmUser;
  328. String FStrmPswd;
  329. String FStrmHttp;
  330. String FStrmAddr;
  331. void __fastcall ErrorMsg(String AErrMsg);
  332. void __fastcall WebCamPlay(String AVmsNo);
  333. void __fastcall WebCamStop();
  334. public:
  335. TForm *FPalyerForm;
  336. TVmsCtlr *FSelVmsObj;
  337. TStringList *FVmsIds;
  338. String FTitle;
  339. long FRtspHandle;
  340. TcxTabSheet *FCtrlTab;
  341. TCommTarget *FCommCtrlTarget; // VMS 통신
  342. public: // User declarations
  343. __fastcall TFrmVmsRemoteCtrl(TComponent* Owner);
  344. void __fastcall SetColorScheme(String ASkinName);
  345. void __fastcall LoadLocalSkin();
  346. void __fastcall InitDbLoading();
  347. void __fastcall DisplayInfo();
  348. void __fastcall UpdateList();
  349. void __fastcall RefreshStatusInfo();
  350. void __fastcall ClearCheckList();
  351. bool __fastcall GetSelListItems(bool ACommCheck=true);
  352. bool __fastcall UpdateVmsParam(String AVmsNmbr, void *pData);
  353. bool __fastcall UpdateVmsParam2(String AVmsNmbr, void *pData);
  354. void __fastcall OnVmsStateRefreshMessage(TMessage &Msg);
  355. BEGIN_MESSAGE_MAP
  356. MESSAGE_HANDLER(WM_VMS_STATE_REFRESH, TMessage, OnVmsStateRefreshMessage)
  357. END_MESSAGE_MAP(TForm)
  358. };
  359. //---------------------------------------------------------------------------
  360. extern PACKAGE TFrmVmsRemoteCtrl *FrmVmsRemoteCtrl;
  361. //---------------------------------------------------------------------------
  362. #endif