xj qian
2025-02-11 0792cf13f1a288644a9a90c023547bbe6e26a3e7
jrj/xframe/devloper/XDevEditDbmap.cpp
@@ -5,13 +5,14 @@
#include <xcontrol/xtreeview.hpp>
#include <xcontrol/xlayersheet.hpp>
#include <xcontrol/xsedit.hpp>
#include "XDevEditPage.hpp"
using xml = KXMLDOMDocument;
class export XDevEditDbmap : public xwin
class export XDevEditDbmap : public XDevEditPage
{
   public:
   XDevEditDbmap(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
   XDevEditDbmap(void* implPtr, HWND hWnd) :XDevEditPage(implPtr, hWnd) {}
public:
   static XDevEditDbmap* CreateInstance(void* implPtr, void* hWnd)
   {
@@ -20,6 +21,7 @@
private:   //
   xnode   m_agentNode;   //Agent Condition
   xstring   m_agentCond;   //Agent Node
public:
   int SetAgent()
   {
      /*xstring xfNodeAgentArea  =L"agentarea";
@@ -172,7 +174,7 @@
         xml x;
         if (!x.loadXML(content))
         {
            KXMLDOMParseError pError = x.parseError;
            KXMLDOMParseError pError = x.parseError();
            if (pError)
            {
               xstring str = pError.srcText();
@@ -197,8 +199,8 @@
         xstring sType = OnGetType();
         if (sType ==L"xml.xsd")
         {
            xstring sError;
            x.ValidSchema(content, &sError);
            BSTR sError;
            x.ValidSchema(content.c_str(), sError);
            trace(sError);
         }
      }
@@ -237,7 +239,7 @@
      if (content ==L"") return -1;
      xwin w = GetFrameWindow();
      xtreeview tv_folder = w.GetControl(L"DevExplorer");
      HTREEITEM hItem = GetWinParam();
      HTREEITEM hItem = (HTREEITEM)GetWinParam();
      KXMLDOMElement e = tv_folder.GetItemData(hItem);
      //trace(e.xml);
      xstring str = e.getAttribute(L"type");
@@ -261,7 +263,7 @@
      xstring aurl =L"";
      if (n)
      {
         xstring tmp =L"" + n.text();
         xstring tmp =n.text();
         aurl =L"/sale/" + xtype +L"/" + tmp +L"/" + content;
      }
      else
@@ -296,6 +298,7 @@
      //获取焦点事件,用于重置工具条
      AttachEvent(L"WM_SETFOCUS", (FEvent)&XDevEditDbmap::OnSetFocus);
      //AttachEvent(L"content",L"WM_LBUTTONDOWN", (FEvent)&XDeveloper::OnLButtonDown);
      return 1;
   }
   int OnInitial()