| | |
| | | int len = nlist.length(); |
| | | for (int i = 0; i < len; i++) |
| | | { |
| | | KXMLDOMElement& e = *new KXMLDOMElement(nlist.item(i)); |
| | | KXMLDOMElement e = nlist.item(i); |
| | | xstring name = e.getAttribute(L"name"); |
| | | xstring sImage = e.getAttribute(L"image"); |
| | | xstring child = e.getAttribute(L"child"); |
| | | int image = 15; |
| | | if (sImage) image = sImage.toInt(); |
| | | HTREEITEM h = tv_folder.InsertChildItem( hItem, name, (LPARAM)&e, image); |
| | | HTREEITEM h = tv_folder.InsertChildItem( hItem, name, e, image); |
| | | if (child != L"no") tv_folder.SetItemChild(h, 1); |
| | | ExpandChildFolder(h, e); |
| | | } |
| | |
| | | if (len > 0) tv_folder.SetItemChild(hItem, 1); |
| | | for (int i = 0; i < len; i++) |
| | | { |
| | | KXMLDOMElement& e = *new KXMLDOMElement(nlist.item(i)); |
| | | KXMLDOMElement e = nlist.item(i); |
| | | xstring name = e.getAttribute(L"name"); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, (LPARAM)&e, image); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, e, image); |
| | | ExpandCatChildFolder(h, e, 35); |
| | | } |
| | | return 1; |
| | |
| | | int len = nlist.length(); |
| | | for (int i = 0; i < len; i++) |
| | | { |
| | | KXMLDOMElement& e = *new KXMLDOMElement(nlist.item(i)); |
| | | KXMLDOMElement e = nlist.item(i); |
| | | xstring name = e.getAttribute(L"name"); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, (LPARAM)&e, 35); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, e, 35); |
| | | ExpandCatChildFolder(h, e, 35); |
| | | } |
| | | return 1; |
| | |
| | | return 1; |
| | | KXMLDOMElement ele = dw_list.GetRowElement(row); |
| | | xstring mfid = ele.selectSingleNode(L"mfid").text();//获取节点的值 |
| | | xaserverarg arg; |
| | | //arg.AddArg(L"mfid", mfid); |
| | | OpenWindow(L"dev:xpage[ManpowerFileWindow.vx]",mfid); |
| | | return 1; |
| | | } |
| | |
| | | int OnRetrieveEx1() |
| | | { |
| | | HTREEITEM hItem = tv_folder.GetSelectedItem(); |
| | | if (hItem <= 0) return 1; |
| | | if (!hItem) return 1; |
| | | |
| | | HCURSOR hCursor = xutil::SetCursorWait(); |
| | | KXMLDOMElement& e1 = *(KXMLDOMElement*)tv_folder.GetItemData(hItem); |
| | | KXMLDOMElement e1 = tv_folder.GetItemData(hItem); |
| | | xstring no = e1.getAttribute(L"no"); |
| | | |
| | | xml x ; |