|  |  | 
 |  |  |  | 
 |  |  |       xml x ; | 
 |  |  |       xaserverarg arg; | 
 |  |  |       arg.setNativePointer(arg.CreateInstance()); | 
 |  |  | 		 | 
 |  |  |       xstring str = L"<Item update.modify='1' update.delete='1' guid='" + id + L"'/>"; | 
 |  |  |       arg.AddArg(L"content", str); | 
 |  |  |       if (xurl::get(L"/sale/data/ProductLibrary/image/update", arg.GetString(), x) != 1) | 
 |  |  | 
 |  |  |       KXMLDOMElement e = tv_folder.GetItemData(hItem); | 
 |  |  |       //xstring no = e.getAttribute(L"no"); | 
 |  |  |       //if(no==L"") return 1; | 
 |  |  |       xstring guid = e.getAttribute(L"guid"); | 
 |  |  |       xaserverarg arg; | 
 |  |  |       //xstring guid = e.getAttribute(L"guid"); | 
 |  |  | 	 | 
 |  |  |  | 
 |  |  |       int row = dw_list.GetNextSelectRow(1); | 
 |  |  |       if (row < 1) row = dw_list.GetRow(); | 
 |  |  |       if (row < 1 || row > dw_list.GetRowCount()) return 0; | 
 |  |  |       xstring guid = dw_list.GetItemString(row, L"@guid"); | 
 |  |  |       if (guid == L"") return 1; | 
 |  |  |       arg.AddArg(L"skuid", guid); | 
 |  |  |  | 
 |  |  |       /* | 
 |  |  |       if(no==L"NP0000FS" || no==L"UP0000FS") | 
 |  |  | 
 |  |  |          OpenWindow(L"dev:xpage[PackSchemaMaint.goodslib.vx]"); | 
 |  |  |       }else | 
 |  |  |       { | 
 |  |  |          int pr = g_xdoc_product; | 
 |  |  |          LPARAM  pr = g_xdoc_product; | 
 |  |  |          OpenWindow(L"dev:xpage[ProductLibraryItemMaint.vx]",pr); | 
 |  |  |       } | 
 |  |  |       */ | 
 |  |  |       //KXMLDOMElement ele = g_xdoc_product.getRowElement(L"data/Item", 1); | 
 |  |  |       //alert(ele.xml); | 
 |  |  | #ifdef shouldfinished | 
 |  |  |       int pr = g_xdoc_product; | 
 |  |  |       OpenWindow(L"dev:xpage[ProductLibraryItemMaint3.vx]", pr); | 
 |  |  | #endif | 
 |  |  |  | 
 |  |  |       OpenWindow(L"dev:xpage[ProductLibraryItemMaint3.vx]", arg); | 
 |  |  | # | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  | 
 |  |  |       xstring guid = e.getAttribute(L"guid"); | 
 |  |  |       if (guid == L"") return 1; | 
 |  |  |       xaserverarg arg; | 
 |  |  |       arg.setNativePointer(arg.CreateInstance()); | 
 |  |  | 		 | 
 |  |  |       arg.AddArg(L"guid", e.getAttribute(L"guid")); | 
 |  |  |       if (name == L"个人产品") | 
 |  |  |          arg.AddArg(L"FolderID", e.getAttribute(L"guid")); | 
 |  |  | 
 |  |  |          } | 
 |  |  |          content += L"</data>"; | 
 |  |  |          xaserverarg carg; | 
 |  |  |          carg.setNativePointer(carg.CreateInstance()); | 
 |  |  | 			 | 
 |  |  |          carg.AddArg(L"content", content); | 
 |  |  |          OpenWindow(L"dev:xpage[SO.Simulation.Import.vx]", (LPARAM) & carg); | 
 |  |  |          OpenWindow(L"dev:xpage[SO.Simulation.Import.vx]",  carg); | 
 |  |  |          return 1; | 
 |  |  |       } | 
 |  |  |       else if (comdid == L"xmEnquiry") | 
 |  |  | 
 |  |  |          } | 
 |  |  |          content += L"</data>"; | 
 |  |  |          xaserverarg carg; | 
 |  |  |          carg.setNativePointer(carg.CreateInstance()); | 
 |  |  | 			 | 
 |  |  |          carg.AddArg(L"content", content); | 
 |  |  |          OpenWindow(L"dev:xpage[Enquiry.Import.vx]", (LPARAM)&carg); | 
 |  |  |          OpenWindow(L"dev:xpage[Enquiry.Import.vx]", carg); | 
 |  |  |          return 1; | 
 |  |  |       } | 
 |  |  |       else if (comdid == L"xmPurchar") | 
 |  |  | 
 |  |  |             else | 
 |  |  |                return 1; | 
 |  |  |  | 
 |  |  |             /*   dw_list.SetDataObject(ProductLibraryView::GetMaintListForm3(no).GetXmlDoc()); | 
 |  |  |             /*   dw_list.SetDataObject(ProductLibraryView::GetMaintListForm3(no)); | 
 |  |  |                dw_list = GetControl(L"dw_list"); | 
 |  |  |                dw_list.Reset(); | 
 |  |  |                dw_list.SetReadOnly(true); | 
 |  |  | 
 |  |  |       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"cname"); | 
 |  |  |          xstring sImage = e.getAttribute(L"image"); | 
 |  |  |          int image = 15; | 
 |  |  | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    int OnImgDBClicked(TEvent * evt, int pr) | 
 |  |  |    int OnImgDBClicked(TEvent * evt, LPARAM  pr) | 
 |  |  |    { | 
 |  |  |       IMGNNMHDR& nmtv = *(IMGNNMHDR*)evt->notify.pnmh; | 
 |  |  |       xstring src = nmtv.path; |