xj qian
2024-06-25 47d903f3ed61cd1abc33c723a30fe53c829f9c07
jrj/project/viewobject/shoppingcart.view.hpp
@@ -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;