#pragma once #include #include #include #include #include #include #include #include class ProductLibraryView: public ViewObject { public: //form static KXMLDOMDocument GetMaintListForm(string no) { return RetrieveData(L"/sale/data/ProductLibrary/maint/listform",L"refno",no); } public: static KXMLDOMDocument GetMaintList(string no) { return RetrieveData(L"/sale/data/ProductLibrary/data/list",L"parent",no); } //读取树的子项 static KXMLDOMDocument GetTreeChildItems(string sno) { return RetrieveData(L"/sale/data/ProductLibrary/ChildFolderList",L"no",sno); } public: //删除商品项 static int DeleteItem(xstring id) { //if(RetrieveData(L"/sale/data/SO/goods/usegoods/delete",L"guid",id)) return 1; string str = L""; if(RetrieveData(L"/sale/data/ProductLibrary3/update/product",L"content",str)) return 1; return -1; } public: xml GetGoodsPropList(string guid) { return RetrieveData(L"/sale/data/SO/goods/goodsprop/list",L"guid", guid); } public: //form static KXMLDOMDocument GetMaintListForm3(string CategoryID) { return RetrieveData(L"/sale/data/ProductLibrary3/maint/listform",L"CategoryID",CategoryID); } //读取树的子项 static KXMLDOMDocument GetTreeChildItems3(string CategoryID) { return RetrieveData(L"/sale/data/ProductLibrary3/ChildFolderList",L"CategoryID",CategoryID); } //读取树的子项 static KXMLDOMDocument GetTreeUserChildItems3(string CategoryID) { //return RetrieveData(L"/sale/data/ProductLibrary3/User/ChildFolderList",L"CategoryID",CategoryID); return RetrieveData(L"/sale/data/ProductLibrary3/User/ChildFolderList",L"CategoryID",CategoryID); } static KXMLDOMDocument GetMaintList3(string CategroyID) { return RetrieveData(L"/sale/data/ProductLibrary3/data/list",L"CategoryID",CategroyID); } static KXMLDOMDocument GetMaintList3(string CategroyID,string QueryText,string QueryArg) { return RetrieveData(L"/sale/data/ProductLibrary3/data/listex",L"CategoryID",CategroyID,L"QueryText",QueryText,L"QueryArg",QueryArg); } static KXMLDOMDocument GetMaintRoleList3(string CategroyID) { return RetrieveData(L"/sale/data/ProductLibrary3/role/data/list",L"CategoryID",CategroyID); } static KXMLDOMDocument GetMaintRoleList3(string CategroyID,string QueryText) { return RetrieveData(L"/sale/data/ProductLibrary3/role/data/listex",L"CategoryID",CategroyID,L"QueryText",QueryText); } };