CCAM010MF.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. //---------------------------------------------------------------------------
  2. #ifndef CCAM010MFH
  3. #define CCAM010MFH
  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. //---------------------------------------------------------------------------
  47. class TCCAM010M : public TForm
  48. {
  49. __published: // IDE-managed Components
  50. TTimer *TmrShow;
  51. TcxButton *BtnSearch;
  52. TLabel *LblCaption;
  53. TShape *ShpTitle;
  54. TcxButton *BtnClose;
  55. TShape *ShpList;
  56. TPanel *PnlBack;
  57. TPanel *PnlLeft;
  58. TcxGroupBox *cxGroupBox3;
  59. TcxGrid *CxList;
  60. TcxGridBandedTableView *TvList;
  61. TcxGridBandedColumn *ColId;
  62. TcxGridBandedColumn *ColName;
  63. TcxGridBandedColumn *ColCommS;
  64. TcxGridBandedColumn *ColDoorS;
  65. TcxGridBandedColumn *ColFanS;
  66. TcxGridBandedColumn *ColHeaterS;
  67. TcxGridBandedColumn *ColCamS;
  68. TcxGridBandedColumn *ColTextS;
  69. TcxGridBandedColumn *ColFanOn;
  70. TcxGridBandedColumn *ColFanOff;
  71. TcxGridBandedColumn *ColHeaterOff;
  72. TcxGridBandedColumn *ColHeaterOn;
  73. TcxGridBandedColumn *ColBattS;
  74. TcxGridBandedColumn *ColHamS;
  75. TcxGridBandedColumn *ColCtrlS;
  76. TcxGridBandedColumn *ColTemp;
  77. TcxGridBandedColumn *ColVolt;
  78. TcxGridBandedColumn *ColVoltOut;
  79. TcxGridBandedColumn *ColUpdtDt;
  80. TcxGridBandedColumn *ColNmbr;
  81. TcxGridLevel *GlList;
  82. void __fastcall FormCreate(TObject *Sender);
  83. void __fastcall FormShow(TObject *Sender);
  84. void __fastcall TmrShowTimer(TObject *Sender);
  85. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  86. void __fastcall BtnSearchClick(TObject *Sender);
  87. void __fastcall ColCommSCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  88. bool &ADone);
  89. void __fastcall BtnCloseClick(TObject *Sender);
  90. private: // User declarations
  91. void __fastcall CommClose();
  92. public:
  93. String FTitle;
  94. public: // User declarations
  95. __fastcall TCCAM010M(TComponent* Owner);
  96. void __fastcall LoadLocalSkin();
  97. void __fastcall Refreshtatus(bool ARealtime=false);
  98. void __fastcall RefreshData();
  99. void __fastcall OnMainFormMessage(TMessage &Msg);
  100. BEGIN_MESSAGE_MAP
  101. MESSAGE_HANDLER(WM_MAINFORM, TMessage, OnMainFormMessage)
  102. END_MESSAGE_MAP(TForm)
  103. };
  104. //---------------------------------------------------------------------------
  105. extern PACKAGE TCCAM010M *CCAM010M;
  106. //---------------------------------------------------------------------------
  107. #endif