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/BrandInforMaint.cpp |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/jrj/project/business/BasicCode/BrandInforMaint.cpp b/jrj/project/business/BasicCode/BrandInforMaint.cpp
index 5784bec..4dbc18d 100644
--- a/jrj/project/business/BasicCode/BrandInforMaint.cpp
+++ b/jrj/project/business/BasicCode/BrandInforMaint.cpp
@@ -3,12 +3,13 @@
 #include <xcontrol/xdwgrid.hpp>
 #include <wobject/xdouble.hpp>
 #include <xcontrol/xlayersheet.hpp>
+#include <xcontrol/xcell.hpp>
 
-#include "vbusiness/vframe/listwin.vframe.vbusiness.hpp"
+#include "vbusiness/vframe/maint.vframe.vbusiness.hpp"
 #include "viewobject/view.base.hpp"
 
 using xml = KXMLDOMDocument;
-class __declspec(dllexport) BrandInforMaint : public xframe
+class __declspec(dllexport) BrandInforMaint : public maint
 {
 public:
 
@@ -19,20 +20,15 @@
 	xdwtable dw_base;
 	xcell dw_cell;
 public:
-	BrandInforMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
+	BrandInforMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {}
 public:
 	static BrandInforMaint* CreateInstance(void* implPtr, void* hWnd)
 	{
 		BrandInforMaint* pWin = new BrandInforMaint(implPtr, (HWND)hWnd);
 		return pWin;
 	}
-	int alert(xstring str)
-	{
-		//win::MessageBox(GetHWND(),str,L"提示22:",0);
-		TApp::alert(this, str);
-		return 0;
-	}
-	int ViewUpdate(param pr, xstring updateItem, xaserverarg  arg)
+	
+	int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg  arg)
 	{
 		if (updateItem == L"update")
 		{
@@ -41,7 +37,7 @@
 			return 1;
 		}
 	}
-	xstring GetEntityData(param pr)
+	xstring GetEntityData(LPARAM pr)
 	{
 		xml x;
 
@@ -52,15 +48,16 @@
 	}
 	int onload()
 	{
+		SetArg();
 		maint::onload();
-		dw_base = new xdwtable;
-		dw_base.setNativePointer(GetControl(L"dw_base"));
+		dw_base = GetControl(L"dw_base");
 
 		dw_base.SetColHeaderHeight(0);
 		dw_base.SetRowSelectorWidth(0);
 
 		dw_base.SetScrollState(false);
 
+		return 1;
 
 		/*if (!maint::m_EntityID)
 		{
@@ -97,4 +94,9 @@
 			}
 		}*/
 	}
+
+	int onloaded()
+	{
+		return maint::onloaded();
+	}
 };
\ No newline at end of file

--
Gitblit v1.9.3