xj qian
2024-09-06 82f66d1ff1afcacc2d9331ce3662c3667e044976
jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp
@@ -6,6 +6,7 @@
#include "vbusiness/vframe/listwin.vframe.vbusiness.hpp"
#include "viewobject/view.base.hpp"
#include "xcontrol/xshtml.hpp"
using xml = KXMLDOMDocument;
   class __declspec(dllexport) BugMaintWin :  public xframe
@@ -20,10 +21,10 @@
      xstring m_ConnectID;
      xcontrol m_Edit;
      htmlctrl m_Html;
      xshtml m_Html;
      xcombobox m_cb;
   public:
      BugMaintWin(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
      BugMaintWin(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd), m_Edit(nullptr){}
   public:
      static BugMaintWin* CreateInstance(void* implPtr, void* hWnd)
      {
@@ -90,7 +91,7 @@
      int AppendItem(xml x,KXMLDOMElement r,xstring name, xstring value)
      {
         KXMLDOMElement e = x.createElement(name);
         e.text() = value;
         e.settext(value);
         r.appendChild(e);
         return 1;
      }
@@ -132,7 +133,7 @@
            l.setAttribute(L"caption", L""+tmp);
            KXMLDOMElement b = x.createElement(L"xtoolbutton");
            b.setAttribute(L"width", L"18");
            b.setAttribute(L"name", L"att_"+i.toString());
            b.setAttribute(L"name", (xstring)L"att_"+xstring(i).c_str());
            b.setAttribute(L"image", L"1,5");
            e.appendChild(l);
            e.appendChild(b);
@@ -151,8 +152,8 @@
      {
         xstring guid = publiccode::GetGuid();
         xstring str = guid.left(2);
         xstring ret = xaserver::UploadFile(L"attachment"+str, guid+L".jpg".GetHWND(),L"",false);
         int nIndex = m_cb.AddItem(ret, guid+L".jpg");
         xstring ret = xaserver::UploadFile(L"attachment"+str, guid+L".jpg",GetHWND(),L"",false);
         int nIndex = m_cb.AddItem(ret.c_str(), (guid + L".jpg").c_str());
         showAtt();
         return 1;
      }
@@ -261,6 +262,7 @@
      
      int OnHtmlClick(TEvent* evt, int p)
      {
         ref  HTMLNMHDR p = evt.pnmh;
         const xstring d = m_Html.GetData(p.object);   
         if(d == L"") return -1;