| | |
| | | { |
| | | public: |
| | | ViewTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | public: |
| | | static ViewTotalWin* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | return new ViewTotalWin(implPtr, (HWND)hWnd); |
| | | } |
| | | |
| | | public: |
| | | xdwgrid dw_list; |
| | | xoffice dw_office; |
| | | xcell dw_cell; |
| | |
| | | if (argUrl != L"") |
| | | { |
| | | xaserverarg ar ; |
| | | ar.setNativePointer(ar.CreateInstance()); |
| | | //ar.setNativePointer(ar.CreateInstance()); |
| | | ar.AddArg(L"argurl", argUrl); |
| | | if (argStr != L"") |
| | | ar.AddArg(L"arg", argStr); |
| | |
| | | xstring colname = dw.GetColumnName(i); |
| | | if (str.find(L"!" + colname + L",L") >= 0) |
| | | { |
| | | dw.SetColumnState(colname, false); |
| | | dw.SetColumnState((LPCTSTR)colname.c_str(), false); |
| | | } |
| | | } |
| | | return 1; |
| | |
| | | AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewTotalWin::OnDWClick); |
| | | AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewTotalWin::OnRowChanged);//绑定行更改触发事件OnRowChanged |
| | | AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewTotalWin::OnRetrieveFinished); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | int OnRetrieve(xstring dataurl, xstring argstr) |
| | |
| | | { |
| | | KXMLDOMElement rpt = nlist.item(i); |
| | | xstring name = rpt.getAttribute(L"name"); |
| | | xc.AddItem( name, rpt); |
| | | xc.AddItem( name, rpt.ptr()); |
| | | if (i == 0) xc.SetText(name); |
| | | if (i == 0) rptEle = rpt; |
| | | } |