xj qian
2025-04-10 65a0a22fc5385eed07417706a5ad3ef5a21e2ead
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;
   }