PIS0030MF.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. //---------------------------------------------------------------------------
  2. #ifndef PIS0030MFH
  3. #define PIS0030MFH
  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 "WindowMsgF.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 "dxSkinBlack.hpp"
  45. #include "dxSkinBlue.hpp"
  46. #include "dxSkinsCore.hpp"
  47. #include "dxSkinscxPCPainter.hpp"
  48. class TPIS0030M : public TForm
  49. {
  50. __published: // IDE-managed Components
  51. TTimer *TmrShow;
  52. TShape *ShpTitle;
  53. TcxButton *BtnClose;
  54. TLabel *LblCaption;
  55. TShape *ShpList;
  56. TEdit *EdFocus;
  57. TPanel *PnlBack;
  58. TcxGroupBox *cxGroupBox1;
  59. TTimer *TmrControlTimeout;
  60. TcxGroupBox *cxGroupBox3;
  61. TcxGrid *CxList;
  62. TcxGridTableView *TvList;
  63. TcxGridColumn *Col11;
  64. TcxGridColumn *Col12;
  65. TcxGridColumn *Col00;
  66. TcxGridColumn *Col01;
  67. TcxGridColumn *Col02;
  68. TcxGridColumn *Col03;
  69. TcxGridColumn *Col04;
  70. TcxGridColumn *Col05;
  71. TcxGridColumn *Col06;
  72. TcxGridColumn *Col07;
  73. TcxGridColumn *Col08;
  74. TcxGridColumn *Col09;
  75. TcxGridColumn *TvListColumn3;
  76. TcxGridLevel *GlList;
  77. TLabel *Label1;
  78. TLabel *Label2;
  79. TLabel *Label3;
  80. TLabel *Label4;
  81. TLabel *Label5;
  82. TLabel *Label6;
  83. TEdit *Edit1;
  84. TEdit *Edit2;
  85. TEdit *Edit3;
  86. TEdit *Edit4;
  87. TEdit *Edit5;
  88. TEdit *Edit6;
  89. TcxButton *BtnControl;
  90. TLabel *Label7;
  91. TLabel *Label8;
  92. TEdit *CTLR_MNGM_NMBR;
  93. TEdit *CTLR_MNGM_NM;
  94. TLabel *Label9;
  95. TEdit *COMM_STATE;
  96. TcxGridColumn *Col10;
  97. TcxButton *BtnSearch;
  98. void __fastcall FormShow(TObject *Sender);
  99. void __fastcall TmrShowTimer(TObject *Sender);
  100. void __fastcall BtnCloseClick(TObject *Sender);
  101. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  102. void __fastcall BtnControlClick(TObject *Sender);
  103. void __fastcall Col10CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
  104. TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
  105. void __fastcall TvListCellClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  106. TMouseButton AButton, TShiftState AShift,
  107. bool &AHandled);
  108. void __fastcall BtnSearchClick(TObject *Sender);
  109. void __fastcall TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord,
  110. TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged);
  111. void __fastcall Edit1KeyPress(TObject *Sender, wchar_t &Key);
  112. private: // User declarations
  113. void __fastcall CommClose();
  114. String FTitle;
  115. AnsiString FIpAddress;
  116. int FPort;
  117. public:
  118. DWORD FReqSeq; /* Packet Number */
  119. public: // User declarations
  120. __fastcall TPIS0030M(TComponent* Owner);
  121. void __fastcall FormInit();
  122. void __fastcall LoadParkServerInfo();
  123. void __fastcall RefreshData();
  124. void __fastcall DisplayInfo();
  125. void __fastcall ClearForm();
  126. void __fastcall OnMainFormMessage(TMessage &Msg);
  127. BEGIN_MESSAGE_MAP
  128. MESSAGE_HANDLER(WM_MAINFORM, TMessage, OnMainFormMessage)
  129. END_MESSAGE_MAP(TForm)
  130. };
  131. //---------------------------------------------------------------------------
  132. extern PACKAGE TPIS0030M *PIS0030M;
  133. //---------------------------------------------------------------------------
  134. #endif