| | |
| | | #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; |