FrmVmsMsgF.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmVmsMsgFH
  3. #define FrmVmsMsgFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include "CDSFacilityF.h"
  11. #include <ADODB.hpp>
  12. #include <DB.hpp>
  13. #include "cxContainer.hpp"
  14. #include "cxControls.hpp"
  15. #include "cxEdit.hpp"
  16. #include "cxGraphics.hpp"
  17. #include "cxLabel.hpp"
  18. #include "cxLookAndFeelPainters.hpp"
  19. #include "cxLookAndFeels.hpp"
  20. #include "dxSkinBlack.hpp"
  21. #include "dxSkinBlue.hpp"
  22. #include "dxSkinsCore.hpp"
  23. //---------------------------------------------------------------------------
  24. #define MAX_VMSPHASE 16
  25. class TFrmVmsMsg : public TForm
  26. {
  27. __published: // IDE-managed Components
  28. TTimer *TmrShow;
  29. TPanel *PnlVmsMsgDisp;
  30. TImage *ImgForm;
  31. TTimer *TmrVmsMsgDisp;
  32. TADOQuery *pADO;
  33. TPanel *PnlOffer;
  34. TcxLabel *lblTm;
  35. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  36. void __fastcall FormShow(TObject *Sender);
  37. void __fastcall TmrShowTimer(TObject *Sender);
  38. void __fastcall TmrVmsMsgDispTimer(TObject *Sender);
  39. void __fastcall FormDestroy(TObject *Sender);
  40. private: // User declarations
  41. public:
  42. TItsVms *FObj;
  43. int FDispIndex;
  44. int FPhaseCnt;
  45. TImage *FVmsImage[MAX_VMSPHASE];
  46. int FInterval[MAX_VMSPHASE];
  47. bool FOffer[MAX_VMSPHASE];
  48. String FOfferTime[MAX_VMSPHASE];
  49. int FQryHour;
  50. int FQryMin;
  51. void __fastcall ClearVmsForm();
  52. void __fastcall SetVmsForm();
  53. void __fastcall SelectVmsForm();
  54. public: // User declarations
  55. __fastcall TFrmVmsMsg(TComponent* Owner, TItsVms *AObj);
  56. };
  57. //---------------------------------------------------------------------------
  58. extern PACKAGE TFrmVmsMsg *FrmVmsMsg;
  59. //---------------------------------------------------------------------------
  60. #endif