From 3ae6fded83ac8ef5cec50b402ec046268329027f Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期三, 17 七月 2024 20:56:30 +0800
Subject: [PATCH] update code

---
 jrj/project/business/BasicCode/CustomerMarketList.cpp |   65 ++++++++++++++++++--------------
 1 files changed, 37 insertions(+), 28 deletions(-)

diff --git a/jrj/project/business/BasicCode/CustomerMarketList.cpp b/jrj/project/business/BasicCode/CustomerMarketList.cpp
index c6843e4..37d391c 100644
--- a/jrj/project/business/BasicCode/CustomerMarketList.cpp
+++ b/jrj/project/business/BasicCode/CustomerMarketList.cpp
@@ -1,29 +1,38 @@
-use "system.vl"
-use "win.vl"
-use "list.vl"
-unit vbusiness.entity
-[
-	CustomerMarketList is extend list;
-	about CustomerMarketList
-	[
+#include <wobject/xstring.hpp>
+#include <xcontrol/xtreeview.hpp>
+#include <xcontrol/xdwgrid.hpp>
+#include <wobject/xdouble.hpp>
+#include <xcontrol/xlayersheet.hpp>
 
-		
-		method:
-		[
-			int ViewUpdate(param pr,string updateItem,xaserverarg__  arg)
-			{
-				if(	updateItem=="del"){
-					int DelRow = this.dw_list.GetRow();
-					this.dw_list.DeleteRow(DelRow);
-				}
-				return 1;
-			}		
-			int onload()
-			{
-				list::onload();
-				return -1;
-			}
-					
-		]
-	]
-]
\ No newline at end of file
+#include "vbusiness/vframe/listwin.vframe.vbusiness.hpp"
+#include "viewobject/view.base.hpp"
+
+using xml = KXMLDOMDocument;
+class __declspec(dllexport) CustomerMarketList : public listwin
+{
+public:
+	xdwgrid	dw_list;
+public:
+	CustomerMarketList(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {}
+public:
+	static CustomerMarketList* CreateInstance(void* implPtr, void* hWnd)
+	{
+		CustomerMarketList* pWin = new CustomerMarketList(implPtr, (HWND)hWnd);
+		return pWin;
+	}
+
+	int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg  arg)
+	{
+		if (updateItem == L"del") {
+			int DelRow = dw_list.GetRow();
+			dw_list.DeleteRow(DelRow);
+		}
+		return 1;
+	}
+	int onload()
+	{
+		listwin::onload();
+		return -1;
+	}
+
+};
\ No newline at end of file

--
Gitblit v1.9.3