FrmCctvLogSttsSubF.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCctvLogSttsSubFH
  3. #define FrmCctvLogSttsSubFH
  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 <Provider.hpp>
  12. #include <ExtCtrls.hpp>
  13. #include <Graphics.hpp>
  14. #include <Buttons.hpp>
  15. #include <ADODB.hpp>
  16. #include <Menus.hpp>
  17. //---------------------------------------------------------------------------
  18. #include "cxButtons.hpp"
  19. #include "cxCalc.hpp"
  20. #include "cxCheckBox.hpp"
  21. #include "cxClasses.hpp"
  22. #include "cxContainer.hpp"
  23. #include "cxControls.hpp"
  24. #include "cxCustomData.hpp"
  25. #include "cxData.hpp"
  26. #include "cxDataStorage.hpp"
  27. #include "cxEdit.hpp"
  28. #include "cxFilter.hpp"
  29. #include "cxGraphics.hpp"
  30. #include "cxGrid.hpp"
  31. #include "cxGridCustomTableView.hpp"
  32. #include "cxGridCustomView.hpp"
  33. #include "cxGridLevel.hpp"
  34. #include "cxGridTableView.hpp"
  35. #include "cxLookAndFeelPainters.hpp"
  36. #include "cxLookAndFeels.hpp"
  37. #include "cxSplitter.hpp"
  38. #include "cxStyles.hpp"
  39. #include "cxTextEdit.hpp"
  40. #include "dxSkinBlack.hpp"
  41. #include "dxSkinBlue.hpp"
  42. #include "dxSkinCaramel.hpp"
  43. #include "dxSkinCoffee.hpp"
  44. #include "dxSkinDarkRoom.hpp"
  45. #include "dxSkinDarkSide.hpp"
  46. #include "dxSkinFoggy.hpp"
  47. #include "dxSkinGlassOceans.hpp"
  48. #include "dxSkiniMaginary.hpp"
  49. #include "dxSkinLilian.hpp"
  50. #include "dxSkinLiquidSky.hpp"
  51. #include "dxSkinLondonLiquidSky.hpp"
  52. #include "dxSkinMcSkin.hpp"
  53. #include "dxSkinMoneyTwins.hpp"
  54. #include "dxSkinOffice2007Black.hpp"
  55. #include "dxSkinOffice2007Blue.hpp"
  56. #include "dxSkinOffice2007Green.hpp"
  57. #include "dxSkinOffice2007Pink.hpp"
  58. #include "dxSkinOffice2007Silver.hpp"
  59. #include "dxSkinOffice2010Black.hpp"
  60. #include "dxSkinOffice2010Blue.hpp"
  61. #include "dxSkinOffice2010Silver.hpp"
  62. #include "dxSkinsCore.hpp"
  63. #include "dxSkinscxPCPainter.hpp"
  64. #include "dxSkinSeven.hpp"
  65. #include "dxSkinSharp.hpp"
  66. #include "dxSkinSilver.hpp"
  67. #include "dxSkinStardust.hpp"
  68. #include "cxLabel.hpp"
  69. #include "cxGridBandedTableView.hpp"
  70. //---------------------------------------------------------------------------
  71. #define POST_MSG(x,y,z,p) ::PostMessage(x, y, (WPARAM)z, (LPARAM)p)
  72. #define USER_MSG(x,y) ::PostMessage(x, WM_USER, (WPARAM)y, (LPARAM)0)
  73. #define WM_SUBFORM_CLOSE (WM_USER + 0xF2) // Sub Form Close
  74. //---------------------------------------------------------------------------
  75. class TFrmCctvLogSttsSub : public TForm
  76. {
  77. __published: // IDE-managed Components
  78. TADOQuery *ADOQry;
  79. TTimer *TmrShow;
  80. TPanel *PnlTop;
  81. TPanel *PnlList;
  82. TLabel *LblSearch;
  83. TImage *ImgDesc01;
  84. TLabel *LblRecords;
  85. TcxButton *BtnExlSave;
  86. TcxCheckBox *ChkExpand;
  87. TcxLabel *lblText1;
  88. TcxLabel *lblText2;
  89. TcxLabel *lblSucc;
  90. TcxLabel *lblFai;
  91. TcxLabel *lblCnt;
  92. TcxLabel *lblMOS0;
  93. TcxLabel *lblMOS1;
  94. TcxLabel *lblPWS0;
  95. TcxLabel *lblPWS1;
  96. TcxLabel *lblCDS0;
  97. TcxLabel *lblCDS1;
  98. TcxLabel *lblPAS0;
  99. TcxLabel *lblPAS1;
  100. TcxLabel *lblHTS0;
  101. TcxLabel *lblHTS1;
  102. TcxGrid *CxList;
  103. TcxGridBandedTableView *TvList;
  104. TcxGridBandedColumn *Col01;
  105. TcxGridBandedColumn *Col02;
  106. TcxGridBandedColumn *Col03;
  107. TcxGridBandedColumn *Col04;
  108. TcxGridBandedColumn *Col05;
  109. TcxGridBandedColumn *Col06;
  110. TcxGridBandedColumn *Col07;
  111. TcxGridBandedColumn *Col08;
  112. TcxGridBandedColumn *Col09;
  113. TcxGridBandedColumn *Col10;
  114. TcxGridBandedColumn *Col11;
  115. TcxGridBandedColumn *Col12;
  116. TcxGridBandedColumn *Col13;
  117. TcxGridBandedColumn *Col14;
  118. TcxGridBandedColumn *Col15;
  119. TcxGridBandedColumn *Col16;
  120. TcxGridBandedColumn *Col17;
  121. TcxGridBandedColumn *Col18;
  122. TcxGridLevel *GlList;
  123. TcxGridBandedColumn *Col00;
  124. void __fastcall FormShow(TObject *Sender);
  125. void __fastcall TmrShowTimer(TObject *Sender);
  126. void __fastcall ChkExpandClick(TObject *Sender);
  127. void __fastcall BtnExlSaveClick(TObject *Sender);
  128. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  129. void __fastcall FormDestroy(TObject *Sender);
  130. void __fastcall Col05CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
  131. TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
  132. void __fastcall Col12CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
  133. TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
  134. void __fastcall Col08CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  135. bool &ADone);
  136. private: // User declarations
  137. TcxDataController *m_pGDC;
  138. public:
  139. HWND FParent;
  140. String FStDateTime;
  141. String FEdDateTime;
  142. String FIdList;
  143. public: // User declarations
  144. __fastcall TFrmCctvLogSttsSub(TComponent* Owner, HWND hHandle, String sFrom, String sTo, String sIdList);
  145. void __fastcall CommClose();
  146. void __fastcall FormInit();
  147. void __fastcall SelHistory();
  148. void __fastcall DspHistory();
  149. };
  150. //---------------------------------------------------------------------------
  151. //extern PACKAGE TFrmCctvLogSttsSub *FrmCctvLogSttsSub;
  152. //---------------------------------------------------------------------------
  153. #endif