| | |
| | | |
| | | #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 |
| | |
| | | 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) |
| | | { |
| | |
| | | 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; |
| | | } |
| | |
| | | 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); |
| | |
| | | { |
| | | 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; |
| | | } |
| | |
| | | |
| | | int OnHtmlClick(TEvent* evt, int p) |
| | | { |
| | | |
| | | ref HTMLNMHDR p = evt.pnmh; |
| | | const xstring d = m_Html.GetData(p.object); |
| | | if(d == L"") return -1; |