PIS0030MF.h 4.3 KB

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