From 15a7d8ae540c2993d166fe99b1ca13b6d2b101f0 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 29 七月 2025 08:48:50 +0800
Subject: [PATCH] 1.Port Enable修改为保存配置到本地,不再同步与EFEM通讯;

---
 SourceCode/Bond/Servo/CGlass.cpp |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CGlass.cpp b/SourceCode/Bond/Servo/CGlass.cpp
index 6d1a1ee..6c1b30f 100644
--- a/SourceCode/Bond/Servo/CGlass.cpp
+++ b/SourceCode/Bond/Servo/CGlass.cpp
@@ -10,6 +10,7 @@
 		m_pBuddy = nullptr;
 		m_nOriginPort = 0;
 		m_nOriginSlot = 0;
+		m_bScheduledForProcessing = FALSE;
 	}
 
 	CGlass::~CGlass()
@@ -80,6 +81,16 @@
 		slot = m_nOriginSlot;
 	}
 
+	BOOL CGlass::isScheduledForProcessing()
+	{
+		return m_bScheduledForProcessing;
+	}
+	
+	void CGlass::setScheduledForProcessing(BOOL bProcessing)
+	{
+		m_bScheduledForProcessing = bProcessing;
+	}
+
 	CPath* CGlass::getPath()
 	{
 		return m_pPath;
@@ -119,6 +130,7 @@
 			WriteString(ar, m_strID);
 			ar << m_nOriginPort;
 			ar << m_nOriginSlot;
+			ar << m_bScheduledForProcessing;
 			ar << (ULONGLONG)m_pPath;
 			if (m_pPath != nullptr) {
 				m_pPath->serialize(ar);
@@ -141,6 +153,7 @@
 			ReadString(ar, m_strID);
 			ar >> m_nOriginPort;
 			ar >> m_nOriginSlot;
+			ar >> m_bScheduledForProcessing;
 			ar >> ullPath;
 			if (ullPath != 0) {
 				m_pPath = new CPath();

--
Gitblit v1.9.3