| | |
| | | { |
| | | public: |
| | | KXMLDOMDocument m_configDoc; |
| | | string m_EntityID; |
| | | xstring m_EntityID; |
| | | |
| | | maint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} |
| | | maint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) { |
| | | this->SetArg(); |
| | | } |
| | | xstring GetEntityWorkNode(LPARAM pr, xstring what) |
| | | { |
| | | if (m_configDoc) |
| | |
| | | return L""; |
| | | } |
| | | |
| | | virtual string GetEntityRowData(int pr) |
| | | virtual xstring GetEntityRowData(LPARAM pr) |
| | | { |
| | | return GetEntityData(pr); |
| | | } |
| | | |
| | | virtual string GetEntityData(int /*param*/ pr) |
| | | virtual xstring GetEntityData(LPARAM pr) |
| | | { |
| | | //trace(L"zzz"); |
| | | return L""; |
| | |
| | | |
| | | int getURLParam() |
| | | { |
| | | //xpage xp = GetXPage(); |
| | | //xstring aurl = xp.GetWkUrl(); |
| | | xaserverarg* arg = (xaserverarg *)GetParam(); |
| | | m_EntityID = arg->GetArgString(L"EntityID"); |
| | | xstring config = arg->GetArgString(L"config"); |
| | | KXMLDOMDocument x; |
| | | if (config == L"") |
| | | if (GetWinParam()) |
| | | { |
| | | string configXml = arg->GetArgString(L"configxml"); |
| | | if (configXml == L"") return 1; |
| | | x.loadXML(configXml); |
| | | //xpage xp = GetXPage(); |
| | | //xstring aurl = xp.GetWkUrl(); |
| | | xaserverarg arg = GetArg(); |
| | | m_EntityID = arg.GetArgString(L"EntityID"); |
| | | xstring config = arg.GetArgString(L"config"); |
| | | KXMLDOMDocument x; |
| | | if (config == L"") |
| | | { |
| | | string configXml = arg.GetArgString(L"configxml"); |
| | | if (configXml == L"") return 1; |
| | | x.loadXML(configXml); |
| | | } |
| | | else |
| | | { |
| | | getUrl(config, L"", x); |
| | | } |
| | | m_configDoc = x; |
| | | } |
| | | else |
| | | { |
| | | getUrl(config, L"", x); |
| | | } |
| | | m_configDoc = x; |
| | | |
| | | return 1; |
| | | } |
| | |
| | | { |
| | | KXMLDOMDocument x; |
| | | xaserverarg arg; |
| | | if (m_EntityID == L"") return 1; |
| | | arg.AddArg(L"EntityID", m_EntityID, L"xs:string"); |
| | | |
| | | xstring dataUrl = L""; |
| | |
| | | //trace(L"maint:"+index.toString()); |
| | | //alert(L"xq.xml = "+d.GetXml()); |
| | | //trace(L"xxx"); |
| | | string dwname = L"";//e.selectsingleNode(L"@name").text(); |
| | | string tpy = L"dwgrid"; |
| | | xstring dwname = L"";//e.selectsingleNode(L"@name").text(); |
| | | xstring tpy = L"dwgrid"; |
| | | if (e.selectSingleNode(L"@name")) dwname = e.selectSingleNode(L"@name").text(); |
| | | if (e.selectSingleNode(L"@type")) tpy = e.selectSingleNode(L"@type").text(); |
| | | if (tpy == L"dwgrid") |
| | |
| | | return 1; |
| | | } |
| | | |
| | | virtual int PreOnCmdDispatch(string comdid) |
| | | virtual int PreOnCmdDispatch(xstring comdid) |
| | | { |
| | | //返回0——不在执行以下代码;返回其他——执行以下代码。 |
| | | return 1; |
| | | } |
| | | |
| | | virtual int PostOnCmdDispatch(string comdid) |
| | | virtual int PostOnCmdDispatch(xstring comdid) |
| | | { |
| | | return 1; |
| | | } |
| | |
| | | e = nlist.item(index); |
| | | //if(!e.selectSingleNode(L"@type")) continue; |
| | | //alert(e.xml); |
| | | xstring xdwname = L"";//e.selectsingleNode(L"@name").text(); |
| | | string xdwname = L"";//e.selectsingleNode(L"@name").text(); |
| | | xstring xtpl = L"";//e.selectsingleNode(L"@url").text(); |
| | | xstring xtpy = L"dwgrid"; |
| | | if (e.selectSingleNode(L"@name")) xdwname = e.selectSingleNode(L"@name").text(); |