| | |
| | | int ExpandFolderItem(HTREEITEM hItem, xstring no) |
| | | { |
| | | //xml x = ViewObject::RetrieveData(urlTree,L"no",no); |
| | | xml x = xml::Make(); |
| | | /*xml x = xml::Make(); |
| | | xaserverarg arg = xaserverarg::Make(); |
| | | arg.AddArg(L"no", no); |
| | | xaserver::ExecXQuery(GetServerUrl(), L"[customerfolder.gdn.sql.xq]", arg.GetString(), x); |
| | | */ |
| | | |
| | | |
| | | KXMLDOMDocument x = ViewObject::RetrieveData(GetServerUrl(), L"[customerfolder.gdn.sql.xq]", L"id", no); |
| | | |
| | | if (!x) return 0; |
| | | |
| | |
| | | arg.AddArg(L"no", no); |
| | | arg.AddArg(L"QueryTxt", m_QueryTxt); |
| | | arg.AddArg(L"rows", rows); |
| | | |
| | | trace(no + L"***" + m_QueryTxt + L"***" + rows); |
| | | /*if(DeptName==L"跟单部"){ |
| | | dw_list.DwRetrieve(GetServerUrl(),L"[list.creator.gdn.sql.xq]",arg.GetString()); |
| | |
| | | int OnSelectDdlb(TEvent* evt, LPARAM p) |
| | | { |
| | | changeddlb = 1; |
| | | int wid = ddlb_1.GetId(); |
| | | int CB_GETCURSEL = 0x0147; |
| | | int nIndex = SendMessageW(wid, CB_GETCURSEL, 0, 0); |
| | | int nIndex = win32::SendMessage(wid, CB_GETCURSEL, 0, 0); |
| | | KXMLDOMElement e = ddlb_1.GetElement(); |
| | | KXMLDOMElement e2 = e.selectSingleNode(L"item[" + xstring(nIndex + 1) + L"]"); |
| | | xstring no = e2.selectSingleNode(L"@element").text(); |
| | |
| | | |
| | | int OnSelectDataShowDdlb(TEvent* evt, LPARAM p) |
| | | { |
| | | int wid = cbx_datashow.GetId(); |
| | | int CB_GETCURSEL = 0x0147; |
| | | int nIndex = SendMessageW(wid, CB_GETCURSEL, 0, 0); |
| | | int nIndex = win32::SendMessage(wid, CB_GETCURSEL, 0, 0); |
| | | KXMLDOMElement e = cbx_datashow.GetElement(); |
| | | KXMLDOMElement e2 = e.selectSingleNode(L"item[" + xstring(nIndex + 1) + L"]"); |
| | | rows = e2.selectSingleNode(L"@rows").text(); |
| | |
| | | } |
| | | |
| | | |
| | | int AttachEvent() |
| | | int PostOnAttachEvent() |
| | | { |
| | | AttachEvent(L"tv_folder", L"TVN_SELCHANGED", (FEvent)&GDN3list::OnTreeSelChanged); //树选择 |
| | | //AttachEvent(L"tv_folder", L"TVN_ITEMEXPANDING",(FEvent)&GDN3list::OnTreeExpanding); //树展开 |
| | |
| | | |
| | | |
| | | //attach my control event |
| | | AttachEvent(); |
| | | PostOnAttachEvent(); |
| | | |
| | | readed = false; |
| | | |