LAPTOP-SNT8I5JK\Boounion
2025-01-03 518ed5e189c36f99af1157995ddd2bb61489b5a5
SourceCode/Bond/BondEq/CProjectPageMain.h
@@ -1,5 +1,16 @@
#pragma once
#include "afxdialogex.h"
#include "BlButton.h"
// BUTTON控件
#define BTN_MAX         7
#define BTN_RUN         0
#define BTN_AUTO      1
#define BTN_PUASE      2
#define BTN_MANUAL      3
#define BTN_MUTE      4
#define BTN_OPR         5
#define BTN_STOP      6
// CProjectPageMain 对话框
@@ -26,9 +37,9 @@
private:
   void InitRxWindows();
   void SetButtonBackgroundColors(CBlButton* btn, bool bOff);
   void HandleOperation(OperationType eOpType);
   void WriteOperationDataToPLC(OperationType eOpType, bool bPressed);
   void ReadPLCDataToUI();
private:
   COLORREF m_crBkgnd;
@@ -36,10 +47,9 @@
   IObserver* m_pObserver;
   CPLC* m_pPLC;
   int nVelocityRatio;         // 速度比
   double dTactTime;         // 周期时间
   int nDayShiftCapacity;
   int nNightShiftCapacity;
private:
   // 控件
   CBlButton* m_pBlBtns[BTN_MAX];
// 对话框数据
#ifdef AFX_DESIGN_TIME