From 2ee440d9e85eccd73d2c3d4cbfe42cb8c1c25ec0 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期六, 28 六月 2025 14:35:24 +0800
Subject: [PATCH] 1.在stroedJob和Fetchout Job中增加Port的校验; 2.在物料调度中增加检测物料是否已经处理完成的校验;

---
 SourceCode/Bond/Servo/CPath.cpp |   28 +++++++++++++++++++---------
 1 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPath.cpp b/SourceCode/Bond/Servo/CPath.cpp
index 1633b5a..3eb286b 100644
--- a/SourceCode/Bond/Servo/CPath.cpp
+++ b/SourceCode/Bond/Servo/CPath.cpp
@@ -6,7 +6,7 @@
 namespace SERVO {
 	CPath::CPath()
 	{
-		m_nSiteID = 0;
+		m_nEqID = 0;
 		m_timeOut = 0;
 		m_timeIn = CToolUnits::getTimestamp();
 		m_bProcessed = FALSE;
@@ -14,9 +14,10 @@
 		m_pNext = nullptr;
 	}
 
-	CPath::CPath(unsigned int nSiteId)
+	CPath::CPath(unsigned int nEqId, unsigned int nUnit)
 	{
-		m_nSiteID = nSiteId;
+		m_nEqID = nEqId;
+		m_nUnit = nUnit;
 		m_timeOut = 0;
 		m_timeIn = CToolUnits::getTimestamp();
 		m_pPrev = nullptr;
@@ -32,8 +33,10 @@
 	void CPath::getDescription(std::string& strOut)
 	{
 		strOut.clear();
-		strOut = "CPath<SiteID:";
-		strOut = strOut + std::to_string(m_nSiteID);
+		strOut = "CPath<EqID:";
+		strOut = strOut + std::to_string(m_nEqID);
+		strOut = strOut + ",Unit:";
+		strOut = strOut + std::to_string(m_nUnit);
 		strOut = strOut + ",InTime:";
 		strOut = strOut + CToolUnits::timeToString2(m_timeIn);
 		strOut = strOut + ",OutTime:";
@@ -44,7 +47,8 @@
 	void CPath::serialize(CArchive& ar)
 	{
 		if (ar.IsStoring()) {
-			ar << m_nSiteID;
+			ar << m_nEqID;
+			ar << m_nUnit;
 			ar << m_timeIn;
 			ar << m_timeOut;
 			ar << m_bProcessed;
@@ -54,7 +58,8 @@
 			}
 		}
 		else {
-			ar >> m_nSiteID;
+			ar >> m_nEqID;
+			ar >> m_nUnit;
 			ar >> m_timeIn;
 			ar >> m_timeOut;
 			ar >> m_bProcessed;
@@ -69,9 +74,14 @@
 		}
 	}
 
-	unsigned int CPath::getSiteID()
+	unsigned int CPath::getEqID()
 	{
-		return m_nSiteID;
+		return m_nEqID;
+	}
+
+	unsigned int CPath::getUnit()
+	{
+		return m_nUnit;
 	}
 
 	ULONGLONG CPath::getInTime()

--
Gitblit v1.9.3