|  |  | 
 |  |  |       <PrecompiledHeader>NotUsing</PrecompiledHeader> | 
 |  |  |       <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> | 
 |  |  |       <AdditionalIncludeDirectories>..\xframe;..\xframe\system;..\project;..\jarch;..\jarch.impl;.;..\ext-jrj;..</AdditionalIncludeDirectories> | 
 |  |  |       <Optimization>MaxSpeed</Optimization> | 
 |  |  |     </ClCompile> | 
 |  |  |     <Link> | 
 |  |  |       <SubSystem>Windows</SubSystem> | 
 
 |  |  | 
 |  |  | #include "xcontrol/xshtml.hpp" | 
 |  |  | #include "vbusiness/vframe/frame.vframe.vbusiness.hpp" | 
 |  |  | #include "viewobject/view.base.hpp" | 
 |  |  | #include "xcontrol/xshtml.hpp" | 
 |  |  |  | 
 |  |  | using xml = Hxsoft::XFrame::KXMLDOMDocument; | 
 |  |  |  | 
 |  |  | 
 |  |  |         arg.AddArg(L"content", ele.xml()); | 
 |  |  |         xml doc; | 
 |  |  |  | 
 |  |  |         if (getUrl(L"/sale/data/vpage/vstart/task", arg.GetString(), doc) != 1) | 
 |  |  |         if (getUrl(L"/sale/data/vpage/vstart/taskex", arg.GetString(), doc) != 1) | 
 |  |  |         { | 
 |  |  |             trace((xstring)L"error->:" + doc.xml()); | 
 |  |  |             return 0; | 
 |  |  | 
 |  |  |         else | 
 |  |  |         { | 
 |  |  |             SetAgent(); | 
 |  |  |             ShowAgentInfo(); | 
 |  |  |             //ShowAgentInfo(); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         return 1; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /* | 
 |  |  |     int ShowAgentInfo() | 
 |  |  |     { | 
 |  |  |         xstring taskID = GetTaskID(); | 
 |  |  |         if (taskID != L"") | 
 |  |  |         { | 
 |  |  |             KXMLDOMDocument x = ViewObject::RetrieveData(L"/sale/data/Agent/task", L"TaskID", taskID); | 
 |  |  |             //KXMLDOMDocument x = ViewObject::RetrieveData(L"/sale/data/Agent/task", L"TaskID", taskID); | 
 |  |  |             KXMLDOMDocument x = ViewObject::RetrieveData(L"/sale/data/Agent/entity", L"EntityID", GetEntityID(0)); | 
 |  |  |             if (x) | 
 |  |  |             { | 
 |  |  |                 xshtml xs = GetControl(L"frame:agentinfo"); | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         return 1; | 
 |  |  |     } | 
 |  |  |     }*/ | 
 |  |  |  | 
 |  |  |     int OnRowChanged(TEvent* evt, LPARAM p) | 
 |  |  |     { | 
 |  |  |         DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; | 
 |  |  | 
 |  |  |         else | 
 |  |  |         { | 
 |  |  |             SetAgent(); | 
 |  |  |             ShowAgentInfo(); | 
 |  |  |             //ShowAgentInfo(); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         return 1; | 
 
 |  |  | 
 |  |  |         if (xaserver::ExecXQuery(GetServerUrl(), L"[GetSysInfo.xq]", arg.GetString(), x) != 1) | 
 |  |  |         { | 
 |  |  |             //trace(x.GetXml()); | 
 |  |  |             const wchar_t * str = x.xml(); | 
 |  |  |             return -1; | 
 |  |  |         } | 
 |  |  |         if ((xstring)x.xml() == L"") return -1; | 
 
 |  |  | 
 |  |  | #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; | 
 |  |  |     } | 
 |  |  |  |