From d4726c427464d5fa50c9fce848831c4cec36d8d1 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期三, 28 五月 2025 15:24:49 +0800
Subject: [PATCH] update

---
 jrj/project/business/BasicCode/PaymentTerm.maint.cpp |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/jrj/project/business/BasicCode/PaymentTerm.maint.cpp b/jrj/project/business/BasicCode/PaymentTerm.maint.cpp
index 3604cc8..df42459 100644
--- a/jrj/project/business/BasicCode/PaymentTerm.maint.cpp
+++ b/jrj/project/business/BasicCode/PaymentTerm.maint.cpp
@@ -1,14 +1,17 @@
 #include <wobject/xstring.hpp>
 #include <xcontrol/xtreeview.hpp>
 #include <xcontrol/xdwgrid.hpp>
+#include <xcontrol/xdwtable.hpp>
 #include <wobject/xdouble.hpp>
 #include <xcontrol/xlayersheet.hpp>
+#include <xcontrol/xcell.hpp>
 
 #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp"
-#include "viewobject/view.base.hpp"
+#include "vbusiness/vframe/maint.vframe.vbusiness.hpp"
+#include <xcontrol/xlayersheet.hpp>
 
 using xml = KXMLDOMDocument;
-class  __declspec(dllexport) PaymentTermEdit : public xframe
+class  __declspec(dllexport) PaymentTermEdit : public maint
 {
 public:
 	xdwtable dw_base;
@@ -16,7 +19,7 @@
 	xcell dw_cell;
 	xstring sCryno;
 public:
-	PaymentTermEdit(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
+	PaymentTermEdit(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {}
 public:
 	static PaymentTermEdit* CreateInstance(void* implPtr, void* hWnd)
 	{
@@ -406,14 +409,13 @@
 		//maint::onload();
 		//maint::onloaded();
 		dw_base = GetControl(L"dw_base");
-		dw_cell = new xcell;
-		dw_cell.setNativePointer(dw_base.QueryItem(L"ixcell"));
 		dw_base.openUrl(L"/sale/view/Payment/template/Payment/maint");
+		dw_cell = dw_base.QueryItem(L"ixcell");
 		//alert(L"1233");
 		OnRetrieve();
 		OnAttachEvent();
 		//dw_base = GetControl(L"dw_base");
-		
+		return 1;
 	}
 	
 	int onloaded()

--
Gitblit v1.9.3