xj qian
2024-06-25 1e63e2b6046ffcdc8127da028d122fa414c6a0d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
 
#include <wobject/xstring.hpp>
#include <wobject/xaserverarg.hpp>
#include <win32/win.hpp>
#include <vbusiness/vutil/publiccode.vutil.vbusiness.hpp>
#include <wobject/xurl.hpp>
#include <xcontrol/xdwgrid.hpp>
#include <xcontrol/xdwtable.hpp>
#include "view.base.hpp"
 
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;
    }
};