From 5328bcc143efdba5b735df2af0fdd56fd92b5f54 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期二, 23 七月 2024 10:43:55 +0800 Subject: [PATCH] update --- jrj/xframe/vbusiness/vframe/maint.vframe.vbusiness.hpp | 45 +++++++++++++++++++++++++-------------------- 1 files changed, 25 insertions(+), 20 deletions(-) diff --git a/jrj/xframe/vbusiness/vframe/maint.vframe.vbusiness.hpp b/jrj/xframe/vbusiness/vframe/maint.vframe.vbusiness.hpp index b912dc5..f0f46b6 100644 --- a/jrj/xframe/vbusiness/vframe/maint.vframe.vbusiness.hpp +++ b/jrj/xframe/vbusiness/vframe/maint.vframe.vbusiness.hpp @@ -12,9 +12,11 @@ { public: KXMLDOMDocument m_configDoc; - string m_EntityID; + xstring m_EntityID; - maint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} + maint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) { + this->SetArg(); + } xstring GetEntityWorkNode(LPARAM pr, xstring what) { if (m_configDoc) @@ -66,23 +68,26 @@ int getURLParam() { - //xpage xp = GetXPage(); - //xstring aurl = xp.GetWkUrl(); - xaserverarg* arg = (xaserverarg *)GetParam(); - m_EntityID = arg->GetArgString(L"EntityID"); - xstring config = arg->GetArgString(L"config"); - KXMLDOMDocument x; - if (config == L"") + if (GetWinParam()) { - string configXml = arg->GetArgString(L"configxml"); - if (configXml == L"") return 1; - x.loadXML(configXml); + //xpage xp = GetXPage(); + //xstring aurl = xp.GetWkUrl(); + xaserverarg arg = GetArg(); + m_EntityID = arg.GetArgString(L"EntityID"); + xstring config = arg.GetArgString(L"config"); + KXMLDOMDocument x; + if (config == L"") + { + string configXml = arg.GetArgString(L"configxml"); + if (configXml == L"") return 1; + x.loadXML(configXml); + } + else + { + getUrl(config, L"", x); + } + m_configDoc = x; } - else - { - getUrl(config, L"", x); - } - m_configDoc = x; return 1; } @@ -149,8 +154,8 @@ //trace(L"maint:"+index.toString()); //alert(L"xq.xml = "+d.GetXml()); //trace(L"xxx"); - string dwname = L"";//e.selectsingleNode(L"@name").text(); - string tpy = L"dwgrid"; + xstring dwname = L"";//e.selectsingleNode(L"@name").text(); + xstring tpy = L"dwgrid"; if (e.selectSingleNode(L"@name")) dwname = e.selectSingleNode(L"@name").text(); if (e.selectSingleNode(L"@type")) tpy = e.selectSingleNode(L"@type").text(); if (tpy == L"dwgrid") @@ -483,7 +488,7 @@ e = nlist.item(index); //if(!e.selectSingleNode(L"@type")) continue; //alert(e.xml); - xstring xdwname = L"";//e.selectsingleNode(L"@name").text(); + string xdwname = L"";//e.selectsingleNode(L"@name").text(); xstring xtpl = L"";//e.selectsingleNode(L"@url").text(); xstring xtpy = L"dwgrid"; if (e.selectSingleNode(L"@name")) xdwname = e.selectSingleNode(L"@name").text(); -- Gitblit v1.9.3