xj qian
2024-06-27 cfe2fd47edee46fea43cc6bda85e74cd30beeaef
jrj/project/viewobject/shoppingcart.view.hpp
@@ -7,7 +7,7 @@
#include <wobject/xurl.hpp>
#include <xcontrol/xdwgrid.hpp>
#include <xcontrol/xdwtable.hpp>
#include <view.base.hpp>
#include "view.base.hpp"
class ShoppingCartView: public ViewObject
{
@@ -18,37 +18,37 @@
        return RetrieveData(L"/sale/data/ProductLibrary/shoppingcart/rolelist");
    }
    
    static KXMLDOMDocument  GetRoleList(string CustomerID)
    static KXMLDOMDocument  GetRoleList(xstring CustomerID)
    {
        return RetrieveData(L"/sale/data/ProductLibrary3/shoppingcart/rolelistex",L"CustomerID",CustomerID);
    }
    
    static KXMLDOMDocument  GetSupplierRoleList(string SupplierID)
    static KXMLDOMDocument  GetSupplierRoleList(xstring SupplierID)
    {
        return RetrieveData(L"/sale/data/ProductLibrary3/shoppingcart/supplier.rolelist",L"SupplierID",SupplierID);
    }
    static KXMLDOMDocument  GetRoleListForSO(string CustomerID)
    static KXMLDOMDocument  GetRoleListForSO(xstring CustomerID)
    {
        return RetrieveData(L"/sale/data/ProductLibrary3/shoppingcart/so/rolelistex",L"CustomerID",CustomerID);
    }
    
    static KXMLDOMDocument  GetGoodsList(string name)
    static KXMLDOMDocument  GetGoodsList(xstring name)
    {
        return RetrieveData(L"/sale/data/ProductLibrary/shoppingcart/goodslist",L"name",name);
    }   
    
    static KXMLDOMDocument  GetGoodsList(string name,string QueryText)
    static KXMLDOMDocument  GetGoodsList(xstring name,xstring QueryText)
    {
        return RetrieveData(L"/sale/data/ProductLibrary3/shoppingcart/goodslistex",L"name",name,L"QueryText",QueryText);
    }   
    int AddCar(string name)
    static int AddCar(xstring name)
    {
        if(RetrieveData(L"/sale/data/SO/goods/goodscar/add",L"name",name)) return 1;
        return -1;
    }
    
    int GoodsImport(string name,string content)
    static int GoodsImport(xstring name,xstring content)
    {
        if(RetrieveData(L"/sale/data/ProductLibrary/shoppingcart/import",L"name",name,L"content",content)) return 1;
        return -1;