From 0b8444d0eef50d1ee4e0d0b51e174fa5b447d802 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期三, 17 七月 2024 17:50:35 +0800 Subject: [PATCH] base code --- jrj/project/business/BasicCode/ExpressList.cpp | 69 +++++++++++++++++++--------------- 1 files changed, 38 insertions(+), 31 deletions(-) diff --git a/jrj/project/business/BasicCode/ExpressList.cpp b/jrj/project/business/BasicCode/ExpressList.cpp index 047b16d..7f16177 100644 --- a/jrj/project/business/BasicCode/ExpressList.cpp +++ b/jrj/project/business/BasicCode/ExpressList.cpp @@ -1,34 +1,41 @@ -use "system.vl" -use "win.vl" -use "list.vl" -unit vbusiness.entity -[ - ExpressList is extend list; - about ExpressList - [ +#include <wobject/xstring.hpp> +#include <xcontrol/xtreeview.hpp> +#include <xcontrol/xdwgrid.hpp> +#include <wobject/xdouble.hpp> +#include <xcontrol/xlayersheet.hpp> - - method: - [ - int onload() - { - list::onload(); - return -1; - } - - int ViewUpdate(param pr,string updateItem,xaserverarg__ arg) - { - - if( updateItem=="del") - { - int DelRow = this.dw_list.GetRow(); - this.dw_list.DeleteRow(DelRow); +#include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" +#include "viewobject/view.base.hpp" - } +using xml = KXMLDOMDocument; +class __declspec(dllexport) ExpressList : public xwin +{ +public: + xdwgrid dw_list; +public: + ExpressList(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} +public: + static ExpressList* CreateInstance(void* implPtr, void* hWnd) + { + ExpressList* pWin = new ExpressList(implPtr, (HWND)hWnd); + return pWin; + } + int onload() + { + list::onload(); + return -1; + } - return 1; - } - - ] - ] -] \ No newline at end of file + int ViewUpdate(param pr, xstring updateItem, xaserverarg arg) + { + + if (updateItem == L"del") + { + int DelRow = dw_list.GetRow(); + dw_list.DeleteRow(DelRow); + + } + + return 1; + } +}; \ No newline at end of file -- Gitblit v1.9.3