From 334b16b4abb4cbe3d1d4e4f211efd6f4468ae09f Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 19 九月 2025 15:12:52 +0800
Subject: [PATCH] 1.ControlJob和ProcessJob的中断操作,强制结批增加字符串描述原因,方便生产跟踪。

---
 SourceCode/Bond/Servo/CControlJobManagerDlg.h |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/SourceCode/Bond/Servo/CControlJobManagerDlg.h b/SourceCode/Bond/Servo/CControlJobManagerDlg.h
index 380bdf2..2407c30 100644
--- a/SourceCode/Bond/Servo/CControlJobManagerDlg.h
+++ b/SourceCode/Bond/Servo/CControlJobManagerDlg.h
@@ -5,6 +5,8 @@
 #include "ApredTreeCtrl2.h"
 
 
+#define WM_AFTER_TVCHECK (WM_USER + 1000)
+
 // CControlJobManagerDlg 瀵硅瘽妗�
 
 class CControlJobManagerDlg : public CDialogEx
@@ -14,6 +16,7 @@
 public:
 	CControlJobManagerDlg(CWnd* pParent = nullptr);   // 鏍囧噯鏋勯�犲嚱鏁�
 	virtual ~CControlJobManagerDlg();
+	static void FreeState();
 
 private:
 	void Resize();
@@ -21,15 +24,25 @@
 	void UpdateControlJob();
 	bool AddPorcessJob(SERVO::CProcessJob* pj);
 	bool RemovePorcessJob(SERVO::CProcessJob* pj);
-	void UpProcessJobId(SERVO::CProcessJob* pJob);
+	void UpProcessJobId(PJWarp* pjWarp);
 	void InitData();
+	void LoadState();
+	void SaveState();
+	int ShowPage(int index);
 
 private:
 	std::vector<CCjPageBase*> m_pages;
 	SERVO::CControlJob* m_pControlJob;
-	std::vector<SERVO::CProcessJob*> m_processJobs;
+	std::vector<PJWarp> m_pjWarps;
 	CApredTreeCtrl2 m_tree;
 
+public:
+	struct State {
+		SERVO::CControlJob* pControlJob = nullptr;
+		std::vector<PJWarp> pjWarps;
+	};
+	static bool m_bHasState;
+	static State m_state;
 
 // 瀵硅瘽妗嗘暟鎹�
 #ifdef AFX_DESIGN_TIME
@@ -44,7 +57,12 @@
 	virtual BOOL OnInitDialog();
 	afx_msg void OnSize(UINT nType, int cx, int cy);
 	afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
-	afx_msg void OnTvnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
+	afx_msg void OnTvnItemChangedTree(NMHDR* pNMHDR, LRESULT* pResult);
 	afx_msg void OnDestroy();
 	afx_msg void OnBnClickedButtonApply();
+	afx_msg void OnTvnSelchangingTree1(NMHDR* pNMHDR, LRESULT* pResult);
+	afx_msg void OnBnClickedButtonBathCompletion();
+	afx_msg void OnTreeClick(NMHDR* pNMHDR, LRESULT* pResult);
+	afx_msg void OnTreeKeyDown(NMHDR* pNMHDR, LRESULT* pResult);
+	afx_msg LRESULT OnAfterTvCheck(WPARAM wParam, LPARAM lParam);
 };

--
Gitblit v1.9.3