From a4d2315ee4ca3f6177b4fb2526bed2feff3d89be Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 22 十月 2025 16:52:58 +0800
Subject: [PATCH] update
---
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