CTVM010MF.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. //---------------------------------------------------------------------------
  2. #ifndef CTVM010MFH
  3. #define CTVM010MFH
  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 "DataTypesF.h"
  19. #include "WindowMsgF.h"
  20. #include "CDSCctvCtlrF.h"
  21. #include "cxButtons.hpp"
  22. #include "cxClasses.hpp"
  23. #include "cxContainer.hpp"
  24. #include "cxControls.hpp"
  25. #include "cxCustomData.hpp"
  26. #include "cxData.hpp"
  27. #include "cxDataStorage.hpp"
  28. #include "cxEdit.hpp"
  29. #include "cxFilter.hpp"
  30. #include "cxGraphics.hpp"
  31. #include "cxGrid.hpp"
  32. #include "cxGridBandedTableView.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 "dxSkinBlue.hpp"
  44. #include "dxSkinsCore.hpp"
  45. #include "dxSkinscxPCPainter.hpp"
  46. #include "dxSkinBlack.hpp"
  47. #include "dxSkinMcSkin.hpp"
  48. #include "cxSpinEdit.hpp"
  49. //---------------------------------------------------------------------------
  50. class TCTVM010M : public TForm
  51. {
  52. __published: // IDE-managed Components
  53. TTimer *TmrShow;
  54. TcxButton *BtnSearch;
  55. TLabel *LblCaption;
  56. TShape *ShpTitle;
  57. TcxButton *BtnClose;
  58. TShape *ShpList;
  59. TPanel *PnlBack;
  60. TPanel *PnlLeft;
  61. TcxGroupBox *cxGroupBox3;
  62. TcxGrid *CxList;
  63. TcxGridBandedTableView *TvList;
  64. TcxGridBandedColumn *ColId;
  65. TcxGridBandedColumn *ColName;
  66. TcxGridBandedColumn *ColCommS;
  67. TcxGridBandedColumn *ColDoorS;
  68. TcxGridBandedColumn *ColFanS;
  69. TcxGridBandedColumn *ColHeaterS;
  70. TcxGridBandedColumn *ColCamS;
  71. TcxGridBandedColumn *ColTextS;
  72. TcxGridBandedColumn *ColFanOn;
  73. TcxGridBandedColumn *ColFanOff;
  74. TcxGridBandedColumn *ColHeaterOff;
  75. TcxGridBandedColumn *ColHeaterOn;
  76. TcxGridBandedColumn *ColBattS;
  77. TcxGridBandedColumn *ColHamS;
  78. TcxGridBandedColumn *ColCtrlS;
  79. TcxGridBandedColumn *ColTemp;
  80. TcxGridBandedColumn *ColVolt;
  81. TcxGridBandedColumn *ColVoltOut;
  82. TcxGridBandedColumn *ColUpdtDt;
  83. TcxGridBandedColumn *ColNmbr;
  84. TcxGridLevel *GlList;
  85. TcxGridBandedColumn *ColTypeNm;
  86. TcxLabel *lblMOS0;
  87. TcxLabel *lblMOS1;
  88. TcxLabel *lblPWS0;
  89. TcxLabel *lblPWS1;
  90. TcxLabel *lblCDS0;
  91. TcxLabel *lblCDS1;
  92. TcxLabel *lblPAS0;
  93. TcxLabel *lblPAS1;
  94. TcxLabel *lblHTS0;
  95. TcxLabel *lblHTS1;
  96. TcxLabel *lblUnknown;
  97. void __fastcall FormCreate(TObject *Sender);
  98. void __fastcall FormShow(TObject *Sender);
  99. void __fastcall TmrShowTimer(TObject *Sender);
  100. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  101. void __fastcall BtnSearchClick(TObject *Sender);
  102. void __fastcall ColCommSCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  103. bool &ADone);
  104. void __fastcall BtnCloseClick(TObject *Sender);
  105. void __fastcall ColUpdtDtCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  106. bool &ADone);
  107. void __fastcall ColTempCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  108. bool &ADone);
  109. private: // User declarations
  110. void __fastcall CommClose();
  111. public:
  112. String FTitle;
  113. public: // User declarations
  114. __fastcall TCTVM010M(TComponent* Owner);
  115. void __fastcall LoadLocalSkin();
  116. void __fastcall Refreshtatus(bool ARealtime=false);
  117. void __fastcall RefreshData();
  118. void __fastcall OnMainFormMessage(TMessage &Msg);
  119. BEGIN_MESSAGE_MAP
  120. MESSAGE_HANDLER(WM_MAINFORM, TMessage, OnMainFormMessage)
  121. END_MESSAGE_MAP(TForm)
  122. };
  123. //---------------------------------------------------------------------------
  124. extern PACKAGE TCTVM010M *CTVM010M;
  125. //---------------------------------------------------------------------------
  126. #endif