From 9b3b2eb20b09e13da837a28f16e552ba70a090c4 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期四, 24 四月 2025 14:48:21 +0800 Subject: [PATCH] update --- jrj/project/business/BasicCode/BrandInforList.cpp | 71 +++++++++++++++++++++-------------- 1 files changed, 43 insertions(+), 28 deletions(-) diff --git a/jrj/project/business/BasicCode/BrandInforList.cpp b/jrj/project/business/BasicCode/BrandInforList.cpp index 7beda87..1ca38a2 100644 --- a/jrj/project/business/BasicCode/BrandInforList.cpp +++ b/jrj/project/business/BasicCode/BrandInforList.cpp @@ -1,29 +1,44 @@ -use "system.vl" -use "win.vl" -use "list.vl" -unit vbusiness.entity -[ - BrandInforList is extend list; - about BrandInforList - [ +#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) BrandInforList : public listwin +{ +public: + xdwgrid dw_list; +public: + BrandInforList(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {} +public: + static BrandInforList* CreateInstance(void* implPtr, void* hWnd) + { + BrandInforList* pWin = new BrandInforList(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() + { + SetAgent(); + listwin::onload(); + return -1; + } + int onloaded() + { + return listwin::onloaded(); + } + +}; \ No newline at end of file -- Gitblit v1.9.3