| | |
| | | #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: |
| | |
| | | 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"; |
| | |
| | | tools +=L"</vbox>"; |
| | | SetAgentNode(anode, tools); |
| | | |
| | | if (GetControl(L"frame:agentinfo"))ShowAgentInfo(scene,EntityID); |
| | | |
| | | return 1; |
| | | } |
| | | |