xj qian
2025-02-11 0792cf13f1a288644a9a90c023547bbe6e26a3e7
jrj/xframe/devloper/XDevEditXPage.cpp
@@ -5,12 +5,13 @@
#include <xcontrol/xtreeview.hpp>
#include <xcontrol/xlayersheet.hpp>
#include <xcontrol/xsedit.hpp>
#include "XDevEditPage.hpp"
using xml = KXMLDOMDocument;
class export XDevEditXPage : public xwin
class export XDevEditXPage : public XDevEditPage
{
   public:
   XDevEditXPage(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd){}
   XDevEditXPage(void* implPtr, HWND hWnd) :XDevEditPage(implPtr, hWnd){}
public:
   static XDevEditXPage* CreateInstance(void* implPtr, void* hWnd)
   {
@@ -20,6 +21,7 @@
private:   //
   xnode   m_agentNode;   //Agent Condition
   xstring   m_agentCond;   //Agent Node
public:
   int SetAgent()
   {
      /*
@@ -50,6 +52,24 @@
   {
      if (comdid == L"xmPreview")
      {
      }
      else if (comdid == L"xmImport")
      {
         xwin w = GetFrameWindow();
         xtreeview tv_folder = w.GetControl(L"DevExplorer");
         HTREEITEM hItem = tv_folder.GetSelectedItem();
         if (!hItem) return 1;
         KXMLDOMElement e = tv_folder.GetItemData(hItem);
         xstring src = e.getAttribute(L"src");
         if(src==L"Profit3.vface")
            ImportItems(L"file://D:/jrjhome/developer-yh/projects/mherp.com.cn/前端策略/works/供应链.xml",
               L"Profit3.vface");
         else if (src == L"Profit3.iface")
            ImportItems(L"file://D:/jrjhome/developer-yh/projects/mherp.com.cn/数据中心/works/trade.xml",
               L"Profit3.iface");
         return 1;
      }
      else if (comdid == L"xmFileSaveEx")
      {
@@ -87,6 +107,8 @@
      AttachEvent(L"WM_XCOMMAND", (FEvent)&XDevEditXPage::OnXCommand);
      //获取焦点事件,用于重置工具条
      AttachEvent(L"WM_SETFOCUS", (FEvent)&XDevEditXPage::OnSetFocus);
      return 1;
   }
   int LoadData()