| | |
| | | if (selectname != name) |
| | | { |
| | | |
| | | KXMLDOMElement& e1 = tv_folder.GetItemData(hItem); |
| | | KXMLDOMElement e1 = tv_folder.GetItemData(hItem); |
| | | xstring str = e1.getAttribute(L"no"); |
| | | if (str.find(L"Customer1:") == 0 || str.find(L"Customer:") == 0 || str.find(L"SO:") == 0 || str.find(L"Quote:") == 0) |
| | | { |
| | |
| | | dwc_list.openUrl(L"/sale/view/ProductLibrary/template/cart/goodssolist"); |
| | | } |
| | | dwc_list.SetReadOnly(true); |
| | | trace(str + L"+++++L" + queryString); |
| | | g_xdoc_shoppingcart.Retrieve(ShoppingCartView::GetGoodsList(str, queryString)); |
| | | |
| | | } |
| | |
| | | int OnDwcClicked(TEvent* evt, LPARAM p) |
| | | { |
| | | DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; |
| | | char ch; |
| | | int row = hdr.row; |
| | | xstring col = hdr.colname; |
| | | |
| | |
| | | DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; |
| | | int row = hdr.row; |
| | | xstring ls_nos = L"ImportXml:"; |
| | | xstring str = dwc_list.GetItemString(row, L"SOLineID"); |
| | | xstring str1 =dwc_list.GetItemString(row, L"EnquiryPriceListID"); |
| | | xstring str = dw_list.GetItemString(row, L"SOLineID"); |
| | | xstring str1 =dw_list.GetItemString(row, L"EnquiryPriceListID"); |
| | | if (str1 != L"") |
| | | str += L"el:" + str1; |
| | | else if (str != L"") |
| | | str = L"sl:" + str; |
| | | else if (dwc_list.GetItemString(row, L"SKUNo") != L"") |
| | | str = dwc_list.GetItemString(row, L"SKUNo"); |
| | | else if (dw_list.GetItemString(row, L"SKUNo") != L"") |
| | | str = dw_list.GetItemString(row, L"SKUNo"); |
| | | else |
| | | str = dwc_list.GetItemString(row, L"No"); |
| | | str = dw_list.GetItemString(row, L"No"); |
| | | ls_nos += str; |
| | | |
| | | dw_list.SelectRow(0, false); |