| | |
| | | KXMLDOMDocument m_configDoc; |
| | | string 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) |
| | |
| | | |
| | | 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; |
| | | } |
| | |
| | | |
| | | int OnPrint() |
| | | { |
| | | xaserverarg* arg; |
| | | xaserverarg* arg = new xaserverarg; |
| | | arg->AddArg(L"EntityName", GetEntityName(1), L""); |
| | | arg->AddArg(L"EntityID", GetEntityID(1), L""); |
| | | openUrl(L"/sale/view/view.base/xpage/Template/PrintView", arg); |
| | |
| | | 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(); |