VMSVIEWMF.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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 "FRAME_VmsListF.h"
  24. #include "cxButtons.hpp"
  25. #include "cxClasses.hpp"
  26. #include "cxContainer.hpp"
  27. #include "cxControls.hpp"
  28. #include "cxCustomData.hpp"
  29. #include "cxData.hpp"
  30. #include "cxDataStorage.hpp"
  31. #include "cxEdit.hpp"
  32. #include "cxFilter.hpp"
  33. #include "cxGraphics.hpp"
  34. #include "cxGrid.hpp"
  35. #include "cxGridCustomTableView.hpp"
  36. #include "cxGridCustomView.hpp"
  37. #include "cxGridLevel.hpp"
  38. #include "cxGridTableView.hpp"
  39. #include "cxGroupBox.hpp"
  40. #include "cxLabel.hpp"
  41. #include "cxLookAndFeelPainters.hpp"
  42. #include "cxLookAndFeels.hpp"
  43. #include "cxStyles.hpp"
  44. #include "cxTextEdit.hpp"
  45. #include "dxSkinsCore.hpp"
  46. #include "dxSkinscxPCPainter.hpp"
  47. #include "dxSkinBlue.hpp"
  48. #include "dxSkinBlack.hpp"
  49. //---------------------------------------------------------------------------
  50. typedef enum enMonitoringScreen
  51. {
  52. enMonitoringPhase = 1,
  53. enMonitoringScenario = 2,
  54. enMonitoringCamera = 3,
  55. enMonitoringModule = 4,
  56. } EN_MONITORING_SCREEN;
  57. //---------------------------------------------------------------------------
  58. class TVMSVIEWM : public TForm
  59. {
  60. __published: // IDE-managed Components
  61. TTimer *TmrShow;
  62. TShape *ShpTitle;
  63. TcxButton *BtnClose;
  64. TLabel *LblCaption;
  65. TShape *ShpList;
  66. TEdit *EdFocus;
  67. TPanel *PanelBack;
  68. TPanel *PnlLeft;
  69. TcxGroupBox *GrpList;
  70. TPanel *Panel1;
  71. TPanel *Panel3;
  72. TcxGroupBox *cxGroupBox1;
  73. TcxGrid *CxList;
  74. TcxGridTableView *TvList;
  75. TcxGridColumn *Col01;
  76. TcxGridColumn *Col02;
  77. TcxGridColumn *Col03;
  78. TcxGridColumn *Col04;
  79. TcxGridColumn *Col05;
  80. TcxGridColumn *Col06;
  81. TcxGridLevel *GlList;
  82. TPanel *PnlMenu;
  83. TcxButton *BtnEdit;
  84. TcxButton *BtnInsert;
  85. TcxButton *BtnDelete;
  86. TcxButton *BtnSave;
  87. TPanel *PnlCmd;
  88. TcxButton *BtnSearch;
  89. TcxGridColumn *Col07;
  90. TcxGridColumn *Col08;
  91. TcxGridColumn *Col09;
  92. TcxGridColumn *Col10;
  93. TcxGridColumn *Col12;
  94. TcxGridColumn *Col13;
  95. TPanel *Panel2;
  96. TPanel *Panel4;
  97. TcxGrid *CxVms;
  98. TcxGridTableView *TvVms;
  99. TcxGridColumn *ColVms1;
  100. TcxGridColumn *ColVms2;
  101. TcxGridColumn *ColVms3;
  102. TcxGridColumn *ColLink4;
  103. TcxGridColumn *ColLink5;
  104. TcxGridColumn *ColLink6;
  105. TcxGridLevel *GlVms;
  106. TFRAMEVmsList *FRAMEVmsList1;
  107. TcxTextEdit *EdOrgName;
  108. TPanel *Panel5;
  109. TImage *ImgDesc19;
  110. TcxLabel *cxLabel2;
  111. TcxTextEdit *EdName;
  112. TcxButton *BtnListAdd;
  113. TcxButton *BtnListDelete;
  114. TcxButton *BtnUp;
  115. TcxButton *BtnDown;
  116. void __fastcall FormShow(TObject *Sender);
  117. void __fastcall TmrShowTimer(TObject *Sender);
  118. void __fastcall BtnCloseClick(TObject *Sender);
  119. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  120. void __fastcall BtnEditClick(TObject *Sender);
  121. void __fastcall BtnSaveClick(TObject *Sender);
  122. void __fastcall BtnInsertClick(TObject *Sender);
  123. void __fastcall BtnDeleteClick(TObject *Sender);
  124. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  125. TMouseButton AButton, TShiftState AShift,
  126. bool &AHandled);
  127. void __fastcall TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord,
  128. TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged);
  129. void __fastcall BtnSearchClick(TObject *Sender);
  130. void __fastcall BtnListAddClick(TObject *Sender);
  131. void __fastcall BtnListDeleteClick(TObject *Sender);
  132. void __fastcall BtnUpClick(TObject *Sender);
  133. void __fastcall BtnDownClick(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. int FMonitoringType;
  142. public: // User declarations
  143. __fastcall TVMSVIEWM(TComponent* Owner);
  144. void __fastcall FormInit();
  145. void __fastcall RefreshData();
  146. void __fastcall LoadVmsMonitoring();
  147. void __fastcall DisplayInfo();
  148. bool __fastcall SaveVmsForm();
  149. void __fastcall ChangeEditMode(int AEdit);
  150. void __fastcall FormClear();
  151. void __fastcall DisplayFormInfo(int AIdx);
  152. bool __fastcall DelVmsMonitoring(String AFormName);
  153. int __fastcall CheckDupFormName(String ANewName, String AOldName);
  154. bool __fastcall FindVmsInfo(String AVmsNmbr);
  155. void __fastcall UpdateVmsSeq();
  156. };
  157. //---------------------------------------------------------------------------
  158. //extern PACKAGE TVMSVIEWM *VMSVIEWM;
  159. //---------------------------------------------------------------------------
  160. #endif