From 67c0065492e33c9936f12f46f9e2ebcdfb4f98ab Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期五, 18 四月 2025 14:01:12 +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