|  |  | 
 |  |  | #include <wobject/xurl.hpp> | 
 |  |  | #include <xcontrol/xdwgrid.hpp> | 
 |  |  | #include <xcontrol/xdwtable.hpp> | 
 |  |  | #include <view.base.hpp> | 
 |  |  | #include <viewobject/view.base.hpp> | 
 |  |  |  | 
 |  |  | class ProductLibraryView: public ViewObject | 
 |  |  | { | 
 |  |  | 
 |  |  |     } | 
 |  |  | public: | 
 |  |  |     //删除商品项 | 
 |  |  |     static int DeleteItem(string id) | 
 |  |  |     static int DeleteItem(xstring id) | 
 |  |  |     { | 
 |  |  |         //if(RetrieveData(L"/sale/data/SO/goods/usegoods/delete",L"guid",id)) return 1; | 
 |  |  |         string str = "<Item update.modify='1' update.delete='1' guid='"+id+L"'/>"; | 
 |  |  |         xstring str = L"<Item update.modify='1' update.delete='1' guid='"+id+L"'/>"; | 
 |  |  |         if(RetrieveData(L"/sale/data/ProductLibrary3/update/product",L"content",str)) return 1; | 
 |  |  |         return -1; | 
 |  |  |     } | 
 |  |  | public: | 
 |  |  |     xml  GetGoodsPropList(string guid) | 
 |  |  |     KXMLDOMDocument  GetGoodsPropList(string guid) | 
 |  |  |     { | 
 |  |  |         return RetrieveData(L"/sale/data/SO/goods/goodsprop/list",L"guid", guid); | 
 |  |  |     } |