#pragma once #include #include #include #include #include #include #include #include class ShoppingCartView: public ViewObject { public: //购物车列表 static KXMLDOMDocument GetRoleList() { return RetrieveData(L"/sale/data/ProductLibrary/shoppingcart/rolelist"); } static KXMLDOMDocument GetRoleList(string CustomerID) { return RetrieveData(L"/sale/data/ProductLibrary3/shoppingcart/rolelistex",L"CustomerID",CustomerID); } static KXMLDOMDocument GetSupplierRoleList(string SupplierID) { return RetrieveData(L"/sale/data/ProductLibrary3/shoppingcart/supplier.rolelist",L"SupplierID",SupplierID); } static KXMLDOMDocument GetRoleListForSO(string CustomerID) { return RetrieveData(L"/sale/data/ProductLibrary3/shoppingcart/so/rolelistex",L"CustomerID",CustomerID); } static KXMLDOMDocument GetGoodsList(string name) { return RetrieveData(L"/sale/data/ProductLibrary/shoppingcart/goodslist",L"name",name); } static KXMLDOMDocument GetGoodsList(string name,string QueryText) { return RetrieveData(L"/sale/data/ProductLibrary3/shoppingcart/goodslistex",L"name",name,L"QueryText",QueryText); } int AddCar(string name) { if(RetrieveData(L"/sale/data/SO/goods/goodscar/add",L"name",name)) return 1; return -1; } int GoodsImport(string name,string content) { if(RetrieveData(L"/sale/data/ProductLibrary/shoppingcart/import",L"name",name,L"content",content)) return 1; return -1; } };