From 81db5004dec768f2f06b1277c81b13f1043e1bd5 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期二, 09 七月 2024 16:04:00 +0800
Subject: [PATCH] update

---
 jrj/project/business/AP/Select.AP.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/jrj/project/business/AP/Select.AP.cpp b/jrj/project/business/AP/Select.AP.cpp
index 5ed3e2f..e921b17 100644
--- a/jrj/project/business/AP/Select.AP.cpp
+++ b/jrj/project/business/AP/Select.AP.cpp
@@ -6,16 +6,16 @@
 #include "viewobject/view.base.hpp"
 
 using xml = KXMLDOMDocument;
-	class __declspec(dllexport) APSelectDlg : public xframe
-	{
-	public:
+class __declspec(dllexport) APSelectDlg : public xframe
+{
+public:
 		xdwgrid	dw_list;
 		xcontrol query;
 
 		xnode	m_agentNode;	//Agent Condition
 
 	public:
-		APSelectDlg(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
+		APSelectDlg(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd), query(0){}
 	public:
 		static APSelectDlg* CreateInstance(void* implPtr, void* hWnd)
 		{
@@ -93,6 +93,7 @@
 			//获取焦点事件,用于重置工具条
 			AttachEvent(L"WM_SETFOCUS", (FEvent)&APSelectDlg::OnSetFocus);
 			AttachEvent(L"dw_list", L"DWV_DOUBLECLICKED", (FEvent)&APSelectDlg::onOk);
+			return 1;
 		}
 
 		int RetrieveData()
@@ -109,6 +110,7 @@
 
 		int onload()
 		{
+			SetArg();
 			dw_list = GetControl(L"dw_list");
 			dw_list.openUrl(L"/sale/view/PurchaseOrder/template/purchaseorder/POAdvance");
 			OnAttachEvent();

--
Gitblit v1.9.3