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/CPageGraph1.cpp |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPageGraph1.cpp b/SourceCode/Bond/Servo/CPageGraph1.cpp
index b213879..cb5ac2d 100644
--- a/SourceCode/Bond/Servo/CPageGraph1.cpp
+++ b/SourceCode/Bond/Servo/CPageGraph1.cpp
@@ -272,10 +272,7 @@
 	}
 
 	m_pGraph->UpdateIndicateBox1Colors(id, newBackgroundColor, newFrameColor1, newFrameColor2);
-
-	// 鍒锋柊鐣岄潰
-	Invalidate();
-	UpdateWindow();
+	m_pGraph->Invalidata();
 }
 
 BOOL CPageGraph1::OnEraseBkgnd(CDC* pDC)
@@ -375,8 +372,6 @@
 		m_pGraph->UpdateIndicateBoxCoordinates(INDICATE_ROBOT_ARM1, cx + rotatedX1, cy + rotatedY1);
 		m_pGraph->UpdateIndicateBoxCoordinates(INDICATE_ROBOT_ARM2, cx + rotatedX2, cy + rotatedY2);
 
-		Invalidate();
-		UpdateWindow();
 		std::this_thread::sleep_for(std::chrono::milliseconds(16));
 	}
 
@@ -515,10 +510,10 @@
 		MoveRobotToPosition(SERVO::ROBOT_POSITION::Measurement);
 	}
 
-	CString s; s.Format(_T("OnGraphItemClicked %d"), pGraphNmhdr->dwData);
 	SERVO::CEquipment* pEquipment = (SERVO::CEquipment*)m_pGraph->GetIndicateBoxData(pGraphNmhdr->dwData);
 	if (pEquipment != nullptr) {
-		theApp.m_model.notifyPtr(RX_CODE_SELECT_EQUIPMENT, pEquipment);
+		// 鏆傛椂绂佺敤灞曞紑灞炴�ч〉鐨勫姛鑳�
+		// theApp.m_model.notifyPtr(RX_CODE_SELECT_EQUIPMENT, pEquipment);
 	}
 	
 	*pResult = 0;
@@ -596,6 +591,8 @@
 		if (robotData.position != m_lastRobotPosition) {
 			MoveRobotToPosition(robotData.position);
 		}
+
+		m_pGraph->Invalidata();
 	}
 
 	CDialogEx::OnTimer(nIDEvent);

--
Gitblit v1.9.3