VMSVIEWMF.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. //---------------------------------------------------------------------------
  2. #ifndef VMSVIEWMFH
  3. #define VMSVIEWMFH
  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 "cxCalendar.hpp"
  25. #include "cxContainer.hpp"
  26. #include "cxControls.hpp"
  27. #include "cxDropDownEdit.hpp"
  28. #include "cxEdit.hpp"
  29. #include "cxGraphics.hpp"
  30. #include "cxGroupBox.hpp"
  31. #include "cxLabel.hpp"
  32. #include "cxLookAndFeelPainters.hpp"
  33. #include "cxLookAndFeels.hpp"
  34. #include "cxMaskEdit.hpp"
  35. #include "cxPC.hpp"
  36. #include "cxPCdxBarPopupMenu.hpp"
  37. #include "cxSpinEdit.hpp"
  38. #include "cxSplitter.hpp"
  39. #include "cxTextEdit.hpp"
  40. #include "cxTimeEdit.hpp"
  41. #include "dxSkinBlack.hpp"
  42. #include "dxSkinBlue.hpp"
  43. #include "dxSkinCaramel.hpp"
  44. #include "dxSkinCoffee.hpp"
  45. #include "dxSkinDarkRoom.hpp"
  46. #include "dxSkinDarkSide.hpp"
  47. #include "dxSkinFoggy.hpp"
  48. #include "dxSkinGlassOceans.hpp"
  49. #include "dxSkiniMaginary.hpp"
  50. #include "dxSkinLilian.hpp"
  51. #include "dxSkinLiquidSky.hpp"
  52. #include "dxSkinLondonLiquidSky.hpp"
  53. #include "dxSkinMcSkin.hpp"
  54. #include "dxSkinMoneyTwins.hpp"
  55. #include "dxSkinOffice2007Black.hpp"
  56. #include "dxSkinOffice2007Blue.hpp"
  57. #include "dxSkinOffice2007Green.hpp"
  58. #include "dxSkinOffice2007Pink.hpp"
  59. #include "dxSkinOffice2007Silver.hpp"
  60. #include "dxSkinOffice2010Black.hpp"
  61. #include "dxSkinOffice2010Blue.hpp"
  62. #include "dxSkinOffice2010Silver.hpp"
  63. #include "dxSkinsCore.hpp"
  64. #include "dxSkinscxPCPainter.hpp"
  65. #include "dxSkinSeven.hpp"
  66. #include "dxSkinSharp.hpp"
  67. #include "dxSkinSilver.hpp"
  68. #include "dxSkinStardust.hpp"
  69. #include "cxRadioGroup.hpp"
  70. #include "cxClasses.hpp"
  71. #include "cxCustomData.hpp"
  72. #include "cxData.hpp"
  73. #include "cxDataStorage.hpp"
  74. #include "cxDBData.hpp"
  75. #include "cxFilter.hpp"
  76. #include "cxGrid.hpp"
  77. #include "cxGridCustomTableView.hpp"
  78. #include "cxGridCustomView.hpp"
  79. #include "cxGridDBTableView.hpp"
  80. #include "cxGridLevel.hpp"
  81. #include "cxGridTableView.hpp"
  82. #include "cxStyles.hpp"
  83. #include "cxCheckBox.hpp"
  84. #include "cxImage.hpp"
  85. #include "cxButtonEdit.hpp"
  86. #include "cxBlobEdit.hpp"
  87. #include "cxCalc.hpp"
  88. #include "cxColorComboBox.hpp"
  89. #include "FRAME_VmsListF.h"
  90. //---------------------------------------------------------------------------
  91. typedef enum enMonitoringScreen
  92. {
  93. enMonitoringPhase = 1,
  94. enMonitoringScenario = 2,
  95. enMonitoringCamera = 3,
  96. enMonitoringModule = 4,
  97. } EN_MONITORING_SCREEN;
  98. //---------------------------------------------------------------------------
  99. class TVMSVIEWM : public TForm
  100. {
  101. __published: // IDE-managed Components
  102. TTimer *TmrShow;
  103. TShape *ShpTitle;
  104. TcxButton *BtnClose;
  105. TLabel *LblCaption;
  106. TShape *ShpList;
  107. TEdit *EdFocus;
  108. TPanel *PanelBack;
  109. TPanel *PnlLeft;
  110. TcxGroupBox *GrpList;
  111. TPanel *Panel1;
  112. TPanel *Panel3;
  113. TcxGroupBox *cxGroupBox1;
  114. TcxGrid *CxList;
  115. TcxGridTableView *TvList;
  116. TcxGridColumn *Col01;
  117. TcxGridColumn *Col02;
  118. TcxGridColumn *Col03;
  119. TcxGridLevel *GlList;
  120. TPanel *PnlMenu;
  121. TcxButton *BtnEdit;
  122. TcxButton *BtnInsert;
  123. TcxButton *BtnDelete;
  124. TcxButton *BtnSave;
  125. TPanel *PnlCmd;
  126. TcxButton *BtnSearch;
  127. TPanel *Panel2;
  128. TPanel *Panel4;
  129. TcxButton *BtnUp;
  130. TcxButton *BtnDown;
  131. TcxButton *BtnListAdd;
  132. TcxButton *BtnListDelete;
  133. TcxGrid *CxVms;
  134. TcxGridTableView *TvVms;
  135. TcxGridColumn *ColVms1;
  136. TcxGridColumn *ColVms2;
  137. TcxGridColumn *ColVms3;
  138. TcxGridLevel *GlVms;
  139. TFRAMEVmsList *FRAMEVmsList1;
  140. TcxTextEdit *EdOrgName;
  141. TPanel *Panel5;
  142. TImage *ImgDesc19;
  143. TcxLabel *cxLabel2;
  144. TcxTextEdit *EdName;
  145. TcxLabel *lblText1;
  146. TcxLabel *lblText2;
  147. TcxLabel *lblText3;
  148. TcxLabel *lblText4;
  149. TcxLabel *lblText5;
  150. TcxLabel *lblText6;
  151. TcxLabel *lblText7;
  152. TcxLabel *lblText8;
  153. TcxLabel *lblText9;
  154. void __fastcall FormShow(TObject *Sender);
  155. void __fastcall TmrShowTimer(TObject *Sender);
  156. void __fastcall BtnCloseClick(TObject *Sender);
  157. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  158. void __fastcall BtnEditClick(TObject *Sender);
  159. void __fastcall BtnSaveClick(TObject *Sender);
  160. void __fastcall BtnInsertClick(TObject *Sender);
  161. void __fastcall BtnDeleteClick(TObject *Sender);
  162. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  163. TMouseButton AButton, TShiftState AShift,
  164. bool &AHandled);
  165. void __fastcall TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord,
  166. TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged);
  167. void __fastcall BtnSearchClick(TObject *Sender);
  168. void __fastcall BtnListAddClick(TObject *Sender);
  169. void __fastcall BtnListDeleteClick(TObject *Sender);
  170. void __fastcall BtnUpClick(TObject *Sender);
  171. void __fastcall BtnDownClick(TObject *Sender);
  172. private: // User declarations
  173. void __fastcall CommClose();
  174. String FTitle;
  175. bool FNewDb;
  176. bool EditMode;
  177. public:
  178. bool FUpdate;
  179. int FMonitoringType;
  180. public: // User declarations
  181. __fastcall TVMSVIEWM(TComponent* Owner);
  182. void __fastcall FormInit();
  183. void __fastcall RefreshData();
  184. void __fastcall LoadVmsMonitoring();
  185. void __fastcall DisplayInfo();
  186. bool __fastcall SaveVmsForm();
  187. void __fastcall ChangeEditMode(int AEdit);
  188. void __fastcall FormClear();
  189. void __fastcall DisplayFormInfo(int AIdx);
  190. bool __fastcall DelVmsMonitoring(String AFormName);
  191. int __fastcall CheckDupFormName(String ANewName, String AOldName);
  192. bool __fastcall FindVmsInfo(String AVmsNmbr);
  193. void __fastcall UpdateVmsSeq();
  194. };
  195. //---------------------------------------------------------------------------
  196. //extern PACKAGE TVMSVIEWM *VMSVIEWM;
  197. //---------------------------------------------------------------------------
  198. #endif