From bb4dc0fab56e542e784311f95ae6d7e7dd785a8f Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期二, 29 十月 2024 17:10:33 +0800 Subject: [PATCH] update --- jrj/project/total3/ViewTotalWin.cpp | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/jrj/project/total3/ViewTotalWin.cpp b/jrj/project/total3/ViewTotalWin.cpp index ef4b7f1..768456e 100644 --- a/jrj/project/total3/ViewTotalWin.cpp +++ b/jrj/project/total3/ViewTotalWin.cpp @@ -7,7 +7,7 @@ #include <xcontrol/xcombobox.hpp> #include <vbusiness/vutil/publiccode.vutil.vbusiness.hpp> -#include "viewobject/view.base.hpp"" +#include "viewobject/view.base.hpp" using xml = KXMLDOMDocument; @@ -15,11 +15,12 @@ { public: ViewTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} +public: static ViewTotalWin* CreateInstance(void* implPtr, void* hWnd) { return new ViewTotalWin(implPtr, (HWND)hWnd); } - +public: xdwgrid dw_list; xoffice dw_office; xcell dw_cell; @@ -118,7 +119,7 @@ Content = t.selectSingleNode(L"Content").text(); } - xaserverarg arg1 ; + xaserverarg arg1 =GetArg(); arg1.AddArg(L"value", Content); OpenWindow(L"dev:xpage[memo.edit.new.vx]", arg1); return 1; @@ -135,7 +136,7 @@ if (argUrl != L"") { xaserverarg ar ; - ar.setNativePointer(ar.CreateInstance()); + //ar.setNativePointer(ar.CreateInstance()); ar.AddArg(L"argurl", argUrl); if (argStr != L"") ar.AddArg(L"arg", argStr); @@ -191,9 +192,9 @@ for (int i = 1; i < dw.GetColumnCount(); i++) { xstring colname = dw.GetColumnName(i); - if (str.find(L"!" + colname + L",L") >= 0) + if (str.find(L"!" + colname + L",") >= 0) { - dw.SetColumnState(colname, false); + dw.SetColumnState((LPCTSTR)colname.c_str(), false); } } return 1; @@ -391,6 +392,8 @@ AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewTotalWin::OnDWClick); AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewTotalWin::OnRowChanged);//绑定行更改触发事件OnRowChanged AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewTotalWin::OnRetrieveFinished); + + return 1; } int OnRetrieve(xstring dataurl, xstring argstr) @@ -492,7 +495,7 @@ { KXMLDOMElement rpt = nlist.item(i); xstring name = rpt.getAttribute(L"name"); - xc.AddItem( name, rpt); + xc.AddItem( name, rpt.ptr()); if (i == 0) xc.SetText(name); if (i == 0) rptEle = rpt; } -- Gitblit v1.9.3