FrmCameraScreenManagerF.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCameraScreenManagerFH
  3. #define FrmCameraScreenManagerFH
  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. #include "FRAME_ObjListF.h"
  22. #include "cxButtons.hpp"
  23. #include "cxClasses.hpp"
  24. #include "cxContainer.hpp"
  25. #include "cxControls.hpp"
  26. #include "cxCustomData.hpp"
  27. #include "cxData.hpp"
  28. #include "cxDataStorage.hpp"
  29. #include "cxEdit.hpp"
  30. #include "cxFilter.hpp"
  31. #include "cxGraphics.hpp"
  32. #include "cxGrid.hpp"
  33. #include "cxGridCustomTableView.hpp"
  34. #include "cxGridCustomView.hpp"
  35. #include "cxGridLevel.hpp"
  36. #include "cxGridTableView.hpp"
  37. #include "cxGroupBox.hpp"
  38. #include "cxLabel.hpp"
  39. #include "cxLookAndFeelPainters.hpp"
  40. #include "cxLookAndFeels.hpp"
  41. #include "cxStyles.hpp"
  42. #include "cxTextEdit.hpp"
  43. #include "dxSkinBlack.hpp"
  44. #include "dxSkinBlue.hpp"
  45. #include "dxSkinsCore.hpp"
  46. #include "dxSkinscxPCPainter.hpp"
  47. #include "dxSkinMcSkin.hpp"
  48. #include "IdBaseComponent.hpp"
  49. #include "IdComponent.hpp"
  50. #include "IdHTTP.hpp"
  51. #include "IdTCPClient.hpp"
  52. #include "IdTCPConnection.hpp"
  53. //---------------------------------------------------------------------------
  54. class TFrmCameraScreenManager : public TForm
  55. {
  56. __published: // IDE-managed Components
  57. TTimer *TmrShow;
  58. TShape *ShpTitle;
  59. TcxButton *BtnClose;
  60. TLabel *LblCaption;
  61. TShape *ShpList;
  62. TEdit *EdFocus;
  63. TPanel *PanelBack;
  64. TPanel *PnlLeft;
  65. TcxGroupBox *GrpList;
  66. TPanel *Panel1;
  67. TPanel *Panel3;
  68. TcxGroupBox *cxGroupBox1;
  69. TcxGrid *CxList;
  70. TcxGridTableView *TvList;
  71. TcxGridColumn *Col01;
  72. TcxGridColumn *Col02;
  73. TcxGridColumn *Col03;
  74. TcxGridColumn *Col04;
  75. TcxGridColumn *Col05;
  76. TcxGridColumn *Col06;
  77. TcxGridLevel *GlList;
  78. TPanel *PnlMenu;
  79. TcxButton *BtnEdit;
  80. TcxButton *BtnInsert;
  81. TcxButton *BtnDelete;
  82. TcxButton *BtnSave;
  83. TPanel *PnlCmd;
  84. TcxButton *BtnSearch;
  85. TcxGridColumn *Col07;
  86. TcxGridColumn *Col08;
  87. TcxGridColumn *Col09;
  88. TcxGridColumn *Col10;
  89. TcxGridColumn *Col12;
  90. TcxGridColumn *Col13;
  91. TPanel *Panel2;
  92. TPanel *Panel4;
  93. TcxGrid *CxCtlr;
  94. TcxGridTableView *TvCtlr;
  95. TcxGridColumn *ColCtlr1;
  96. TcxGridColumn *ColCtlr2;
  97. TcxGridColumn *ColCtlr3;
  98. TcxGridColumn *ColLink4;
  99. TcxGridColumn *ColLink5;
  100. TcxGridColumn *ColLink6;
  101. TcxGridLevel *GlCtlr;
  102. TcxTextEdit *EdOrgName;
  103. TPanel *Panel5;
  104. TImage *ImgDesc19;
  105. TcxLabel *cxLabel2;
  106. TcxTextEdit *EdName;
  107. TcxButton *BtnListAdd;
  108. TcxButton *BtnListDelete;
  109. TcxButton *BtnUp;
  110. TcxButton *BtnDown;
  111. TFRAMEObjList *FRAMEObjList1;
  112. TcxButton *BtnSearch2;
  113. TMemo *reMsg;
  114. void __fastcall FormShow(TObject *Sender);
  115. void __fastcall TmrShowTimer(TObject *Sender);
  116. void __fastcall BtnCloseClick(TObject *Sender);
  117. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  118. void __fastcall BtnEditClick(TObject *Sender);
  119. void __fastcall BtnSaveClick(TObject *Sender);
  120. void __fastcall BtnInsertClick(TObject *Sender);
  121. void __fastcall BtnDeleteClick(TObject *Sender);
  122. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  123. TMouseButton AButton, TShiftState AShift,
  124. bool &AHandled);
  125. void __fastcall TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord,
  126. TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged);
  127. void __fastcall BtnSearchClick(TObject *Sender);
  128. void __fastcall BtnListAddClick(TObject *Sender);
  129. void __fastcall BtnListDeleteClick(TObject *Sender);
  130. void __fastcall BtnUpClick(TObject *Sender);
  131. void __fastcall BtnDownClick(TObject *Sender);
  132. void __fastcall BtnSearch2Click(TObject *Sender);
  133. void __fastcall reMsgDblClick(TObject *Sender);
  134. private: // User declarations
  135. void __fastcall CommClose();
  136. String FTitle;
  137. bool FNewDb;
  138. bool EditMode;
  139. public:
  140. bool FUpdate;
  141. public: // User declarations
  142. __fastcall TFrmCameraScreenManager(TComponent* Owner);
  143. void __fastcall FormInit();
  144. void __fastcall RefreshData();
  145. void __fastcall LoadMonitoring();
  146. void __fastcall DisplayInfo();
  147. void __fastcall ChangeEditMode(int AEdit);
  148. void __fastcall FormClear();
  149. void __fastcall DisplayFormInfo(int AIdx);
  150. bool __fastcall DelMonitoring(String AFormName, String ANewFormName);
  151. int __fastcall CheckDupFormName(String ANewName, String AOldName);
  152. bool __fastcall FindCtlrInfo(String ACtlrNmbr);
  153. void __fastcall UpdateCtlrSeq();
  154. };
  155. //---------------------------------------------------------------------------
  156. extern PACKAGE TFrmCameraScreenManager *FrmCameraScreenManager;
  157. //---------------------------------------------------------------------------
  158. #endif