From a4344c9bada0722c6ef7fac5d95f29a110eea0f1 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期一, 21 四月 2025 10:32:05 +0800 Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/mis-prj --- jrj/xframe/vbusiness/vframe/frame.vframe.vbusiness.hpp | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/jrj/xframe/vbusiness/vframe/frame.vframe.vbusiness.hpp b/jrj/xframe/vbusiness/vframe/frame.vframe.vbusiness.hpp index f131170..d9150d2 100644 --- a/jrj/xframe/vbusiness/vframe/frame.vframe.vbusiness.hpp +++ b/jrj/xframe/vbusiness/vframe/frame.vframe.vbusiness.hpp @@ -3,6 +3,9 @@ #include <wobject/xwin.hpp> #include <wobject/xurl.hpp> #include <wobject/xapp.hpp> +#include "viewobject/view.base.hpp" +#include "xcontrol/xshtml.hpp" + class xframe : public xwin { public: @@ -389,6 +392,22 @@ return L""; } + virtual int ShowAgentInfo(xstring scene, xstring EntityID) + { + if (EntityID != L"") + { + KXMLDOMDocument x = ViewObject::RetrieveData(L"/sale/data/Agent/entity", L"scene",scene,L"EntityID", EntityID); + if (x) + { + xshtml xs =GetControl(L"frame:agentinfo"); + string content = x.xml(); + xs.SetContent(content); + xs.Redraw(); + } + } + return 1; + } + virtual int SetAgent(xstring scene, xstring EntityID) { xstring xfNodeAgentArea =L"agentarea"; @@ -469,6 +488,8 @@ tools +=L"</vbox>"; SetAgentNode(anode, tools); + if (GetControl(L"frame:agentinfo"))ShowAgentInfo(scene,EntityID); + return 1; } -- Gitblit v1.9.3