|  |  | 
 |  |  |    { | 
 |  |  |       xstring CustomerID = dw_base.GetItemString(1, L"CustomerID"); | 
 |  |  |       //KXMLDOMDocument x = QuoteView::LookupProductsByText(str,CustomerID); | 
 |  |  |       //trace(str+L"--" + CustomerID); | 
 |  |  |       //alert(str+L"--" + CustomerID); | 
 |  |  |       KXMLDOMDocument x = ViewObject::RetrieveData(GetServerUrl(),L"/sale/data/SaleOrder/lookup/productsex", L"str", str, L"CustomerID", CustomerID); | 
 |  |  |       if (!x) return 1; | 
 |  |  |       KXMLDOMNodeList items = x.selectNodes(L"/Items/Item"); | 
 |  |  | 
 |  |  |       { | 
 |  |  |          xstring sSalespersonID = dw_base.GetItemString(1, L"SalespersonID"); | 
 |  |  |          //alert(sSalespersonID); | 
 |  |  |          hdr->data = sSalespersonID; | 
 |  |  |          hdr->data = sSalespersonID.c_str(true); | 
 |  |  |       } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    int OnImgDBClicked(TEvent* evt, int pr) | 
 |  |  |    int OnImgDBClicked(TEvent* evt, LPARAM  pr) | 
 |  |  |    { | 
 |  |  |       IMGNNMHDR* nmtv = (IMGNNMHDR *)evt->notify.pnmh; | 
 |  |  |       xstring src = nmtv->path; | 
 |  |  | 
 |  |  |             for (int ip = 0; ip < lenp; ip++) | 
 |  |  |             { | 
 |  |  |                auto xitem = nlistp.item(ip); | 
 |  |  |                string picname = xitem.selectSingleNode(L"PicPath").text(); | 
 |  |  |                xstring picname = xitem.selectSingleNode(L"PicPath").text(); | 
 |  |  |                string goodno = xitem.selectSingleNode(L"GoodsNo").text(); | 
 |  |  |                if (picname == L"/business/products/Thumbs//") | 
 |  |  |                   picname = L"/business/products/Thumbs/00/00000000-0000-0000-0000-000000000000.jpg"; |